Toggle navigation
This project
Loading...
Sign in
xt
/
xcx-book
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
72d9122ec2fe12bb111ea5d2ab3fe77cfa275dc2
Authored by
wangfan
2018-09-27 12:00:06 +0800
1 parent
e564f49b
build: skipped
v2 book sendsms
Changes
2
Builds
0
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
components/book/notice/notice.js
utils/util.js
components/book/notice/notice.js
View file @
72d9122
...
...
@@ -39,6 +39,10 @@ Component({
this
.
triggerEvent
(
"share"
);
break
;
case
1
:
if
(
!
/^1
\d{10}
$/
.
test
(
this
.
data
.
bookInfo
.
phone
)){
util
.
toast
(
'手机号码错误'
,
'none'
)
return
;
}
wx
.
navigateTo
({
url
:
'/pages/book/b_sms?id='
+
this
.
data
.
bookInfo
.
id
});
...
...
utils/util.js
View file @
72d9122
...
...
@@ -328,10 +328,10 @@ module.exports = {
}
});
},
toast
:
function
(
title
){
toast
:
function
(
title
,
icon
=
'success'
){
wx
.
showToast
({
title
:
title
,
icon
:
"success"
icon
:
icon
})
},
showLoading
:
function
(
title
){
...
...
Please
register
or
login
to post a comment