diff --git a/pages/Missionmap/index.nvue b/pages/Missionmap/index.nvue index 6286aaf..b748548 100644 --- a/pages/Missionmap/index.nvue +++ b/pages/Missionmap/index.nvue @@ -198,7 +198,6 @@ success(res) { that.list = res.data that.makeline(that.list) - console.log(that.list) } }) @@ -324,10 +323,10 @@ latitude: parseFloat(lat), longitude: parseFloat(lng), success: function() { - console.log('success'); + }, fail(err) { - console.log(err); + } }); }, diff --git a/pages/Mypurse/history/history.vue b/pages/Mypurse/history/history.vue index 33c27d0..9bbeb71 100644 --- a/pages/Mypurse/history/history.vue +++ b/pages/Mypurse/history/history.vue @@ -99,9 +99,9 @@ if (parseInt(dic.type) == 1) { const totalV = parseFloat(dic.total) - console.log(that.income) + that.income += totalV - console.log(that.income) + } else { that.expenditure += parseFloat(dic.total) @@ -109,9 +109,9 @@ } } that.income = that.income.toFixed(2) - console.log(that.income) + that.expenditure = that.expenditure.toFixed(2) - console.log(that.expenditure) + }) }, alldate() { diff --git a/pages/Mypurse/index.vue b/pages/Mypurse/index.vue index 064fd4d..d9f43f4 100644 --- a/pages/Mypurse/index.vue +++ b/pages/Mypurse/index.vue @@ -52,7 +52,7 @@ onShow() { var day = new Date(); this.time = day.getFullYear() + "-" + (day.getMonth() + 1) + "-" + day.getDate(); - console.log(this.time) + this.BalanceGetInfo() this.BalanceGetRecord() }, diff --git a/pages/Orderstatistics/index.vue b/pages/Orderstatistics/index.vue index 9d11f07..3bead91 100644 --- a/pages/Orderstatistics/index.vue +++ b/pages/Orderstatistics/index.vue @@ -278,7 +278,7 @@ }, // 失败回调 fail: (res) => { - console.log('调用失败!', JSON.stringify(res)) + } }) }, @@ -299,31 +299,6 @@ var that = this - // const Accesstoken = uni.getStorageSync('Accesstoken') - // const baseUrl = getApp().globalData.mainurl - // uni.request({ - // url: baseUrl + '/order/ow/getAllByCondition', - // data: { - // workerName: uni.getStorageSync('userinfo').workerName, - // orderStatus: 4, - // pageNumber: 1, - // pageSize: 10, - // startDate: thisDayDate, - // endDate: thisDayDate - // }, - // method:'POST', - // header: { - // "content-type": 'application/json', - // Accesstoken:Accesstoken - // }, // 请求头 - // success: function(res) { - // console.log('测试',res) - // }, - // fail: function(err) { - // console.log(err) - // uni.hideLoading(); - // } - // }) this.NB.sendRequest('/order/ow/getOrderList', { workerName: uni.getStorageSync('userinfo').workerName, orderStatus: 4, diff --git a/pages/detailmap/index.vue b/pages/detailmap/index.vue index d420173..6f3e436 100644 --- a/pages/detailmap/index.vue +++ b/pages/detailmap/index.vue @@ -461,7 +461,7 @@ this.mylocation = uni.getStorageSync('mylocation') this.latitude = this.mylocation.latitude this.longitude = this.mylocation.longitude - console.log(this.latitude, this.longitude) + this.safeAreaBottom = getApp().globalData.safeAreaBottom + 66 this.top = getApp().globalData.top this.minheight = 40 @@ -471,7 +471,7 @@ this.draptop = this.top }, onReady() { - console.log('onReady') + this.getdata() }, methods: { @@ -521,7 +521,7 @@ oid: this.info.id, code: code }, true).then(function(data) { - console.log(data) + that.getdata() setTimeout(() => { uni.navigateBack({ @@ -565,13 +565,12 @@ key: 'finishthumb', success(res) { if (res.data.length > 0) { - console.log('pppppppppppppppppppppppppp') - console.log(res) + that.sendRequest('Rider.Orders.Start', { oid: that.info.id, thumbs: JSON.stringify(res.data), }, true).then(function(data) { - console.log(data) + uni.setStorage({ key: 'finishthumb', data: '' @@ -588,14 +587,14 @@ }) }, connect() { - console.log("111") + var that = this var tonum = that.info.recip_phone; if (that.info.type < 3 && that.info.status == 3) { tonum = that.info.pick_phone } - console.log(that.info) + uni.makePhoneCall({ phoneNumber: tonum, success: (res) => { @@ -603,7 +602,7 @@ }, // 失败回调 fail: (res) => { - console.log('调用失败!', JSON.stringify(res)) + } }) // uni.getStorage({ @@ -631,7 +630,7 @@ makeline() { var that = this - console.log(that.info) + //订单类型 1帮送 2帮取 3帮买 4 帮排队 5帮办 let endlatitude; let endlongitude; @@ -676,8 +675,7 @@ origin: that.longitude + ',' + that.latitude, destination: endlongitude + ',' + endlatitude, success: function(data) { - console.log('路径规划完成') - console.log('距离:' + data.paths[0].distance) + that.scale = that.scalesize(data.paths[0].distance) var mydistance = 0 @@ -700,8 +698,6 @@ that.info.allDistance = allDistance - console.log('mydistance:' + that.info.myDistance) - console.log('allDistance:' + that.info.allDistance) var points = []; if (data.paths && data.paths[0] && data.paths[0] @@ -744,7 +740,7 @@ fail: () => {}, complete: () => {} }); - console.log(data) + } }) }, 0) @@ -757,15 +753,15 @@ var farray = this.wgs84togcj02(lng, lat) lng = farray[0] lat = farray[1] - console.log(farray) + uni.openLocation({ latitude: parseFloat(lat), longitude: parseFloat(lng), success: function() { - console.log('success'); + }, fail(err) { - console.log(err); + } }); }, @@ -991,7 +987,7 @@ // #ifdef APP-PLUS lag = system_info.appLanguage ? system_info.appLanguage : 'th-TH' // #endif - console.log(lag) + const cur_lang = lag.indexOf('zh') != -1 ? toolData.lang = 'zh' : toolData.lang = 'th' uni.request({ @@ -1021,7 +1017,7 @@ } }, fail: function(err) { - console.log(err) + uni.hideLoading(); } }) diff --git a/pages/goods/addGoods.vue b/pages/goods/addGoods.vue index 3c63382..36f28aa 100644 --- a/pages/goods/addGoods.vue +++ b/pages/goods/addGoods.vue @@ -279,7 +279,7 @@ */ inputOver(e) { // 可以在此处获取到编辑器已编辑的内容 - console.log('==== inputOver :', e) + this.productIntro = e }, /** @@ -288,7 +288,7 @@ */ overMax(e) { // 若设置了最大字数限制,可在此处触发超出限制的回调 - console.log('==== overMax :', e) + }, /** * 编辑器就绪 @@ -564,7 +564,7 @@ } let str = JSON.stringify(v); let data = JSON.parse(str); - console.log('111111',data) + this.formData = data; // 解析attributeList(商品属性),兼容string和已解析的对象 @@ -729,7 +729,7 @@ } } } - console.log() + that.$forceUpdate(that.categorySonData) that.$forceUpdate(that.categoryData) } else { @@ -746,7 +746,7 @@ if(this.specValueArr[m].id == this.formData.attributeListPrice[index].id){ this.specValueArr.splice(m,1) this.formData.attributeListPrice.splice(index,1) - console.log("11",this.formData.attributeListPrice) + if(this.formData.attributeListPrice.length == 1){ this.formData.attributeListPrice = [] this.formData.attributeListPrice.push({ diff --git a/pages/index/index.vue b/pages/index/index.vue index d88314d..8b7406b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -278,25 +278,11 @@ }).catch((res) => {}) }, onClickArea(item){ - console.log('好的好的',item) + uni.setStorageSync('area',JSON.stringify(item)) this.getBusinessStatus() this.getData() - // this.searchForm.regionId = item.id - // this.getDelivery(); - // this.getShopArea(); - // let that = this - // that.tui.request("/worker/admin/add", "POST", {userId:uni.getStorageSync('id'),isChangeArea:0,region:item.id}, false, true).then((res) => { - // if (res.code == 200) { - // if(res.result != null){ - // uni.setStorageSync('worker',res.result) - // } - // } else { - // that.tui.toast(res.message) - // return - // } - // uni.hideLoading() - // }).catch((res) => {}) + this.$refs.areaPopup.close() }, //更改营业状态 diff --git a/pages/login/BindMobile.vue b/pages/login/BindMobile.vue index 386e3e5..6beab59 100644 --- a/pages/login/BindMobile.vue +++ b/pages/login/BindMobile.vue @@ -98,7 +98,7 @@ key: 'countryCode', success: res => { that.countryCode = res.data - console.log(res) + } }) }, diff --git a/pages/login/login.vue b/pages/login/login.vue index 1f7cc4f..3081d6f 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -102,7 +102,7 @@ key: 'countryCode', success: res => { that.countryCode = res.data - console.log(res) + } }) // this.captchaInit() @@ -145,9 +145,9 @@ const that = this this.NB.sendRequest('/common/captcha/init', {}, false).then(data => { that.captcha = data.result - console.log('data.data.result',data.result) + this.NB.sendRequest('https://storage.xenjoyou.com/hiver/common/captcha/draw/'+ data.result, {}, false).then(data => { - console.log('data',data) + that.captcha = data }) }).catch(data => {}) @@ -184,7 +184,7 @@ // getApp().globalData.userinfo = info - // console.log(info) + // // uni.setStorage({ // key: 'userinfo', // data: info, @@ -256,7 +256,7 @@ dic.code = this.countryCode dic.type = 1 dic.sign = sign - console.log(dic) + this.NB.sendRequest(`/common/captcha/sendLoginSms/${this.mobile}`, { type: this.wayValue }, true).then(data => { @@ -279,7 +279,7 @@ }, 1000); } }).catch(data => { - console.log(data) + if (data.code == 200) { that.codeFocus = true var time = 60 @@ -316,7 +316,7 @@ //多店铺的时候点击选择需要登录的店铺 checkShop(item) { let that = this; - console.log('item、有没有attrid1',item) + uni.getSystemInfo({ success: function (res1) { that.NB.sendRequest('/auth/chooseShop', { diff --git a/pages/login/regist.vue b/pages/login/regist.vue index 93809f0..77e828d 100644 --- a/pages/login/regist.vue +++ b/pages/login/regist.vue @@ -141,7 +141,7 @@ dic.mobile = this.phone dic.code = this.code dic.pass = this.password - console.log(dic) + // #ifdef MP-WEIXIN dic.env = 'weixin' // #endif @@ -154,10 +154,10 @@ } this.NB.sendRequest(url, dic, true).then(data => { - console.log(data) + this.saveLocal(data.info[0]) }).catch(data => { - console.log(data) + }) return @@ -208,10 +208,10 @@ userSig: userSig }) .then(function(imResponse) { - console.log('imResponse:', imResponse.data); // 登录成功 + if (imResponse.data.repeatLogin === true) { // 标识帐号已登录,本次登录操作为重复登录。v2.5.1 起支持 - console.log(imResponse.data.errorInfo); + } }) .catch(function(imError) { @@ -223,7 +223,7 @@ nick: info.user_nickname }); promise.then(function(imResponse) { - console.log(imResponse.data); // 更新资料成功 + }).catch(function(imError) { console.warn('updateMyProfile error:', imError); // 更新资料失败的相关信息 }); diff --git a/pages/myCenter/setPrint.vue b/pages/myCenter/setPrint.vue index 042ceac..c0c8394 100644 --- a/pages/myCenter/setPrint.vue +++ b/pages/myCenter/setPrint.vue @@ -88,15 +88,15 @@ uni.getLocation({ type: 'wgs84', success: function(res) { - console.log('当前位置的经度:' + res.longitude); - console.log('当前位置的纬度:' + res.latitude); + + } }); // this.getData() }, onShow() { - console.log('---') + }, methods: { endSearch(){ @@ -113,7 +113,7 @@ var _this = this; _this.okAddress = ''; _this.linkAddress = deviceId; - console.log(deviceId) + if (state == true) { _this.isSearching = false } @@ -128,7 +128,7 @@ let server = []; //2.寻找服务 await bluetooth.getBLEDeviceServices().then((res) => { - console.log(res) + bluetooth.notifyId = ''; bluetooth.writeId = ''; bluetooth.num = 0; @@ -149,7 +149,7 @@ _this.okAddress = ''; _this.linkAddress = ''; //TODO handle the exception - console.log("e: " + JSON.stringify(e)); + } }, //打印一次 @@ -227,7 +227,7 @@ let devices = []; let list = result.devices; for (let i = 0; i < list.length; ++i) { - console.log(list[i]) + if (list[i].name && list[i].name != "未知设备") { let arrNew = arr.filter((item) => { return item.deviceId == list[i].deviceId; @@ -252,7 +252,7 @@ } }) }).catch(e => { - console.log(e) + }); }, // 停止搜索 diff --git a/pages/myCenter/shopDetail.vue b/pages/myCenter/shopDetail.vue index 024e257..097a237 100644 --- a/pages/myCenter/shopDetail.vue +++ b/pages/myCenter/shopDetail.vue @@ -108,7 +108,7 @@ }, onLoad() { this.shop = JSON.parse(uni.getStorageSync('area')).shop; - console.log('好的好的',this.shop) + this.shopImages = this.shop.shopImages.split('@@') this.huanjing = JSON.parse(this.shopImages[3])[0] @@ -181,8 +181,8 @@ }, 1000) }, submit() { - console.log(this.shop) - console.log(typeof(this.shop)) + + this.NB.sendRequest('/app/shop/edit', this.shop, false, 'PUT', 'application/x-www-form-urlencoded').then( res => { diff --git a/pages/mycomment/index.vue b/pages/mycomment/index.vue index 7b1276f..92cb911 100644 --- a/pages/mycomment/index.vue +++ b/pages/mycomment/index.vue @@ -113,7 +113,7 @@ p: this.p, type: this.selectedIndex }).then(data => { - console.log(data.info) + setTimeout(() => { uni.hideLoading() }, 300) @@ -123,7 +123,7 @@ data.info[i].stars = parseInt(data.info[i].star) if (string.length == 3) { var starnum = string.substring(3, 2) - console.log(starnum) + if (starnum > 3 && starnum < 8) { data.info[i].half = true } else if (starnum < 4) { diff --git a/pages/shop/addGoods.vue b/pages/shop/addGoods.vue index 738e172..a3df6d5 100644 --- a/pages/shop/addGoods.vue +++ b/pages/shop/addGoods.vue @@ -268,7 +268,7 @@ */ inputOver(e) { // 可以在此处获取到编辑器已编辑的内容 - console.log('==== inputOver :', e) + this.productIntro = e }, /** @@ -277,7 +277,7 @@ */ overMax(e) { // 若设置了最大字数限制,可在此处触发超出限制的回调 - console.log('==== overMax :', e) + }, /** * 编辑器就绪 @@ -553,7 +553,7 @@ } let str = JSON.stringify(v); let data = JSON.parse(str); - console.log('111111',data) + this.formData = data; // 解析attributeList(商品属性),兼容string和已解析的对象 @@ -718,7 +718,7 @@ } } } - console.log() + that.$forceUpdate(that.categorySonData) that.$forceUpdate(that.categoryData) } else { @@ -735,7 +735,7 @@ if(this.specValueArr[m].id == this.formData.attributeListPrice[index].id){ this.specValueArr.splice(m,1) this.formData.attributeListPrice.splice(index,1) - console.log("11",this.formData.attributeListPrice) + if(this.formData.attributeListPrice.length == 1){ this.formData.attributeListPrice = [] this.formData.attributeListPrice.push({ diff --git a/pages/shop/goodsList.vue b/pages/shop/goodsList.vue index dca77b7..a37f3b5 100644 --- a/pages/shop/goodsList.vue +++ b/pages/shop/goodsList.vue @@ -217,14 +217,14 @@ } }, changeShow(index,type){ - console.log("1111",index) - console.log("1111",type) + + if(type == 'shopList'){ this.shopList[index].isShow = !this.shopList[index].isShow - console.log(this.shopList[index]) + }else{ this.shopList1[index].isShow = !this.shopList1[index].isShow - console.log(this.shopList1[index]) + } this.$forceUpdate() }, diff --git a/pages/shop/orderDetail.vue b/pages/shop/orderDetail.vue index 3865509..20be61e 100644 --- a/pages/shop/orderDetail.vue +++ b/pages/shop/orderDetail.vue @@ -249,7 +249,7 @@ this.NB.sendRequest("/mall/order/detail/"+ this.shopId, {}, false, 'get', 'application/json').then((res) => { if (res.code == 200) { that.data = res.result - console.log('缓存shopTakeaway',uni.getStorageSync('shopTakeaway')) + //商家预计收入的计算1 let price = that.data.goodsAmount+that.data.packageFee if(that.data.orderType == 1){ diff --git a/pages/shop/shopEvaluate.vue b/pages/shop/shopEvaluate.vue index 57d72ae..3cd4625 100644 --- a/pages/shop/shopEvaluate.vue +++ b/pages/shop/shopEvaluate.vue @@ -231,7 +231,6 @@ }).catch((res) => {}) }, onReachPage(){ - console.log("11111") if (this.searchForm.pageNum >= this.total) return; this.searchForm.pageNum++; this.getshopComments(this.shopItem.id); diff --git a/pages/uploadphoto/index.vue b/pages/uploadphoto/index.vue index 022075d..ec5f1de 100644 --- a/pages/uploadphoto/index.vue +++ b/pages/uploadphoto/index.vue @@ -63,7 +63,7 @@ }, // 请求头 formData: {}, success(res) { - console.log(res.data) + var data = JSON.parse(res.data) if (data.code == 200) { // that.thumbs.push(data.data.info[0].url_all) @@ -108,7 +108,7 @@ } }, upload() { - console.log(this.tempFilePaths) + let that = this; if (that.tempFilePaths.length > 2) { uni.showToast({