This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
weapp
/
C
Watch
8
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
66
Wiki
Activity
Browse Source
[门店][修改]:[门店列表跳转到详情增加事件]
tags/湖南版5.1.4
meo
6 years ago
parent
3f0e29b148
commit
6044ad9c03
2 changed files
with
10 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
pages/index/searchbar/index.js
+1
-1
pages/index/searchbar/index.wxml
+ 9
- 0
pages/index/searchbar/index.js
View File
@@ -31,6 +31,15 @@ Page({
})
that.getList(1, that.data.businessId);
},
/**
* 跳转到门店列表的详情页面
*/
gotoDetail(e){
console.log(e)
wx.navigateTo({
url: '/',
})
},
/**
* 生命周期函数--监听页面加载
*/
+ 1
- 1
pages/index/searchbar/index.wxml
View File
@@ -18,7 +18,7 @@
<view class='lists'>
<view class='posi' wx:if="{{merchantVoList.length>0}}">
<view class='posi_logo' wx:for="{{merchantVoList}}" wx:key="index">
<view class='merchants'>
<view class='merchants'
bindtap='gotoDetail' data-id='{{item.id}}'
>
<view>
<image src='{{item.merchantImgUrl}}'></image>
</view>
Write
Preview
Loading…
Cancel
Save