| app.globalData.openidSuccessFuc = this.getCodeFn; | app.globalData.openidSuccessFuc = this.getCodeFn; | ||||
| } | } | ||||
| if (state == 1) {//已注册 | |||||
| } else if (state == 0) {//未注册 | |||||
| wx.navigateTo({ | |||||
| url: '/pages/register/register', | |||||
| }) | |||||
| } else if (state == -1) { | |||||
| app.globalData.userInfoBackFn = res => {//等待结果 | |||||
| console.log(res) | |||||
| if (res) { | |||||
| } else { | |||||
| wx.navigateTo({ | |||||
| url: '/pages/register/register', | |||||
| }) | |||||
| } | |||||
| } | |||||
| } | |||||
| }, | }, | ||||
| getTicketUser: function () {//获取优惠券信息 | getTicketUser: function () {//获取优惠券信息 | ||||
| app.wxRequest(app.globalData.httpUrl + 'couponsell/detail', { coupon_sell_id: this.data.id, from: 1}, e => { | app.wxRequest(app.globalData.httpUrl + 'couponsell/detail', { coupon_sell_id: this.data.id, from: 1}, e => { |
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="look"> | <view class="look"> | ||||
| <!-- <view bindtap="lookTicket" data-index = "{{index}}" class="clickLook">点击查看券码</view> --> | |||||
| <image bindtap="lookTicket" class="lookTicket" data-id = "{{item.coupon_sell_id}}" src="../images/lookTicket.png"></image> | |||||
| <image bindtap="giveTicket" class="giveFrinedBtn" data-id = "{{item.coupon_sell_id}}" src="../images/giveFrinedBtn.png"></image> | <image bindtap="giveTicket" class="giveFrinedBtn" data-id = "{{item.coupon_sell_id}}" src="../images/giveFrinedBtn.png"></image> | ||||
| </view> | </view> | ||||
| </view> | </view> |
| /* display: flex; | /* display: flex; | ||||
| justify-content: space-between; | justify-content: space-between; | ||||
| align-items: center;*/ | align-items: center;*/ | ||||
| margin-bottom: 33rpx; | |||||
| /* margin-bottom: 33rpx; */ | |||||
| } | } | ||||
| .giveFrinedBtn{ | .giveFrinedBtn{ | ||||
| width: 308rpx; | width: 308rpx; | ||||
| font-size:35rpx; | font-size:35rpx; | ||||
| font-family:DINPro; | font-family:DINPro; | ||||
| color:#8f560f; | color:#8f560f; | ||||
| } | |||||
| .lookTicket{ | |||||
| width: 308rpx; | |||||
| height: 73rpx; | |||||
| } | } |