diff --git a/components/vehicle-keyboard/index.js b/components/vehicle-keyboard/index.js index d52c68f..55bd1d0 100644 --- a/components/vehicle-keyboard/index.js +++ b/components/vehicle-keyboard/index.js @@ -37,6 +37,8 @@ Component({ if(number && number.length == 7){ this.data.plateNumber = number.split('') index = this.data.plateNumber.length - 1 + } else { + this.data.plateNumber = ["", "", "", "", "", "", ""] } this.data.type = type this.updateNumber() diff --git a/pages/agent/appointment/index.js b/pages/agent/appointment/index.js index fbb7ff8..08b5dc9 100644 --- a/pages/agent/appointment/index.js +++ b/pages/agent/appointment/index.js @@ -112,6 +112,12 @@ Scene({ this.data.timeList.push(util.formatDate(day, 'Y-M-D')) } }, + onInput: function(e){ + if(!util.isEmpty(e.currentTarget.id)){ + var form_data = 'form.' + e.currentTarget.id + this.setData({ [form_data]: e.detail }) + } + }, bindInput: function (e) { if(!util.isEmpty(e.currentTarget.id)){ var form_data = 'form.' + e.currentTarget.id @@ -272,7 +278,7 @@ Scene({ this.setData({ show: false }) wx.navigateBack() }, - onInput: function(){ + onCodeing: function(){ if(util.isEmpty(this.data.code)){ util.showToast('请输入邀请码') this.setData({ show: true }) diff --git a/pages/agent/appointment/index.wxml b/pages/agent/appointment/index.wxml index d15b7a4..8ec7920 100644 --- a/pages/agent/appointment/index.wxml +++ b/pages/agent/appointment/index.wxml @@ -18,7 +18,7 @@ 纸品信息 - + 纸厂名称 {{factoryDetail.name}} @@ -30,45 +30,26 @@ {{cateName || '请选择品类'}} - - - - 预估单价(元/吨): - + + + 预估单价(元/吨) + {{formate.formatePrice(form.unitPrice)}} (已含补贴{{formate.formatePrice(form.publicSubsidies)}}元/吨) + + + + + 预估重量(吨) - - 预估重量(吨): - - - - - 货到时间: - - {{form.deliveryTime||'请选择货到时间'}} - - - + + + + 货到时间 + {{form.deliveryTime||'请选择货到时间'}} - + @@ -79,23 +60,21 @@ {{item.plateNumber}} - - - - {{index + 1}} - 货车车牌: - - {{item.plateNumber||'点击输入车牌号码'}} - + + + + {{index + 1}} + 货车车牌: + + {{item.plateNumber || '点击输入车牌号码'}} + - - - 添加车辆 - + + + + 添加车辆 - 其他信息 @@ -115,7 +94,7 @@ - + diff --git a/pages/login/index.js b/pages/login/index.js index d7e9068..9b39e8f 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -180,6 +180,7 @@ Page({ if(applicationStatus == -1){ this.setData({ loging: false}) Dialog.alert({ title: '温馨提示', message: '还没有您所属的打包站信息,请联系相关客服人员' }).then(() => { + wx.redirectTo({ url: '/pages/agent/appointment/index' }) }) return } @@ -196,7 +197,6 @@ Page({ }) } }).catch(err => { - console.log(err) if(err.code == 400){ util.showToast('获取用户信息失败,请注册登录') this.setData({ loging: false, regist: true})