feat: 新增拼团
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<up-image src="/pages/mine_package/static/order_status_1.png" width="20" height="19"
|
||||
bgColor="#f1f6ff00"></up-image>
|
||||
</view>
|
||||
<text class="msg">{{ getValue(ORDER_STATUS, orderInfo.status) }}</text>
|
||||
<text class="msg">{{ orderStatusText }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order_info_content">
|
||||
@@ -78,7 +78,12 @@
|
||||
<view class="content_item">
|
||||
<up-image :src="pItem.mainGraph" width="80" height="80" bgColor="#f1f6ff00"></up-image>
|
||||
<view class="content_info">
|
||||
<view class="content_info_title">{{ pItem.title }}</view>
|
||||
<view class="content_info_title">
|
||||
<image v-if="orderInfo.teamId" class="group_buy_tag"
|
||||
src="https://static.tbmall.xin/static/mine/groupBuy.png" mode="heightFix">
|
||||
</image>
|
||||
<text class="title_text">{{ pItem.title }}</text>
|
||||
</view>
|
||||
<view class="content_info_tag">{{ pItem.goodsSpece }}</view>
|
||||
<view>
|
||||
<text class="content_info_description" v-for="dItem in pItem.description"
|
||||
@@ -362,6 +367,20 @@ export default {
|
||||
},
|
||||
LOGISTICS_STATUS_UPDATE() {
|
||||
return LOGISTICS_STATUS_UPDATE
|
||||
},
|
||||
orderStatusText() {
|
||||
if (this.orderInfo?.teamId) {
|
||||
if (this.orderInfo.groupStatus == 0) {
|
||||
return "待成团";
|
||||
}
|
||||
if (this.orderInfo.groupStatus == 2) {
|
||||
return "拼团失败";
|
||||
}
|
||||
if (this.orderInfo.groupStatus == 1) {
|
||||
return getValue(ORDER_STATUS, this.orderInfo.status);
|
||||
}
|
||||
}
|
||||
return getValue(ORDER_STATUS, this.orderInfo?.status);
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -892,6 +911,22 @@ export default {
|
||||
|
||||
.content_info_title {
|
||||
width: 370rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.group_buy_tag {
|
||||
height: 30rpx;
|
||||
margin-right: 8rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.title_text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.data_item_yd {
|
||||
|
||||
Reference in New Issue
Block a user