Commit 0f6210de9bf1ff4690545bc124fe204f72c2fb9b

Authored by vking
1 parent e298f080

周到安排

@@ -16,7 +16,7 @@ Component({ @@ -16,7 +16,7 @@ Component({
16 pi: 0, 16 pi: 0,
17 dot:0, 17 dot:0,
18 hasEditorFlag:false,//添加预订 18 hasEditorFlag:false,//添加预订
19 - hasReserveOrder:true,//运营处理在线预订 19 + hasReserveOrder:false,//运营处理在线预订
20 tabsHidden:true, 20 tabsHidden:true,
21 }, 21 },
22 attached(){ 22 attached(){
@@ -28,6 +28,7 @@ Component({ @@ -28,6 +28,7 @@ Component({
28 }) 28 })
29 }, 29 },
30 ready(){ 30 ready(){
  31 + this.VerificationIsAdmin()
31 this.hasDot() 32 this.hasDot()
32 this.hasEditor(); 33 this.hasEditor();
33 }, 34 },
@@ -66,5 +67,16 @@ Component({ @@ -66,5 +67,16 @@ Component({
66 }) 67 })
67 }) 68 })
68 }, 69 },
  70 + VerificationIsAdmin(){
  71 + gl.VerificationIsAdmin().then(()=>{
  72 + this.setData({
  73 + hasReserveOrder:true,
  74 + })
  75 + }).catch(()=>{
  76 + this.setData({
  77 + hasReserveOrder:false,
  78 + })
  79 + })
  80 + },
69 } 81 }
70 }) 82 })
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <formids wx:if="{{hasReserveOrder}}" class="item flex-vc" bindtap="redirectTo" data-url="/pack-book/pages/book/b_reserve"> 10 <formids wx:if="{{hasReserveOrder}}" class="item flex-vc" bindtap="redirectTo" data-url="/pack-book/pages/book/b_reserve">
11 <view class="flex-vc {{pi=='b_reserve'?'checked':''}}"> 11 <view class="flex-vc {{pi=='b_reserve'?'checked':''}}">
12 <view class="icon order"></view> 12 <view class="icon order"></view>
13 - <view class="text">待确认</view> 13 + <view class="text">在线预订</view>
14 </view> 14 </view>
15 </formids> 15 </formids>
16 <formids class="item flex-vc" bindtap="redirectTo" data-url="/pack-book/pages/book/b_index"> 16 <formids class="item flex-vc" bindtap="redirectTo" data-url="/pack-book/pages/book/b_index">
1 import App from '../utils/api' 1 import App from '../utils/api'
2 import util from '../utils/util' 2 import util from '../utils/util'
  3 +
3 const {regeneratorRuntime} = global 4 const {regeneratorRuntime} = global
4 -module.exports ={  
5 - getHasEditorFlag(){  
6 - return new Promise(async function(success,fail){  
7 - let enter_params=util.cache('enter_params');  
8 - let res=await App.Reserve.SellerInfo(enter_params)  
9 - if(res.data.config.is_auth==1){  
10 - success()  
11 - }else{  
12 - fail()  
13 - }  
14 - })  
15 - }, 5 +module.exports = {
  6 + getHasEditorFlag() {
  7 + return new Promise(async function (success, fail) {
  8 + let enter_params = util.cache('enter_params');
  9 + let res = await App.Reserve.SellerInfo(enter_params)
  10 + if (res.data.config.is_auth == 1) {
  11 + success()
  12 + } else {
  13 + fail()
  14 + }
  15 + })
  16 + },
  17 + VerificationIsAdmin() {
  18 + //App.Seller.VerificationIsAdmin
  19 + return new Promise(async function (success, fail) {
  20 + let enter_params = util.cache('enter_params');
  21 + let res = await App.Seller.VerificationIsAdmin({openid:enter_params.seller_openid})
  22 + if (res.data && res.data.status==1) {
  23 + success()
  24 + } else {
  25 + fail()
  26 + }
  27 + })
  28 + }
16 } 29 }
1 <!--pack-book/pages/book/b_reserve.wxml--> 1 <!--pack-book/pages/book/b_reserve.wxml-->
2 <wxs src="../../../utils/util.wxs" module="util" /> 2 <wxs src="../../../utils/util.wxs" module="util" />
3 -<nav id="nav" backgroundColor="#199095" color="#fefefe">在线预定</nav> 3 +<nav id="nav" backgroundColor="#199095" color="#fefefe">在线预订</nav>
4 <view class="tabs flex-lr"> 4 <view class="tabs flex-lr">
5 <view class="item {{activeType==1?'active':''}}" bindtap="switchTab" data-type="1">待处理</view> 5 <view class="item {{activeType==1?'active':''}}" bindtap="switchTab" data-type="1">待处理</view>
6 <view class="item {{activeType==2?'active':''}}" bindtap="switchTab" data-type="2">已处理</view> 6 <view class="item {{activeType==2?'active':''}}" bindtap="switchTab" data-type="2">已处理</view>
@@ -317,6 +317,11 @@ export default { @@ -317,6 +317,11 @@ export default {
317 'App.Seller.SetTableClassFull':null, 317 'App.Seller.SetTableClassFull':null,
318 318
319 //获取包间置满日期 319 //获取包间置满日期
320 - 'App.Customer.GetTableFillUpDate':null 320 + 'App.Customer.GetTableFillUpDate':null,
  321 +
  322 + //提供openid获取身份信息
  323 + 'App.Seller.VerificationIsAdmin':{
  324 + cachetime: 1800,
  325 + },
321 326
322 } 327 }