修复:运营中心 - 身份过多,不能滑动的问题

This commit is contained in:
wuhui_zzw 2024-03-29 10:18:16 +08:00
parent bfdfabc6d1
commit 7761895178
4 changed files with 148 additions and 44 deletions

View File

@ -1400,6 +1400,12 @@
"style": {
"navigationBarTitleText": "订单管理"
}
},
{
"path": "invite/my_invite",
"style": {
"navigationBarTitleText": "我的邀请"
}
}
]
},

View File

@ -151,6 +151,18 @@ export default {
icon: 'icon-dingdanguanli',
});
}
//
if(['6'].includes(String(agentType))){
menuList.push({
title: '我的邀请',
type: 'link',
url: '/pages/agent/invite/my_invite',
icon: 'icon-yaoqing1',
});
}
//
// staging_list:[

View File

@ -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>

View File

@ -278,54 +278,56 @@
<uni-popup ref="agentIdentitySelect" type="bottom" :is-mask-click="false">
<view class="agent-identity-list">
<view class="_list">
<!--固定菜单-->
<template v-if="identityCurrentName == 'county'">
<view class="_list-item" v-if="userInfo.service" @click="toService(0)">
<view class="top">门店商家管理</view>
<view class="tag-list">
<view class="tag-list-item">门店商家管理中心</view>
<scroll-view :scroll-y="true" style="height: 100%; overflow: hidden;" >
<!--固定菜单-->
<template v-if="identityCurrentName == 'county'">
<view class="_list-item" v-if="userInfo.service" @click="toService(0)">
<view class="top">门店商家管理</view>
<view class="tag-list">
<view class="tag-list-item">门店商家管理中心</view>
</view>
</view>
</view>
<view class="_list-item" v-if="userInfo.shopMerService" @click="toService(2)">
<view class="top">酒道馆管理</view>
<view class="tag-list">
<view class="tag-list-item">酒道馆管理中心</view>
</view>
</view>
</template>
<template v-if="identityCurrentName == 'wine'">
<view class="_list-item" v-if="userInfo.smokeMerService" @click="toService(3)">
<view class="top">烟酒店管理</view>
<view class="tag-list">
<view class="tag-list-item">烟酒店管理中心</view>
</view>
</view>
</template>
<!--类型1=总部发起人,2=省公司发起人,3=省合伙人(外勤),4=省合伙人(内勤),5=区县运营商,6=区县合伙人,7=餐厅,8=配送商,9=总部外勤,10=总部内勤-->
<view class="_list-item" v-for="(item,index) in identityCurrent" :key="index" @click="goToAgentCenter(item)">
<!--餐厅-->
<template v-if="item.agent_type == 7">
<view class="top">{{ item.mer ? item.mer.mer_name : '' }}</view>
<view class="tag-list">
<view class="tag-list-item">{{ item.agent_type_text }}</view>
<!--<view class="tag-list-item">{{ item.address }}</view>-->
<view class="_list-item" v-if="userInfo.shopMerService" @click="toService(2)">
<view class="top">酒道馆管理</view>
<view class="tag-list">
<view class="tag-list-item">酒道馆管理中心</view>
</view>
</view>
</template>
<!--配送商-->
<template v-else-if="item.agent_type == 8 || item.agent_type == 11">
<view class="top">{{ item.agent_type_text }}</view>
<view class="tag-list delivery-tag">
<view class="tag-list-item" v-for="(merItem,merIndex) in item.merList" :key="merIndex">{{ merItem.mer_name || '' }}</view>
<template v-if="identityCurrentName == 'wine'">
<view class="_list-item" v-if="userInfo.smokeMerService" @click="toService(3)">
<view class="top">烟酒店管理</view>
<view class="tag-list">
<view class="tag-list-item">烟酒店管理中心</view>
</view>
</view>
</template>
<!--其他角色-->
<template v-else>
<view class="top">{{ item.corporate_name || '' }}</view>
<view class="tag-list" v-if="item.agent_type_list">
<view class="tag-list-item" v-for="(tagItem,tagIndex) in Object.values(item.agent_type_list)" :key="tagIndex">{{ tagItem || '' }}</view>
<!--类型1=总部发起人,2=省公司发起人,3=省合伙人(外勤),4=省合伙人(内勤),5=区县运营商,6=区县合伙人,7=餐厅,8=配送商,9=总部外勤,10=总部内勤-->
<view class="_list-item" v-for="(item,index) in identityCurrent" :key="index" @click="goToAgentCenter(item)">
<!--餐厅-->
<template v-if="item.agent_type == 7">
<view class="top">{{ item.mer ? item.mer.mer_name : '' }}</view>
<view class="tag-list">
<view class="tag-list-item">{{ item.agent_type_text }}</view>
<!--<view class="tag-list-item">{{ item.address }}</view>-->
</view>
</template>
<!--配送商-->
<template v-else-if="item.agent_type == 8 || item.agent_type == 11">
<view class="top">{{ item.agent_type_text }}</view>
<view class="tag-list delivery-tag">
<view class="tag-list-item" v-for="(merItem,merIndex) in item.merList" :key="merIndex">{{ merItem.mer_name || '' }}</view>
</view>
</template>
<!--其他角色-->
<template v-else>
<view class="top">{{ item.corporate_name || '' }}</view>
<view class="tag-list" v-if="item.agent_type_list">
<view class="tag-list-item" v-for="(tagItem,tagIndex) in Object.values(item.agent_type_list)" :key="tagIndex">{{ tagItem || '' }}</view>
</view>
</template>
</view>
</template>
</view>
</scroll-view>
</view>
<view class='close-btn' @click="closeAgentIdentitySelect">取消</view>
</view>
@ -934,12 +936,12 @@
position: relative;
._list{
height: calc(100% - 160rpx);
height: calc(80vh - 160rpx);
width: calc(100% - (var(--list-padding-) * 2));
position: fixed;
top: var(--list-padding-);
left: var(--list-padding-);
overflow-y: auto;
overflow: auto;
._list-item{
width: 100%;
background: #FFFFFF;