工作台调整,业务办理调整
This commit is contained in:
@@ -9,15 +9,16 @@
|
||||
<image class="cover" :src="userInfo.avatar || require('@/static/imgs/default-active.png')" mode="aspectFill"></image>
|
||||
<view class="nickname">{{userInfo.nickname}}<text class="card" v-if="isManager">{{identity.name}}</text></view>
|
||||
</view>
|
||||
<view class="work-bar-add" @click="onCreateOrder" v-if="isManager">
|
||||
<view class="work-bar-add" @click="onCreateOrder" v-if="isWorker">
|
||||
<uni-icons class="icon" type="plusempty" size="30rpx" color="#111"></uni-icons>创建订单
|
||||
</view>
|
||||
</view>
|
||||
</u-sticky>
|
||||
<!-- 未认证或未考试 -->
|
||||
<block v-if="!isManager">
|
||||
<!-- ! -->
|
||||
<!-- 工作台无权限 -->
|
||||
<block v-if="!isWorker">
|
||||
<view class="block open-interest">
|
||||
<view class="title">实习顾问专属权益</view>
|
||||
<view class="title">专属权益</view>
|
||||
<view class="open-interest-flex">
|
||||
<view class="open-interest-item" v-for="(item, index) in rightsArr" :key="index" @click="onToast(item)">
|
||||
<image class="open-interest-icon" :src="item.icon"></image>
|
||||
@@ -25,7 +26,16 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="block open-interest">
|
||||
<view class="block work-hint">
|
||||
<u-empty
|
||||
mode="permission"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||
:text="workerHint"
|
||||
textColor="gray"
|
||||
>
|
||||
</u-empty>
|
||||
</view>
|
||||
<!-- <view class="block open-interest">
|
||||
<view class="title">仅需3步即可成为实习顾问</view>
|
||||
<view class="open-interest-block">
|
||||
<image class="open-interest-icon" :src="isCertification ? require('@/static/icons/work_icon_25.png'): require('@/static/icons/work_icon_24.png')"></image>
|
||||
@@ -51,7 +61,7 @@
|
||||
</view>
|
||||
<button class="open-interest-btn" size="mini" :disabled="sign.isSign" @click="onSign">{{sign.isSign ? '已签约': '去签约'}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 提示信息 -->
|
||||
<u-popup :show="privilegeShow" mode="center" bgColor="transparent">
|
||||
<view class="privilege-lay">
|
||||
@@ -64,7 +74,7 @@
|
||||
</u-popup>
|
||||
</block>
|
||||
<!-- 管理中台 -->
|
||||
<view class="flex">
|
||||
<view class="flex" v-else>
|
||||
<view class="flex-item" @click="onNav('businessOrder', {bigId: item.id})" v-for="(item, index) in bigfiveArr" :key="index">
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/040906a765db310d77722cec9e0b9f46.png" mode="widthFix" v-if="index == 0"></image>
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/e0ac4aae85290f1148cea0005ed523a7.png" mode="widthFix" v-else-if="index == 1"></image>
|
||||
@@ -129,7 +139,10 @@
|
||||
synthesisData : {},
|
||||
|
||||
bigfiveArr : [],
|
||||
captchaShow : false
|
||||
captchaShow : false,
|
||||
// 工作台权限
|
||||
isWorker : false,
|
||||
workerHint : ""
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
@@ -212,7 +225,7 @@
|
||||
indexData = res[1],
|
||||
synthesisData = res[2]
|
||||
|
||||
let { nickname, avatar, business_orders_count, isCertification, certification, isManager, isAnswer, identity, sign } = indexData
|
||||
let { nickname, avatar, business_orders_count, isCertification, certification, isManager, isAnswer, identity, sign, is_worker, no_worker_message } = indexData
|
||||
this.rightsArr = rightsData
|
||||
this.userInfo = {
|
||||
nickname,
|
||||
@@ -225,11 +238,13 @@
|
||||
this.orderCount = business_orders_count
|
||||
this.identity = identity
|
||||
this.sign = sign
|
||||
|
||||
this.synthesisData = synthesisData
|
||||
|
||||
this.isWorker = is_worker
|
||||
this.workerHint = no_worker_message
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
@@ -294,6 +309,17 @@
|
||||
.content{
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
// 权限提示
|
||||
.work-hint{
|
||||
height: 50vh;
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
color: gray;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
// 登录提示
|
||||
.auth-null{
|
||||
height: 100vh;
|
||||
|
||||
Reference in New Issue
Block a user