|
...
|
...
|
@@ -164,7 +164,7 @@ Page({ |
|
|
|
return this.sharesetting();
|
|
|
|
},
|
|
|
|
onShareTimeline() {
|
|
|
|
return this.sharesetting('1');
|
|
|
|
return this.sharesetting();
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面显示
|
|
...
|
...
|
@@ -357,9 +357,14 @@ Page({ |
|
|
|
// 点击支付定金
|
|
|
|
paymentFun() {
|
|
|
|
let that = this;
|
|
|
|
App.PayOnline.CombineTransactionsByDeposit({
|
|
|
|
id: this.data.paymentId,
|
|
|
|
openid: this.data.options.timeline == '1' ? '' : getApp().openid,
|
|
|
|
let openid = getApp().openid;
|
|
|
|
if (!openid) return wx.showToast({
|
|
|
|
title: '请在小程序中支付订金!',
|
|
|
|
icon: 'none',
|
|
|
|
})
|
|
|
|
App.PayOnline.CombineTransactionsByDeposit({
|
|
|
|
id: this.data.paymentId,
|
|
|
|
openid,
|
|
|
|
}).then(res => {
|
|
|
|
if (res.ret == 200) {
|
|
|
|
wx.requestPayment({
|
|
...
|
...
|
@@ -518,7 +523,7 @@ Page({ |
|
|
|
console.log('海报生成成功',this.data.imgSrc);
|
|
|
|
},
|
|
|
|
// 分享
|
|
|
|
sharesetting(timeline) {
|
|
|
|
sharesetting() {
|
|
|
|
wx.reportMonitor('1017', 1)
|
|
|
|
this.closeModal()
|
|
|
|
if(this.data.options.isOrder == '1' && this.data.detail.status !='4'){
|
|
...
|
...
|
@@ -532,10 +537,9 @@ Page({ |
|
|
|
}else{
|
|
|
|
let parmdata = {
|
|
|
|
id: this.id,
|
|
|
|
fromid: this.data.options.timeline == '1' ? '' : getApp().openid,
|
|
|
|
fromid: getApp().openid,
|
|
|
|
hasInvitation: 1,
|
|
|
|
tplid: this.data.options.tplid,
|
|
|
|
timeline
|
|
|
|
tplid: this.data.options.tplid
|
|
|
|
}
|
|
|
|
if (this.data.options.uid) {
|
|
|
|
parmdata.uid = this.data.options.uid;
|
...
|
...
|
|