ticketStateArr:[],//优惠券使用状态 | ticketStateArr:[],//优惠券使用状态 | ||||
codePicUrl:"",//二维码图片地址 | codePicUrl:"",//二维码图片地址 | ||||
yesCode: false,//二维码图片隐藏 | yesCode: false,//二维码图片隐藏 | ||||
id:"" | |||||
id:"", | |||||
}, | }, | ||||
/** | /** | ||||
onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
return { | return { | ||||
title: "老门框爆肚会员", | title: "老门框爆肚会员", | ||||
path: "/pages/personalCenter/personalCenter", | |||||
success: res => { | success: res => { | ||||
console.log(res, "转发成功") | console.log(res, "转发成功") | ||||
}, | }, |
/* pages/TicketDetails/TicketDetails.wxss */ | /* pages/TicketDetails/TicketDetails.wxss */ | ||||
page{ | page{ | ||||
width: 100%; | |||||
height: 100%; | height: 100%; | ||||
overflow: hidden; | |||||
background-color: #f9f6f6; | background-color: #f9f6f6; | ||||
} | } | ||||
.ticketImg{ | .ticketImg{ | ||||
align-items: center; | align-items: center; | ||||
background-color: #ffffff; | background-color: #ffffff; | ||||
border-radius: 30rpx; | border-radius: 30rpx; | ||||
overflow: hidden; | |||||
} | } | ||||
.ticketName{ | .ticketName{ | ||||
margin-left: 96rpx; | margin-left: 96rpx; |
onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
return { | return { | ||||
title: "老门框爆肚会员", | title: "老门框爆肚会员", | ||||
path: "/pages/buyTicket/buyTicket?index="+this.data.id, | |||||
success: res => { | success: res => { | ||||
console.log(res, "转发成功") | console.log(res, "转发成功") | ||||
}, | }, |
/* pages/buyTicket/buyTicket.wxss */ | /* pages/buyTicket/buyTicket.wxss */ | ||||
page{ | page{ | ||||
width: 100%; | |||||
height: 100%; | height: 100%; | ||||
overflow: hidden; | |||||
background-color: #f9f6f6; | background-color: #f9f6f6; | ||||
/* background-color: red; */ | /* background-color: red; */ | ||||
} | } |
console.log(options.id) | console.log(options.id) | ||||
this.data.id = options.id | this.data.id = options.id | ||||
this.data.sellId = options.id; | this.data.sellId = options.id; | ||||
if (app.globalData.openId) { | if (app.globalData.openId) { | ||||
this.getTicketUser() | this.getTicketUser() | ||||
} else { | } else { | ||||
app.globalData.openidSuccessFuc = this.getTicketUser; | app.globalData.openidSuccessFuc = this.getTicketUser; | ||||
} | } | ||||
}, | }, | ||||
getTicketUser: function () {//获取优惠券信息 | getTicketUser: function () {//获取优惠券信息 | ||||
titleWord = "您的好友分享给您一张老门框爆肚涮肉的代金券,请您查收" | titleWord = "您的好友分享给您一张老门框爆肚涮肉的代金券,请您查收" | ||||
shareImg = "../images/shareImg.png"; | shareImg = "../images/shareImg.png"; | ||||
}else{ | }else{ | ||||
shareUrl = ""; | |||||
shareUrl = "/pages/personalCenter/personalCenter"; | |||||
titleWord = "老门框爆肚会员" | titleWord = "老门框爆肚会员" | ||||
shareImg = ""; | shareImg = ""; | ||||
} | } |
/* pages/givePage/givePage.wxss */ | /* pages/givePage/givePage.wxss */ | ||||
page{ | page{ | ||||
width: 100%; | |||||
height: 100%; | height: 100%; | ||||
overflow: hidden; | |||||
background-color: #f9f6f6; | background-color: #f9f6f6; | ||||
} | } | ||||
.all{ | .all{ |
<view class="textView"> | <view class="textView"> | ||||
<text class="nameText">{{dataList.coupon_name_detail}}</text> | <text class="nameText">{{dataList.coupon_name_detail}}</text> | ||||
<!-- <view class="bigticketView"> | <!-- <view class="bigticketView"> | ||||
<text class="maney">92</text> | |||||
<text class="Bigticket">元抵</text> | |||||
<text class="maney">100</text> | |||||
<text class="Bigticket">元</text> | |||||
</view> --> | |||||
<text class="maney">100</text> --> | |||||
<!-- <text class="Bigticket">元</text> --> | |||||
<!-- <text class="maney">100</text> --> | |||||
<!-- <text class="Bigticket">代金券</text> --> | |||||
<!-- </view> --> | |||||
<text class="timeText">{{dataList.coupon_condition_desc}}</text> | <text class="timeText">{{dataList.coupon_condition_desc}}</text> | ||||
<text class="timeText">(有效期:{{dataList.duration}})</text> | <text class="timeText">(有效期:{{dataList.duration}})</text> | ||||
</view> | </view> |
width: 318rpx; | width: 318rpx; | ||||
position: absolute; | position: absolute; | ||||
left: 110rpx; | left: 110rpx; | ||||
top: 150rpx; | |||||
top: 115rpx; | |||||
text-align: center; | text-align: center; | ||||
} | } | ||||
.textView text{ | .textView text{ | ||||
display: block; | display: block; | ||||
} | } | ||||
.nameText{ | .nameText{ | ||||
font-size:40rpx; | |||||
font-size:50rpx; | |||||
font-family:DINPro; | font-family:DINPro; | ||||
font-weight:bold; | |||||
/* font-weight:bold; */ | |||||
color:#8f560f; | color:#8f560f; | ||||
/* margin-bottom: 42rpx */ | |||||
margin-bottom: 10rpx | |||||
} | } | ||||
.bigticketView{ | .bigticketView{ | ||||
display: flex; | display: flex; | ||||
color:#8f560f; | color:#8f560f; | ||||
} | } | ||||
.timeText{ | .timeText{ | ||||
font-size:20rpx; | |||||
font-size:24rpx; | |||||
font-family:SourceHanSansCN; | font-family:SourceHanSansCN; | ||||
font-weight:300; | font-weight:300; | ||||
color:rgba(153,153,153,1); | |||||
color:#8f560f; | |||||
} | } | ||||
.buyView{ | .buyView{ | ||||
margin-top: 40rpx; | margin-top: 40rpx; |
<scroll-view class="scrollY1" scroll-y="true" wx:if="{{myTicketArrows}}"> | <scroll-view class="scrollY1" scroll-y="true" wx:if="{{myTicketArrows}}"> | ||||
<view class="contAll" wx:for="{{myTicketArr}}"> | <view class="contAll" wx:for="{{myTicketArr}}"> | ||||
<view class="ticketCont" bindtap="lookTicket" data-id = "{{item.coupon_sell_id}}"> | <view class="ticketCont" bindtap="lookTicket" data-id = "{{item.coupon_sell_id}}"> | ||||
<image class="centerBuy" src="../images/centerBuy.png"></image> | |||||
<image class="centerBuy" src="../images/indexBuy.png"></image> | |||||
<!-- <view class="ticketImg"> | <!-- <view class="ticketImg"> | ||||
<image class="ticketImg" src="{{item.coupon_img_small}}"></image> | <image class="ticketImg" src="{{item.coupon_img_small}}"></image> | ||||
</view> --> | </view> --> | ||||
<view class="rigWord"> | <view class="rigWord"> | ||||
<view class="name">{{item.coupon_name_detail}}</view> | |||||
<view class="name">{{item.coupon_name}}{{item.type_name}}</view> | |||||
<!-- <view class="bigticketView"> | <!-- <view class="bigticketView"> | ||||
<text class="maney">92</text> | <text class="maney">92</text> | ||||
<text class="Bigticket">元抵</text> | <text class="Bigticket">元抵</text> |
.myTicketAll{ | .myTicketAll{ | ||||
padding: 0 64rpx; | padding: 0 64rpx; | ||||
width: 622rpx; | |||||
position: absolute; | position: absolute; | ||||
top: 390rpx; | top: 390rpx; | ||||
} | } | ||||
margin-right: 32rpx; | margin-right: 32rpx; | ||||
} | } | ||||
.name{ | .name{ | ||||
font-size:40rpx; | |||||
font-size:50rpx; | |||||
font-family:DINPro; | font-family:DINPro; | ||||
font-weight:bold; | |||||
/* font-weight:bold; */ | |||||
color:#8f560f; | color:#8f560f; | ||||
margin-bottom: 10rpx; | |||||
} | } | ||||
.name1,.name2{ | .name1,.name2{ | ||||
font-size:35rpx; | font-size:35rpx; | ||||
color:rgba(106,10,14,1); | color:rgba(106,10,14,1); | ||||
} | } | ||||
.time{ | .time{ | ||||
font-size:20rpx; | |||||
font-size:24rpx; | |||||
font-family:SourceHanSansCN; | font-family:SourceHanSansCN; | ||||
font-weight:300; | font-weight:300; | ||||
color:rgba(153,153,153,1); | |||||
color:#8f560f; | |||||
} | } | ||||
.look{ | .look{ | ||||
/* display: flex; | /* display: flex; | ||||
width: 350rpx; | width: 350rpx; | ||||
text-align: center; | text-align: center; | ||||
position: absolute; | position: absolute; | ||||
top: 85rpx; | |||||
left: 45rpx; | |||||
top: 50rpx; | |||||
left: 35rpx; | |||||
} | } | ||||
.bigticketView{ | .bigticketView{ |
</view> | </view> | ||||
<view class="line"></view> | <view class="line"></view> | ||||
<view class="contBot"> | <view class="contBot"> | ||||
<image class="receiveTicket" src="../images/receiveTicket.png"></image> | |||||
<image class="receiveTicket" src="../images/indexBuy.png"></image> | |||||
<view class="textView"> | <view class="textView"> | ||||
<text class="nameText">{{ticketUser.coupon_name_detail}}</text> | |||||
<text class="nameText">{{ticketUser.coupon_name}}{{ticketUser.type_name}}</text> | |||||
<!-- <view class="bigticketView"> | <!-- <view class="bigticketView"> | ||||
<text class="maney">92</text> | <text class="maney">92</text> | ||||
<text class="Bigticket">元抵</text> | <text class="Bigticket">元抵</text> |
width: 318rpx; | width: 318rpx; | ||||
height: 248rpx; | height: 248rpx; | ||||
position: absolute; | position: absolute; | ||||
top: 90rpx; | |||||
left: 135rpx; | |||||
top: 50rpx; | |||||
left: 110rpx; | |||||
} | } | ||||
.textView text{ | .textView text{ | ||||
display: block; | display: block; | ||||
.nameText{ | .nameText{ | ||||
font-size:50rpx; | font-size:50rpx; | ||||
font-family:DINPro; | font-family:DINPro; | ||||
font-weight:bold; | |||||
/* font-weight:bold; */ | |||||
color:rgba(106,10,14,1); | color:rgba(106,10,14,1); | ||||
margin-bottom: 20rpx; | |||||
} | } | ||||
.timeText{ | .timeText{ | ||||
font-size:20rpx; | |||||
font-size:24rpx; | |||||
font-family:SourceHanSansCN; | font-family:SourceHanSansCN; | ||||
font-weight:300; | font-weight:300; | ||||
color:rgba(153,153,153,1); | |||||
color:#8f560f; | |||||
} | } | ||||
.getTicket{ | .getTicket{ | ||||
display: block; | display: block; | ||||
margin: 310rpx auto 0 auto; | margin: 310rpx auto 0 auto; | ||||
} | } | ||||
.receiveTicket{ | .receiveTicket{ | ||||
width: 609rpx; | |||||
height: 230rpx; | |||||
width: 650rpx; | |||||
height: 275rpx; | |||||
} | } | ||||
.bigticketView{ | .bigticketView{ | ||||
display: flex; | display: flex; |