|
|
@ -1,66 +1,74 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<view :class="[{oh: !per}]"> |
|
|
|
<view> |
|
|
|
<view class="filter"> |
|
|
|
<view :class="[{oh: !per}]"> |
|
|
|
<uni-search-bar class="search" radius="30" placeholder="请输入学校名称,商务经理,订单号" v-model="keyword" clearButton="auto" cancelButton="none" /> |
|
|
|
<view class="filter"> |
|
|
|
<view :class="['sort', sort]" @click="switchSort"></view> |
|
|
|
<uni-search-bar class="search" radius="30" placeholder="请输入学校名称,商务经理,订单号" v-model="keyword" clearButton="auto" cancelButton="none" /> |
|
|
|
<uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="22" color="#007eff" @click="popup = true"></uni-icons> |
|
|
|
<view :class="['sort', sort]" @click="switchSort"></view> |
|
|
|
</view> |
|
|
|
<uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="22" color="#007eff" @click="popup = true"></uni-icons> |
|
|
|
<ul class="tab"> |
|
|
|
</view> |
|
|
|
<li v-for="(tab, i) in tabs" :class="{active: curTab === tab.id}" @click="tabChange(tab)">{{ tab.name }}</li> |
|
|
|
<ul class="tab"> |
|
|
|
</ul> |
|
|
|
<li v-for="(tab, i) in tabs" :class="{active: curTab === tab.id}" @click="tabChange(tab)">{{ tab.name }}</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="list.length"> |
|
|
|
<template v-if="list.length"> |
|
|
|
<view class="list"> |
|
|
|
<view class="list"> |
|
|
|
<uni-swipe-action> |
|
|
|
<uni-swipe-action> |
|
|
|
<uni-swipe-action-item |
|
|
|
<uni-swipe-action-item |
|
|
|
v-for="item in list" |
|
|
|
v-for="item in list" |
|
|
|
:threshold="0" |
|
|
|
:threshold="0" |
|
|
|
:right-options="delOption" |
|
|
|
:right-options="delOption" |
|
|
|
@click="del(item)" |
|
|
|
@click="del(item)" |
|
|
|
> |
|
|
|
> |
|
|
|
<view class="item" @click="toDetail(item)"> |
|
|
|
<view class="item" @click="toDetail(item)"> |
|
|
|
<view class="c-name">{{ item.orderNumber }}</view> |
|
|
|
<view class="c-name">{{ item.orderNumber }}</view> |
|
|
|
<view class="info"> |
|
|
|
<view class="info"> |
|
|
|
<view class="left"> |
|
|
|
<view class="left"> |
|
|
|
<view v-if="curTab" class="line"> |
|
|
|
<view v-if="curTab" class="line"> |
|
|
|
<text class="name">商务经理:</text> |
|
|
|
<text class="name">商务经理:</text> |
|
|
|
<text class="val">{{ item.businessManagerName }}</text> |
|
|
|
<text class="val">{{ item.businessManagerName }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="line"> |
|
|
|
<view class="line"> |
|
|
|
<text class="name">客户名称:</text> |
|
|
|
<text class="name">客户名称:</text> |
|
|
|
<text class="val">{{ item.customerName }}</text> |
|
|
|
<text class="val">{{ item.customerName }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="line"> |
|
|
|
<view class="line"> |
|
|
|
<text class="name">订单金额:</text> |
|
|
|
<text class="name">订单金额:</text> |
|
|
|
<text class="val">{{ item.orderAmount }}元</text> |
|
|
|
<text class="val">{{ item.orderAmount }}元</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="line"> |
|
|
|
<view class="line"> |
|
|
|
<text class="name">订单内容:</text> |
|
|
|
<text class="name">订单内容:</text> |
|
|
|
<view class="val ell-wrap"> |
|
|
|
<view class="val ell-wrap"> |
|
|
|
<view :class="{ell: !item.toggle}">{{ item.orderContent }}</view> |
|
|
|
<view :class="{ell: !item.toggle}">{{ item.orderContent }}</view> |
|
|
|
<view v-if="item.orderContent.length > 14" class="toggle" @click.stop="toggle(item)">{{ item.toggle ? '收起' : '展开' }}</view> |
|
|
|
<view v-if="item.orderContent.length > 14" class="toggle" @click.stop="toggle(item)">{{ item.toggle ? '收起' : '展开' }}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="line"> |
|
|
|
|
|
|
|
<text class="name">下单日期:</text> |
|
|
|
|
|
|
|
<text class="val">{{ item.createTime }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="line"> |
|
|
|
<view :class="['type', 'type' + item.orderStatus]"> |
|
|
|
<text class="name">下单日期:</text> |
|
|
|
{{ filterData[0].data.find(e => e.value === item.orderStatus).title }} |
|
|
|
<text class="val">{{ item.createTime }}</text> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view :class="['type', 'type' + item.orderStatus]"> |
|
|
|
|
|
|
|
{{ filterData[0].data.find(e => e.value === item.orderStatus).title }} |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
|
</uni-swipe-action> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<uni-load-more :status="status" /> |
|
|
|
<uni-load-more :status="status" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<empty v-else></empty> |
|
|
|
<empty v-else></empty> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<uni-icons class="plus" type="plus-filled" size="60" color="#007eff" @click="$util.to('/order/orderDetail/orderDetail')"></uni-icons> |
|
|
|
<uni-icons class="plus" type="plus-filled" size="60" color="#007eff" @click="$util.to('/order/orderDetail/orderDetail')"></uni-icons> |
|
|
|
<filter-popup :data="filterData" :form.sync="filterForm" v-model="popup" title="全部筛选" height="1104rpx" @finsh="subFinsh"></filter-popup> |
|
|
|
<filter-popup :data="filterData" :form.sync="filterForm" v-model="popup" title="全部筛选" height="1104rpx" @finsh="subFinsh"></filter-popup> |
|
|
|
<view v-if="!per" class="per-mask">功能升级中,敬请期待...</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="!per" class="per-mask"> |
|
|
|
|
|
|
|
<view class="mask"></view> |
|
|
|
|
|
|
|
<view class="texts"> |
|
|
|
|
|
|
|
<view class="text">权限审核中,可联系下方平台运营加快审核进度</view> |
|
|
|
|
|
|
|
<image class="qrcode" src="https://occupationlab.com/images/customer.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -145,6 +153,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
|
|
|
|
this.$uma.trackEvent('order') // 友盟统计 |
|
|
|
this.per = true |
|
|
|
this.per = true |
|
|
|
// 清除订单缓存 |
|
|
|
// 清除订单缓存 |
|
|
|
try { |
|
|
|
try { |
|
|
@ -159,6 +168,38 @@ |
|
|
|
const auth = uni.getStorageSync('auth') |
|
|
|
const auth = uni.getStorageSync('auth') |
|
|
|
if (!auth.includes('订单')) { |
|
|
|
if (!auth.includes('订单')) { |
|
|
|
this.per = false |
|
|
|
this.per = false |
|
|
|
|
|
|
|
this.list = [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
businessManagerName: '智信云', |
|
|
|
|
|
|
|
customerName: '智信云师资培训班', |
|
|
|
|
|
|
|
orderContent: 'python实训系统', |
|
|
|
|
|
|
|
createTime: '2023-08-08' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
businessManagerName: '智信云智信云智信云', |
|
|
|
|
|
|
|
customerName: '智信云师资培训班', |
|
|
|
|
|
|
|
orderContent: 'python实训系统', |
|
|
|
|
|
|
|
createTime: '2023-08-08' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
businessManagerName: '智信云智信云', |
|
|
|
|
|
|
|
customerName: '智信云师资培训班', |
|
|
|
|
|
|
|
orderContent: 'python系统', |
|
|
|
|
|
|
|
createTime: '2023-08-08' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
businessManagerName: '智信云', |
|
|
|
|
|
|
|
customerName: '智信云师资培训班智信云师资培训班', |
|
|
|
|
|
|
|
orderContent: 'python实训系统,实训系统', |
|
|
|
|
|
|
|
createTime: '2023-08-08' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
businessManagerName: '智信云', |
|
|
|
|
|
|
|
customerName: '智信云师资培训班', |
|
|
|
|
|
|
|
orderContent: 'python实训系统', |
|
|
|
|
|
|
|
createTime: '2023-08-08' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
this.tabs = [] |
|
|
|
this.tabs = [] |
|
|
|
auth.includes('订单:我的订单') && this.tabs.push({ |
|
|
|
auth.includes('订单:我的订单') && this.tabs.push({ |
|
|
@ -175,7 +216,7 @@ |
|
|
|
this.curTab = this.tabs[0].id |
|
|
|
this.curTab = this.tabs[0].id |
|
|
|
this.tabs = [] |
|
|
|
this.tabs = [] |
|
|
|
} |
|
|
|
} |
|
|
|
this.initList() |
|
|
|
this.per && this.initList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
getList() { |
|
|
|
const data = { |
|
|
|
const data = { |
|
|
@ -317,5 +358,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
.oh { |
|
|
|
.oh { |
|
|
|
overflow: hidden; |
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
min-height: 100vh; |
|
|
|
|
|
|
|
filter: blur(10px); |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|