| @@ -64,6 +64,14 @@ Page({ | |||||
| phoneNumber: e.target.dataset.merchantlinkphone | phoneNumber: e.target.dataset.merchantlinkphone | ||||
| }); | }); | ||||
| }, | }, | ||||
| /** | |||||
| * 跳转到门店列表的详情页面 | |||||
| */ | |||||
| gotoDetail(e) { | |||||
| wx.navigateTo({ | |||||
| url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}` | |||||
| }) | |||||
| }, | |||||
| gotoIndex(){ | gotoIndex(){ | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '/pages/index/index', | url: '/pages/index/index', | ||||
| @@ -10,10 +10,10 @@ | |||||
| <text class='title'>适用门店</text> | <text class='title'>适用门店</text> | ||||
| <view class='posi' style='overflow:{{hidden}};height:{{height}}'> | <view class='posi' style='overflow:{{hidden}};height:{{height}}'> | ||||
| <view class='posi_logo' wx:for="{{cardDetail.merchantVoList}}" wx:key="index"> | <view class='posi_logo' wx:for="{{cardDetail.merchantVoList}}" wx:key="index"> | ||||
| <view> | |||||
| <view bindtap='gotoDetail' data-id='{{item.id}}'> | |||||
| <image src='{{item.merchantImgUrl}}'></image> | <image src='{{item.merchantImgUrl}}'></image> | ||||
| </view> | </view> | ||||
| <view> | |||||
| <view bindtap='gotoDetail' data-id='{{item.id}}'> | |||||
| <text>{{item.merchantName}}</text> | <text>{{item.merchantName}}</text> | ||||
| <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | ||||
| </view> | </view> | ||||
| @@ -1,4 +1,4 @@ | |||||
| button::after{ border: none; } | |||||
| .notes{ | .notes{ | ||||
| padding-bottom: 60rpx; | padding-bottom: 60rpx; | ||||
| } | } | ||||
| @@ -103,8 +103,6 @@ Page({ | |||||
| * 跳转到门店列表的详情页面 | * 跳转到门店列表的详情页面 | ||||
| */ | */ | ||||
| gotoDetail(e) { | gotoDetail(e) { | ||||
| console.log(e) | |||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}` | url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}` | ||||
| }) | }) | ||||
| @@ -44,6 +44,14 @@ Page({ | |||||
| url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | ||||
| }) | }) | ||||
| }, | }, | ||||
| /** | |||||
| * 跳转到门店列表的详情页面 | |||||
| */ | |||||
| gotoDetail(e) { | |||||
| wx.navigateTo({ | |||||
| url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}` | |||||
| }) | |||||
| }, | |||||
| // 获取游戏 | // 获取游戏 | ||||
| getStaticGame(token) { | getStaticGame(token) { | ||||
| let _this = this; | let _this = this; | ||||
| @@ -54,10 +54,10 @@ | |||||
| </view> | </view> | ||||
| <view wx:for="{{data.merchantVoList}}" wx:key="{{index}}"> | <view wx:for="{{data.merchantVoList}}" wx:key="{{index}}"> | ||||
| <view class='posi_logo'> | <view class='posi_logo'> | ||||
| <view> | |||||
| <view bindtap='gotoDetail' data-id='{{item.id}}'> | |||||
| <image src='{{item.merchantImgUrl}}'></image> | <image src='{{item.merchantImgUrl}}'></image> | ||||
| </view> | </view> | ||||
| <view> | |||||
| <view bindtap='gotoDetail' data-id='{{item.id}}'> | |||||
| <text>{{item.merchantName}}</text> | <text>{{item.merchantName}}</text> | ||||
| <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | ||||
| </view> | </view> | ||||
| @@ -36,9 +36,13 @@ Page({ | |||||
| phoneNumber: e.currentTarget.dataset.merchantlinkphone | phoneNumber: e.currentTarget.dataset.merchantlinkphone | ||||
| }); | }); | ||||
| }, | }, | ||||
| //转赠给微信好友 | |||||
| goToTranser() { | |||||
| /** | |||||
| * 跳转到门店列表的详情页面 | |||||
| */ | |||||
| gotoDetail(e) { | |||||
| wx.navigateTo({ | |||||
| url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}` | |||||
| }) | |||||
| }, | }, | ||||
| getUserInfo: function () { | getUserInfo: function () { | ||||
| let that = this; | let that = this; | ||||
| @@ -67,7 +67,11 @@ | |||||
| <text>适用门店:</text> | <text>适用门店:</text> | ||||
| </view> | </view> | ||||
| <view wx:if="{{order.merchantVoList.length>=1}}" wx:for="{{order.merchantVoList}}" wx:key="{{index}}"> | <view wx:if="{{order.merchantVoList.length>=1}}" wx:for="{{order.merchantVoList}}" wx:key="{{index}}"> | ||||
| <view class='merchantVoList' bindtap='phone' data-merchantlinkphone='{{item.linkLinePhone?item.linkLinePhone:item.merchantLinkPhone}}'><image class='merchantImgUrl' src='{{item.merchantImgUrl}}' mode='widthFix'></image><text class='merchantName'>{{item.merchantName}} {{item.buildingName}}{{item.floorName}}</text><image class="tel" src="{{teljpgUrl}}" mode="widthFix"></image></view> | |||||
| <view class='merchantVoList'> | |||||
| <image bindtap='gotoDetail' data-id='{{item.id}}' class='merchantImgUrl' src='{{item.merchantImgUrl}}' mode='widthFix'></image> | |||||
| <text bindtap='gotoDetail' data-id='{{item.id}}' class='merchantName'>{{item.merchantName}} {{item.buildingName}}{{item.floorName}}</text> | |||||
| <image bindtap='phone' data-merchantlinkphone='{{item.linkLinePhone?item.linkLinePhone:item.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix"></image> | |||||
| </view> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <!-- 待付款 显示立即购买的按钮 --> | <!-- 待付款 显示立即购买的按钮 --> | ||||