This commit is contained in:
zmj 2024-06-08 16:05:05 +08:00
parent 1d83db07f4
commit 02b558210a
4 changed files with 8 additions and 8 deletions

View File

@ -11,7 +11,7 @@
<view class="multiple-card-wrap" style="padding-top: 12rpx;"> <view class="multiple-card-wrap" style="padding-top: 12rpx;">
<block v-for="(item,indx) in shopList" :key="indx"> <block v-for="(item,indx) in shopList" :key="indx">
<view class="multiple-card-item" :class="{active:currShop == item.id}" <view class="multiple-card-item" :class="{active:currShop == item.id}"
@click="onChooseShop(item.id)"> @click="onChooseShop(item)">
<view class="multiple-card-item-left"> <view class="multiple-card-item-left">
<view class="multiple-card-item-left-title">{{item.name}}</view> <view class="multiple-card-item-left-title">{{item.name}}</view>
<view class="multiple-card-item-left-tag"> <view class="multiple-card-item-left-tag">
@ -88,12 +88,12 @@
}); });
// //
const onChooseShop = (id) => { const onChooseShop = (item) => {
currShop.value = id; currShop.value = item.id;
uni.setStorageSync('STORE_INFO', JSON.stringify(item))
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/index?id=' + id, url: '/pages/index/index?id=' + item.id,
fail(err) { fail(err) {
console.log(err); console.log(err);
} }

View File

@ -187,7 +187,7 @@
if (item.check) list.push(item.id); if (item.check) list.push(item.id);
}) })
cartDeleteApi({ cartDeleteApi({
cart_id: list id: list
}).then(() => { }).then(() => {
getcartList(false); getcartList(false);
}) })

View File

@ -96,7 +96,7 @@
<view class="row"> <view class="row">
<view>活动折扣 <text>9</text></view> <view>活动折扣 <text>9</text></view>
<view> <view>
<text>-¥</text>{{c_price(orderInfo.pay_price, 0)}}<text>.{{c_price(orderInfo.pay_price, 1)}}</text> <text>-¥</text>{{c_price(orderInfo.vip_price, 0)}}<text>.{{c_price(orderInfo.vip_price, 1)}}</text>
</view> </view>
</view> </view>
</view> </view>

View File

@ -35,7 +35,7 @@ const useUserStore = defineStore("user", () => {
mobile: "19330904744", mobile: "19330904744",
nickname: "用户1714964250", nickname: "用户1714964250",
supplier: null, supplier: null,
token: "f3b5b546ef3fd35370ba0b38dfac65a8" token: "04d41270bc4dae8053cd180148514747"
} }
// #endif // #endif