完成订单详情
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
</view>
|
||||
<view class="recharge" @tap="$u.debounce(userbalancerechangesub, 500)">立即充值</view>
|
||||
</view>
|
||||
<registermember :memberOpen="infoForn.show" :shopUserInfo="infoForn.shopUserInfo" :detailtype='detailtype' >
|
||||
<registermember :memberOpen="infoForn.show" :shopUserInfo="infoForn.shopUserInfo" :detailtype='detailtype'>
|
||||
</registermember>
|
||||
</view>
|
||||
|
||||
@@ -320,6 +320,7 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
console.log(infoForn, 111)
|
||||
console.log({
|
||||
shopId: infoForn.shopId,
|
||||
activateId: infoForn.id,
|
||||
@@ -347,11 +348,12 @@
|
||||
uni.cache.set('orderVIP', res)
|
||||
uni.cache.set('ordershopUserInfo', res.shopInfo)
|
||||
infoForn.show = res.isVip == 1 ? false : true
|
||||
|
||||
infoForn.userInfo = res
|
||||
}
|
||||
|
||||
|
||||
const detailtype = ref('')
|
||||
|
||||
|
||||
|
||||
onMounted(async () => {
|
||||
// 获取当前页面栈
|
||||
const pages = getCurrentPages();
|
||||
@@ -359,28 +361,27 @@
|
||||
const currentPage = pages[pages.length - 1];
|
||||
// 获取页面参数
|
||||
const options = currentPage.options;
|
||||
// // #ifdef MP-WEIXIN
|
||||
// if (options.q) {
|
||||
// infoForn.shopId = this.getQueryString(decodeURIComponent(options.q), 'shopId')
|
||||
// uni.cache.set('shopId', infoForn.shopId)
|
||||
// this.tokenShow = false;
|
||||
// }
|
||||
// // #endif
|
||||
// // #ifdef MP-ALIPAY
|
||||
// if (getApp().globalData.shopId) {
|
||||
// infoForn.shopId = getApp().globalData.shopId
|
||||
// }
|
||||
// uni.cache.set('shopId', infoForn.shopId)
|
||||
// // #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
if (options.q) {
|
||||
infoForn.shopId = await getQueryString(decodeURIComponent(options.q), 'shopId')
|
||||
}
|
||||
// #endif
|
||||
// #ifdef MP-ALIPAY
|
||||
if (getApp().globalData.shopId) {
|
||||
infoForn.shopId = getApp().globalData.shopId
|
||||
}
|
||||
// #endif
|
||||
|
||||
if (options.shopId) {
|
||||
uni.cache.set('shopId', options.shopId, 30)
|
||||
infoForn.shopId = options.shopId ? options.shopId : uni.cache.get('shopId')
|
||||
let resone = await APIusershopInfodetail({
|
||||
shopId: options.shopId
|
||||
})
|
||||
infoForn.shopUserInfo = resone.shopInfo
|
||||
asyncshopUserInfo()
|
||||
}
|
||||
|
||||
let resone = await APIusershopInfodetail({
|
||||
shopId: infoForn.shopId
|
||||
})
|
||||
infoForn.shopUserInfo = resone.shopInfo
|
||||
asyncshopUserInfo()
|
||||
if (options.type == 'detail') {
|
||||
detailtype.value = 'detail'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user