对接手机端
This commit is contained in:
@@ -41,20 +41,21 @@
|
||||
{{queryForm.browsingHistoryCount}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="iconTextLeft" @click="starClick()">
|
||||
<img v-if="!this.isCollect" src="~@/assets/icon_zan.png" alt="">
|
||||
<img v-else src="~@/assets/dianzan.png" alt="">
|
||||
<span class="iconTextLeft-text" :class="{'icon-active':this.isCollect}">
|
||||
{{queryForm.collectCount}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="iconTextLeft" @click="likeClick()">
|
||||
<img v-if="!this.isPraise" src="~@/assets/icon_shoucang.png" alt="">
|
||||
<img v-else src="~@/assets/xuanzhong.png" alt="">
|
||||
<img v-if="!this.isPraise" src="~@/assets/icon_zan.png" alt="">
|
||||
<img v-else src="~@/assets/dianzan.png" alt="">
|
||||
<span class="iconTextLeft-text" :class="{'icon-active':this.isPraise}">
|
||||
{{queryForm.praiseCount}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="iconTextLeft" @click="starClick()">
|
||||
<img v-if="!this.isCollect" src="~@/assets/icon_shoucang.png" alt="">
|
||||
<img v-else src="~@/assets/xuanzhong.png" alt="">
|
||||
<span class="iconTextLeft-text" :class="{'icon-active':this.isCollect}">
|
||||
{{queryForm.collectCount}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="comment">
|
||||
@@ -191,7 +192,7 @@
|
||||
},
|
||||
getQueryBy() {
|
||||
let query = {
|
||||
id: '1bbe56abe27b410998365f20e6023e38'
|
||||
id: this.$route.query.id
|
||||
}
|
||||
getAction(this.url.queryById, query).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -225,7 +226,7 @@
|
||||
this.queryForm.praiseCount = this.queryForm.praiseCount - 1
|
||||
}
|
||||
let query = {
|
||||
problemKnowledgeBaseId: this.queryForm.id,
|
||||
problemKnowledgeBaseId: this.$route.query.id,
|
||||
praiseUserId: this.userInfo().id,
|
||||
praiseStatus: praiseStatus,
|
||||
id: this.queryForm.praiseEO ? this.queryForm.praiseEO.id : undefined
|
||||
@@ -251,7 +252,7 @@
|
||||
this.queryForm.collectCount = this.queryForm.collectCount - 1
|
||||
}
|
||||
let query = {
|
||||
problemKnowledgeBaseId: this.queryForm.id,
|
||||
problemKnowledgeBaseId: this.$route.query.id,
|
||||
collectUserId: this.userInfo().id,
|
||||
collectStatus: collectStatus,
|
||||
id: this.queryForm.collectEO ? this.queryForm.collectEO.id : undefined
|
||||
@@ -264,7 +265,7 @@
|
||||
},
|
||||
releaseData() {
|
||||
let query = {
|
||||
problemKnowledgeBaseId: '1bbe56abe27b410998365f20e6023e38'
|
||||
problemKnowledgeBaseId: this.$route.query.id
|
||||
}
|
||||
getAction('/problemKnowledgeBase/problemKnowledgeBaseCommentEO/list', query).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -328,7 +329,7 @@
|
||||
sendClick() {
|
||||
if (this.num == 1) {
|
||||
let query = {
|
||||
problemKnowledgeBaseId: this.queryForm.id,
|
||||
problemKnowledgeBaseId: this.$route.query.id,
|
||||
commentContent: this.sendValue,
|
||||
commentUserId: this.userInfo().id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user