Commit 2fe32d8400c3e37e87044d4e4e65260976011741

Authored by wangfan
1 parent 64968d36

most_pnum

@@ -91,6 +91,7 @@ Page({ @@ -91,6 +91,7 @@ Page({
91 cusman:man.user_name, 91 cusman:man.user_name,
92 cusman_phone:man.user_phone?man.user_phone:'', 92 cusman_phone:man.user_phone?man.user_phone:'',
93 cusman_account:man.user_wechat?man.user_wechat:'', 93 cusman_account:man.user_wechat?man.user_wechat:'',
  94 + cusman_openid:man.seat_openid?man.seat_openid:''
94 }).then(()=>{ 95 }).then(()=>{
95 this.getDetail(this.data.bookInfo.id,true); 96 this.getDetail(this.data.bookInfo.id,true);
96 }); 97 });
@@ -98,7 +99,13 @@ Page({ @@ -98,7 +99,13 @@ Page({
98 }catch(e){ 99 }catch(e){
99 console.log(e); 100 console.log(e);
100 } 101 }
  102 +
101 }, 103 },
  104 + flushSellerInfo(){
  105 + App.Reserve.SellerInfo(util.cache('enter_params'),true).then(res=>{
  106 + util.cache('sellerInfo',res.data)
  107 + })
  108 + },
102 detailData:null, 109 detailData:null,
103 getDetail(id,force=false){ 110 getDetail(id,force=false){
104 App.Reserve.Detail({rid:id,openid:''},force).then(res=>{ 111 App.Reserve.Detail({rid:id,openid:''},force).then(res=>{
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 <view class="flex-lr order-detail"> 41 <view class="flex-lr order-detail">
42 <view class="gray-deep-font font30r">客户经理</view> 42 <view class="gray-deep-font font30r">客户经理</view>
43 <view class="flex-lr black-font font34r" style=" border-bottom: 2rpx solid #999;"> 43 <view class="flex-lr black-font font34r" style=" border-bottom: 2rpx solid #999;">
44 - <picker bindchange="chooseManager" value="{{mansIndex}}" range="{{mans}}"> 44 + <picker bindchange="chooseManager" catchtap="flushSellerInfo" value="{{mansIndex}}" range="{{mans}}">
45 <view class="picker"> 45 <view class="picker">
46 {{mans[mansIndex]?mans[mansIndex]:bookInfo.cusman?bookInfo.cusman:'请选择'}} 46 {{mans[mansIndex]?mans[mansIndex]:bookInfo.cusman?bookInfo.cusman:'请选择'}}
47 </view> 47 </view>
@@ -61,9 +61,14 @@ Page({ @@ -61,9 +61,14 @@ Page({
61 let openid=getApp().openid; 61 let openid=getApp().openid;
62 if(openid && this.indexOpt.seller_id){ 62 if(openid && this.indexOpt.seller_id){
63 App.Reserve.SellerForOpenid({openid:openid,sedata:JSON.stringify(this.indexOpt)}) 63 App.Reserve.SellerForOpenid({openid:openid,sedata:JSON.stringify(this.indexOpt)})
  64 + //客户经理
  65 + if(this.indexOpt.manager_id){
  66 + App.Reserve.UpdateSellerUser({seat_openid:openid,kid:this.indexOpt.manager_id});
  67 + }
64 }else{ 68 }else{
65 console.log('index-opt',openid,this.indexOpt); 69 console.log('index-opt',openid,this.indexOpt);
66 } 70 }
  71 +
67 },1000); 72 },1000);
68 }, 73 },
69 async getbooklist(){ 74 async getbooklist(){
@@ -199,7 +199,7 @@ @@ -199,7 +199,7 @@
199 "id": 21, 199 "id": 21,
200 "name": "预定本-80商家", 200 "name": "预定本-80商家",
201 "pathName": "pages/book/b_index", 201 "pathName": "pages/book/b_index",
202 - "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=", 202 + "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=1859",
203 "scene": "1001" 203 "scene": "1001"
204 } 204 }
205 ] 205 ]
@@ -74,4 +74,9 @@ export default { @@ -74,4 +74,9 @@ export default {
74 //进行商户判断 74 //进行商户判断
75 'App.Reserve.SellerForOpenid':null, 75 'App.Reserve.SellerForOpenid':null,
76 76
  77 + //商户端账号表增加订座儿openid
  78 + 'App.Reserve.UpdateSellerUser':{
  79 + cachetime:86400,
  80 + }
  81 +
77 } 82 }