Commit 8e5225f7 by 梁建民

js

parent 0ed6cd3f
Showing with 4 additions and 6 deletions
const http = require('../../../utils/util.js'); const http = require('../../../utils/util.js');
import { import { apis } from '../../../utils/api.js';
apis
} from '../../../utils/api.js';
Page({ Page({
...@@ -162,7 +160,7 @@ Page({ ...@@ -162,7 +160,7 @@ Page({
}); });
if (reg_mobile.test(value)) { if (reg_mobile.test(value)) {
wx.hideKeyboard(); wx.hideKeyboard();
this.setData({ this.setData({
error: false, error: false,
errorText: '', errorText: '',
...@@ -201,7 +199,7 @@ Page({ ...@@ -201,7 +199,7 @@ Page({
*/ */
formSubmit: function (e) { formSubmit: function (e) {
var self=this; var self = this;
if (this.calcForm(e.detail.value)) { if (this.calcForm(e.detail.value)) {
...@@ -210,7 +208,7 @@ Page({ ...@@ -210,7 +208,7 @@ Page({
loading: true loading: true
}); });
http.getData(apis.authlogin,'POST', e.detail.value, function (res) { http.getData(apis.authlogin, 'POST', e.detail.value, function (res) {
if (res.err_code === 0) { if (res.err_code === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment