feat(custom): \!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-03 22:17:38 +08:00
parent d57f9cc53e
commit 962d7a2b19
16 changed files with 287 additions and 314 deletions

View File

@@ -29,8 +29,8 @@
v-model="mer_info.rate" />
<view class="text-[#9E9E9E] text-[25px]">销量10000</view>
<view class="text-[#9E9E9E] text-[25px]"
>营业时间{{ mer_info.week_start }}-{{ mer_info.week_end }}</view
>
>营业时间{{ mer_info.week_start }}-{{ mer_info.week_end }}
</view>
</view>
<view class="line"></view>
<view class="bom">
@@ -86,17 +86,21 @@
<image :src="item.cover" lazy-load />
<view class="right">
<view class="name">{{ item.name }}</view>
<view class="stock text-[25px]">剩余:{{ item.stock }}</view>
<view class="bom">
<view class="price">
<text style="font-size: 15px"
>{{ item.number }}
<text style="font-size: 15px" v-if="item.exchange"
>+{{ item.exchange }}积分
</text>
</text>
</view>
</view>
<view class="bom">
<view>
<view class="price">
<text style="font-size: 15px">{{ item.number }}</text>
</view>
<view class="price">
<text style="font-size: 15px"
>{{ item.exchange }}积分</text
>
</view>
<view class="stock text-[25px]"
>剩余:{{ item.stock }}</view
>
</view>
<view class="flex items-center justify-between">
<view
@@ -156,7 +160,7 @@ Taro.useLoad(opt => {
bid.value = opt.bid;
});
Taro.useDidShow(opt => {
Taro.useDidShow(() => {
if (!Taro.getStorageSync('token')) {
Taro.navigateTo({
url: '/pages/users/login/index?isBack=1',
@@ -265,7 +269,7 @@ const get_good_list = async (id: number) => {
const toGoodDetails = (id: string, type: number) => {
Taro.navigateTo({
url: `/pages/goods/goods_detail/index?gid=${id}&type=${type}`,
url: `/pages/goods/goods_detail/index?gid=${id}&type=${type}&bid=${bid.value}`,
});
};