|
|
@@ -23,7 +23,8 @@ Page({ |
|
|
|
staticGamedata: {}, |
|
|
|
showIf: false, |
|
|
|
showPage:false, |
|
|
|
showButton:false |
|
|
|
showButton:false, |
|
|
|
cardDetail:null |
|
|
|
}, |
|
|
|
|
|
|
|
phone: function (e) { |
|
|
@@ -36,6 +37,35 @@ Page({ |
|
|
|
//转赠给微信好友 |
|
|
|
goToTranser() { |
|
|
|
|
|
|
|
}, |
|
|
|
getUserInfo: function () { |
|
|
|
let that = this; |
|
|
|
// 获取用户信息 |
|
|
|
Http.get({ |
|
|
|
url: config.api.getScore, |
|
|
|
data: {} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
console.log(res) |
|
|
|
that.setData({ |
|
|
|
userName: res.data.nickName, |
|
|
|
avatarUrl: res.data.avatarUrl |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
onShareAppMessage: function (res) { |
|
|
|
let _this = this; |
|
|
|
return { |
|
|
|
title: '领取卡', |
|
|
|
path: '/pages/index/index?couponChannelId=' + this.data.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + '111' + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId, |
|
|
|
imageUrl: this.data.order.coverImg, |
|
|
|
success: function (res) { |
|
|
|
// 转发成功 |
|
|
|
}, |
|
|
|
fail: function (res) { |
|
|
|
// 转发失败 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
powerDrawer: function (e) { |
|
|
|
let that = this; |
|
|
@@ -123,6 +153,7 @@ Page({ |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if(res.code == 200){ |
|
|
|
that.getUserInfo() |
|
|
|
that.setData({ |
|
|
|
showPage:true |
|
|
|
}) |
|
|
|