| | |
| | | }, |
| | | onLoad(params) { |
| | | let that=this |
| | | if (this.$Route.query.id) { |
| | | this.id = this.$Route.query.id; |
| | | if (params.id) { |
| | | this.id = params.id |
| | | } |
| | | this.GetMyDelivery() |
| | | uni.getStorage({ |
| | |
| | | Object.assign(that.registerFormModel, res.data) |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | TableData:[], |
| | | rules: { |
| | | driver: { |
| | | driver: [{ |
| | | type: 'string', |
| | | required: true, |
| | | message: '请填写姓名', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | { |
| | | pattern: /^[\u4e00-\u9fa5\s]+$/, |
| | | message: '姓名只能是中文', |
| | | trigger: ['blur', 'change'] |
| | | }], |
| | | idNumber: [{ |
| | | type: 'string', |
| | | required: true, |
| | |
| | | }); |
| | | if (res.code === 0) { |
| | | uni.$u.toast('预约成功') |
| | | |
| | | this.GetMyDelivery() |
| | | } else { |
| | | uni.$u.toast(res.msg ? res.msg : '预约失败') |
| | | } |