|
@@ -7,7 +7,8 @@ Page({ |
|
@@ -7,7 +7,8 @@ Page({ |
|
7
|
actionSheetHidden:true,
|
7
|
actionSheetHidden:true,
|
|
8
|
actionSheetItems:['客户取消','客户行程改变']
|
8
|
actionSheetItems:['客户取消','客户行程改变']
|
|
9
|
},
|
9
|
},
|
|
10
|
- onLoad:function (opt) {
|
10
|
+ sc:{},
|
|
|
|
11
|
+ onLoad:async function (opt) {
|
|
11
|
util.setBarTitle('预定详情');
|
12
|
util.setBarTitle('预定详情');
|
|
12
|
console.log(opt)
|
13
|
console.log(opt)
|
|
13
|
this.getDetail(opt.id);
|
14
|
this.getDetail(opt.id);
|
|
@@ -17,6 +18,9 @@ Page({ |
|
@@ -17,6 +18,9 @@ Page({ |
|
17
|
console.log(res)
|
18
|
console.log(res)
|
|
18
|
}
|
19
|
}
|
|
19
|
})
|
20
|
})
|
|
|
|
21
|
+ let enter_params=util.cache('enter_params');
|
|
|
|
22
|
+ this.sc=(await App.Reserve.SellerInfo(enter_params)).data;
|
|
|
|
23
|
+ console.log('this.sc',this.sc);
|
|
20
|
this.chooseManagerInit();
|
24
|
this.chooseManagerInit();
|
|
21
|
},
|
25
|
},
|
|
22
|
onShow:function(){
|
26
|
onShow:function(){
|
|
@@ -31,7 +35,7 @@ Page({ |
|
@@ -31,7 +35,7 @@ Page({ |
|
31
|
var path='/pages/customer/index?id='+this.data.bookInfo.id;
|
35
|
var path='/pages/customer/index?id='+this.data.bookInfo.id;
|
|
32
|
let nickname="";
|
36
|
let nickname="";
|
|
33
|
try{
|
37
|
try{
|
|
34
|
- nickname='"'+util.cache('sellerInfo').seller_user.nickname+'"';
|
38
|
+ nickname='"'+this.sc.seller_user.nickname+'"';
|
|
35
|
}catch(e){}
|
39
|
}catch(e){}
|
|
36
|
let imageUrl=util.cgi('index.php?service=App.Reserve.MakePic&rid=').replace('?s=','')+obj.id
|
40
|
let imageUrl=util.cgi('index.php?service=App.Reserve.MakePic&rid=').replace('?s=','')+obj.id
|
|
37
|
console.log('App.Reserve.MakePic',imageUrl);
|
41
|
console.log('App.Reserve.MakePic',imageUrl);
|
|
@@ -63,7 +67,7 @@ Page({ |
|
@@ -63,7 +67,7 @@ Page({ |
|
63
|
},
|
67
|
},
|
|
64
|
chooseManagerInit(){
|
68
|
chooseManagerInit(){
|
|
65
|
try{
|
69
|
try{
|
|
66
|
- let managers=util.cache('sellerInfo').manager;
|
70
|
+ let managers=this.sc.manager;
|
|
67
|
let mans=[];
|
71
|
let mans=[];
|
|
68
|
if(managers.length>0){
|
72
|
if(managers.length>0){
|
|
69
|
managers.forEach(man=>{
|
73
|
managers.forEach(man=>{
|
|
@@ -82,7 +86,7 @@ Page({ |
|
@@ -82,7 +86,7 @@ Page({ |
|
82
|
let mansIndex=util.val(e);
|
86
|
let mansIndex=util.val(e);
|
|
83
|
this.setData({mansIndex:mansIndex});
|
87
|
this.setData({mansIndex:mansIndex});
|
|
84
|
try{
|
88
|
try{
|
|
85
|
- let managers=util.cache('sellerInfo').manager;
|
89
|
+ let managers=this.sc.manager;
|
|
86
|
let man=managers[mansIndex];
|
90
|
let man=managers[mansIndex];
|
|
87
|
if(man){
|
91
|
if(man){
|
|
88
|
App.Reserve.SetReserveCusman({
|
92
|
App.Reserve.SetReserveCusman({
|
|
@@ -102,9 +106,7 @@ Page({ |
|
@@ -102,9 +106,7 @@ Page({ |
|
102
|
|
106
|
|
|
103
|
},
|
107
|
},
|
|
104
|
flushSellerInfo(){
|
108
|
flushSellerInfo(){
|
|
105
|
- App.Reserve.SellerInfo(util.cache('enter_params'),true).then(res=>{
|
|
|
|
106
|
- util.cache('sellerInfo',res.data)
|
|
|
|
107
|
- })
|
109
|
+ App.Reserve.SellerInfo(util.cache('enter_params'),true);
|
|
108
|
},
|
110
|
},
|
|
109
|
detailData:null,
|
111
|
detailData:null,
|
|
110
|
getDetail(id,force=false){
|
112
|
getDetail(id,force=false){
|