Commit 6081bff3ad113c77650a5e30b796065cc9b6ccc1

Authored by wangfan
1 parent fd576d86

most_pnum

... ... @@ -68,15 +68,16 @@ Page({
region_room_name+='等'+this.bookInfo.tables.length+'桌'
}
let smsData={
seller_name:this.bookInfo.seller.sellername.substr(0,20),
date:this.bookInfo.rdateStr,
region_room_name:region_room_name.substr(0,20),
reserve_pnum:(this.bookInfo.pnum || this.bookInfo.pnum_str)+'人',
seller_addr:this.bookInfo.seller.map_address.substr(0,20),
seller_phone:this.bookInfo.seller.phone.substr(0,20),
cusman:(this.bookInfo.cusman||this.bookInfo.seller.sellername).substr(0,20),
cusman_phone:(this.bookInfo.cusman_phone||this.bookInfo.seller.phone).substr(0,20),
code:this.bookInfo.code,
guest:this.bookInfo.rname.substr(0,1)+(this.bookInfo.sex==1?'先生':'女士'),
seller_name:this.bookInfo.seller.sellername.substr(0,20),
date:this.bookInfo.rdateStr,
region_room_name:region_room_name.substr(0,20),
reserve_pnum:(this.bookInfo.pnum || this.bookInfo.pnum_str)+'人',
seller_addr:this.bookInfo.seller.map_address.substr(0,20),
seller_phone:this.bookInfo.seller.phone.substr(0,20),
cusman:(this.bookInfo.cusman||this.bookInfo.seller.sellername).substr(0,20),
cusman_phone:(this.bookInfo.cusman_phone||this.bookInfo.seller.phone).substr(0,20),
code:this.bookInfo.code,
}
let tpl=tpls[this.tplsIndex];
this.smsData=smsData;
... ... @@ -91,6 +92,7 @@ Page({
phone:this.bookInfo.phone,
sign_name:'一键订',
template_code:'SMS_145597605',
//template_code:'SMS_150579975',//审核中
template_param:JSON.stringify(this.smsData),
rid:this.bookInfo.id
}).then(()=>{
... ...
... ... @@ -70,8 +70,9 @@ Page({
if(!this.data.form.meal_id) return;
let prarms={
sellerid: this.data.form.seller_id,
price:this.data.form.price,
id:this.data.form.meal_id,
//price:this.data.form.price,
price:0.01,
meal_id:this.data.form.meal_id,
openid:getApp().openid,
}
App.Reserve.SmsBuy(prarms).then(res=>{
... ... @@ -84,7 +85,7 @@ Page({
'paySign': pay.paySign,
'success':function(res){
if(res){
App.Reserve.SmsInfo({seller_id:this.data.seller_id},'clear');
App.Reserve.SmsInfo({seller_id:this.data.form.seller_id},'clear');
wx.showToast({
title: '支付成功',
icon: 'loading',
... ...