Commit 5ca901cfd72bfc290da2d73f66d7cb66071c5764

Authored by wangfan
1 parent 56cec9d7

seller

@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 "navigationBarTextStyle": "light" 18 "navigationBarTextStyle": "light"
19 }, 19 },
20 "networkTimeout": { 20 "networkTimeout": {
21 - "request": 3000, 21 + "request": 5000,
22 "downloadFile": 10000 22 "downloadFile": 10000
23 }, 23 },
24 "debug": true 24 "debug": true
@@ -5,6 +5,7 @@ Page({ @@ -5,6 +5,7 @@ Page({
5 util.setBarTitle('预定详情'); 5 util.setBarTitle('预定详情');
6 console.log(opt) 6 console.log(opt)
7 opt.name=opt.name.length>3 ? opt.name.slice(0,3)+'...' : opt.name 7 opt.name=opt.name.length>3 ? opt.name.slice(0,3)+'...' : opt.name
  8 + opt.rdateStr=util.unixtoTime(opt.rdate,"MM月DD日 HH:II")
8 this.setData({ 9 this.setData({
9 sellerid:util.cache('sellerid'), 10 sellerid:util.cache('sellerid'),
10 phoneNumber:opt.phone, 11 phoneNumber:opt.phone,
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <view class="order-info"> 17 <view class="order-info">
18 <view class="flex-lr order-detail"> 18 <view class="flex-lr order-detail">
19 <view class="gray-deep-font font30r">用餐时间</view> 19 <view class="gray-deep-font font30r">用餐时间</view>
20 - <view class="black-font font34r">{{bookInfo.order_date}}{{bookInfo.order_time}}</view> 20 + <view class="black-font font34r">{{bookInfo.rdateStr}}</view>
21 </view> 21 </view>
22 <view class="flex-lr order-detail"> 22 <view class="flex-lr order-detail">
23 <view class="gray-deep-font font30r">用餐人数</view> 23 <view class="gray-deep-font font30r">用餐人数</view>
@@ -81,20 +81,10 @@ Page({ @@ -81,20 +81,10 @@ Page({
81 util.postSuccessFun=function(json,uri_code){ 81 util.postSuccessFun=function(json,uri_code){
82 switch (uri_code) { 82 switch (uri_code) {
83 case uri.CGI_USER_SETRESERVEINFO__CODE: 83 case uri.CGI_USER_SETRESERVEINFO__CODE:
  84 + wx.hideLoading()
84 if(json.ret==200){ 85 if(json.ret==200){
85 - wx.showToast({  
86 - title:'添加成功',  
87 - duration:2000,  
88 - success:function(){  
89 - setTimeout(function () {  
90 - // wx.navigateBack({  
91 - // delta: 2  
92 - // })  
93 - wx.reLaunch({  
94 - url:util.http_build_query(json.data,'b_detail')  
95 - })  
96 - },2500)  
97 - } 86 + wx.reLaunch({
  87 + url:util.http_build_query(json.data,'b_detail')
98 }) 88 })
99 } 89 }
100 break; 90 break;
@@ -213,6 +203,10 @@ Page({ @@ -213,6 +203,10 @@ Page({
213 } 203 }
214 }, 204 },
215 formsubmit:function(){ 205 formsubmit:function(){
  206 + wx.showLoading({
  207 + title:'正在预定',
  208 + mask:true
  209 + });
216 console.log(this.data.time) 210 console.log(this.data.time)
217 var formData={ 211 var formData={
218 sid:this.data.sellerid, 212 sid:this.data.sellerid,