diff --git a/subPackages/techan/selfPickUpPoint.vue b/subPackages/techan/selfPickUpPoint.vue index 6cd9e1c..3a0c84e 100644 --- a/subPackages/techan/selfPickUpPoint.vue +++ b/subPackages/techan/selfPickUpPoint.vue @@ -48,9 +48,10 @@ this.pickupId = options.pickupId || null this.goodsId = options.goodsId this.skuId = options.skuId + this.getList() }, onShow(options) { - this.getList() + }, methods: { @@ -66,10 +67,7 @@ } this.Post(param, "/api/product/getDeliverShop").then(res => { if (res) { - this.list = [...this.list, ...res.data]; - if (res.data.length < 10) { - this.load = true; - } + this.list = res.data if (this.pickupId && Array.isArray(this.list)) { let selectItem = this.list.find(v=>v.id==this.pickupId) if (selectItem) { diff --git a/subPackages/user/profile.vue b/subPackages/user/profile.vue index 5bf32c8..0fd7fef 100644 --- a/subPackages/user/profile.vue +++ b/subPackages/user/profile.vue @@ -152,11 +152,11 @@ pathToBase64(tempFilePaths[0]).then(base64 => { this.Post({ method: 'POST', - base64: base64 - }, '/api/common/base64').then(res => { + img_base64: base64 + }, '/api/pbservice/Other/base64Upload').then(res => { if (res.data) { this.Post({ - avatar: res.data + avatar: res.data.url }, '/api/uservice/user/profile').then(res => { uni.showModal({ title: '提示', @@ -207,7 +207,7 @@ this.Post({ nickname: this.nickname, gender: this.gender, - birthday: this.birthday + birthday: this.birthday, }, '/api/uservice/user/profile').then(res => { console.log(res) if (res.code == 1) {