认证
This commit is contained in:
@@ -96,9 +96,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onReady () {
|
|
||||||
},
|
|
||||||
|
|
||||||
onLoad () {
|
onLoad () {
|
||||||
this.getTopicList()
|
this.getTopicList()
|
||||||
|
|
||||||
@@ -159,8 +156,16 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
toAdd () {
|
toAdd () {
|
||||||
if (!this.user.AreaId) {
|
if (this.user.AreaId) {
|
||||||
this.$linkTo('./Add')
|
this.$linkTo('./Add')
|
||||||
|
} else {
|
||||||
|
this.$dialog.confirm({
|
||||||
|
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||||
|
confirmText: '去认证'
|
||||||
|
}).then(() => {
|
||||||
|
this.$linkTo('../AppMine/userInfo')
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -219,6 +219,17 @@ div<template>
|
|||||||
},
|
},
|
||||||
|
|
||||||
send () {
|
send () {
|
||||||
|
if (!this.user.AreaId) {
|
||||||
|
this.$dialog.confirm({
|
||||||
|
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||||
|
confirmText: '去认证'
|
||||||
|
}).then(() => {
|
||||||
|
this.$linkTo('../AppMine/userInfo')
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
if (!this.content) {
|
if (!this.content) {
|
||||||
return this.$toast('内容不能为空')
|
return this.$toast('内容不能为空')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,14 +25,19 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div class="body-list" v-if="currIndex === 0">
|
<div class="body-list" v-if="currIndex === 0">
|
||||||
<div class="item" v-for="(item, index) in list" :key="index">
|
<div class="item"
|
||||||
|
v-for="(item, index) in list"
|
||||||
|
:key="index"
|
||||||
|
hover-class="text-hover"
|
||||||
|
hover-stop-propagation
|
||||||
|
@click="$linkTo('./Detail?id=' + item.id + '&name=' + item.topicName + '&themeId=' + item.themeId)">
|
||||||
<div class="item-top">
|
<div class="item-top">
|
||||||
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<h3>{{ item.createUserName }}</h3>
|
<h3>{{ item.createUserName }}</h3>
|
||||||
<span v-if="item.publishDepartName">{{ item.publishDepartName }}</span>
|
<span v-if="item.publishDepartName">{{ item.publishDepartName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<image @click="remove(item.id)" class="remove" src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png" />
|
<image hover-stop-propagation @click.stop="remove(item.id)" class="remove" src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="item-content">
|
<div class="item-content">
|
||||||
<span v-if="item.themeId" @click.stop="$linkTo('./TopicDetail?themeId=' + item.themeId + '&name=' + item.topicName)">#【{{ item.topicName }}】</span>
|
<span v-if="item.themeId" @click.stop="$linkTo('./TopicDetail?themeId=' + item.themeId + '&name=' + item.topicName)">#【{{ item.topicName }}】</span>
|
||||||
@@ -59,14 +64,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="body-list" v-if="currIndex === 1">
|
<div class="body-list" v-if="currIndex === 1">
|
||||||
<div class="item" v-for="(item, index) in list" :key="index">
|
<div class="item"
|
||||||
|
v-for="(item, index) in list"
|
||||||
|
:key="index"
|
||||||
|
hover-class="text-hover"
|
||||||
|
hover-stop-propagation
|
||||||
|
@click="$linkTo('./Detail?id=' + item.id + '&name=' + item.topicName + '&themeId=' + item.themeId)">
|
||||||
<div class="item-top">
|
<div class="item-top">
|
||||||
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<h3>{{ item.createUserName }}</h3>
|
<h3>{{ item.createUserName }}</h3>
|
||||||
<span v-if="item.publishDepartName">{{ item.publishDepartName }}</span>
|
<span v-if="item.publishDepartName">{{ item.publishDepartName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<image @click="removeComment(item.id)" class="remove" src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png" />
|
<image hover-stop-propagation @click.stop="removeComment(item.id)" class="remove" src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="item-content">
|
<div class="item-content">
|
||||||
<span v-if="item.themeId" @click.stop="$linkTo('./TopicDetail?themeId=' + item.themeId + '&name=' + item.topicName)">#【{{ item.topicName }}】</span>
|
<span v-if="item.themeId" @click.stop="$linkTo('./TopicDetail?themeId=' + item.themeId + '&name=' + item.topicName)">#【{{ item.topicName }}】</span>
|
||||||
@@ -96,10 +106,13 @@
|
|||||||
<div class="comment-item" v-for="(item, index) in list" :key="index">
|
<div class="comment-item" v-for="(item, index) in list" :key="index">
|
||||||
<div class="comment-top">
|
<div class="comment-top">
|
||||||
<span>{{ item.myComment.createTime }}</span>
|
<span>{{ item.myComment.createTime }}</span>
|
||||||
<image @click="removeComment(item.id)" class="remove" src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png" />
|
<image hover-stop-propagation @click.stop="removeComment(item.id)" class="remove" src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png" />
|
||||||
</div>
|
</div>
|
||||||
<p>{{ item.myComment.content }}</p>
|
<p>{{ item.myComment.content }}</p>
|
||||||
<div class="bottom">
|
<div
|
||||||
|
class="bottom"
|
||||||
|
hover-class="text-hover"
|
||||||
|
@click="$linkTo('./Detail?id=' + item.id + '&name=' + item.topicName + '&themeId=' + item.themeId)">
|
||||||
<div class="item-top">
|
<div class="item-top">
|
||||||
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
||||||
<div class="right">
|
<div class="right">
|
||||||
@@ -563,6 +576,12 @@
|
|||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
word-break: break-all;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
@@ -671,7 +690,13 @@
|
|||||||
.item-content {
|
.item-content {
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
// text-align: justify;
|
text-align: justify;
|
||||||
|
word-break: break-all;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
|
|||||||
Reference in New Issue
Block a user