Skip to content

Commit

Permalink
'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Sep 7, 2020
1 parent 0ef1dd9 commit 860388f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
28 changes: 13 additions & 15 deletions pages/order-list/order-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,15 @@ Page({
//this.initCartInfo()
},
statusTap: function (e) {
var obj = e;
var count = 0;
for (var key in obj) {
count++;
}
if (count == 0) {
var curType = 0;
} else {
console.log('出现Cannot read property "dataset" of undefined;这样的错误是正常的,不用管!');
var curType = e.currentTarget.dataset.index;
}
this.data.currentType = curType
this.setData({
page: 0,
orderList: []
});
this.getOrderList();
},

statusTap2: function (e) {
var curType = e.currentTarget.dataset.index;
this.setData({
currentType: curType
});
Expand All @@ -57,6 +54,7 @@ Page({
});
this.getOrderList();
},

orderDetail: function (e) {
var orderId = e.currentTarget.dataset.id;
var order_increment_id = e.currentTarget.dataset.increment_id;
Expand Down Expand Up @@ -101,7 +99,7 @@ Page({
var orderId = e.currentTarget.dataset.id;
var order_increment_id = e.currentTarget.dataset.increment_id;
var money = e.currentTarget.dataset.money;
wxpay.wxpay(app, money, order_increment_id, "/pages/order-list/order-list?currentType=1&share=1");
wxpay.wxpay(app, money, order_increment_id, "/pages/order-list/order-list");
},
orderRecevie: function (e) {
var that = this;
Expand Down Expand Up @@ -324,10 +322,10 @@ Page({
});
var requestStatus = that.data.currentType;
var wxRequestOrderStatus = '';
if (requestStatus == 0) {
if (!requestStatus) {
wxRequestOrderStatus = 'all'
} else {
wxRequestOrderStatus = requestStatus -1;
wxRequestOrderStatus = requestStatus;
}
//this.getOrderStatistics();
wx.request({
Expand Down
2 changes: 1 addition & 1 deletion pages/order-list/order-list.wxml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<navigation id='Navigation' show-icon="{{true}}" title="{{language.order_list}}" show-title="{{true}}" class=""></navigation>
<view class="container">
<view class="status-box">
<view bindtap="statusTap" class="status-label {{index == currentType ? 'active' : ''}}" wx:for-items="{{statusType}}" wx:key="{{index}}" data-index="{{index}}">
<view bindtap="statusTap2" class="status-label {{index == currentType ? 'active' : ''}}" wx:for-items="{{statusType}}" wx:key="{{index}}" data-index="{{index}}">
{{item}}
<view class="{{tabClass[index]}}"></view>
</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/pay-order/pay-order.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</checkbox-group>
</view>
<view wx:if="{{isWalletyo && !pointOffsetInfo.customerPointEnough}}" class="point-view" >
<view>积分</view> <view>抱歉,您的积分不足,有货币满 {{pointOffsetInfo.useMinPoint> 0 ? pointOffsetInfo.useMinPoint : 0}} 个方可使用</view>
<view>积分</view> <view>抱歉,您的积分不足,积分满 {{pointOffsetInfo.useMinPoint> 0 ? pointOffsetInfo.useMinPoint : 0}} 个方可使用</view>
</view>

<view class="goods-info">
Expand Down

0 comments on commit 860388f

Please sign in to comment.