1.修改扫码领券问题

yj-dev
杨杰 2 years ago
parent f6a6e8acfa
commit df4ced97df
  1. 2
      manifest.json
  2. 20
      pages/goods/externalCoupon/externalCoupon.vue
  3. 11
      pages/user/coupon/coupon.vue

@ -87,7 +87,7 @@
}, },
"devServer" : { "devServer" : {
"port" : "", "port" : "",
"https" : false "https" : true
}, },
"domain" : "https://hsgcs.dctpay.com", "domain" : "https://hsgcs.dctpay.com",
"template" : "index.html" "template" : "index.html"

@ -45,11 +45,11 @@
</wx-open-launch-weapp> --> </wx-open-launch-weapp> -->
<view class="width40" style="margin-right: 5%;" @click="useDiscount"> <view class="width40" style="margin-right: 5%;" @click="useDiscount">
<view class="width100 btnno fotct font16 ">立即使用</view> <view class="width100 btnno fotct font16 backcor008">立即使用</view>
</view> </view>
<view class="width40" style="margin-left: 5%;" @click="jumpCounlist"> <view class="width40" style="margin-left: 5%;" @click="jumpCounlist">
<view class="width100 btnno fotct font16 ">立即查看</view> <view class="width100 btnno fotct font16 backcor008">立即查看</view>
</view> </view>
</view> </view>
@ -59,10 +59,14 @@
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image> <image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image>
</view> </view>
<view class="width90 mart30" v-if="couponsDetails.highDiscount.usingRange == 5"> <view class="width90 mart30" v-if="couponsDetails.highDiscount.usingRange == 5">
<image :src="imagewxUrl+imgadres1" mode="widthFix" class="width100" v-if="couponsDetails.highDiscountAgentCode.status ==1"></image> <image :src="imagewxUrl+imgadres3" mode="widthFix" class="width100"
<image :src="imagewxUrl+imgadres2" mode="widthFix" class="width100" v-if="couponsDetails.highDiscountAgentCode.status != 1"></image> v-if="couponsDetails.highDiscountAgentCode.status ==1"></image>
<image :src="imagewxUrl+imgadres1" mode="widthFix" class="width100"
v-if="couponsDetails.highDiscountAgentCode.status != 1"></image>
<image :src="imagewxUrl+imgadres2" mode="widthFix" class="width100 mart10"
v-if="couponsDetails.highDiscountAgentCode.status != 1"></image>
</view> </view>
<view class="product-list mart20 width90"> <view class="product-list mart20 width90" v-if="couponsDetails.highDiscount.usingRange != 5">
<view class="product" v-for="product in minecoupones" :key="product.id" <view class="product" v-for="product in minecoupones" :key="product.id"
@tap="toGoods(product.highCoupon.id)"> @tap="toGoods(product.highCoupon.id)">
<image mode="widthFix" :src="imageUrl+product.highCoupon.couponImg"></image> <image mode="widthFix" :src="imageUrl+product.highCoupon.couponImg"></image>
@ -94,11 +98,11 @@
<!-- <authorize></authorize> --> <!-- <authorize></authorize> -->
<view :style="{display: usercouFeedbackHidden}" class="popup_content"> <view :style="{display: usercouFeedbackHidden}" class="popup_content">
<view class="popup_title font18 fcor333 fontwig6 paddtop10">温馨提示</view> <view class="popup_title font18 fcor333 fontwig6 paddtop10">温馨提示</view>
<view class="popup_title font16 fcor666 paddtop20 height60">领取优惠券后请在有效期三十天内使用</view> <view class="popup_title font16 fcor666 paddtop20 height60">请在有效期30天内使用过期作废</view>
<view class="width100 bor-botm1 mart10"></view> <view class="width100 bor-botm1 mart10"></view>
<view class="alijus width90 mart20"> <view class="alijus width90 mart20">
<view class="width40" style="margin-right: 5%;" @click="hideDiv()"> <view class="width40" style="margin-right: 5%;" @click="hideDiv()">
<view class="width100 btnno font16 ">取消</view> <view class="width100 btnno font16 backcor99">取消</view>
</view> </view>
<wx-open-launch-weapp style="width: 40%;margin-left: 5%;" id="launch-btn" username="gh_5fb54244cdbb"> <wx-open-launch-weapp style="width: 40%;margin-left: 5%;" id="launch-btn" username="gh_5fb54244cdbb">
<script type="text/wxtag-template"> <script type="text/wxtag-template">
@ -148,6 +152,7 @@
imgadres: 'noorder.png', imgadres: 'noorder.png',
imgadres1: 'noCoupon.jpg', imgadres1: 'noCoupon.jpg',
imgadres2: 'onCoupon.jpg', imgadres2: 'onCoupon.jpg',
imgadres3: 'showCoupon.jpg',
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
isNoMoreData: false, isNoMoreData: false,
@ -517,6 +522,5 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
color: #ffffff; color: #ffffff;
background: #999999;
} }
</style> </style>

@ -131,7 +131,7 @@
</view> </view>
<view :style="{display: usercouFeedbackHidden}" class="popup_content"> <view :style="{display: usercouFeedbackHidden}" class="popup_content">
<view class="popup_title font18 fcor333 fontwig6 paddtop10">温馨提示</view> <view class="popup_title font18 fcor333 fontwig6 paddtop10">温馨提示</view>
<view class="popup_title font16 fcor666 paddtop20 height60">领取优惠券后请在有效期三十天内使用</view> <view class="popup_title font16 fcor666 paddtop20 height60">请在有效期30天内使用过期作废</view>
<view class="width100 bor-botm1 mart10"></view> <view class="width100 bor-botm1 mart10"></view>
<view class="alijus width90 mart20"> <view class="alijus width90 mart20">
<view class="width40" style="margin-right: 5%;" @click="hideDiv()"> <view class="width40" style="margin-right: 5%;" @click="hideDiv()">
@ -332,6 +332,10 @@
uni.navigateTo({ uni.navigateTo({
url: '/member-Recharge/choicepage/choicepage' url: '/member-Recharge/choicepage/choicepage'
}) })
}else if (e.highDiscount.useScope == 7) {
uni.navigateTo({
url: '/pages/goods/refuel/refuel'
})
} else if (e.highDiscount.usingRange == 5) { } else if (e.highDiscount.usingRange == 5) {
this.useDiscount(e.discountAgentCodeId); this.useDiscount(e.discountAgentCodeId);
} else { } else {
@ -347,11 +351,10 @@
} }
useDiscount(datas).then(res => { useDiscount(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.onhiddle();
// #ifdef MP // #ifdef MP
uni.showModal({ uni.showModal({
title: '温馨提示', title: '温馨提示',
content: '领取优惠券后请在有效期三十天内使用', content: '请在有效期30天内使用。过期作废!',
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
uni.navigateToMiniProgram({ uni.navigateToMiniProgram({
@ -366,9 +369,9 @@
} }
} }
}) })
// #endif // #endif
// #ifdef H5 // #ifdef H5
this.onhiddle();
// #endif // #endif
} else { } else {
uni.showToast({ uni.showToast({

Loading…
Cancel
Save