|
...
|
...
|
@@ -14,6 +14,7 @@ Page({ |
|
|
|
},
|
|
|
|
tableNum:0,
|
|
|
|
detail:{},
|
|
|
|
staffinfo:{},
|
|
|
|
between: false,
|
|
|
|
is_display:true,
|
|
|
|
id: null,
|
|
...
|
...
|
@@ -77,21 +78,25 @@ Page({ |
|
|
|
onShow: function () {
|
|
|
|
},
|
|
|
|
cli() {
|
|
|
|
wx.setClipboardData({
|
|
|
|
data: this.data.reserve.manager_wechat,
|
|
|
|
success(res) {
|
|
|
|
wx.getClipboardData({
|
|
|
|
success(res) {
|
|
|
|
console.log(res.data) // data
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
if(this.data.staffinfo.wechat){
|
|
|
|
wx.setClipboardData({
|
|
|
|
data: this.data.staffinfo.wechat,
|
|
|
|
success(res) {
|
|
|
|
wx.getClipboardData({
|
|
|
|
success(res) {
|
|
|
|
console.log(res.data) // data
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
console.log('无微信号')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
call() {
|
|
|
|
wx.reportMonitor('1012', 1)
|
|
|
|
wx.makePhoneCall({
|
|
|
|
phoneNumber: this.data.reserve.manager_phone
|
|
|
|
phoneNumber: this.data.staffinfo.phone
|
|
|
|
})
|
|
|
|
},
|
|
|
|
looklocation: function () {
|
|
...
|
...
|
@@ -163,11 +168,26 @@ Page({ |
|
|
|
console.log('reserevreserevreserevreserevreserev',reserev);
|
|
|
|
console.log('sellersellersellerseller',this.data.seller);
|
|
|
|
console.log('detaildetaildetaildetail',this.data.detail);
|
|
|
|
this.getSellerTemplateConfFun(reserev.sid);
|
|
|
|
setTimeout(() => {
|
|
|
|
this.getSellerTemplateConfFun(reserev.sid);
|
|
|
|
this.getstaffinfo(res.data.uid)
|
|
|
|
}, 0);
|
|
|
|
}).catch(res=>{
|
|
|
|
console.log(res,'详情请求失败');
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getstaffinfo(uid){
|
|
|
|
console.log('Baseinfo__uid',uid);
|
|
|
|
console.log('sellerid',this.data.detail.seller.id);
|
|
|
|
App.Activity.GetCustomerActivityBaseinfo({sellerid:this.data.detail.seller.id,uid}).then((json)=>{
|
|
|
|
if(json.ret==200){
|
|
|
|
console.log('staffinfostaffinfostaffinfo',json.data)
|
|
|
|
this.setData({
|
|
|
|
staffinfo:json.data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
cookbook() {
|
|
|
|
if (this.data.detail.order && this.data.detail.order.cookbooklist.length > 0) {
|
|
|
|
wx.navigateTo({
|
...
|
...
|
|