|
@@ -15,13 +15,23 @@
|
|
|
<view
|
|
|
:class="['tab-item', tabActive === '1' && 'tab-active']"
|
|
|
data-type="1"
|
|
|
- >线上会议</view>
|
|
|
+ >报告及线上会议</view>
|
|
|
<view
|
|
|
:class="['tab-item', tabActive === '3' && 'tab-active']"
|
|
|
data-type="3"
|
|
|
>线下沙龙</view>
|
|
|
</view>
|
|
|
<view class="flex status-wrap" @click="statusChange">
|
|
|
+ <van-checkbox
|
|
|
+ class="auth-box"
|
|
|
+ shape="square"
|
|
|
+ :value="onlySeeAuth"
|
|
|
+ @change="handleAuthChange"
|
|
|
+ checked-color="#D5AD79"
|
|
|
+ icon-size="16px"
|
|
|
+ >
|
|
|
+ <view class="text">只看有权限</view>
|
|
|
+ </van-checkbox>
|
|
|
<view
|
|
|
:class="[
|
|
|
'status-item',
|
|
@@ -123,7 +133,7 @@ import {
|
|
|
apiActivityRegister,
|
|
|
apiActivityCancelRegister
|
|
|
} from '@/api/activity'
|
|
|
-import {apiApplyPermission} from '@/api/user'
|
|
|
+import {apiApplyPermission,apiUserInfo} from '@/api/user'
|
|
|
export default {
|
|
|
watch: {
|
|
|
'pupData.show':{
|
|
@@ -139,6 +149,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
data() {
|
|
|
return {
|
|
|
searchVal: '',
|
|
@@ -155,11 +166,13 @@ export default {
|
|
|
content:'',//弹窗html字符串
|
|
|
type:'',
|
|
|
mobile:"",
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ onlySeeAuth:false,// 是否只看有权限的
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.getList()
|
|
|
+ this.init()
|
|
|
this.addEventListenerRemind()
|
|
|
this.addEventListenerRegister()
|
|
|
},
|
|
@@ -196,6 +209,24 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ async init(){
|
|
|
+ let userInfoRes=this.userInfo
|
|
|
+ if(!this.userInfo.status){
|
|
|
+ const res=await apiUserInfo()
|
|
|
+ if(res.code===200){
|
|
|
+ userInfoRes=res.data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(['正式','试用','永续'].includes(userInfoRes.status)){
|
|
|
+ this.onlySeeAuth=true
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+
|
|
|
+ handleAuthChange(e){
|
|
|
+ this.onlySeeAuth=e.detail
|
|
|
+ },
|
|
|
+
|
|
|
// 切换tabbar页面时 整个刷新
|
|
|
allRefresh(){
|
|
|
this.tabActive= '1'
|
|
@@ -510,6 +541,14 @@ export default {
|
|
|
.status-wrap {
|
|
|
background-color: $global-bg-color;
|
|
|
padding: 40rpx 34rpx 20rpx 34rpx;
|
|
|
+ overflow-x: scroll;
|
|
|
+ width: 100%;
|
|
|
+ margin-right: 34rpx;
|
|
|
+ align-items: center;
|
|
|
+ &::-webkit-scrollbar{
|
|
|
+ width: 0;
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
.status-item {
|
|
|
font-size: $global-font-size-sm;
|
|
|
color: #444;
|
|
@@ -519,11 +558,20 @@ export default {
|
|
|
border-radius: 40rpx;
|
|
|
background-color: #f6f6f6;
|
|
|
margin-right: 40rpx;
|
|
|
+ height: 60rpx;
|
|
|
}
|
|
|
.status-active {
|
|
|
background: linear-gradient(270deg, #efc896 0%, #d9a35f 100%);
|
|
|
color: $global-bg-color;
|
|
|
}
|
|
|
+ .auth-box{
|
|
|
+ margin-right: 40rpx;
|
|
|
+ .text{
|
|
|
+ color: $global-text-color-main;
|
|
|
+ font-size: $global-font-size-sm;
|
|
|
+ width: 120rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.list {
|