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
9654c5fe67d83927702f87b70f45371571f6b8f0
Authored by
wangfan
2018-09-21 17:15:05 +0800
1 parent
68d22c2f
build: skipped
v2 customer view
Changes
2
Builds
0
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
components/seller-card/seller-card.js
components/seller-card/seller-card.wxml
components/seller-card/seller-card.js
View file @
9654c5f
...
...
@@ -82,6 +82,17 @@ Component({
}
this
.
setData
(
obj
)
}
}
},
lookLocation
:
function
(){
wx
.
openLocation
({
latitude
:
Number
(
this
.
data
.
seller
.
lat
),
longitude
:
Number
(
this
.
data
.
seller
.
long
),
scale
:
17
,
address
:
this
.
data
.
detail
.
map_address
,
success
:
function
(
res
)
{
console
.
log
(
res
)
}
})
},
}
})
...
...
components/seller-card/seller-card.wxml
View file @
9654c5f
...
...
@@ -25,7 +25,7 @@
<view class="value">{{tableSubInfo}}</view>
</view>
</view>
<view class="seller address flex-ll">
<view class="seller address flex-ll"
catchtap="lookLocation"
>
<view class="gps-icon">
<image src="/pages/image/gps-icon.png"></image>
</view>
...
...
Please
register
or
login
to post a comment