fix: 代码优化

This commit is contained in:
黄泽群
2026-07-22 15:48:18 +08:00
parent c764781fff
commit a971f06267
8 changed files with 46 additions and 19 deletions
@@ -78,7 +78,7 @@
</view>
<up-image src="/static/common/right.png" width="20" height="20" bgColor="#f1f6ff00"></up-image>
</view>
<view class="concrete_item">
<!-- <view class="concrete_item">
<view class="concrete_item_">
<view class="concrete_item_title">收货地址</view>
<view class="concrete_item_value" @click="jumpAddAddress">
@@ -89,8 +89,7 @@
<view class="address_warp" v-else>{{ adressInfo }}</view>
</view>
</view>
<!-- <up-image src="/static/common/right.png" width="20" height="20" bgColor="#f1f6ff00"></up-image> -->
</view>
</view> -->
<view class="concrete_item" v-if="adressInfo">
<view class="concrete_item_">
<view class="concrete_item_title">运费</view>
@@ -145,7 +144,7 @@
<view class="product_but_warp">
<view class="product_but_left">
<view class="left_item">
<up-image src="/static/product/home.png" width="20" height="20" bgColor="#f1f6ff00"
<up-image src="/static/column/home.png" width="20" height="20" bgColor="#f1f6ff00"
@click="jumpOther('home')"></up-image>
<view>首页</view>
</view>
@@ -154,7 +153,7 @@
@click="onZiXun"></up-image>
<view>咨询</view>
</view>
<view class="left_item" v-if="!isShowCart && !isCoupon">
<view class="left_item" >
<up-image src="/static/product/cart.png" width="24" height="20" bgColor="#f1f6ff00"
@click="jumpOther('cart')"></up-image>
<view>购物车</view>
@@ -164,7 +163,9 @@
<view v-if="!isShowCart && !isCoupon" class="but_comm join_warp" @click="checkSpecification(true, 'addCart')">
加入购物车
</view>
<!-- 限时秒杀现在要改为展示购物车icon 并且立即购买按钮变长一点 -->
<view class="but_comm buy_warp" :class="{ 'border-16': isShowCart || isCoupon }"
:style="isCoupon ? 'width: 400rpx' : ''"
@click="checkSpecification(true, 'buy')">
立即购买
</view>
@@ -871,6 +872,8 @@ export default {
if (resp && resp.bizcode === 100) {
const data = resp.data;
// 限时秒杀 和 积分兑换 不需要购物车
//限时秒杀现在要改为展示购物车icon
this.isShowCart = this.activedType === 'seckill' || data.type == 3 ? 1 : 0;
// 商品图
if (data.goodsGraph) {