Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8e5225f7
authored
Jul 26, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
0ed6cd3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
pages/person/login/index.js
pages/person/login/index.js
View file @
8e5225f7
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment