111
This commit is contained in:
@@ -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),
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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: {
|
||||
// 获取数据
|
||||
|
||||
Reference in New Issue
Block a user