|
@@ -26,7 +26,7 @@
|
|
|
class="tab-bar-item"
|
|
|
:class="[currentTab == index ? 'active' : '']"
|
|
|
:data-current="index"
|
|
|
- @tap.stop="onClickTab(event)"
|
|
|
+ @tap.stop="onClickTab($event)"
|
|
|
>
|
|
|
<text class="tab-bar-title">{{ item.text }}</text>
|
|
|
</view>
|
|
@@ -38,7 +38,7 @@
|
|
|
class="tab-screen-item"
|
|
|
:class="[screenTab == index ? 'active' : '']"
|
|
|
:data-current="index"
|
|
|
- @tap.stop="onClickScreenTab(index)"
|
|
|
+ @tap.stop="onClickScreenTab(index,item.type)"
|
|
|
>{{ item.text }}</view
|
|
|
>
|
|
|
<view
|
|
@@ -94,26 +94,26 @@
|
|
|
>
|
|
|
</view>
|
|
|
<view class="order-title-t">
|
|
|
+ <text
|
|
|
+ class="bage buss tui-skeleton-fillet"
|
|
|
+ v-if="order.orderSubmitType == 3 || order.orderSubmitType == 4"
|
|
|
+ >
|
|
|
+ 服务商
|
|
|
+ </text>
|
|
|
+ <text
|
|
|
+ class="bage auto tui-skeleton-fillet"
|
|
|
+ v-if="
|
|
|
+ order.orderSubmitType == 0 ||
|
|
|
+ order.orderSubmitType == 1 ||
|
|
|
+ order.orderSubmitType == 2
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 自主
|
|
|
+ </text>
|
|
|
+ <view class="bage ebate" v-if="order.rebateFlag == 1">返佣</view>
|
|
|
<view class="order-title-tip tui-skeleton-fillet">
|
|
|
{{ order.status | statusFilters }}
|
|
|
</view>
|
|
|
- <view class="bage ebate" v-if="order.rebateFlag == 1">返佣</view>
|
|
|
- <text
|
|
|
- class="bage buss tui-skeleton-fillet"
|
|
|
- v-if="order.orderSubmitType == 3 || order.orderSubmitType == 4"
|
|
|
- >
|
|
|
- 服务商
|
|
|
- </text>
|
|
|
- <text
|
|
|
- class="bage auto tui-skeleton-fillet"
|
|
|
- v-if="
|
|
|
- order.orderSubmitType == 0 ||
|
|
|
- order.orderSubmitType == 1 ||
|
|
|
- order.orderSubmitType == 2
|
|
|
- "
|
|
|
- >
|
|
|
- 自主
|
|
|
- </text>
|
|
|
<image
|
|
|
class="bage-icon"
|
|
|
src="https://static.caimei365.com/app/img/icon/icon-type@3x.png"
|
|
@@ -336,7 +336,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
orderTabBar: [
|
|
|
- { listType: 0, text: '全部订单', orderList: [] },
|
|
|
+ { listType: 0, text: '全部', orderList: [] },
|
|
|
{ listType: 1, text: '待确认', orderList: [] },
|
|
|
{ listType: 2, text: '待付款', orderList: [] },
|
|
|
{ listType: 3, text: '待发货', orderList: [] },
|
|
@@ -344,9 +344,8 @@ export default {
|
|
|
{ listType: 5, text: '退货/款', orderList: [] }
|
|
|
],
|
|
|
screenTabBar: [
|
|
|
- { type: 0, text: '全部订单(我的)' },
|
|
|
- { type: 1, text: '自主订单(我的)' },
|
|
|
- { type: 2, text: '服务商订单(我的)' }
|
|
|
+ { type: 2, text: '服务商订单' },
|
|
|
+ { type: 1, text: '机构自主订单' }
|
|
|
],
|
|
|
headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
|
|
|
systeminfo: this.setSysteminfo(), //获取设备信息
|
|
@@ -368,7 +367,7 @@ export default {
|
|
|
groupServiceId: 0,
|
|
|
serviceProviderId: 0, //服务商用户ID
|
|
|
listType: 0,
|
|
|
- orderSubmitType: 0
|
|
|
+ orderSubmitType: 2
|
|
|
},
|
|
|
scrollTop: 0,
|
|
|
skeletonShow: true,
|
|
@@ -428,8 +427,9 @@ export default {
|
|
|
this.getOrderDatainit(this.currentTab, 'tabChange')
|
|
|
},
|
|
|
// 点击标题切换当前页时改变样式
|
|
|
- onClickTab(e) {
|
|
|
- let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current
|
|
|
+ onClickTab(event) {
|
|
|
+ console.log('e',event)
|
|
|
+ let tabIndex = event.target.dataset.current || event.currentTarget.dataset.current
|
|
|
if (this.currentTab === tabIndex) {
|
|
|
return false
|
|
|
} else {
|
|
@@ -441,9 +441,9 @@ export default {
|
|
|
this.getOrderDatainit(this.currentTab)
|
|
|
}
|
|
|
},
|
|
|
- onClickScreenTab(index) {
|
|
|
+ onClickScreenTab(index,type) {
|
|
|
this.screenTab = index
|
|
|
- this.listQuery.orderSubmitType = index
|
|
|
+ this.listQuery.orderSubmitType = type
|
|
|
this.pullUpOn = true //切换时隐藏
|
|
|
this.loadding = false //切换时隐藏
|
|
|
this.nomoreText = ''
|
|
@@ -645,7 +645,7 @@ export default {
|
|
|
|
|
|
<style lang="scss">
|
|
|
page {
|
|
|
- background-color: #ffffff;
|
|
|
+ background-color: #f7f7f7;
|
|
|
}
|
|
|
/*tabbar start*/
|
|
|
::-webkit-scrollbar {
|
|
@@ -737,6 +737,8 @@ page {
|
|
|
.tui-order-content {
|
|
|
width: 100%;
|
|
|
height: auto;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 20rpx;
|
|
|
}
|
|
|
.tui-order-list {
|
|
|
width: 100%;
|
|
@@ -745,10 +747,13 @@ page {
|
|
|
.tui-order-item {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- width: 702rpx;
|
|
|
+ width: 100%;
|
|
|
padding: 0rpx 24rpx 0 24rpx;
|
|
|
background: #fff;
|
|
|
- border-bottom: 20rpx solid #f7f7f7;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ margin: 20rpx 0;
|
|
|
}
|
|
|
.order-title {
|
|
|
width: 100%;
|
|
@@ -789,6 +794,7 @@ page {
|
|
|
float: left;
|
|
|
line-height: 68rpx;
|
|
|
position: relative;
|
|
|
+ display: flex;
|
|
|
.bage-icon {
|
|
|
width: 50rpx;
|
|
|
height: 50rpx;
|
|
@@ -801,7 +807,7 @@ page {
|
|
|
display: inline-block;
|
|
|
width: 72rpx;
|
|
|
height: 32rpx;
|
|
|
- margin: 19rpx 10rpx 0 10rpx;
|
|
|
+ margin: 19rpx 10rpx 0 0;
|
|
|
border-radius: 4rpx;
|
|
|
line-height: 32rpx;
|
|
|
font-size: $font-size-22;
|
|
@@ -822,8 +828,7 @@ page {
|
|
|
}
|
|
|
}
|
|
|
.order-title-tip {
|
|
|
- float: left;
|
|
|
- font-size: $font-size-28;
|
|
|
+ font-size: $font-size-24;
|
|
|
line-height: 68rpx;
|
|
|
text-align: right;
|
|
|
color: #ff2a2a;
|
|
@@ -880,6 +885,7 @@ page {
|
|
|
width: 100%;
|
|
|
height: auto;
|
|
|
padding: 24rpx 0;
|
|
|
+ display: flex;
|
|
|
.pros-img {
|
|
|
float: left;
|
|
|
width: 180rpx;
|