|
|
|
@ -1,8 +1,11 @@ |
|
|
|
|
<template> |
|
|
|
|
<view> |
|
|
|
|
<view class="width100 fotct coupon-status font20 fcorred" v-if="couponDesInfo.couponCodeInfo.status == 3">已使用 |
|
|
|
|
<view class="width100" v-if="couponDesInfo"> |
|
|
|
|
<view class="width100 fotct coupon-status font20 fcorred" v-if="couponDesInfo.couponCodeInfo.status == 3"> |
|
|
|
|
已使用 |
|
|
|
|
</view> |
|
|
|
|
<view class="width100 fotct coupon-status font20 fcor41c" v-if="couponDesInfo.couponCodeInfo.status == 2">未使用 |
|
|
|
|
<view class="width100 fotct coupon-status font20 fcor41c" v-if="couponDesInfo.couponCodeInfo.status == 2"> |
|
|
|
|
未使用 |
|
|
|
|
</view> |
|
|
|
|
<view class="line1"></view> |
|
|
|
|
<view class="coupon-cont width90"> |
|
|
|
@ -22,9 +25,10 @@ |
|
|
|
|
<view class="line1 mart15"></view> |
|
|
|
|
<view class="width90 mart10 fcor666">核销码(商户扫客户)</view> |
|
|
|
|
<view class="width90 mart20 fotct"> |
|
|
|
|
<image class="coupon-qr" :src="imageUrl+'couponCode/'+couponDesInfo.couponCodeInfo.ext1"></image> |
|
|
|
|
<image class="coupon-qr" :src="imageUrl+'couponCode/'+couponDesInfo.highUserCoupon.qrCodeImg"></image> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view class="width90 mart30 font20 fcor333 fotct marb40" v-if="!couponDesInfo">二维码生效中,前往个人中心查看</view> |
|
|
|
|
<view class="width90 mart20" style="height: 80px;" v-for="(store,i) in storeList" :key="i"> |
|
|
|
|
<view class="coupon-des flleft"> |
|
|
|
|
立即<br>前往 |
|
|
|
@ -49,7 +53,10 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {getUserCouponDetail,getStoreListByCoupon} from "../../../Utils/Api.js" |
|
|
|
|
import { |
|
|
|
|
getUserNewCouponDetail, |
|
|
|
|
getStoreListByCoupon |
|
|
|
|
} from "../../../Utils/Api.js" |
|
|
|
|
let app = getApp() |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
@ -65,7 +72,7 @@ |
|
|
|
|
}, |
|
|
|
|
onLoad(option) { |
|
|
|
|
this.couDesId = option.id; |
|
|
|
|
this.getUserCouponDetail(); |
|
|
|
|
this.getUserNewCouponDetail(); |
|
|
|
|
this.getStoreListByCoupon(); |
|
|
|
|
}, |
|
|
|
|
filters: { |
|
|
|
@ -91,14 +98,14 @@ |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//我的卡券详情 |
|
|
|
|
getUserCouponDetail() { |
|
|
|
|
getUserNewCouponDetail() { |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '加载中...' |
|
|
|
|
}) |
|
|
|
|
let params = { |
|
|
|
|
couponId: this.couDesId |
|
|
|
|
} |
|
|
|
|
getUserCouponDetail(params).then(res => { |
|
|
|
|
getUserNewCouponDetail(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.couponDesInfo = res.return_data; |
|
|
|
|
this.oneTime = res.return_data.couponCodeInfo.receiveTime; |
|
|
|
@ -227,6 +234,7 @@ |
|
|
|
|
background-color: red; |
|
|
|
|
color: #FFFFFF; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.coupne-btn { |
|
|
|
|
position: fixed; |
|
|
|
|
bottom: 0px; |
|
|
|
|