|
@@ -78,7 +78,7 @@
|
|
|
<text>我要提问</text>
|
|
|
</view>
|
|
|
<view class="btn topage-button" @click="toPage('ask')" v-if="userInfo.status&&userAuth">
|
|
|
- <view>待回答<text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+waitNum+')'}}</text></view>
|
|
|
+ <view>待回答<text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+distributeNum+')'}}</text></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -99,7 +99,7 @@
|
|
|
mode="scaleToFill"
|
|
|
style="width:34rpx;height:34rpx;"
|
|
|
/>
|
|
|
- {{ isUserResearcher ? '待回答' : '我要提问' }} <text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+waitNum+')'}}</text>
|
|
|
+ {{ isUserResearcher ? '待回答' : '我要提问' }} <text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+distributeNum+')'}}</text>
|
|
|
</view> -->
|
|
|
</template>
|
|
|
<!-- 没有权限 -->
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
selectName:'',
|
|
|
pauseImgSrc:'../../static/question/recordplay.png',
|
|
|
playImgSrc:'../../static/question/recordpause.png',
|
|
|
- waitNum:0,
|
|
|
+ distributeNum:0,
|
|
|
/* userInfo:{
|
|
|
is_inner:1,//0:外部客户;1内部员工
|
|
|
status:'试用',
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
this.getQuestionList(3) */
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getWaitNum()
|
|
|
+ this.getdistributeNum()
|
|
|
this.getOptionList()
|
|
|
this.getQuestionList(3)
|
|
|
},
|
|
@@ -191,12 +191,12 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
//获取研究员问答列表数量统计
|
|
|
- getWaitNum() {
|
|
|
+ getdistributeNum() {
|
|
|
if(this.userInfo.is_inner!==1) return
|
|
|
//如果是研究员,则请求问答列表数量统计
|
|
|
apiBarTotal().then(res=>{
|
|
|
if(res.code===200){
|
|
|
- this.waitNum = res.data.wait
|
|
|
+ this.distributeNum = res.data.distribute
|
|
|
}
|
|
|
})
|
|
|
},
|