购物车,订单,霸王餐

This commit is contained in:
wwz
2025-03-20 18:33:21 +08:00
parent 9da31e2faa
commit 5b8100aa64
16 changed files with 1382 additions and 1224 deletions

View File

@@ -32,7 +32,7 @@
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/points.png">
</image>
<view class="my_list_item_name">积分</view>
<view class="my_list_item_num">{{userInfo.accountPoints ||'0'}}</view>
<view class="my_list_item_num">{{userInfo.accountPoints ||userInfo.points}}</view>
</view>
<view class="my_list_item">
<image class="my_list_item_icon"
@@ -131,10 +131,17 @@
// 我的资产
const Myassets = () => {
uni.pro.navigateTo('user/member/memberdetails', {
shopId: uni.cache.get('shopId'),
type: 'index'
})
if (uni.cache.get('shopId')) {
uni.pro.navigateTo('user/member/memberdetails', {
shopId: uni.cache.get('shopId'),
type: 'index'
})
} else {
uni.pro.navigateTo('user/member/list', {
shopId: uni.cache.get('shopId'),
type: 'index'
})
}
}
const clickTo = (item, index) => {
@@ -191,13 +198,12 @@
onShow(async () => {
await store.actionsAPIuser()
let res = uni.cache.get('orderVIP')
if (uni.cache.get('shopId')) {
Object.assign(userInfo, res)
Object.assign(userInfo, uni.cache.get('orderVIP'))
} else {
Object.assign(userInfo, {
...res,
...res.assetsSummary
...uni.cache.get('userInfo'),
...uni.cache.get('userInfo').assetsSummary
})
}
})