|
...
|
...
|
@@ -300,6 +300,7 @@ Page({ |
|
|
|
is_set_ddate: reserev.is_set_ddate,
|
|
|
|
hasUpTime: reserev.type == 1 && reserev.hasRunning && reserev.status != 2,
|
|
|
|
tel: reserev.seller.seller_tel.split(','),
|
|
|
|
phone:reserev.phone,
|
|
|
|
soltName: reserev.soltName,
|
|
|
|
dateTime:util.unixtoTime(reserev.ddate, 'HH:II'),
|
|
|
|
time: util.unixtoTime(reserev.ddate, '星期WW HH:II'),
|
|
...
|
...
|
@@ -514,25 +515,35 @@ Page({ |
|
|
|
})
|
|
|
|
console.log('海报生成成功',this.data.imgSrc);
|
|
|
|
},
|
|
|
|
// 分享
|
|
|
|
sharesetting() {
|
|
|
|
wx.reportMonitor('1017', 1)
|
|
|
|
// 分享
|
|
|
|
sharesetting() {
|
|
|
|
wx.reportMonitor('1017', 1)
|
|
|
|
this.closeModal()
|
|
|
|
let parmdata = {
|
|
|
|
id: this.id,
|
|
|
|
fromid: getApp().openid,
|
|
|
|
hasInvitation: 1,
|
|
|
|
tplid: this.data.options.tplid
|
|
|
|
}
|
|
|
|
if (this.data.options.uid) {
|
|
|
|
parmdata.uid = this.data.options.uid;
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
title: '我已订好' + this.data.seller.name + ',点击可查看详情并导航到店',
|
|
|
|
path: util.http_build_query(parmdata, '/pages/customer/detail_owner_invitation_new'),
|
|
|
|
imageUrl: this.data.imgSrc || 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
if(this.data.options.isOrder == '1' && this.data.detail.status !='4'){
|
|
|
|
return {
|
|
|
|
title: '推荐' + this.data.seller.name + ',点击可查看详情并导航到店',
|
|
|
|
path: util.http_build_query({
|
|
|
|
id: this.data.detail.seller.id
|
|
|
|
}, '/pages/reserve/shopHome'),
|
|
|
|
imageUrl: this.data.detail.seller.seller_image || 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png',
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
let parmdata = {
|
|
|
|
id: this.id,
|
|
|
|
fromid: getApp().openid,
|
|
|
|
hasInvitation: 1,
|
|
|
|
tplid: this.data.options.tplid
|
|
|
|
}
|
|
|
|
if (this.data.options.uid) {
|
|
|
|
parmdata.uid = this.data.options.uid;
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
title: '我已订好' + this.data.seller.name + ',点击可查看详情并导航到店',
|
|
|
|
path: util.http_build_query(parmdata, '/pages/customer/detail_owner_invitation_new'),
|
|
|
|
imageUrl: this.data.imgSrc || 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// 修改detail数据
|
|
|
|
formatDatail(detail, dateSmart) {
|
|
|
|
detail.rdateStr = dateSmart;
|
|
...
|
...
|
@@ -607,24 +618,6 @@ Page({ |
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let obj = {
|
|
|
|
chef,
|
|
|
|
reserve,
|
|
|
|
marketing,
|
|
|
|
signboard,
|
|
|
|
store,
|
|
|
|
home,
|
|
|
|
coupon,
|
|
|
|
couponList,
|
|
|
|
swich_phone,
|
|
|
|
is_comments,
|
|
|
|
StyleType,
|
|
|
|
titleType,
|
|
|
|
themeColor,
|
|
|
|
}
|
|
|
|
console.log('获取数据', {
|
|
|
|
...obj
|
|
|
|
});
|
|
|
|
// 根据券ID获取券详情
|
|
|
|
this.getActivityByIdFun(couponList, couponList.length)
|
|
|
|
// 根据充值ID获取充值详情
|
|
...
|
...
|
@@ -644,7 +637,7 @@ Page({ |
|
|
|
var nightStr = lunchDis.night.split("-");
|
|
|
|
var nightArr = lunchDis.night ? this.computeHour(nightStr[0], nightStr[1], 30) : [];
|
|
|
|
timeList = solt == '1' ? morningArr : solt == '2' ? noonArr : solt == '3' ? nightArr : []
|
|
|
|
this.setData({
|
|
|
|
let obj ={
|
|
|
|
chef,
|
|
|
|
marketing,
|
|
|
|
home,
|
|
...
|
...
|
@@ -660,6 +653,12 @@ Page({ |
|
|
|
timeList,
|
|
|
|
isMoreBtn:marketing && marketing.is_online_book=='1' && this.data.options.onlineReserve == '1',
|
|
|
|
isShareItem: this.data.options.isOrder != '1' && marketing && marketing.is_transpond=='1',
|
|
|
|
}
|
|
|
|
console.log('获取数据GetSellerTemplateConf--------------------', {
|
|
|
|
...obj
|
|
|
|
});
|
|
|
|
this.setData({
|
|
|
|
...obj
|
|
|
|
})
|
|
|
|
// 开启语音播报
|
|
|
|
if (reserve && reserve.swich_voice == '1') {
|
...
|
...
|
|