fixbug: 修改页面改造bug

This commit is contained in:
2026-07-14 23:08:25 +08:00
parent fd25002ab3
commit 45176d7d22
7 changed files with 243 additions and 291 deletions
+37 -16
View File
@@ -56,7 +56,10 @@
</view>
<view class="content_data_series">
<!-- 暂时隐藏 -->
<view></view>
<view class="content_data_series_tag" v-if="orderInfo.contribution">
<image class="uni-image" src="https://static.tbmall.xin/static/new-home/home_3.png"></image>
下单送{{ orderInfo.contribution }}贡献值
</view>
<!-- 销量还需要改 -->
<view>销量{{ limit999(orderInfo.sales) }}件</view>
</view>
@@ -846,7 +849,7 @@ export default {
if (this.isCoupon) {
params.type = -1;
}
if(this.activedType === 'seckill'){
if (this.activedType === 'seckill') {
params.activityId = this.activityId;
params.activityType = 'seckill';
}
@@ -863,9 +866,9 @@ export default {
data.addressObj = {}; // 收件人地址
data.quantity = 1; // 数量
data.inventory = 0; // 库存
if(this.activedType === 'seckill'){
if (this.activedType === 'seckill') {
data.minPrice = data.activity?.activityPrice;
}
}
this.orderInfo = data;
}
},
@@ -1081,25 +1084,25 @@ export default {
specsId: selectTempl.id, // 规格ID
goodsNum: this.orderInfo.quantity, // 商品数量
};
console.log("selectTempl", selectTempl);
if (this.isShowCart == 1 || this.isCoupon) {
console.log("活动类型params---秦星星", params,this.isCoupon);
console.log("活动类型params---秦星星", params, this.isCoupon);
params["specsId"] = selectTempl;
let url = "";
if(this.activedType == "seckill"){
params["activedType"] = this.activedType; // 活动类型
params["activityId"] = this.activityId;// 秒杀活动ID
url = `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify(
params
)}`;
}
if (this.activedType == "seckill") {
params["activedType"] = this.activedType; // 活动类型
params["activityId"] = this.activityId;// 秒杀活动ID
url = `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify(
params
)}`;
}
if(this.isCoupon){
url =`/pages/order_package/order_submit/order_submit?sed=${JSON.stringify(
if (this.isCoupon) {
url = `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify(
params
)}&address=${this.selectAddress?.id}&isCoupon=${this.isCoupon}`
}
}
uni.navigateTo({
url: url
@@ -1236,6 +1239,24 @@ export default {
font-size: 24rpx;
color: #999999;
margin-top: 10rpx;
.content_data_series_tag {
font-weight: 500;
font-size: 24rpx;
height: 45rpx;
color: #7934F6;
padding: 0 12rpx;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
background: rgba(121, 52, 246, 0.1);
.uni-image {
width: 40rpx;
height: 28rpx;
}
}
}
.tui-view {