Commit 26282ce4 by 胡悦

修改

1 parent 10232ed4
......@@ -14,27 +14,27 @@ Page({
isDisabled: true,
checkArray: [],
formData: {
storeNumber: 1,
carNumber: 1,
customNumber: 1
storeNumber: '',
carNumber: '',
customNumber: ''
}
},
// 提交
submit() {
const reg = /^[1-9]\d*$/
for(let i in this.data.formData) {
if (!reg.test(this.data.formData[i])) {
wx.showToast({
title: '请输入正整数',
icon: 'none',
duration: 1000
})
this.setData({
isDisabled: true
})
return
}
}
// for(let i in this.data.formData) {
// if (!reg.test(this.data.formData[i])) {
// wx.showToast({
// title: '请输入正整数',
// icon: 'none',
// duration: 1000
// })
// this.setData({
// isDisabled: true
// })
// return
// }
// }
if (!this.data.isDisabled) {
console.log(this.data.checkArray)
let checkArray = []
......
......@@ -85,7 +85,7 @@
<view class="card-title">
<view class="card-left">
{{n.parentName}}
<view class="card-product">{{n.name}}</view>
<view class="card-product"> {{n.tips}} {{n.name}}</view>
</view>
<view class="card-edit" data-item="{{n}}" data-index="{{j}}" bindtap="toEdit">
<image class="icon-edit" webp src="{{IMGURL}}measure/icon-edit.png?v={{img_version}}"></image>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!