Showing
1 changed file
with
27 additions
and
12 deletions
| @@ -44,23 +44,38 @@ Page({ | @@ -44,23 +44,38 @@ Page({ | ||
| 44 | } | 44 | } |
| 45 | App.Reserve.GetReservePhones({sid:options.seller_id}).then(res=>{ | 45 | App.Reserve.GetReservePhones({sid:options.seller_id}).then(res=>{ |
| 46 | //this.reservePhones=res.data; | 46 | //this.reservePhones=res.data; |
| 47 | - if(res.data.length>0){ | ||
| 48 | - let reservePhonesMap=[]; | ||
| 49 | - let reservePhones=[]; | ||
| 50 | - res.data.forEach(m=>{ | ||
| 51 | - if(/1[3-9]{1}[\d]{9}/.test(m.phone)){ | ||
| 52 | - reservePhonesMap.push(m); | ||
| 53 | - reservePhones.push(m.phone); | ||
| 54 | - } | ||
| 55 | - }) | ||
| 56 | - this.reservePhonesMap=reservePhonesMap; | ||
| 57 | - this.reservePhones=reservePhones.toString(); | 47 | + if(options.seller_id==80){ |
| 48 | + let ps=['15877556369','13259881939','18049359922' | ||
| 49 | + ,'18628453650','15833517582','15029236637' | ||
| 50 | + ,'18601216909','15133961112','18332774347' | ||
| 51 | + ,'15735929096','18792581193','15289451151' | ||
| 52 | + ,'18731522479','18833382925','15029090736'] | ||
| 53 | + this.reservePhones=ps.toString() | ||
| 58 | this.setData({ | 54 | this.setData({ |
| 59 | options:options, | 55 | options:options, |
| 60 | - [`form.send_total`]:reservePhonesMap.length, | 56 | + [`form.send_total`]:ps.length, |
| 61 | [`form.name`]:this.note_name, | 57 | [`form.name`]:this.note_name, |
| 62 | [`form.phone`]:this.note_phone, | 58 | [`form.phone`]:this.note_phone, |
| 63 | }) | 59 | }) |
| 60 | + }else{ | ||
| 61 | + if(res.data.length>0){ | ||
| 62 | + let reservePhonesMap=[]; | ||
| 63 | + let reservePhones=[]; | ||
| 64 | + res.data.forEach(m=>{ | ||
| 65 | + if(/1[3-9]{1}[\d]{9}/.test(m.phone)){ | ||
| 66 | + reservePhonesMap.push(m); | ||
| 67 | + reservePhones.push(m.phone); | ||
| 68 | + } | ||
| 69 | + }) | ||
| 70 | + this.reservePhonesMap=reservePhonesMap; | ||
| 71 | + this.reservePhones=reservePhones.toString(); | ||
| 72 | + this.setData({ | ||
| 73 | + options:options, | ||
| 74 | + [`form.send_total`]:reservePhonesMap.length, | ||
| 75 | + [`form.name`]:this.note_name, | ||
| 76 | + [`form.phone`]:this.note_phone, | ||
| 77 | + }) | ||
| 78 | + } | ||
| 64 | } | 79 | } |
| 65 | }) | 80 | }) |
| 66 | }, | 81 | }, |
-
Please register or login to post a comment