Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FlashMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
FlashMan
Commits
d5f1126d
Commit
d5f1126d
authored
Oct 17, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
8fcc29ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
SametradeZW.js
pages/product/SametradeZW/SametradeZW.js
+7
-5
No files found.
pages/product/SametradeZW/SametradeZW.js
View file @
d5f1126d
...
...
@@ -82,7 +82,11 @@ Page({
}
},
phone
:
function
(
e
){
if
(
e
.
detail
.
value
.
length
==
11
){
let
val
=
e
.
detail
.
value
.
replace
(
/
\s
*/g
,
""
);
this
.
setData
({
content
:
val
,
})
if
(
val
.
length
==
11
){
app
.
$api
(
'miniProgram_customer_GetCustomerByPhone'
,
{
code
:
this
.
data
.
code
,
Contact
:
e
.
detail
.
value
,
openid
:
this
.
data
.
openid
}).
then
(
res
=>
{
this
.
setData
({
telephone
:
true
,
isMember
:
res
.
isMember
,
Phonedata
:
res
})
}).
catch
(
err
=>
{
...
...
@@ -93,11 +97,11 @@ Page({
duration
:
2000
})
})
}
else
if
(
e
.
detail
.
value
.
length
!=
11
){
}
else
if
(
val
!=
11
){
this
.
setData
({
telephone
:
false
,})
}
this
.
setData
({
content
:
e
.
detail
.
value
,
content
:
val
,
})
},
qr
:
function
(){
...
...
@@ -171,8 +175,6 @@ Page({
OrderForm
:
4
,
CustomerCreateBy
:
this
.
data
.
createBy
,
}
console
.
log
(
msg
)
return
//提交数据
let
that
=
this
;
let
data
=
that
.
data
.
Phonedata
.
contactNumber
;
...
...
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