|
...
|
...
|
@@ -102,10 +102,24 @@ Page({ |
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
cli(){
|
|
|
|
wx.setClipboardData({
|
|
|
|
data: this.data.staffinfo.wechat,
|
|
|
|
success (res) {
|
|
|
|
wx.getClipboardData({
|
|
|
|
success (res) {
|
|
|
|
console.log(res.data) // data
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
call(){
|
|
|
|
wx.reportMonitor('1012', 1)
|
|
|
|
wx.makePhoneCall({
|
|
|
|
phoneNumber: this.data.staffinfo.phone ? this.data.staffinfo.phone : this.data.detail.seller.seller_tel.split(',')[0]//仅为示例,并非真实的电话号码
|
|
|
|
phoneNumber: this.data.staffinfo.phone
|
|
|
|
})
|
|
|
|
},
|
|
|
|
test(e){
|
|
...
|
...
|
@@ -144,19 +158,19 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
roomimage:json.data
|
|
|
|
})
|
|
|
|
let urls=[];
|
|
|
|
var urlsArr=[];
|
|
|
|
json.data.forEach((v,i)=>{
|
|
|
|
urls.push(v.image);
|
|
|
|
urlsArr.push(v.url);
|
|
|
|
})
|
|
|
|
this.urls=urls;
|
|
|
|
console.log(urls,'lllllll')
|
|
|
|
this.urlsValue=urlsArr;
|
|
|
|
console.log(urlsArr,'lllllll')
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
lookroom(){
|
|
|
|
wx.previewImage({
|
|
|
|
current: '', // 当前显示图片的http链接
|
|
|
|
urls: this.urls, // 需要预览的图片http链接列表
|
|
|
|
urls: this.urlsValue, // 需要预览的图片http链接列表
|
|
|
|
})
|
|
|
|
},
|
|
|
|
secondbook(){
|
|
...
|
...
|
@@ -239,7 +253,7 @@ Page({ |
|
|
|
tel:reserev.seller.seller_tel.split(',')[0]
|
|
|
|
}
|
|
|
|
})
|
|
|
|
if(this.data.detail.type==0){
|
|
|
|
if(this.data.detail.type==0 || this.data.detail.type==1){
|
|
|
|
this.getstaffinfo();
|
|
|
|
this.getroomimage();
|
|
|
|
this.getactivity();
|
|
...
|
...
|
@@ -264,7 +278,7 @@ Page({ |
|
|
|
detail.tableSubInfo = '等' + (detail.tables.length) + '个'
|
|
|
|
+ (detail.tables[0].tid == 2 ? '包间' : '');
|
|
|
|
}
|
|
|
|
if (detail.sex != 3) {
|
|
|
|
if (detail.rname && detail.sex != 3) {
|
|
|
|
detail.rnameStr = detail.rname.substr(0, 1) + (detail.sex == 1 ? '先生' : '女士')
|
|
|
|
} else {
|
|
|
|
detail.rnameStr = detail.rname
|
|
...
|
...
|
@@ -536,10 +550,14 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
showselect(){
|
|
|
|
wx.reportMonitor('1014', 1)
|
|
|
|
this.setData({
|
|
|
|
selecthidden:false
|
|
|
|
})
|
|
|
|
wx.reportMonitor('1014', 1)
|
|
|
|
if(this.data.selecthidden==false){
|
|
|
|
this.closeselect();
|
|
|
|
}else{
|
|
|
|
this.setData({
|
|
|
|
selecthidden:false
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
closeselect(){
|
|
|
|
console.log('ttttt')
|
|
...
|
...
|
@@ -548,9 +566,14 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
showmore(){
|
|
|
|
this.setData({
|
|
|
|
morehidden:false
|
|
|
|
})
|
|
|
|
if(this.data.morehidden==false){
|
|
|
|
this.closemore();
|
|
|
|
}else{
|
|
|
|
this.setData({
|
|
|
|
morehidden:false
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
closemore(){
|
|
|
|
this.setData({
|
...
|
...
|
|