tianyi 3 days ago
parent
commit
48d0470c81
  1. 5
      pages/Missionmap/index.nvue
  2. 8
      pages/Mypurse/history/history.vue
  3. 2
      pages/Mypurse/index.vue
  4. 27
      pages/Orderstatistics/index.vue
  5. 36
      pages/detailmap/index.vue
  6. 10
      pages/goods/addGoods.vue
  7. 18
      pages/index/index.vue
  8. 2
      pages/login/BindMobile.vue
  9. 14
      pages/login/login.vue
  10. 12
      pages/login/regist.vue
  11. 16
      pages/myCenter/setPrint.vue
  12. 6
      pages/myCenter/shopDetail.vue
  13. 4
      pages/mycomment/index.vue
  14. 10
      pages/shop/addGoods.vue
  15. 8
      pages/shop/goodsList.vue
  16. 2
      pages/shop/orderDetail.vue
  17. 1
      pages/shop/shopEvaluate.vue
  18. 4
      pages/uploadphoto/index.vue

5
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);
}
});
},

8
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() {

2
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()
},

27
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,

36
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();
}
})

10
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;
// attributeListstring
@ -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({

18
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()
},
//

2
pages/login/BindMobile.vue

@ -98,7 +98,7 @@
key: 'countryCode',
success: res => {
that.countryCode = res.data
console.log(res)
}
})
},

14
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', {

12
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); //
});

16
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)
});
},
//

6
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 => {

4
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) {

10
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;
// attributeListstring
@ -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({

8
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()
},

2
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){

1
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);

4
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({

Loading…
Cancel
Save