Commit 7504f750b45a0389c08304410a5bbfbf4313fcc6

Authored by wangfan
1 parent ad9a21dd

精简短信模板

Showing 1 changed file with 6 additions and 4 deletions
... ... @@ -17,15 +17,17 @@ Page({
bookInfo: {},
tplMsg: ''
},
seller:{},
sc:{},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.enter_params=util.cache('enter_params');
App.Reserve.SellerInfo(this.enter_params).then(res=>{
this.seller=res.data;
//this.tplsIndex='SMS_162733710'
this.sc=res.data;
try{
this.tplsIndex=res.data.setting.template_code
}catch(e){}
this.getDetail(options.id);
});
},
... ... @@ -111,7 +113,7 @@ Page({
.replace(/0(\d)/g,function($0,$1){
return $1;
})+' '+txa[tx.timeIndex],
seller_name_addr_room: this.getTableNameShort(this.bookInfo.tables).substr(0, 20),
seller_name_addr_room: this.sc.seller.selleralias+this.getTableNameShort(this.bookInfo.tables).substr(0, 20),
cusman: (this.bookInfo.cusman || this.bookInfo.seller.sellername).substr(0, 20),
}
break;
... ...