REFACTOR:礼品功能重构
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
<view v-if="cateIndex === 0" class="list-body">
|
||||
<block v-if="sendList.length > 0">
|
||||
<view
|
||||
|
||||
v-for="(item, index) in sendList"
|
||||
:key="index"
|
||||
class="gift-item"
|
||||
@@ -50,6 +51,26 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="item.isTravelGroup === 1" class="gift-body" @click="giftItemClickHanlde(item)">
|
||||
<view class="gift-img">
|
||||
<image
|
||||
:src="item.giftInfoTravelGroup.travelGroupProductInfo.mainImage"
|
||||
class="img"
|
||||
mode="widthFix"
|
||||
/>
|
||||
</view>
|
||||
<view class="gift-good-info">
|
||||
<view class="name more-t">
|
||||
{{ item.giftInfoTravelGroup.travelGroupProductInfo.name }}
|
||||
</view>
|
||||
<view class="price-wrap">
|
||||
<view class="price">
|
||||
<text class="prefix">¥</text>{{ item.giftInfoTravelGroup.travelGroupProductInfo.price }}
|
||||
</view>
|
||||
<view class="num">已领取{{item.giftInfoTravelGroup.receiveNum}}/{{ item.giftInfoTravelGroup.totalNum }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="gift-bottom">
|
||||
<view class="gift-txt">
|
||||
<!-- 赠言:{{ item.message || '' }} -->
|
||||
@@ -412,8 +433,16 @@ export default {
|
||||
this.$refs.giftTips.showTips = true
|
||||
},
|
||||
giftItemClickHanlde(item) {
|
||||
console.log(item);
|
||||
|
||||
if (item.isTravelGroup === 1) {
|
||||
this.$yrouter.push({
|
||||
path: '/pkg_product/views/sojoumOrderDetails',
|
||||
query: {
|
||||
id: item.orderId,
|
||||
isView: 1
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
// if (this.cateIndex === 0) return
|
||||
this.$yrouter.push({
|
||||
path: '/pages/order/OrderDetails/index',
|
||||
|
||||
Reference in New Issue
Block a user