Showing
5 changed files
with
19 additions
and
2 deletions
| @@ -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 | ] |
-
Please register or login to post a comment