|
...
|
...
|
@@ -44,23 +44,38 @@ Page({ |
|
|
|
}
|
|
|
|
App.Reserve.GetReservePhones({sid:options.seller_id}).then(res=>{
|
|
|
|
//this.reservePhones=res.data;
|
|
|
|
if(res.data.length>0){
|
|
|
|
let reservePhonesMap=[];
|
|
|
|
let reservePhones=[];
|
|
|
|
res.data.forEach(m=>{
|
|
|
|
if(/1[3-9]{1}[\d]{9}/.test(m.phone)){
|
|
|
|
reservePhonesMap.push(m);
|
|
|
|
reservePhones.push(m.phone);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
this.reservePhonesMap=reservePhonesMap;
|
|
|
|
this.reservePhones=reservePhones.toString();
|
|
|
|
if(options.seller_id==80){
|
|
|
|
let ps=['15877556369','13259881939','18049359922'
|
|
|
|
,'18628453650','15833517582','15029236637'
|
|
|
|
,'18601216909','15133961112','18332774347'
|
|
|
|
,'15735929096','18792581193','15289451151'
|
|
|
|
,'18731522479','18833382925','15029090736']
|
|
|
|
this.reservePhones=ps.toString()
|
|
|
|
this.setData({
|
|
|
|
options:options,
|
|
|
|
[`form.send_total`]:reservePhonesMap.length,
|
|
|
|
[`form.send_total`]:ps.length,
|
|
|
|
[`form.name`]:this.note_name,
|
|
|
|
[`form.phone`]:this.note_phone,
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
if(res.data.length>0){
|
|
|
|
let reservePhonesMap=[];
|
|
|
|
let reservePhones=[];
|
|
|
|
res.data.forEach(m=>{
|
|
|
|
if(/1[3-9]{1}[\d]{9}/.test(m.phone)){
|
|
|
|
reservePhonesMap.push(m);
|
|
|
|
reservePhones.push(m.phone);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
this.reservePhonesMap=reservePhonesMap;
|
|
|
|
this.reservePhones=reservePhones.toString();
|
|
|
|
this.setData({
|
|
|
|
options:options,
|
|
|
|
[`form.send_total`]:reservePhonesMap.length,
|
|
|
|
[`form.name`]:this.note_name,
|
|
|
|
[`form.phone`]:this.note_phone,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
...
|
...
|
|