Commit 51adfcb5f0ba80edd7a48555667ad89e678ae542

Authored by pengye
1 parent dabf061e

no message

... ... @@ -16,6 +16,7 @@ Page({
*/
hasScene:false,
onLoad: function (options) {
console.log(options,'xxxxxxxx')
//转化场景值到 options
if(options.scene){//扫码进入
let query=decodeURIComponent(options.scene);
... ... @@ -78,10 +79,11 @@ Page({
},
buy(){
if(!this.data.form.meal_id) return;
console.log(this.data.form.seller_id,'ssssss')
let prarms={
sellerid: this.data.form.seller_id,
//price:this.data.form.price,
price:0.01,
price:this.data.form.price,
//price:0.01,
meal_id:this.data.form.meal_id,
openid:getApp().openid,
}
... ...
... ... @@ -175,7 +175,7 @@ Page({
})
let urls=[];
json.data.forEach((v,i)=>{
urls.push(v.image);
urls.push(v.url);
})
this.urls=urls;
console.log(urls,'lllllll')
... ... @@ -293,7 +293,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
... ...
... ... @@ -181,7 +181,7 @@
</view>
<view class="book-mask" hidden="{{morehidden}}" bindtap="closemore"></view>
<view class="service-buttons">
<view class="more-button white-font font28r flex-vc" bindtap="showmore">更多<view>服务</view></view>
<view class="more-button white-font font28r flex-vc" bindtap="showmore" hidden="true">更多<view>服务</view></view>
<view hidden="{{morehidden}}">
<view class="select-item-button flex-cc gray-font font24r" style="right: 39rpx;bottom:681rpx;" bindtap="noopenservice">酒水</view>
<view class="select-item-button flex-cc gray-font font24r" style="right: 136rpx;bottom:599rpx;" bindtap="noopenservice">代驾</view>
... ...
... ... @@ -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({
... ...
... ... @@ -117,9 +117,9 @@
<image src="{{staffinfo.photo}}" class="book-staff-headerimg" mode="aspectFit"></image>
<view class="flex-rr" style="margin-bottom: 20rpx;">
<view class="flex-rr font26r yellow-font">客户经理:{{staffinfo.name}}</view>
<view class="book-staff-item-button flex-cc" bindtap="addwechat">
<view class="book-staff-item-button flex-cc" bindtap="cli">
<image src="http://nosqn.colorcun.com/book-wechat.png" class="book-header-icon"></image>
<view class="font22r brown-font">加我微信</view>
<view class="font22r brown-font">复制微信号</view>
</view>
</view>
<view class="flex-rr">
... ... @@ -217,7 +217,7 @@
</view>
<view class="book-mask" hidden="{{morehidden}}" bindtap="closemore"></view>
<view class="service-buttons">
<view class="more-button white-font font28r flex-vc" bindtap="showmore">更多<view>服务</view></view>
<view class="more-button white-font font28r flex-vc" bindtap="showmore" hidden="true">更多<view>服务</view></view>
<view hidden="{{morehidden}}">
<view class="select-item-button flex-cc gray-font font24r" style="right: 39rpx;bottom:681rpx;" bindtap="noopenservice">酒水</view>
<view class="select-item-button flex-cc gray-font font24r" style="right: 136rpx;bottom:599rpx;" bindtap="noopenservice">代驾</view>
... ...