|
@@ -67,7 +67,32 @@
|
|
|
<text class="item-time">提问时间:{{ item.create_time }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="topage-btn" @click="toPage" v-if="isUserResearcher||userInfo.status&&userAuth">
|
|
|
+ <template v-if="isUserResearcher">
|
|
|
+ <view class="btn-wrap">
|
|
|
+ <view class="btn topage-button" @click="toPage('question')" v-if="userInfo.status&&userAuth">
|
|
|
+ <image
|
|
|
+ src="../../static/question/askquestion.png"
|
|
|
+ mode="scaleToFill"
|
|
|
+ style="width:34rpx;height:34rpx;"
|
|
|
+ />
|
|
|
+ <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>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <view class="topage-btn topage-button" @click="toPage('question')" v-if="userInfo.status&&userAuth">
|
|
|
+ <image
|
|
|
+ src="../../static/question/askquestion.png"
|
|
|
+ mode="scaleToFill"
|
|
|
+ style="width:34rpx;height:34rpx;"
|
|
|
+ />
|
|
|
+ <text>我要提问</text>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <!-- <view class="topage-btn" @click="toPage" v-if="isUserResearcher||userInfo.status&&userAuth">
|
|
|
<image
|
|
|
v-if="!isUserResearcher"
|
|
|
src="../../static/question/askquestion.png"
|
|
@@ -75,7 +100,7 @@
|
|
|
style="width:34rpx;height:34rpx;"
|
|
|
/>
|
|
|
{{ isUserResearcher ? '待回答' : '我要提问' }} <text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+waitNum+')'}}</text>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</template>
|
|
|
<!-- 没有权限 -->
|
|
|
<template v-else>
|
|
@@ -126,7 +151,7 @@ export default {
|
|
|
/* userInfo:{
|
|
|
is_inner:1,//0:外部客户;1内部员工
|
|
|
status:'试用',
|
|
|
- is_suspend:1,
|
|
|
+ is_suspend:0,
|
|
|
is_researcher:0,
|
|
|
//seal_name:'梁娜',
|
|
|
//seal_mobile:123456,
|
|
@@ -203,12 +228,11 @@ export default {
|
|
|
this.isPopupShow = false
|
|
|
},
|
|
|
//点击'我要提问' or '待回答'
|
|
|
- toPage() {
|
|
|
- //const {is_inner} = this.userInfo
|
|
|
- if (this.isUserResearcher) {
|
|
|
- uni.navigateTo({ url: '/pages-question/answerList' })
|
|
|
- } else {
|
|
|
+ toPage(type) {
|
|
|
+ if(type==='question'){
|
|
|
uni.navigateTo({ url: '/pages-question/hasQuestion' })
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({ url: '/pages-question/answerList' })
|
|
|
}
|
|
|
},
|
|
|
//转发分享
|
|
@@ -349,6 +373,8 @@ page {
|
|
|
margin-left: -257rpx;
|
|
|
bottom: 215rpx;
|
|
|
width:514rpx;
|
|
|
+ }
|
|
|
+ .topage-button{
|
|
|
height: 80rpx;
|
|
|
text-align: center;
|
|
|
line-height: 80rpx;
|
|
@@ -364,6 +390,22 @@ page {
|
|
|
margin-top: -2rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .btn-wrap{
|
|
|
+ position: fixed;
|
|
|
+ width:100%;
|
|
|
+ margin-left: -30rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ bottom: 215rpx;
|
|
|
+ .btn{
|
|
|
+ width:300rpx;
|
|
|
+ height:80rpx;
|
|
|
+ &:first-child{
|
|
|
+ margin-right: 30rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
.global-pup{
|
|
|
.content{
|
|
|
padding:90rpx 34rpx;
|