Commit d3d4f147 authored by 潘永坪's avatar 潘永坪

组合票优惠券开发

parent 74371ab7
......@@ -214,7 +214,7 @@
<view v-if="showBigCoupon" @click="showBigCoupon=false,showSmallCoupon=false" style="position: fixed;top: 0;right: 0;bottom: 0;left: 0;background:rgba(0, 0, 0, 0.5);z-index: 10;display: flex;align-items: center;">
<view style="width: 100%;">
<view style="display:flex;justify-content: center;">
<image src="/static/img/combination/coupon.gif" style="width: 85%;" mode="widthFix"></image>
<image src="/static/img/combination/bigCoupon.png" style="width: 85%;" mode="widthFix"></image>
</view>
<!-- <view style="display: flex;justify-content: center;">
<u-icon name="close-circle-fill" color="#333333" size="56"></u-icon>
......@@ -273,8 +273,8 @@ export default {
topHeight:0,//上面状态栏+上面导航栏总高度
tabbarOpacity:0,//导航栏透明度
tabbarHeight:'',//导航栏高度
showSmallCoupon:false,//显示小券
showBigCoupon:false,//显示大券
showSmallCoupon:false,//显示小券
showBigCoupon:false,//显示大券
}
},
watch: {
......@@ -606,23 +606,23 @@ export default {
uni.setStorageSync('newTimestamp', newTimestamp)
})
},
//---送券
giveCoupon() {
//---送券
giveCoupon() {
let data = {
pageCode:'SD_GROUP',//页面码
marketingStatus: 1,//状态
userId: uni.getStorageSync('userId')||'',
openid: uni.getStorageSync('openid')||'',
companyId:this.companyId,//公司Id
companyId:this.companyId,//公司Id
}
this.$request('scenic/market/findPageMarket', data).then((res) => {
if (res.data && res.data.length > 0) {
//有券时显示券
this.showSmallCoupon=true
this.showBigCoupon=true
}
if (res.data && res.data.length > 0) {
//有券时显示券
this.showSmallCoupon=true
this.showBigCoupon=true
}
})
},
},
//---初始化详情
initDetail(merchantId){
let data={
......@@ -791,10 +791,10 @@ export default {
},
//---多选框变化
checkboxChange(e) {
//如果有券没有领取,直接显示券,并领取
if(this.showSmallCoupon){
this.showBigCoupon=true
}
//如果有券没有领取,直接显示券,并领取
if(this.showSmallCoupon){
this.showBigCoupon=true
}
let value = e.detail.value
let arr = []
value.forEach(item => {
......
......@@ -457,7 +457,7 @@ export default {
width: 465rpx;
height:155rpx;
padding: 10rpx 20rpx;
background: url('/static/img/coupon/redEnvelope.png') no-repeat;
background: url('/static/img/coupon/coupon-new.png') no-repeat;
background-size: 100% 100%;
text-align: left;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment