|
@@ -16,7 +16,7 @@
|
|
class="tui-header-box"
|
|
class="tui-header-box"
|
|
:style="{ height: CustomBar -34 + 'px', backgroundImage: 'url(' + statistic_bg1 + ')' }"
|
|
:style="{ height: CustomBar -34 + 'px', backgroundImage: 'url(' + statistic_bg1 + ')' }"
|
|
></view>
|
|
></view>
|
|
- <view class="user-section" :style="{ top: CustomBar + 16 + 'px', left: 0 + 'px' }">
|
|
|
|
|
|
+ <view class="user-section" :style="{ top: CustomBar + 20 + 'px', left: 0 + 'px' }">
|
|
<view class="header-content">
|
|
<view class="header-content">
|
|
<view class="header-tabs day clearfix">
|
|
<view class="header-tabs day clearfix">
|
|
<view class="main one">
|
|
<view class="main one">
|
|
@@ -30,7 +30,7 @@
|
|
<view class="text">{{ item.name }}</view>
|
|
<view class="text">{{ item.name }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="main day">
|
|
|
|
|
|
+ <view class="main day" v-if="currents == 0 || currents == 2">
|
|
<view
|
|
<view
|
|
class="main-item tab"
|
|
class="main-item tab"
|
|
v-for="(item, index) in listTabsType"
|
|
v-for="(item, index) in listTabsType"
|
|
@@ -44,7 +44,7 @@
|
|
</view>
|
|
</view>
|
|
<view :class="{ 'tui-order-list': scrollTop >= 0 }" class="clearfix">
|
|
<view :class="{ 'tui-order-list': scrollTop >= 0 }" class="clearfix">
|
|
<!-- 空白页 -->
|
|
<!-- 空白页 -->
|
|
- <empty v-if="isEmpty" :typeIndex="currentTabs" :navbarHeight="navbarHeight"></empty>
|
|
|
|
|
|
+ <empty v-if="isEmpty" :typeIndex="currents" :navbarHeight="navbarHeight"></empty>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<view v-else class="tui-order-content">
|
|
<view v-else class="tui-order-content">
|
|
<view
|
|
<view
|
|
@@ -190,7 +190,6 @@ export default {
|
|
tabCurrents:0,
|
|
tabCurrents:0,
|
|
statistic_bg: statistic_bg2,
|
|
statistic_bg: statistic_bg2,
|
|
statistic_bg1: statistic_bg1,
|
|
statistic_bg1: statistic_bg1,
|
|
- CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
|
|
userID: 0,
|
|
userID: 0,
|
|
openId: '',
|
|
openId: '',
|
|
listQuery: Object.assign({}, defaultListQuery),
|
|
listQuery: Object.assign({}, defaultListQuery),
|
|
@@ -273,16 +272,6 @@ export default {
|
|
console.log('结束时间==>',event.detail.value)
|
|
console.log('结束时间==>',event.detail.value)
|
|
this.queryData.endAddTime = event.detail.value
|
|
this.queryData.endAddTime = event.detail.value
|
|
},
|
|
},
|
|
- getOrderListCount() {
|
|
|
|
- //查询数量
|
|
|
|
- this.OrderService.OrderListCount()
|
|
|
|
- .then(response => {
|
|
|
|
- this.listCount = response.data
|
|
|
|
- })
|
|
|
|
- .catch(error => {
|
|
|
|
- this.$util.msg(error.msg, 2000)
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
getOrderDatainit(index) {
|
|
getOrderDatainit(index) {
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
this.OrderService.OrderList(Object.assign({ status: index }, this.listQuery))
|
|
this.OrderService.OrderList(Object.assign({ status: index }, this.listQuery))
|
|
@@ -464,7 +453,6 @@ export default {
|
|
this.$util.msg('删除订单成功', 2000, true, 'success')
|
|
this.$util.msg('删除订单成功', 2000, true, 'success')
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.getOrderDatainit(this.currents)
|
|
this.getOrderDatainit(this.currents)
|
|
- this.getOrderListCount()
|
|
|
|
}, 2000)
|
|
}, 2000)
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
@@ -478,7 +466,6 @@ export default {
|
|
this.$util.msg('关闭订单成功', 2000, true, 'success')
|
|
this.$util.msg('关闭订单成功', 2000, true, 'success')
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.getOrderDatainit(this.currents)
|
|
this.getOrderDatainit(this.currents)
|
|
- this.getOrderListCount()
|
|
|
|
}, 2000)
|
|
}, 2000)
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
@@ -640,16 +627,14 @@ export default {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
this.currents = 0
|
|
this.currents = 0
|
|
- this.getOrderDatainit(this.currents)
|
|
|
|
- this.getOrderListCount()
|
|
|
|
|
|
+ // this.getOrderDatainit(this.currents)
|
|
uni.stopPullDownRefresh()
|
|
uni.stopPullDownRefresh()
|
|
}, 200)
|
|
}, 200)
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
this.$api.getComStorage('userInfo').then(resolve => {
|
|
this.$api.getComStorage('userInfo').then(resolve => {
|
|
this.listQuery.merchantId = resolve.id
|
|
this.listQuery.merchantId = resolve.id
|
|
- this.getOrderDatainit(this.currents)
|
|
|
|
- this.getOrderListCount()
|
|
|
|
|
|
+ // this.getOrderDatainit(this.currents)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -838,13 +823,11 @@ page {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
position: relative;
|
|
position: relative;
|
|
- padding: 0 20rpx;
|
|
|
|
.header-tabs {
|
|
.header-tabs {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
margin-bottom: 40rpx;
|
|
margin-bottom: 40rpx;
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
- border-radius: 20rpx;
|
|
|
|
background: #4688fa;
|
|
background: #4688fa;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
&.day {
|
|
&.day {
|
|
@@ -863,12 +846,13 @@ page {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
height: 80rpx;
|
|
&.day {
|
|
&.day {
|
|
- height: 50rpx;
|
|
|
|
|
|
+ height: 70rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- margin-top: 20rpx;
|
|
|
|
|
|
+ padding: 20rpx 0;
|
|
|
|
+ border-top: 1px solid #EFEFEF;
|
|
}
|
|
}
|
|
&.one{
|
|
&.one{
|
|
- border-bottom: 1px solid #EFEFEF;
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
.main-item {
|
|
.main-item {
|
|
float: left;
|
|
float: left;
|
|
@@ -978,7 +962,7 @@ page {
|
|
height: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
.tui-order-list {
|
|
.tui-order-list {
|
|
- margin-top: 80rpx;
|
|
|
|
|
|
+ margin-top: 24rpx;
|
|
width: 100%;
|
|
width: 100%;
|
|
position: relative;
|
|
position: relative;
|
|
}
|
|
}
|