|
@@ -60,22 +60,22 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onLoad: function (options) { |
|
|
|
|
|
|
|
|
onLoad: function(options) { |
|
|
let that = this; |
|
|
let that = this; |
|
|
|
|
|
|
|
|
if (Object.keys(options).length!=0){ |
|
|
|
|
|
|
|
|
if (Object.keys(options).length != 0) { |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
flags: options.flags |
|
|
flags: options.flags |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
jumpTo: function () { |
|
|
|
|
|
|
|
|
jumpTo: function() { |
|
|
// 返回 |
|
|
// 返回 |
|
|
wx.navigateBack({ |
|
|
wx.navigateBack({ |
|
|
url: '/index/passCar' |
|
|
url: '/index/passCar' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
handleTap: function (e) { |
|
|
|
|
|
|
|
|
handleTap: function(e) { |
|
|
this.buttonStatus(); |
|
|
this.buttonStatus(); |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
choose: e.target.dataset.cardata, |
|
|
choose: e.target.dataset.cardata, |
|
@@ -116,7 +116,7 @@ Page({ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
chooseNum: function (e) { |
|
|
|
|
|
|
|
|
chooseNum: function(e) { |
|
|
if (e.target.dataset.msg == 'I') { |
|
|
if (e.target.dataset.msg == 'I') { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
@@ -340,7 +340,7 @@ Page({ |
|
|
this.buttonStatus(); |
|
|
this.buttonStatus(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submit: function () { |
|
|
|
|
|
|
|
|
submit: function() { |
|
|
if (this.data.title != "" && this.data.numFir != "" && this.data.numSco != "" && this.data.numThr != "" && this.data.numFor != "" && this.data.numFive != "" && this.data.numSix != "") { |
|
|
if (this.data.title != "" && this.data.numFir != "" && this.data.numSco != "" && this.data.numThr != "" && this.data.numFor != "" && this.data.numFive != "" && this.data.numSix != "") { |
|
|
var carNumber = '' |
|
|
var carNumber = '' |
|
|
carNumber += this.data.title + this.data.numFir + this.data.numSco + this.data.numThr + this.data.numFor + this.data.numFive + this.data.numSix |
|
|
carNumber += this.data.title + this.data.numFir + this.data.numSco + this.data.numThr + this.data.numFor + this.data.numFive + this.data.numSix |
|
@@ -351,12 +351,11 @@ Page({ |
|
|
prevPage.setData({ |
|
|
prevPage.setData({ |
|
|
addCar: carNumber |
|
|
addCar: carNumber |
|
|
}) |
|
|
}) |
|
|
if (this.data.flags =='managepalte'){ |
|
|
|
|
|
|
|
|
if (this.data.flags == 'managepalte') { |
|
|
wx.navigateBack({ |
|
|
wx.navigateBack({ |
|
|
url: '/pages/managelicenseplate/managelicenseplate?addcar=' + carNumber, |
|
|
url: '/pages/managelicenseplate/managelicenseplate?addcar=' + carNumber, |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
wx.navigateBack({ |
|
|
wx.navigateBack({ |
|
|
url: '/index/passCar?addcar=' + carNumber, |
|
|
url: '/index/passCar?addcar=' + carNumber, |
|
|
}) |
|
|
}) |
|
@@ -364,7 +363,7 @@ Page({ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
buttonStatus: function () { |
|
|
|
|
|
|
|
|
buttonStatus: function() { |
|
|
if (this.data.title != "" && this.data.numFir != "" && this.data.numSco != "" && this.data.numThr != "" && this.data.numFor != "" && this.data.numFive != "" && this.data.numSix != "") { |
|
|
if (this.data.title != "" && this.data.numFir != "" && this.data.numSco != "" && this.data.numThr != "" && this.data.numFor != "" && this.data.numFive != "" && this.data.numSix != "") { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
buttonStatus: true |
|
|
buttonStatus: true |
|
@@ -375,5 +374,4 @@ Page({ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |