|
@@ -42,6 +42,22 @@ Page({ |
|
|
} |
|
|
} |
|
|
that.pressOrderDetail(options.orderId); |
|
|
that.pressOrderDetail(options.orderId); |
|
|
} |
|
|
} |
|
|
|
|
|
this.getUserInfo() |
|
|
|
|
|
}, |
|
|
|
|
|
getUserInfo: function () { |
|
|
|
|
|
let that = this; |
|
|
|
|
|
// 获取用户信息 |
|
|
|
|
|
Http.get({ |
|
|
|
|
|
url: config.api.getScore, |
|
|
|
|
|
data: {} |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
that.setData({ |
|
|
|
|
|
nickName: res.data.nickName, |
|
|
|
|
|
avatarUrl: res.data.avatarUrl |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
onShow: function () { |
|
|
onShow: function () { |
|
|
let that = this; |
|
|
let that = this; |
|
@@ -518,7 +534,7 @@ Page({ |
|
|
var that = this; |
|
|
var that = this; |
|
|
console.log(that.data.data.id) |
|
|
console.log(that.data.data.id) |
|
|
var shareObj = { |
|
|
var shareObj = { |
|
|
title: that.data.data.title, |
|
|
|
|
|
|
|
|
title: that.data.nickName + '邀请您帮砍' + that.data.data.title, |
|
|
path: `/pages/index/index?orderId=${that.data.data.id}&from=${"discount"}`, |
|
|
path: `/pages/index/index?orderId=${that.data.data.id}&from=${"discount"}`, |
|
|
success: function(res) { |
|
|
success: function(res) { |
|
|
if (res.errMsg == 'shareAppMessage:ok') {} |
|
|
if (res.errMsg == 'shareAppMessage:ok') {} |
|
|