Commit f581db3c4402096c9b416e83ad0c67005528d177

Authored by “pengye”
1 parent a79801c7

点转发后转发图标依然显示、券列表跳转到券详情或者核销页

... ... @@ -11,7 +11,6 @@ Page({
dataStr: Date.now() * 1 / 1000,
detail: {},
exp_date: {},
isShow:'1',
resultCoupon: '', //0未领取 1已领取
},
/**
... ... @@ -177,9 +176,6 @@ Page({
}).then(res => {
if (res.ret == '200') {
console.log('转发核销');
this.setData({
isShow:'0'
})
wx.hideShareMenu()
}
})
... ...
... ... @@ -81,7 +81,7 @@
</view>
</view>
<view class="sharewidth" wx:if="{{resultCoupon == '0' || detail.arule.is_share_lose == '1'}}">
<button wx:if="{{detail.arule.is_share_lose == '1' && isShow=='1'}}" class="shareBtn" open-type="share">
<button wx:if="{{detail.arule.is_share_lose == '1'}}" class="shareBtn" open-type="share">
<image src="https://qn.colorcun.com/voucherIcon2.png" mode="" />
<text class="font24r">分享</text>
</button>
... ...
... ... @@ -155,10 +155,11 @@ page {
font-weight: 600;
margin-left: 40rpx;
background: transparent;
align-items: center;
}
.shareBtn image {
width: 40rpx;
width: 34rpx;
height: 40rpx;
}
... ...
... ... @@ -69,13 +69,12 @@ Page({
},
// 去详情或者去评价
todetail(e) {
let item=e.currentTarget.dataset['item'];
let item=e.currentTarget.dataset['item'];
if(item.is_examine=='0' && item.is_expire=='0' && item.is_examine=='0' && item.status!='4' && item.status!='5'){
// 免费券 扫商家的付款码 进行使用
// 免费券 跳转到免费券详情
if(item.is_type == '3'){
wx.scanCode({
success: (res) => {
}
wx.navigateTo({
url: '/pack-activity/pack/receiveCoupon?id='+item.id+'&name='+item.sellername+'&sid='+item.sellerid+'&types=3',
})
return
}else{
... ...
... ... @@ -3,7 +3,7 @@
<nav>卡券</nav>
<scroll-view class="list" style="height:{{contentHeight}}px;" scroll-y>
<block wx:if="{{list.length>0}}">
<view wx:for="{{list}}" class="card bg-white">
<view wx:for="{{list}}" class="card bg-white" bindtap="todetail" data-item="{{item}}" >
<view class="flex-vl gray-font card-main" style="justify-content:space-between;">
<view class="seller-info flex-ll">
<view class="smooth font-siny font32r" wx:if="{{item.recharge_name || item.aname}}">{{item.recharge_name || item.aname}}</view>
... ... @@ -18,8 +18,7 @@
<image wx:if="{{item.status=='5'}}" src="https://qn.colorcun.com/WechatIMG2.png" class="imgs1" mode="" />
<image wx:if="{{item.is_examine=='1' && item.is_comment=='1'}}" src="https://qn.colorcun.com/A1.png" class="imgs1" mode="" />
<!-- is_comment 1已评论 is_examine 1已核销 is_expire 1已过期-->
<button wx:if="{{item.is_examine=='0' && item.is_expire=='0' && item.is_examine=='0' && item.status!='4' && item.status!='5'}}" bindtap="todetail" data-item="{{item}}" class="flex-cc card-info font30r font-bold smooth">去使用</button>
<button wx:if="{{item.is_examine=='1' && item.is_expire=='0' && item.status!='4' && item.status!='5' && item.is_comment!='1'}}" bindtap="todetail" data-item="{{item}}" class="flex-cc card-info font30r font-bold smooth">去评价</button>
<button wx:if="{{item.is_examine=='1' && item.is_expire=='0' && item.status!='4' && item.status!='5' && item.is_comment!='1'}}" class="flex-cc card-info font30r font-bold smooth">去评价</button>
<view class="font24r texts {{(item.is_examine=='1' || item.is_expire=='1' || item.status=='4' || item.status=='5')?'texts2':'texts1' }} smooth">有效时间:{{util.unixtoTime(item.stime,'YYYY-MM-DD')}} 至 {{util.unixtoTime(item.etime,'YYYY-MM-DD')}}</view>
</view>
</block>
... ...