@@ -28,24 +28,7 @@ Page({ | |||
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 () {//获取优惠券信息 | |||
app.wxRequest(app.globalData.httpUrl + 'couponsell/detail', { coupon_sell_id: this.data.id, from: 1}, e => { |
@@ -46,7 +46,7 @@ | |||
</view> | |||
</view> | |||
<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> | |||
</view> | |||
</view> |
@@ -148,7 +148,7 @@ page{ | |||
/* display: flex; | |||
justify-content: space-between; | |||
align-items: center;*/ | |||
margin-bottom: 33rpx; | |||
/* margin-bottom: 33rpx; */ | |||
} | |||
.giveFrinedBtn{ | |||
width: 308rpx; | |||
@@ -257,4 +257,8 @@ page{ | |||
font-size:35rpx; | |||
font-family:DINPro; | |||
color:#8f560f; | |||
} | |||
.lookTicket{ | |||
width: 308rpx; | |||
height: 73rpx; | |||
} |