| 文件名从 pages/m_user/behaviors/b_inputCheck.js 修改 |
| | |
| | | index, |
| | | mode |
| | | } = e.currentTarget.dataset |
| | | let i = e.detail.value.concat(e.detail.code) |
| | | if (mode == 'region') { |
| | | const i = e.detail.value.concat(e.detail.code) |
| | | this.setData({ |
| | | [`msg[${index}].value`]: i |
| | | }) |
| | | } else if (mode == 'selector') { |
| | | const i = e.detail.value |
| | | this.setData({ |
| | | [`msg[${index}].selectIndex`]: i, |
| | | [`msg[${index}].value`]: this.data.msg[index].options[i].value |
| | |
| | | |
| | | let msg = this.data.msg |
| | | if (msg) { |
| | | let info = {} |
| | | const info = this.data.info |
| | | msg.forEach(m => { |
| | | info[m.id] = m.value |
| | | }); |
| | | this.setData({info}) |
| | | this.triggerEvent('onSubmit', info) |
| | | this.submit() |
| | | if (typeof this._submit === 'function') this._submit() |
| | | } |
| | | }, |
| | | } |