优化功能

This commit is contained in:
duan
2024-05-24 13:48:51 +08:00
parent 7cea9eb628
commit 2e3061a967
9 changed files with 59 additions and 58 deletions

View File

@@ -222,8 +222,7 @@
// })
},
onLoad(e) {
// 获取用户信息
this.loginwxuserInfo()
// console.log(e, 140)
let res = JSON.parse(e.tableId)
this.listinfo.detailList = res
@@ -256,14 +255,7 @@
})
},
methods: {
async loginwxuserInfo() {
let res = await this.api.loginwxuserInfo({
userId: uni.cache.get('userInfo').id
})
if (res.code == 0) {
uni.cache.set('userInfo', res.data);
}
},
async getcoupon() {
let res = await this.api.userCoupon({
"orderNum": this.listinfo.amount,