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
801798733afcbfd6bbf2714e208eb7189ba1cb4d
Authored by
wangfan
2018-11-02 16:06:31 +0800
1 parent
ec1ddb23
build: skipped
录入调整
Changes
5
Builds
0
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
components/book/list/list.js
components/book/notice/notice.js
pages/book/b_detail.js
pages/book/b_detail.wxml
project.config.json
components/book/list/list.js
View file @
8017987
...
...
@@ -40,6 +40,9 @@ Component({
this
.
setData
({
vitem
:
item
})
},
callPhone
(
e
){
if
(
util
.
attr
(
e
,
'phone'
).
length
<
3
){
return
util
.
toast
(
'号码错误'
,
'none'
);
}
wx
.
makePhoneCall
({
phoneNumber
:
util
.
attr
(
e
,
'phone'
),
//仅为示例,并非真实的电话号码
})
...
...
components/book/notice/notice.js
View file @
8017987
...
...
@@ -48,6 +48,9 @@ Component({
});
break
;
case
2
:
if
(
this
.
data
.
bookInfo
.
phone
.
length
<
3
){
return
util
.
toast
(
'号码错误'
,
'none'
);
}
wx
.
makePhoneCall
({
phoneNumber
:
this
.
data
.
bookInfo
.
phone
,
//仅为示例,并非真实的电话号码
complete
:()
=>
{
...
...
pages/book/b_detail.js
View file @
8017987
...
...
@@ -51,6 +51,9 @@ Page({
};
},
getcall
:
function
(){
if
(
this
.
data
.
bookInfo
.
phone
.
length
<
3
){
return
util
.
toast
(
'号码错误'
,
'none'
);
}
wx
.
makePhoneCall
({
phoneNumber
:
this
.
data
.
bookInfo
.
phone
,
//仅为示例,并非真实的电话号码
complete
:()
=>
{
...
...
pages/book/b_detail.wxml
View file @
8017987
...
...
@@ -24,7 +24,7 @@
</view>
<view class="flex-lr order-detail">
<text class="gray-deep-font font30r" space="true" decode="true">预 订 人</text>
<view class="black-font font34r">{{bookInfo.rname}}</view>
<view class="black-font font34r">{{bookInfo.rname}}
{{bookInfo.sex==1?'先生':'女士'}}
</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">手机号码</view>
...
...
project.config.json
View file @
8017987
...
...
@@ -30,7 +30,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
0
,
"current"
:
21
,
"list"
:
[
{
"id"
:
0
,
...
...
@@ -196,7 +196,7 @@
"query"
:
""
},
{
"id"
:
-
1
,
"id"
:
2
1
,
"name"
:
"预定本-80商家"
,
"pathName"
:
"pages/book/b_index"
,
"query"
:
"seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id="
,
...
...
Please
register
or
login
to post a comment