wong1988 1 year ago
parent
commit
165a0e622c
  1. 4
      common/request.api.js
  2. 1
      pages/me/RealInfo.vue
  3. 10
      pages/me/base_info.vue

4
common/request.api.js

@ -75,7 +75,7 @@ export default {
// 获取头像 昵称
getUserInfo: (params = {}) => request.get("/lpkcustomer/customerInfo/" + params, params),
// 用户基本信息
getBaseInfo: (params = {}) => request.get("/lpkcustomer/getCustomerInfo/" + params, params),
getBaseInfo: (params = {}) => request.get("/lpkcustomer/getCustomerInfo/" + params, params, {}, {}, true),
// 修改头像
uploadHandImage: (params = {}) => request.post("/lpkcustomer/uploadAvatar", params),
// 获取默认提菜信息
@ -89,7 +89,7 @@ export default {
// 获取手机号
getPhone: (params = {}) => request.formpost("/lpkcustomer/getPhoneNumber", params),
// 获取实名
getRealInfo: (params = {}) => request.get("/lpkcustomer/getRealInfo/" + params, params),
getRealInfo: (params = {}) => request.get("/lpkcustomer/getRealInfo/" + params, params, {}, {}, true),
// 保存实名
saveRealInfo: (params = {}) => request.post("/lpkcustomer/saveRealInfo", params),

1
pages/me/RealInfo.vue

@ -145,6 +145,7 @@
this.page.userSid = getApp().globalData.sid
let _this = this
_this.$api.saveRealInfo(this.page).then((resp) => {
uni.$emit("real-info")
uni.navigateBack()
}).catch(e => {
console.log(e);

10
pages/me/base_info.vue

@ -52,7 +52,15 @@
},
onLoad(options) {
this.request()
// this.$refs.pageView.setLoadState(2)
uni.$on("real-info", (e) => {
this.$nextTick(() => {
this.$refs.pageView.setLoadState(0)
})
this.request();
})
},
onUnload() {
uni.$off('real-info');
},
methods: {
//

Loading…
Cancel
Save