|
@@ -132,7 +132,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
<!-- 话题 -->
|
|
<!-- 话题 -->
|
|
|
- <view class="ddflex" v-if="item.qyDialogu">
|
|
|
|
|
|
|
+ <view class="ddflex" v-if="item.qyDialogu&&item.qyDialogu.isExamine==1">
|
|
|
<view class="topic ddflex"
|
|
<view class="topic ddflex"
|
|
|
@click="jumpUrl('/topics/detail/detail?topicId=' + item.qyDialogu.id)">
|
|
@click="jumpUrl('/topics/detail/detail?topicId=' + item.qyDialogu.id)">
|
|
|
<image src="../../static/images/topic.png"></image>
|
|
<image src="../../static/images/topic.png"></image>
|
|
@@ -330,7 +330,7 @@
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
<view :class="'create'+(config.greyTheme==1?' grayTheme':'')" @click="showBtn"
|
|
<view :class="'create'+(config.greyTheme==1?' grayTheme':'')" @click="showBtn"
|
|
|
- v-if="config.is_show_create_btn == 1">
|
|
|
|
|
|
|
+ v-if="config.is_show_create_btn == 1&&havePermission">
|
|
|
<image style="display: block;" src="/static/images/create.png"></image>发布
|
|
<image style="display: block;" src="/static/images/create.png"></image>发布
|
|
|
</view>
|
|
</view>
|
|
|
<view :class="'ceng'+(config.greyTheme==1?' grayTheme':'')" v-if="isShowbtn" @click="hideBtn"></view>
|
|
<view :class="'ceng'+(config.greyTheme==1?' grayTheme':'')" v-if="isShowbtn" @click="hideBtn"></view>
|
|
@@ -407,6 +407,8 @@
|
|
|
isShowUpdate: false, //是否显示更新信息弹窗
|
|
isShowUpdate: false, //是否显示更新信息弹窗
|
|
|
isUpdateInfo: false,//更新用户信息
|
|
isUpdateInfo: false,//更新用户信息
|
|
|
isUpdateMobile: false,//绑定手机号
|
|
isUpdateMobile: false,//绑定手机号
|
|
|
|
|
+
|
|
|
|
|
+ havePermission:false//当前用户是否有发帖权限
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -451,6 +453,8 @@
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
// this.getCategory();
|
|
// this.getCategory();
|
|
|
|
|
+ // 获取是否有发帖权限
|
|
|
|
|
+ this.getUserPermission()
|
|
|
this.getConfig();
|
|
this.getConfig();
|
|
|
this.getHotTopic();
|
|
this.getHotTopic();
|
|
|
this.getCmsList();
|
|
this.getCmsList();
|
|
@@ -485,6 +489,13 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getUserPermission(){
|
|
|
|
|
+ req.getRequest('/api/user/getUserPermission',{},res=>{
|
|
|
|
|
+ if(res){
|
|
|
|
|
+ this.havePermission = res.map(item=>item.permissions).indexOf('sys:post')>-1?true:false
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
swiTab(index) {
|
|
swiTab(index) {
|
|
|
if (this.currentTab == index) return false;
|
|
if (this.currentTab == index) return false;
|
|
|
this.currentTab = index;
|
|
this.currentTab = index;
|