|
@@ -11,50 +11,55 @@
|
|
|
<view class="flex-row justify-center">
|
|
<view class="flex-row justify-center">
|
|
|
|
|
|
|
|
<view class="flex-col">
|
|
<view class="flex-col">
|
|
|
|
|
+ <view class="flex-col" :class="item.state == '0'?'':'listBackground'" v-for="(item,index) in list" :key="index" >
|
|
|
|
|
|
|
|
- <view class="row-list flex-row justify-start" :class="item.state == '0'?'':'listBackground'" v-for="(item,index) in list" :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="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 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="title">
|
|
|
|
|
- 到期时间:{{item.endTime.substring(0,10)}}
|
|
|
|
|
|
|
+ <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="title flex-row">
|
|
|
|
|
+ <text @click="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"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="h-right-content flex-col justify-center ">
|
|
|
|
|
|
|
+ <view class="h-right-content flex-col justify-center ">
|
|
|
<view v-if="item.state == 0" ></view>
|
|
<view v-if="item.state == 0" ></view>
|
|
|
-<!-- <view @click="gotoUseCoupon(item)" v-if="item.state == 0" class="h-btn-value-use">立即使用</view>-->
|
|
|
|
|
|
|
+ <!-- <view @click="gotoUseCoupon(item)" v-if="item.state == 0" class="h-btn-value-use">立即使用</view>-->
|
|
|
<!-- <view @click="gotoReceiveCoupon()" v-else-if="index == 1" class="h-btn-value-receive">立即领取</view> -->
|
|
<!-- <view @click="gotoReceiveCoupon()" v-else-if="index == 1" class="h-btn-value-receive">立即领取</view> -->
|
|
|
<view v-else-if="item.state == 1" class="h-btn-img">
|
|
<view v-else-if="item.state == 1" class="h-btn-img">
|
|
|
<image class="h-btn-img" src="/static/coupon/u2109.png" mode=""></image>
|
|
<image class="h-btn-img" src="/static/coupon/u2109.png" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-else class="h-btn-img">
|
|
<view v-else class="h-btn-img">
|
|
|
- <image class="h-btn-img" src="/static/coupon/u2108.png" mode=""></image>
|
|
|
|
|
|
|
+ <image class="h-btn-img" color="#999999" src="/static/coupon/u2108.png" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="showRemarkId == item.id" class="remark">
|
|
|
|
|
+ <text class="remarkText">{{item.remark}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -72,6 +77,7 @@ export default {
|
|
|
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ showRemarkId:'',
|
|
|
downOption: {
|
|
downOption: {
|
|
|
auto: false // 不自动加载 (mixin已处理第一个tab触发downCallback)
|
|
auto: false // 不自动加载 (mixin已处理第一个tab触发downCallback)
|
|
|
},
|
|
},
|
|
@@ -125,6 +131,15 @@ export default {
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
+ showRemark(item){
|
|
|
|
|
+ if (this.showRemarkId == item.id ){
|
|
|
|
|
+ this.showRemarkId = ''
|
|
|
|
|
+
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.showRemarkId = item.id
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
|
|
|
/*下拉刷新的回调 */
|
|
/*下拉刷新的回调 */
|