Commit e18e6275a878211a17214681b28f6cbeec45acce
1 parent
811763b4
点击物流提醒跳转到线下订单
Showing
2 changed files
with
11 additions
and
4 deletions
pages/user/index/index.wxml
@@ -96,16 +96,16 @@ | @@ -96,16 +96,16 @@ | ||
96 | </view> | 96 | </view> |
97 | <view class="xc-after-sale rel"> | 97 | <view class="xc-after-sale rel"> |
98 | <!-- 顶上的一栏 --> | 98 | <!-- 顶上的一栏 --> |
99 | - <view class="xc-equity-title flex-level" bindtap="go_order" data-url="/pages/user/order_list/order_list"> | 99 | + <view class="xc-equity-title flex-level"> |
100 | <view class="xc-title-frame flex ai-center"> | 100 | <view class="xc-title-frame flex ai-center"> |
101 | - <view class="flex-vertical xc-title-content"> | 101 | + <view class="flex-vertical xc-title-content" bindtap="go_order" data-url="/pages/user/order_list/order_list"> |
102 | <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image> | 102 | <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image> |
103 | <view class="three-level-word">我的订单</view> | 103 | <view class="three-level-word">我的订单</view> |
104 | </view> | 104 | </view> |
105 | <!-- 物流信息提醒 --> | 105 | <!-- 物流信息提醒 --> |
106 | - <view class="fs26 c-5 pdl60" wx:if="{{countDadaOrder != 0}}"><text class="iconfont icon-dingwei"></text>您有<text class="c-red">{{countDadaOrder}}</text>个同城配送订单</view> | 106 | + <view class="fs26 c-5 pdl60" wx:if="{{countDadaOrder != 0}}" bindtap="go_order" data-url="/pages/user/order_list/order_list?index=1"><text class="iconfont icon-dingwei"></text>您有<text class="c-red">{{countDadaOrder}}</text>个同城配送订单</view> |
107 | </view> | 107 | </view> |
108 | - <view class="three-level-word xc-more-frame flex-vertical"> | 108 | + <view class="three-level-word xc-more-frame flex-vertical" bindtap="go_order" data-url="/pages/user/order_list/order_list"> |
109 | <view class="three-level-word xc-more">更多</view> | 109 | <view class="three-level-word xc-more">更多</view> |
110 | <view class="bg_right xc-more-click bcolor"></view> | 110 | <view class="bg_right xc-more-click bcolor"></view> |
111 | </view> | 111 | </view> |
pages/user/order_list/order_list.js
@@ -70,6 +70,13 @@ Page({ | @@ -70,6 +70,13 @@ Page({ | ||
70 | var nowDate = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate(); | 70 | var nowDate = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate(); |
71 | var date = new Date(now.getTime() - 7 * 24 * 3600 * 1000); | 71 | var date = new Date(now.getTime() - 7 * 24 * 3600 * 1000); |
72 | var startDate=date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); | 72 | var startDate=date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); |
73 | + | ||
74 | + | ||
75 | + if(t.index) { | ||
76 | + this.setData({ | ||
77 | + currentIndex: t.index | ||
78 | + }); | ||
79 | + }; | ||
73 | 80 | ||
74 | this.setData({ | 81 | this.setData({ |
75 | currentDate: this.currentDate(), | 82 | currentDate: this.currentDate(), |