|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="question-wrap">
|
|
|
- <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"
|
|
|
+ <view class="question-top" :class="{'noAuth':!(isUserResearcher||userInfo.status&&userAuth)}">
|
|
|
+ <view @click="showPopup" v-if="isUserResearcher||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,14 +66,14 @@
|
|
|
<text class="item-time">提问时间:{{ item.create_time }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="topage-btn" @click="toPage" v-if="userInfo.is_inner===1||userInfo.status&&userAuth">
|
|
|
+ <view class="topage-btn" @click="toPage" v-if="isUserResearcher||userInfo.status&&userAuth">
|
|
|
<image
|
|
|
v-if=" userInfo.is_inner!==1"
|
|
|
src="../../static/question/askquestion.png"
|
|
|
mode="scaleToFill"
|
|
|
style="width:34rpx;height:34rpx;"
|
|
|
/>
|
|
|
- {{ userInfo.is_inner===1 ? '待回答' : '我要提问' }} <text v-if="userInfo.is_inner===1" style="margin-left:5rpx;">{{'('+waitNum+')'}}</text>
|
|
|
+ {{ isUserResearcher ? '待回答' : '我要提问' }} <text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+waitNum+')'}}</text>
|
|
|
</view>
|
|
|
<!-- 弹窗 -->
|
|
|
<van-popup :show="pupData.show" round @close="pupData.show = false" closeable :close-on-click-overlay="false">
|
|
@@ -110,9 +110,10 @@ export default {
|
|
|
noAuth:['潜在','流失','冻结'],
|
|
|
waitNum:0,
|
|
|
/* userInfo:{
|
|
|
- is_inner:0,//0:外部客户;1内部员工
|
|
|
+ is_inner:1,//0:外部客户;1内部员工
|
|
|
status:'潜在',
|
|
|
- is_suspend:0
|
|
|
+ is_suspend:0,
|
|
|
+ is_researcher:0
|
|
|
},//mock用户信息 */
|
|
|
}
|
|
|
},
|
|
@@ -133,6 +134,13 @@ export default {
|
|
|
}
|
|
|
//有权限的
|
|
|
return true
|
|
|
+ },
|
|
|
+ isUserResearcher(){
|
|
|
+ //内部人员+研究员
|
|
|
+ if(this.userInfo.is_inner===1&&this.userInfo.is_researcher===1){
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ return false
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|