|
|
@@ -22,46 +22,60 @@
|
|
|
</view>
|
|
|
<view :style="{'height':scrollViewHeight}">
|
|
|
<scroll-view class="scroll " :style="{'height':scrollViewHeight}" scroll-y>
|
|
|
- <view class="row-list flex-row justify-start" :class="{'grayscale' : item.reachPrice*1 >standardPrice*1 }" v-for="(item,index) in countsList" @click="clickCoupons(item,index)" :key="index">
|
|
|
- <view class="h-text flex-col justify-center ">
|
|
|
- <view class="money">
|
|
|
- <text>¥{{item.discountsPrice}}</text>
|
|
|
- </view>
|
|
|
- <view class="desc">
|
|
|
- <text>满{{item.reachPrice}}可用</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="flex-col" :class="{'grayscale' : item.reachPrice*1 >standardPrice*1 }" v-for="(item,index) in countsList" @click="clickCoupons(item,index)" :key="index">
|
|
|
|
|
|
- <view class="h-center-content flex-col justify-around">
|
|
|
- <view class="h-value">
|
|
|
- <text>{{item.name}}</text>
|
|
|
- </view>
|
|
|
-<!-- <view class="title">-->
|
|
|
-<!-- 使用平台:<text v-if="item.strategyType == '0'">全平台</text>-->
|
|
|
-<!-- <text v-else-if="item.strategyType == '1'">个人优惠卷</text>-->
|
|
|
-<!-- </view>-->
|
|
|
- <view class="title">
|
|
|
- 使用次数:{{item.degree}}
|
|
|
- </view>
|
|
|
- <view class="title">
|
|
|
- 到期时间:{{item.endTime.substring(0,10)}}
|
|
|
+ <view class="row-list flex-row justify-start">
|
|
|
+ <view class="h-text flex-col justify-center ">
|
|
|
+ <view class="money">
|
|
|
+ <text>¥{{item.discountsPrice}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="desc">
|
|
|
+ <text>满{{item.reachPrice}}可用</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="h-right-content flex-col justify-center">
|
|
|
+ <view class="h-center-content flex-col justify-around">
|
|
|
+ <view class="h-value">
|
|
|
+ <text>{{item.name}}</text>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="title">-->
|
|
|
+ <!-- 使用平台:<text v-if="item.strategyType == '0'">全平台</text>-->
|
|
|
+ <!-- <text v-else-if="item.strategyType == '1'">个人优惠卷</text>-->
|
|
|
+ <!-- </view>-->
|
|
|
+ <view class="title">
|
|
|
+ 使用次数:{{item.degree}}
|
|
|
+ </view>
|
|
|
+ <view class="title">
|
|
|
+ 到期时间:{{item.endTime.substring(0,10)}}
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="flex-row justify-center" v-if="item.reachPrice*1 >standardPrice*1 ">
|
|
|
- <view class="h-btn-img">
|
|
|
- <image class="h-btn-img" src="/static/coupon/u2110.png" mode=""></image>
|
|
|
+ <view class="title flex-row">
|
|
|
+ <text @click.stop="showRemark(item)">使用说明</text>
|
|
|
+ <u-icon v-if="item.id == showRemarkId" name="arrow-down-fill" color="" size="12"></u-icon>
|
|
|
+ <u-icon v-else name="play-right-fill" color="" size="12" @click.stop="showRemark(item)"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="flex-row justify-center" v-else>
|
|
|
- <u-icon v-if="item.isUse " name="checkmark-circle-fill" color="#38db38" size="25"></u-icon>
|
|
|
- <u-icon v-else name="/static/order/ud9.png" color="green" size="25"></u-icon>
|
|
|
+ <view class="h-right-content flex-col justify-center">
|
|
|
+
|
|
|
+ <view class="flex-row justify-center" v-if="item.reachPrice*1 >standardPrice*1 ">
|
|
|
+ <view class="h-btn-img">
|
|
|
+ <image class="h-btn-img" src="/static/coupon/u2110.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="flex-row justify-center" v-else>
|
|
|
+ <u-icon v-if="item.isUse " name="checkmark-circle-fill" color="#38db38" size="25"></u-icon>
|
|
|
+ <u-icon v-else name="/static/order/ud9.png" color="green" size="25"></u-icon>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
+ <view v-if="showRemarkId == item.id" class="remark">
|
|
|
+ <text>{{item.remark}}</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
@@ -77,6 +91,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ showRemarkId:'',
|
|
|
countsList:[],
|
|
|
noUse:true,
|
|
|
windowHeight:'',
|
|
|
@@ -101,6 +116,15 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
+ showRemark(item){
|
|
|
+ if (this.showRemarkId == item.id ){
|
|
|
+ this.showRemarkId = ''
|
|
|
+
|
|
|
+ }else {
|
|
|
+ this.showRemarkId = item.id
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
useCoupons(){
|
|
|
let useCoupons = []
|
|
|
for (const useCoupon of this.countsList) {
|