Commit 2fe32d8400c3e37e87044d4e4e65260976011741

Authored by wangfan
1 parent 64968d36

most_pnum

... ... @@ -91,6 +91,7 @@ Page({
cusman:man.user_name,
cusman_phone:man.user_phone?man.user_phone:'',
cusman_account:man.user_wechat?man.user_wechat:'',
cusman_openid:man.seat_openid?man.seat_openid:''
}).then(()=>{
this.getDetail(this.data.bookInfo.id,true);
});
... ... @@ -98,7 +99,13 @@ Page({
}catch(e){
console.log(e);
}
},
flushSellerInfo(){
App.Reserve.SellerInfo(util.cache('enter_params'),true).then(res=>{
util.cache('sellerInfo',res.data)
})
},
detailData:null,
getDetail(id,force=false){
App.Reserve.Detail({rid:id,openid:''},force).then(res=>{
... ...
... ... @@ -41,7 +41,7 @@
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">客户经理</view>
<view class="flex-lr black-font font34r" style=" border-bottom: 2rpx solid #999;">
<picker bindchange="chooseManager" value="{{mansIndex}}" range="{{mans}}">
<picker bindchange="chooseManager" catchtap="flushSellerInfo" value="{{mansIndex}}" range="{{mans}}">
<view class="picker">
{{mans[mansIndex]?mans[mansIndex]:bookInfo.cusman?bookInfo.cusman:'请选择'}}
</view>
... ...
... ... @@ -61,9 +61,14 @@ Page({
let openid=getApp().openid;
if(openid && this.indexOpt.seller_id){
App.Reserve.SellerForOpenid({openid:openid,sedata:JSON.stringify(this.indexOpt)})
//客户经理
if(this.indexOpt.manager_id){
App.Reserve.UpdateSellerUser({seat_openid:openid,kid:this.indexOpt.manager_id});
}
}else{
console.log('index-opt',openid,this.indexOpt);
}
},1000);
},
async getbooklist(){
... ...
... ... @@ -199,7 +199,7 @@
"id": 21,
"name": "预定本-80商家",
"pathName": "pages/book/b_index",
"query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=",
"query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=1859",
"scene": "1001"
}
]
... ...
... ... @@ -74,4 +74,9 @@ export default {
//进行商户判断
'App.Reserve.SellerForOpenid':null,
//商户端账号表增加订座儿openid
'App.Reserve.UpdateSellerUser':{
cachetime:86400,
}
}
\ No newline at end of file
... ...