|
...
|
...
|
@@ -26,16 +26,20 @@ Page({ |
|
|
|
reservePhonesMap:[],
|
|
|
|
reservePhones:[],
|
|
|
|
note_name:'',
|
|
|
|
note_phone:'',
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
options:{},
|
|
|
|
onLoad: function (options) {
|
|
|
|
onLoad: async function (options) {
|
|
|
|
this.options=options;
|
|
|
|
if(options.hasScene!=1){
|
|
|
|
App.Reserve.SellerInfo(util.cache('enter_params')).then(res=>{
|
|
|
|
this.note_name=res.data.seller_user.nickname;
|
|
|
|
})
|
|
|
|
let enter_params=util.cache('enter_params');
|
|
|
|
if(enter_params){
|
|
|
|
try{
|
|
|
|
let si=await App.Reserve.SellerInfo(enter_params);
|
|
|
|
this.note_name=si.data.seller_user.nick_name||res.data.seller_user.nickname;
|
|
|
|
this.note_phone=si.data.seller_user.phone;
|
|
|
|
}catch (e){}
|
|
|
|
}
|
|
|
|
App.Reserve.GetReservePhones({sid:options.seller_id}).then(res=>{
|
|
|
|
//this.reservePhones=res.data;
|
|
...
|
...
|
@@ -52,7 +56,9 @@ Page({ |
|
|
|
this.reservePhones=reservePhones.toString();
|
|
|
|
this.setData({
|
|
|
|
options:options,
|
|
|
|
[`form.send_total`]:reservePhonesMap.length
|
|
|
|
[`form.send_total`]:reservePhonesMap.length,
|
|
|
|
[`form.name`]:this.note_name,
|
|
|
|
[`form.phone`]:this.note_phone,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
...
|
...
|
|