|
...
|
...
|
@@ -7,7 +7,8 @@ Page({ |
|
|
|
actionSheetHidden:true,
|
|
|
|
actionSheetItems:['客户取消','客户行程改变']
|
|
|
|
},
|
|
|
|
onLoad:function (opt) {
|
|
|
|
sc:{},
|
|
|
|
onLoad:async function (opt) {
|
|
|
|
util.setBarTitle('预定详情');
|
|
|
|
console.log(opt)
|
|
|
|
this.getDetail(opt.id);
|
|
...
|
...
|
@@ -17,6 +18,9 @@ Page({ |
|
|
|
console.log(res)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
let enter_params=util.cache('enter_params');
|
|
|
|
this.sc=(await App.Reserve.SellerInfo(enter_params)).data;
|
|
|
|
console.log('this.sc',this.sc);
|
|
|
|
this.chooseManagerInit();
|
|
|
|
},
|
|
|
|
onShow:function(){
|
|
...
|
...
|
@@ -31,7 +35,7 @@ Page({ |
|
|
|
var path='/pages/customer/index?id='+this.data.bookInfo.id;
|
|
|
|
let nickname="";
|
|
|
|
try{
|
|
|
|
nickname='"'+util.cache('sellerInfo').seller_user.nickname+'"';
|
|
|
|
nickname='"'+this.sc.seller_user.nickname+'"';
|
|
|
|
}catch(e){}
|
|
|
|
let imageUrl=util.cgi('index.php?service=App.Reserve.MakePic&rid=').replace('?s=','')+obj.id
|
|
|
|
console.log('App.Reserve.MakePic',imageUrl);
|
|
...
|
...
|
@@ -63,7 +67,7 @@ Page({ |
|
|
|
},
|
|
|
|
chooseManagerInit(){
|
|
|
|
try{
|
|
|
|
let managers=util.cache('sellerInfo').manager;
|
|
|
|
let managers=this.sc.manager;
|
|
|
|
let mans=[];
|
|
|
|
if(managers.length>0){
|
|
|
|
managers.forEach(man=>{
|
|
...
|
...
|
@@ -82,7 +86,7 @@ Page({ |
|
|
|
let mansIndex=util.val(e);
|
|
|
|
this.setData({mansIndex:mansIndex});
|
|
|
|
try{
|
|
|
|
let managers=util.cache('sellerInfo').manager;
|
|
|
|
let managers=this.sc.manager;
|
|
|
|
let man=managers[mansIndex];
|
|
|
|
if(man){
|
|
|
|
App.Reserve.SetReserveCusman({
|
|
...
|
...
|
@@ -102,9 +106,7 @@ Page({ |
|
|
|
|
|
|
|
},
|
|
|
|
flushSellerInfo(){
|
|
|
|
App.Reserve.SellerInfo(util.cache('enter_params'),true).then(res=>{
|
|
|
|
util.cache('sellerInfo',res.data)
|
|
|
|
})
|
|
|
|
App.Reserve.SellerInfo(util.cache('enter_params'),true);
|
|
|
|
},
|
|
|
|
detailData:null,
|
|
|
|
getDetail(id,force=false){
|
...
|
...
|
|