Commit 7504f750b45a0389c08304410a5bbfbf4313fcc6

Authored by wangfan
1 parent ad9a21dd

精简短信模板

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