Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
高淑倩
7-Eleven
Commits
adda204f
Commit
adda204f
authored
Oct 22, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打电话
parent
ca538491
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
userInfo.js
src/shoppingGuid/page/pages/userInfo/userInfo.js
+6
-0
userInfo.wxml
src/shoppingGuid/page/pages/userInfo/userInfo.wxml
+2
-2
No files found.
src/shoppingGuid/page/pages/userInfo/userInfo.js
View file @
adda204f
...
@@ -65,6 +65,12 @@ wxService.page({
...
@@ -65,6 +65,12 @@ wxService.page({
}
}
})
})
},
},
handelPhoneCall
(
e
)
{
const
{
phone
}
=
e
.
currentTarget
.
dataset
wx
.
makePhoneCall
({
phoneNumber
:
phone
})
},
//点击事件
//点击事件
//类型切换
//类型切换
onTopBarTap
(
e
){
onTopBarTap
(
e
){
...
...
src/shoppingGuid/page/pages/userInfo/userInfo.wxml
View file @
adda204f
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
<view class='u-items'>
<view class='u-items'>
<view class='u-item-lf'>
<view class='u-item-lf'>
<label>{{memberInfo.mobile}}</label>
<label>{{memberInfo.mobile}}</label>
<image src='/assets/imgs/shoppingGuide/phone.png' mode='widthFix'></image>
<image src='/assets/imgs/shoppingGuide/phone.png'
data-phone="{{memberInfo.mobile}}" bindtap="handelPhoneCall"
mode='widthFix'></image>
</view>
</view>
<view class='u-item-rg'>立即联系</view>
<view class='u-item-rg'
data-phone="{{memberInfo.mobile}}" bindtap="handelPhoneCall"
>立即联系</view>
</view>
</view>
<view class='u-items'>
<view class='u-items'>
<view class='u-item-lf'>
<view class='u-item-lf'>
...
...
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