|
|
@ -26,23 +26,41 @@ |
|
|
|
<text class="error-text">文章不存在或已被删除</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<commentList @getData="getData" :list="list" :params="params" /> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
import mixinsList from '@/mixins/list.js' |
|
|
|
import commentList from '../components/list/comment/commentList.vue' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
commentList, |
|
|
|
}, |
|
|
|
mixins: [mixinsList], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
mixinsListApi : 'getCommentPage', |
|
|
|
articleId: '', |
|
|
|
articleDetail: null, |
|
|
|
loading: false |
|
|
|
loading: false, |
|
|
|
params : { |
|
|
|
type : '8', |
|
|
|
orderId : '', |
|
|
|
name : '', |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
if (options.id) { |
|
|
|
this.articleId = options.id; |
|
|
|
this.loadArticleDetail(); |
|
|
|
|
|
|
|
this.queryParams.type = this.params.type |
|
|
|
this.queryParams.orderId = options.id |
|
|
|
|
|
|
|
this.params.orderId = options.id |
|
|
|
} |
|
|
|
}, |
|
|
|
onShareAppMessage(res) { |
|
|
@ -67,6 +85,7 @@ |
|
|
|
this.loading = false; |
|
|
|
|
|
|
|
if (res.code === 200 && res.result) { |
|
|
|
this.params.name = res.result.title |
|
|
|
this.articleDetail = res.result; |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|