feat:优化

This commit is contained in:
2026-07-22 22:59:55 +08:00
parent d9d3ec573a
commit 268207b01b
3 changed files with 32 additions and 25 deletions
+11 -11
View File
@@ -263,13 +263,6 @@ export default {
superGoodsList: [], // 超级补贴商品列表 superGoodsList: [], // 超级补贴商品列表
homeActivedList: [ homeActivedList: [
{ {
id: 1,
title: "超级补贴",
title_icon: "https://static.tbmall.xin/static/new-home/home_9.png",
path: "super-subsidy",
rightText: "官方补贴 .100%正品",
activedType: "super",
}, {
id: 2, id: 2,
title: "活动预告", title: "活动预告",
title_text: "限时秒杀", title_text: "限时秒杀",
@@ -277,7 +270,14 @@ export default {
path: "limited-time", path: "limited-time",
rightText: "专属补贴 . 低价秒杀", rightText: "专属补贴 . 低价秒杀",
activedType: "seckill", activedType: "seckill",
}, }, {
id: 1,
title: "超级补贴",
title_icon: "https://static.tbmall.xin/static/new-home/home_9.png",
path: "super-subsidy",
rightText: "官方补贴 .100%正品",
activedType: "super",
}
], // 首页活动列表 ], // 首页活动列表
activedTabId: "seckill", // 当前选中的活动类型 activedTabId: "seckill", // 当前选中的活动类型
attributes: {}, attributes: {},
@@ -566,7 +566,7 @@ export default {
// #endif // #endif
}, },
onCloseBannerShow() { onCloseBannerShow() {
if(this.updateApkObj.isForce){ if (this.updateApkObj.isForce) {
// #ifdef APP-PLUS // #ifdef APP-PLUS
if (uni.getSystemInfoSync().platform === 'android') { if (uni.getSystemInfoSync().platform === 'android') {
plus.runtime.quit(); plus.runtime.quit();
@@ -578,8 +578,8 @@ export default {
}); });
} }
// #endif // #endif
}else{ } else {
this.bannerShow = false; this.bannerShow = false;
} }
}, },
+21 -14
View File
@@ -144,7 +144,7 @@
<view class="product_but_warp"> <view class="product_but_warp">
<view class="product_but_left"> <view class="product_but_left">
<view class="left_item"> <view class="left_item">
<up-image src="/static/column/home.png" width="20" height="20" bgColor="#f1f6ff00" <up-image src="/static/product/home_1.png" width="20" height="20" bgColor="#f1f6ff00"
@click="jumpOther('home')"></up-image> @click="jumpOther('home')"></up-image>
<view>首页</view> <view>首页</view>
</view> </view>
@@ -165,7 +165,7 @@
</view> </view>
<!-- 限时秒杀现在要改为展示购物车icon 并且立即购买按钮变长一点 --> <!-- 限时秒杀现在要改为展示购物车icon 并且立即购买按钮变长一点 -->
<view class="but_comm buy_warp" :class="{ 'border-16': isShowCart || isCoupon }" <view class="but_comm buy_warp" :class="{ 'border-16': isShowCart || isCoupon }"
:style="isCoupon ? 'width: 400rpx' : ''" @click="checkSpecification(true, 'buy')"> :style="isShowCart ? 'width: 360rpx' : ''" @click="checkSpecification(true, 'buy')">
立即购买 立即购买
</view> </view>
</view> </view>
@@ -241,7 +241,7 @@
<!-- 规格 --> <!-- 规格 -->
<view class="specification_list_warp"> <view class="specification_list_warp">
<view v-for="(item, index) in specificationList" :key="item.id" class="list_warp"> <view v-for="(item, index) in specificationList" :key="item.id" class="list_warp">
<view class="list_title_warp">{{ item.type }}</view> <view class="list_title_warp">{{ item.type }} <text></text></view>
<view class="specification_item_warp"> <view class="specification_item_warp">
<view :class="oItem.disabled || oItem.inventory === 0 <view :class="oItem.disabled || oItem.inventory === 0
? 'item_Warp item_Warp_no_warp' ? 'item_Warp item_Warp_no_warp'
@@ -1251,7 +1251,7 @@ export default {
url = `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify( url = `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify(
params params
)}&address=${this.selectAddress?.id}`; )}&address=${this.selectAddress?.id}`;
this.specificationShow = false; this.specificationShow = false;
} }
uni.navigateTo({ uni.navigateTo({
@@ -1691,35 +1691,42 @@ export default {
} }
.specification_item_warp { .specification_item_warp {
// display: flex; display: grid;
justify-content: space-between; grid-template-columns: repeat(3, 1fr);
display: flex; gap: 20rpx 24rpx;
flex-wrap: wrap; margin-top: 16rpx;
align-items: center;
} }
.item_Warp { .item_Warp {
width: 48%; width: 100%;
min-width: 0;
box-sizing: border-box;
padding: 0 12rpx;
background: $app-bj; background: $app-bj;
border-radius: 10rpx; border-radius: 10rpx;
color: #333333; color: #333333;
text-align: center; text-align: center;
padding: 10rpx 0;
margin-top: 13rpx;
font-size: 26rpx; font-size: 26rpx;
font-weight: 500; font-weight: 500;
height: 56rpx;
line-height: 54rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border: 1px solid transparent;
} }
.item_Warp_no_warp { .item_Warp_no_warp {
background: #f5f5f5; background: #f5f5f5;
color: #999999; color: #999999;
text-decoration-line: line-through; text-decoration-line: line-through;
border-color: transparent;
} }
.item_Warp_yes_warp { .item_Warp_yes_warp {
border: 1px solid $app-bt-bj; border-color: $app-bt-bj;
color: $app-bt-bj; color: $app-bt-bj;
background: #ffffff; background: rgba(121, 52, 246, 0.1);
} }
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B