jiazhipeng 4 months ago
parent
commit
694ee078f8
  1. 8
      subPackages/techan/selfPickUpPoint.vue
  2. 8
      subPackages/user/profile.vue

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

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

Loading…
Cancel
Save