|
...
|
...
|
@@ -24,6 +24,7 @@ Page({ |
|
|
|
calendarData: '',
|
|
|
|
sex: "先生",
|
|
|
|
indexs: 0,
|
|
|
|
StyleType:'',//邀请函模板
|
|
|
|
sexList: [{
|
|
|
|
sex: '先生',
|
|
|
|
value: '1',
|
|
...
|
...
|
@@ -55,6 +56,7 @@ Page({ |
|
|
|
sellerName: options.sellerName ? options.sellerName : '',
|
|
|
|
},
|
|
|
|
type: options.type,
|
|
|
|
StyleType: options.StyleType,
|
|
|
|
})
|
|
|
|
console.log('onLoad',{...this.data.opt});
|
|
|
|
let obj = wx.getStorageSync('info')
|
|
...
|
...
|
@@ -75,7 +77,7 @@ Page({ |
|
|
|
wananchi() {
|
|
|
|
this.closeModal()
|
|
|
|
wx.navigateTo({
|
|
|
|
url: `/pages/me/wananchi?type=1&oid=${this.data.opt.detail.oid}`
|
|
|
|
url: `/pages/me/wananchi?type=1&oid=${this.data.opt.detail.oid}&sid=${this.data.opt.sid}`
|
|
|
|
})
|
|
|
|
},
|
|
|
|
showModal() {
|
|
...
|
...
|
@@ -138,10 +140,17 @@ Page({ |
|
|
|
},
|
|
|
|
// 支付失败回调 types 1邀请函 2提前点餐 3商家端app分享
|
|
|
|
callbackFun() {
|
|
|
|
let url = '';
|
|
|
|
let url = '/pages/customer/detail_owner_invitation_new1?id=' + that.data.opt.detail.oid;
|
|
|
|
let that = this;
|
|
|
|
if (that.data.opt.types == '1') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new?id=' + that.data.opt.detail.oid;
|
|
|
|
if(that.data.opt.types == '1'){
|
|
|
|
switch (this.data.StyleType) {
|
|
|
|
case '1':
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new1?id=' + that.data.opt.detail.oid;
|
|
|
|
break;
|
|
|
|
case '2':
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new2?id=' + that.data.opt.detail.oid;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (that.data.opt.types == '2') {
|
|
|
|
let data={}
|
|
...
|
...
|
@@ -166,8 +175,17 @@ Page({ |
|
|
|
recharge() {
|
|
|
|
console.log('充值完成跳转', this.data.opt.detail.oid);
|
|
|
|
this.closeModal()
|
|
|
|
let url=`/pages/customer/detail_owner_invitation_new1?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
|
|
|
|
switch (this.data.StyleType) {
|
|
|
|
case '1':
|
|
|
|
url = `/pages/customer/detail_owner_invitation_new1?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
|
|
|
|
break;
|
|
|
|
case '2':
|
|
|
|
url = `/pages/customer/detail_owner_invitation_new2?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
wx.reLaunch({
|
|
|
|
url: `/pages/customer/detail_owner_invitation_new?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
|
|
|
|
url
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 绑定名称
|
|
...
|
...
|
@@ -334,8 +352,17 @@ Page({ |
|
|
|
navEvent() {
|
|
|
|
// 1 邀请函 2 提前点餐 3商家端分享
|
|
|
|
if (this.data.opt.types == '1') {
|
|
|
|
let url='/pages/customer/detail_owner_invitation_new1?id=' + this.data.opt.detail.oid;
|
|
|
|
switch (this.data.StyleType) {
|
|
|
|
case '1':
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new1?id=' + this.data.opt.detail.oid;
|
|
|
|
break;
|
|
|
|
case '2':
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new1?id=' + this.data.opt.detail.oid;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return wx.reLaunch({
|
|
|
|
url: '/pages/customer/detail_owner_invitation_new?id=' + this.data.opt.detail.oid,
|
|
|
|
url,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
if (this.data.opt.types == '2') {
|
...
|
...
|
|