修复:运营中心 - 身份过多,不能滑动的问题
This commit is contained in:
parent
bfdfabc6d1
commit
7761895178
|
|
@ -1400,6 +1400,12 @@
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "订单管理"
|
"navigationBarTitleText": "订单管理"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "invite/my_invite",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "我的邀请"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,18 @@ export default {
|
||||||
icon: 'icon-dingdanguanli',
|
icon: 'icon-dingdanguanli',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// 我的邀请
|
||||||
|
if(['6'].includes(String(agentType))){
|
||||||
|
menuList.push({
|
||||||
|
title: '我的邀请',
|
||||||
|
type: 'link',
|
||||||
|
url: '/pages/agent/invite/my_invite',
|
||||||
|
icon: 'icon-yaoqing1',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 工作台
|
// 工作台
|
||||||
// staging_list:[
|
// staging_list:[
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,84 @@
|
||||||
|
<template>
|
||||||
|
<view class="main-content">
|
||||||
|
|
||||||
|
|
||||||
|
我的邀请
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 授权登录 -->
|
||||||
|
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authClose"></authorize>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
import authorize from '@/components/Authorize';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'business',
|
||||||
|
components: {
|
||||||
|
authorize
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['isLogin', 'uid', 'userInfo', 'viewColor'])
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 登录相关
|
||||||
|
isAuto: false, //没有授权的不会自动授权
|
||||||
|
isShowAuth: false,//是否隐藏授权
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
let _this = this;
|
||||||
|
// 判断:是否登录
|
||||||
|
if (!this.isLogin) {
|
||||||
|
// 未登录 授权登录
|
||||||
|
this.isAuto = true;
|
||||||
|
this.isShowAuth = true
|
||||||
|
}else{
|
||||||
|
// 已登录 获取信息
|
||||||
|
this.init();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 授权回调
|
||||||
|
onLoadFun() {
|
||||||
|
if(this.isLogin){
|
||||||
|
this.isShowAuth = false;
|
||||||
|
this.init();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 授权关闭
|
||||||
|
authClose(e) {
|
||||||
|
this.isShowAuth = e
|
||||||
|
},
|
||||||
|
// 授权成功 初始化
|
||||||
|
init () {
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.main-content{
|
||||||
|
width: 100vw!important;
|
||||||
|
min-height: 100vh!important;
|
||||||
|
background: orange;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -278,6 +278,7 @@
|
||||||
<uni-popup ref="agentIdentitySelect" type="bottom" :is-mask-click="false">
|
<uni-popup ref="agentIdentitySelect" type="bottom" :is-mask-click="false">
|
||||||
<view class="agent-identity-list">
|
<view class="agent-identity-list">
|
||||||
<view class="_list">
|
<view class="_list">
|
||||||
|
<scroll-view :scroll-y="true" style="height: 100%; overflow: hidden;" >
|
||||||
<!--固定菜单-->
|
<!--固定菜单-->
|
||||||
<template v-if="identityCurrentName == 'county'">
|
<template v-if="identityCurrentName == 'county'">
|
||||||
<view class="_list-item" v-if="userInfo.service" @click="toService(0)">
|
<view class="_list-item" v-if="userInfo.service" @click="toService(0)">
|
||||||
|
|
@ -326,6 +327,7 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<view class='close-btn' @click="closeAgentIdentitySelect">取消</view>
|
<view class='close-btn' @click="closeAgentIdentitySelect">取消</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -934,12 +936,12 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
._list{
|
._list{
|
||||||
height: calc(100% - 160rpx);
|
height: calc(80vh - 160rpx);
|
||||||
width: calc(100% - (var(--list-padding-) * 2));
|
width: calc(100% - (var(--list-padding-) * 2));
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: var(--list-padding-);
|
top: var(--list-padding-);
|
||||||
left: var(--list-padding-);
|
left: var(--list-padding-);
|
||||||
overflow-y: auto;
|
overflow: auto;
|
||||||
._list-item{
|
._list-item{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue