Commit 26282ce4 by 胡悦

修改

1 parent 10232ed4
...@@ -14,27 +14,27 @@ Page({ ...@@ -14,27 +14,27 @@ Page({
isDisabled: true, isDisabled: true,
checkArray: [], checkArray: [],
formData: { formData: {
storeNumber: 1, storeNumber: '',
carNumber: 1, carNumber: '',
customNumber: 1 customNumber: ''
} }
}, },
// 提交 // 提交
submit() { submit() {
const reg = /^[1-9]\d*$/ const reg = /^[1-9]\d*$/
for(let i in this.data.formData) { // for(let i in this.data.formData) {
if (!reg.test(this.data.formData[i])) { // if (!reg.test(this.data.formData[i])) {
wx.showToast({ // wx.showToast({
title: '请输入正整数', // title: '请输入正整数',
icon: 'none', // icon: 'none',
duration: 1000 // duration: 1000
}) // })
this.setData({ // this.setData({
isDisabled: true // isDisabled: true
}) // })
return // return
} // }
} // }
if (!this.data.isDisabled) { if (!this.data.isDisabled) {
console.log(this.data.checkArray) console.log(this.data.checkArray)
let checkArray = [] let checkArray = []
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<view class="card-title"> <view class="card-title">
<view class="card-left"> <view class="card-left">
{{n.parentName}} {{n.parentName}}
<view class="card-product">{{n.name}}</view> <view class="card-product"> {{n.tips}} {{n.name}}</view>
</view> </view>
<view class="card-edit" data-item="{{n}}" data-index="{{j}}" bindtap="toEdit"> <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> <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!