Commit 0c718bcbf290d88f2db73dc63116b3ef9c17cc82
1 parent
5dc6eaf0
商品详情
Showing
2 changed files
with
8 additions
and
2 deletions
components/goods_list/goods_list.js
@@ -207,5 +207,11 @@ Component({ | @@ -207,5 +207,11 @@ Component({ | ||
207 | func(ob); | 207 | func(ob); |
208 | }) | 208 | }) |
209 | }, | 209 | }, |
210 | + | ||
211 | + go_url:function (e) { | ||
212 | + var url=e.currentTarget.dataset.url; | ||
213 | + getApp().goto(url); | ||
214 | + } | ||
215 | + | ||
210 | }, | 216 | }, |
211 | }) | 217 | }) |
212 | \ No newline at end of file | 218 | \ No newline at end of file |
components/goods_list/goods_list.wxml
@@ -5,10 +5,10 @@ | @@ -5,10 +5,10 @@ | ||
5 | <view class="hang "> | 5 | <view class="hang "> |
6 | <!-- 商品详情 --> | 6 | <!-- 商品详情 --> |
7 | 7 | ||
8 | - <view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="{{get_url_by_type(item)}}"> | 8 | + <view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="{{g_filter.get_url_by_type(item)}}"> |
9 | <!--<view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="{{item.prom_type == 9 ? ('/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=' + item.goods_id + '&group_id=' + item.prom_id):('/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id+'&title='+item.goods_name+'&prom_type='+item.prom_type+'&prom_id='+item.prom_id)}}">--> | 9 | <!--<view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="{{item.prom_type == 9 ? ('/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=' + item.goods_id + '&group_id=' + item.prom_id):('/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id+'&title='+item.goods_name+'&prom_type='+item.prom_type+'&prom_id='+item.prom_id)}}">--> |
10 | <!-- <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&title={{item.goods_name}}&prom_type={{item.prom_type}}&prom_id={{item.prom_id}}" hover-class="none"> --> | 10 | <!-- <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&title={{item.goods_name}}&prom_type={{item.prom_type}}&prom_id={{item.prom_id}}" hover-class="none"> --> |
11 | - <navigator url="{{item.prom_type == 9 ? ('/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=' + item.goods_id + '&group_id=' + item.prom_id):('/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id+'&title='+item.goods_name+'&prom_type='+item.prom_type+'&prom_id='+item.prom_id)}}" hover-class="none"> | 11 | + <navigator hover-class="none"> |
12 | <!-- 商品图⽚ --> | 12 | <!-- 商品图⽚ --> |
13 | <image class="sp" src="{{url+item.original_img}}" mode="aspectFill" binderror="bind_bnerr_xc" data-url="{{url+item.original_img}}" data-errorimg="recommend[{{index}}].original_img"></image> | 13 | <image class="sp" src="{{url+item.original_img}}" mode="aspectFill" binderror="bind_bnerr_xc" data-url="{{url+item.original_img}}" data-errorimg="recommend[{{index}}].original_img"></image> |
14 | <view class="bottom"> | 14 | <view class="bottom"> |