|
@@ -5,14 +5,14 @@
|
|
<text class="small">¥</text>
|
|
<text class="small">¥</text>
|
|
<text class="big">{{ bigPrice }}</text>
|
|
<text class="big">{{ bigPrice }}</text>
|
|
<text class="small">{{ smallPrice }}</text>
|
|
<text class="small">{{ smallPrice }}</text>
|
|
- <text class="delete">{{ productInfo.price }}</text>
|
|
|
|
|
|
+ <text class="delete" v-if="showDeletedPrice">{{ productInfo.price }}</text>
|
|
</view>
|
|
</view>
|
|
<view class="tags">
|
|
<view class="tags">
|
|
<view class="tag type1" v-if="productInfo.heUserId !== 0">促销</view>
|
|
<view class="tag type1" v-if="productInfo.heUserId !== 0">促销</view>
|
|
- <template v-if="productInfo.activeStatus === 1">
|
|
|
|
|
|
+ <template v-if="productInfo.activeStatus === 1 && productInfo.collageStatus === 0">
|
|
<view class="tag type2" v-if="productInfo.ladderList" @click="drawerVisible = true">活动价</view>
|
|
<view class="tag type2" v-if="productInfo.ladderList" @click="drawerVisible = true">活动价</view>
|
|
</template>
|
|
</template>
|
|
- <view class="tag type1">2人拼团</view>
|
|
|
|
|
|
+ <view class="tag type1" v-if="productInfo.collageStatus === 1">2人拼团</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<cm-drawer :visible="drawerVisible" position="bottom" @close="drawerClose">
|
|
<cm-drawer :visible="drawerVisible" position="bottom" @close="drawerClose">
|
|
@@ -54,6 +54,9 @@ export default {
|
|
},
|
|
},
|
|
smallPrice() {
|
|
smallPrice() {
|
|
return '.' + this.price.split('.')[1]
|
|
return '.' + this.price.split('.')[1]
|
|
|
|
+ },
|
|
|
|
+ showDeletedPrice(){
|
|
|
|
+ return this.productInfo.activeStatus === 1 || this.productInfo.collageStatus === 1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|