This commit is contained in:
wong1988
2024-01-19 14:54:04 +08:00
parent 8be2c6e5c7
commit 165a0e622c
3 changed files with 12 additions and 3 deletions

View File

@@ -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),

View File

@@ -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);

View File

@@ -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: {
// 获取数据