|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="question-wrap">
|
|
|
- <view class="question-top">
|
|
|
- <view @click="showPopup" v-if="userInfo.is_inner===1||userInfo.status&&!noAuth.includes(userInfo.status)"
|
|
|
+ <view class="question-top" :class="{'noAuth':!(userInfo.is_inner===1||userInfo.status&&userAuth)}">
|
|
|
+ <view @click="showPopup" v-if="userInfo.is_inner===1||userInfo.status&&userAuth"
|
|
|
style="display:flex;align-items: center;margin-left:30rpx;">
|
|
|
<image src="../../static/question/select.png" mode="widthFix" class="menu-icon"/>
|
|
|
<text style="color:#E3B377;font-size:28rpx;">筛选</text>
|
|
@@ -66,7 +66,7 @@
|
|
|
<text class="item-time">提问时间:{{ item.create_time }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="topage-btn" @click="toPage" v-if="userInfo.is_inner===1||userInfo.status&&!noAuth.includes(userInfo.status)">
|
|
|
+ <view class="topage-btn" @click="toPage" v-if="userInfo.is_inner===1||userInfo.status&&userAuth">
|
|
|
<image
|
|
|
v-if=" userInfo.is_inner!==1"
|
|
|
src="../../static/question/askquestion.png"
|
|
@@ -107,11 +107,12 @@ export default {
|
|
|
selectName:'',
|
|
|
pauseImgSrc:'../../static/question/recordplay.png',
|
|
|
playImgSrc:'../../static/question/recordpause.png',
|
|
|
- noAuth:['潜在','流失','冻结客户','暂停试用'],
|
|
|
+ noAuth:['潜在','流失','冻结'],
|
|
|
waitNum:0,
|
|
|
/* userInfo:{
|
|
|
is_inner:0,//0:外部客户;1内部员工
|
|
|
- status:'正式'
|
|
|
+ status:'潜在',
|
|
|
+ is_suspend:0
|
|
|
},//mock用户信息 */
|
|
|
}
|
|
|
},
|
|
@@ -120,6 +121,20 @@ export default {
|
|
|
this.getQuestionList(3)
|
|
|
}
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ userAuth(){
|
|
|
+ //暂停试用
|
|
|
+ if(this.userInfo.status==='试用'&&this.userInfo.is_suspend===1){
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ //潜在流失冻结
|
|
|
+ if(this.noAuth.includes(this.userInfo.status)){
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ //有权限的
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ },
|
|
|
onLoad() {
|
|
|
/* this.getVistor()
|
|
|
this.getOptionList()
|
|
@@ -230,6 +245,9 @@ page {
|
|
|
left: 0;
|
|
|
margin:0 -30rpx;
|
|
|
z-index: 99;
|
|
|
+ &.noAuth{
|
|
|
+ height:20rpx;
|
|
|
+ }
|
|
|
/* border-top: 1rpx solid rgba(0, 0, 0, 0.1); */
|
|
|
.text{
|
|
|
width:240rpx;
|