本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
註冊
登入
weapp
/
C
關注
8
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
66
Wiki
活動
瀏覽代碼
[门店][修改]:[门店列表跳转到详情增加事件]
tags/湖南版5.1.4
meo
6 年之前
父節點
c6dcd53adb
當前提交
20377762f3
共有
2 個檔案被更改
,包括
10 行新增
和
1 行删除
分割檢視
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
查看文件
@@ -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
查看文件
@@ -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…
取消
儲存