Commit e5034a7ca89e4534654f77081f998d22ad94d3e9

Authored by vking
1 parent 8e0a9f93

reserveSubmitInfo

@@ -32,10 +32,14 @@ Page({ @@ -32,10 +32,14 @@ Page({
32 if(!options.firstShowMsg){ 32 if(!options.firstShowMsg){
33 this.hasGetSellerDetail=true 33 this.hasGetSellerDetail=true
34 } 34 }
35 - this.setData({ 35 + let obj={
36 firstShowMsg:options.firstShowMsg, 36 firstShowMsg:options.firstShowMsg,
37 hasSubscribeFail:options.hasSubscribeFail, 37 hasSubscribeFail:options.hasSubscribeFail,
38 - }) 38 + }
  39 + if(options.firstShowMsg){//从提交预订页进入
  40 + obj.reserveSubmitInfo='预定提交成功,等待餐厅确认'
  41 + }
  42 + this.setData(obj)
39 PubSub.on('detailPub',(res)=>{ 43 PubSub.on('detailPub',(res)=>{
40 console.log(res) 44 console.log(res)
41 if(res.type=='cancel'){ 45 if(res.type=='cancel'){
@@ -132,6 +136,8 @@ Page({ @@ -132,6 +136,8 @@ Page({
132 } 136 }
133 //this.GetBalance()//余额 137 //this.GetBalance()//余额
134 this.GetCheckout()//账单 138 this.GetCheckout()//账单
  139 + //清理预订消息
  140 + setTimeout(()=>{this.setData({reserveSubmitInfo:''})},3000)
135 }) 141 })
136 }, 142 },
137 formatDatail(detail) { 143 formatDatail(detail) {
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 <view class="icon"> 58 <view class="icon">
59 <icon type="waiting" size="47" color="#C8B16D"/> 59 <icon type="waiting" size="47" color="#C8B16D"/>
60 </view> 60 </view>
61 - <view class="title Medium">{{firstShowMsg.length>10?'餐厅处理中':'餐厅休息中'}}</view> 61 + <view class="title Medium">{{reserveSubmitInfo?reserveSubmitInfo:(firstShowMsg.length>10?'餐厅处理中':'餐厅休息中')}}</view>
62 <view class="info flex-vc" wx:if="{{firstShowMsg}}"> 62 <view class="info flex-vc" wx:if="{{firstShowMsg}}">
63 <block wx:if="{{firstShowMsg.length>10}}"> 63 <block wx:if="{{firstShowMsg.length>10}}">
64 <view>预计10分钟左右餐厅将告知您结果</view> 64 <view>预计10分钟左右餐厅将告知您结果</view>