Commit bd3812b11fda73620d1a64a2fad011215e6adc5d

Authored by yvan.ni
1 parent 141346f9

没有阶梯的活动首页回退

pages/goods/goodsList/goodsList.js
... ... @@ -438,4 +438,10 @@ Page({
438 438 },
439 439  
440 440  
  441 + go_url:function (e) {
  442 + var url=e.currentTarget.dataset.url;
  443 + getApp().goto(url);
  444 + }
  445 +
  446 +
441 447 });
442 448 \ No newline at end of file
... ...
pages/goods/goodsList/goodsList.wxml
... ... @@ -292,7 +292,7 @@
292 292 <view class="no-data" wx:if="{{(!requestData||requestData.length==0) && is_go}}">
293 293 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
294 294 <view class="no-data-title">暂无相关商品</view>
295   - <navigator class="lookat" url="/pages/index/index/index">回到首页</navigator>
  295 + <navigator bindtap="go_url" class="lookat" data-url="/pages/index/index/index">回到首页</navigator>
296 296 </view>
297 297 </view>
298 298 <view hidden="{{!openFilterModal}}">
... ... @@ -337,6 +337,6 @@
337 337 <view class="no-data">
338 338 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
339 339 <view class="no-data-title">{{err_txt}}</view>
340   - <navigator class="lookat" url="/pages/index/index/index">回到首页</navigator>
  340 + <navigator bindtap="go_url" class="lookat" data-url="/pages/index/index/index">回到首页</navigator>
341 341 </view>
342 342 </view>
343 343 \ No newline at end of file
... ...
pages/goods/search/search.js
... ... @@ -451,4 +451,9 @@ Page({
451 451 searchRecord: []
452 452 });
453 453 },
  454 +
  455 + go_url:function (e) {
  456 + var url=e.currentTarget.dataset.url;
  457 + getApp().goto(url);
  458 + }
454 459 });
455 460 \ No newline at end of file
... ...
pages/goods/search/search.wxml
... ... @@ -120,7 +120,7 @@
120 120 <view class="no-data" wx:if="{{!requestData||requestData.length==0}}">
121 121 <image class="cart-image" src="{{url}}/miniapp/images/cart-null.png"></image>
122 122 <view class="no-data-title">没有相关的数据</view>
123   - <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator>
  123 + <navigator bindtap="go_url" class="lookat" data-url="/pages/index/index/index"> 去逛逛 </navigator>
124 124 </view>
125 125 </view>
126 126 <view hidden="{{!openFilterModal}}">
... ...