This commit is contained in:
PQZ 2024-09-28 17:35:06 +08:00
parent 17c53afdb4
commit 532e0e6700
3 changed files with 42 additions and 21 deletions

View File

@ -47,7 +47,7 @@
<script>
import VNavigationBar from '@/components/VNavigationBar.vue'
import request from "@/utils/request";
export default {
components: {
VNavigationBar,
@ -68,10 +68,20 @@
};
},
onLoad(data) {
//
this.customInfo = JSON.parse(uni.getStorageSync('customerInfo'))
console.log(this.customInfo,66)
this.getCustomer()
},
methods:{
//
async getCustomer() {
request({
url: "/userClient/customer/getUserCustomer",
method: 'get',
params:{}
}).then(res=>{
this.customInfo = res.data
})
}
}
}
</script>

View File

@ -82,8 +82,8 @@
},
onShow(data) {
//
this.customInfo = JSON.parse(uni.getStorageSync('customerInfo'))
this.getMemberList()
this.getCustomer()
},
methods:{
async getMemberList() {
@ -94,6 +94,17 @@
this.levelEquityList = res.data
})
},
//
async getCustomer() {
request({
url: "/userClient/customer/getUserCustomer",
method: 'get',
params:{}
}).then(res=>{
this.customInfo = res.data
})
}
}
}