认证
This commit is contained in:
@@ -96,9 +96,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
onReady () {
|
||||
},
|
||||
|
||||
onLoad () {
|
||||
this.getTopicList()
|
||||
|
||||
@@ -159,8 +156,16 @@
|
||||
},
|
||||
|
||||
toAdd () {
|
||||
if (!this.user.AreaId) {
|
||||
if (this.user.AreaId) {
|
||||
this.$linkTo('./Add')
|
||||
} else {
|
||||
this.$dialog.confirm({
|
||||
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||
confirmText: '去认证'
|
||||
}).then(() => {
|
||||
this.$linkTo('../AppMine/userInfo')
|
||||
}).catch(() => {
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -219,6 +219,17 @@ div<template>
|
||||
},
|
||||
|
||||
send () {
|
||||
if (!this.user.AreaId) {
|
||||
this.$dialog.confirm({
|
||||
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||
confirmText: '去认证'
|
||||
}).then(() => {
|
||||
this.$linkTo('../AppMine/userInfo')
|
||||
}).catch(() => {
|
||||
})
|
||||
|
||||
return false
|
||||
}
|
||||
if (!this.content) {
|
||||
return this.$toast('内容不能为空')
|
||||
}
|
||||
|
||||
@@ -25,14 +25,19 @@
|
||||
</div>
|
||||
<div class="body">
|
||||
<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">
|
||||
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
||||
<div class="right">
|
||||
<h3>{{ item.createUserName }}</h3>
|
||||
<span v-if="item.publishDepartName">{{ item.publishDepartName }}</span>
|
||||
</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 class="item-content">
|
||||
<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 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">
|
||||
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
||||
<div class="right">
|
||||
<h3>{{ item.createUserName }}</h3>
|
||||
<span v-if="item.publishDepartName">{{ item.publishDepartName }}</span>
|
||||
</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 class="item-content">
|
||||
<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-top">
|
||||
<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>
|
||||
<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">
|
||||
<image class="avatar" :src="item.createUserAvatar || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'" />
|
||||
<div class="right">
|
||||
@@ -563,6 +576,12 @@
|
||||
margin: 16px 0;
|
||||
line-height: 1.3;
|
||||
text-align: justify;
|
||||
word-break: break-all;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
|
||||
span {
|
||||
font-size: 28px;
|
||||
@@ -671,7 +690,13 @@
|
||||
.item-content {
|
||||
margin: 16px 0;
|
||||
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 {
|
||||
font-size: 28px;
|
||||
|
||||
Reference in New Issue
Block a user