| | |
| | | }, |
| | | getList(obj) { |
| | | $api.ajax( |
| | | '/sib/xcx/order/hbCreateInit', |
| | | '/zic/order/hbCreateInit', |
| | | 'POST', |
| | | (res) => { |
| | | this.setData({ |
| | |
| | | }, |
| | | orderhbTrial() { |
| | | $api.ajax( |
| | | '/sib/xcx/order/hbTrial', |
| | | '/zic/order/hbTrial', |
| | | 'POST', |
| | | (res) => { |
| | | let body = res.data.body |
| | |
| | | }); |
| | | return |
| | | } |
| | | if (!validator.checkPhone(info.userMblNo)) { |
| | | my.showToast({ |
| | | type: 'none', |
| | | content: '请输入正确的客户手机号', |
| | | duration: 2000, |
| | | }); |
| | | return |
| | | } |
| | | my.scan({ |
| | | scanType: ['qrCode', 'barCode'], |
| | | success: (res) => { |
| | | console.log(res) |
| | | $api.ajax( |
| | | '/sib/xcx/order/createHb', |
| | | '/zic/order/createHb', |
| | | 'POST', |
| | | (res) => { |
| | | my.reLaunch({ |
| | |
| | | }); |
| | | return |
| | | } |
| | | if (!validator.checkPhone(info.userMblNo)) { |
| | | my.showToast({ |
| | | type: 'none', |
| | | content: '请输入正确的客户手机号', |
| | | duration: 2000, |
| | | }); |
| | | return |
| | | } |
| | | let str = JSON.stringify(this.data.info) |
| | | my.navigateTo({ |
| | | url: `../qrCode/qrCode?info=${str}` |