|
@@ -10,9 +10,11 @@ Component({
|
|
|
data: {
|
|
|
accountno: "",
|
|
|
password: "",
|
|
|
+ imagecaptcha: "",
|
|
|
inputType: "password", //密码输入框类型
|
|
|
memory: true, //记忆
|
|
|
focus: false,
|
|
|
+ timestamp: ""
|
|
|
},
|
|
|
lifetimes: {
|
|
|
attached: function () {
|
|
@@ -23,9 +25,17 @@ Component({
|
|
|
setTimeout(() => {
|
|
|
this.allowOrNot();
|
|
|
}, 300)
|
|
|
+ this.setData({
|
|
|
+ timestamp: new Date().getTime()
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeTimestamp() {
|
|
|
+ this.setData({
|
|
|
+ timestamp: new Date().getTime()
|
|
|
+ })
|
|
|
+ },
|
|
|
/* input输入 */
|
|
|
inputChange(e) {
|
|
|
this.setData({
|
|
@@ -56,6 +66,7 @@ Component({
|
|
|
_Http.login({
|
|
|
"accountno": this.data.accountno,
|
|
|
"password": md5.hexMD5(this.data.password),
|
|
|
+ "imagecaptcha": this.data.imagecaptcha || '',
|
|
|
"systemclient": "wechatsaletool"
|
|
|
}).then(res => {
|
|
|
getCurrentPages()[0].setData({
|