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.pickupId = options.pickupId || null
this.goodsId = options.goodsId this.goodsId = options.goodsId
this.skuId = options.skuId this.skuId = options.skuId
this.getList()
}, },
onShow(options) { onShow(options) {
this.getList()
}, },
methods: { methods: {
@ -66,10 +67,7 @@
} }
this.Post(param, "/api/product/getDeliverShop").then(res => { this.Post(param, "/api/product/getDeliverShop").then(res => {
if (res) { if (res) {
this.list = [...this.list, ...res.data]; this.list = res.data
if (res.data.length < 10) {
this.load = true;
}
if (this.pickupId && Array.isArray(this.list)) { if (this.pickupId && Array.isArray(this.list)) {
let selectItem = this.list.find(v=>v.id==this.pickupId) let selectItem = this.list.find(v=>v.id==this.pickupId)
if (selectItem) { if (selectItem) {

8
subPackages/user/profile.vue

@ -152,11 +152,11 @@
pathToBase64(tempFilePaths[0]).then(base64 => { pathToBase64(tempFilePaths[0]).then(base64 => {
this.Post({ this.Post({
method: 'POST', method: 'POST',
base64: base64 img_base64: base64
}, '/api/common/base64').then(res => { }, '/api/pbservice/Other/base64Upload').then(res => {
if (res.data) { if (res.data) {
this.Post({ this.Post({
avatar: res.data avatar: res.data.url
}, '/api/uservice/user/profile').then(res => { }, '/api/uservice/user/profile').then(res => {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
@ -207,7 +207,7 @@
this.Post({ this.Post({
nickname: this.nickname, nickname: this.nickname,
gender: this.gender, gender: this.gender,
birthday: this.birthday birthday: this.birthday,
}, '/api/uservice/user/profile').then(res => { }, '/api/uservice/user/profile').then(res => {
console.log(res) console.log(res)
if (res.code == 1) { if (res.code == 1) {

Loading…
Cancel
Save