Commit 3fc2a32ba49d13220d45f6ea665f8030176ae7e5

Authored by vking
1 parent 15f4e51b

迁移到New接口,使用ddate_solt

@@ -63,12 +63,13 @@ Page({ @@ -63,12 +63,13 @@ Page({
63 }, 63 },
64 bookInfo: null, 64 bookInfo: null,
65 async getDetail(id){ 65 async getDetail(id){
66 - let res=await App.Reserve.Detail({rid: id, openid: ''}); 66 + let res=await App.Reserve.Detail({rid: id});
67 this.bookInfo=res.data 67 this.bookInfo=res.data
68 if(res.data.operator_openid==2){//运营处理订单,强制使用运营短信 68 if(res.data.operator_openid==2){//运营处理订单,强制使用运营短信
69 this.tplsIndex='SMS_173950289' 69 this.tplsIndex='SMS_173950289'
70 } 70 }
71 let tplMsg=await ST.getTplMsg(res.data,this.tplsIndex,this.sc) 71 let tplMsg=await ST.getTplMsg(res.data,this.tplsIndex,this.sc)
  72 + console.log('tplMsg',tplMsg)
72 this.setData({ 73 this.setData({
73 bookInfo: res.data, 74 bookInfo: res.data,
74 tplMsg: tplMsg 75 tplMsg: tplMsg
@@ -543,6 +543,13 @@ @@ -543,6 +543,13 @@
543 "pathName": "pages/customer/detail_owner_invitation", 543 "pathName": "pages/customer/detail_owner_invitation",
544 "query": "id=43762&hasInvitation=1&hasSellerShare=1&tplid=1", 544 "query": "id=43762&hasInvitation=1&hasSellerShare=1&tplid=1",
545 "scene": null 545 "scene": null
  546 + },
  547 + {
  548 + "id": -1,
  549 + "name": "pack-book/pages/book/b_sms",
  550 + "pathName": "pack-book/pages/book/b_sms",
  551 + "query": "id=44178",
  552 + "scene": null
546 } 553 }
547 ] 554 ]
548 } 555 }
@@ -149,9 +149,9 @@ module.exports ={ @@ -149,9 +149,9 @@ module.exports ={
149 if(bookInfo.type==1 && smsData.date){ 149 if(bookInfo.type==1 && smsData.date){
150 if(bookInfo.is_set_ddate!=1){ 150 if(bookInfo.is_set_ddate!=1){
151 if(tplcode=='SMS_154587043'){ 151 if(tplcode=='SMS_154587043'){
152 - smsData.date=smsData.date.replace(/[\d]{2}:[\d]2/,txb[tx.timeIndex]) 152 + smsData.date=smsData.date.replace(/[\d]{2}:[\d]{2}/,txb[tx.timeIndex])
153 }else{ 153 }else{
154 - smsData.date=smsData.date.replace(/[\d]{2}:[\d]2/,'') 154 + smsData.date=smsData.date.replace(/[\d]{2}:[\d]{2}/,'')
155 } 155 }
156 156
157 } 157 }