Commit 98d75095 authored by 万成波's avatar 万成波

优化代码

parent 6675f7fb
......@@ -8,7 +8,7 @@
<view class="top-icon" v-if="form.isTop==1">
<image class="icon" src="/static/images/is-top.png"></image>
</view>
<image v-if="deleteable || userInfo.bbsAdmin || form.isSelf==1" class="more-icon"
@click.stop="handleDelDynamics" src="/static/images/more-icon.png"></image>
<image v-else class="more-icon" src="/static/images/more-icon.png"></image>
......@@ -91,7 +91,7 @@
@click.stop="toPKDetailPage(0)">
<view class="results-item left-item"></view>
</view>
</view>
<view class="pk-results">
<view class="right" @click.stop="toPKDetailPage(1)">
......@@ -201,7 +201,7 @@
return;
}
this.userInfo = JSON.parse(JSON.parse(getUserInfo()))
this.form.faceImg = generateSignature(this.userInfo.userName)
this.form.faceImg = generateSignature(this.form.userName)
console.log(this.form.faceImg)
this.preNodes = this.formatContent(val)
}
......@@ -311,14 +311,14 @@
title: '请先点击上方PK按钮,选择你的观点后才可进行评论',
icon:'none',
duration:3000
})
return;
}
}else{
this.$refs.publishCommentRef.openModal()
}
},
// 回复评论
handleReplayComment(item) {
......@@ -397,7 +397,7 @@
preview(list, index) {
console.log(list, index)
let urls = list.map((item) => {
return item.imageUrl;
return item.url;
})
if (urls.length > 0) {
uni.previewImage({
......@@ -461,4 +461,4 @@
vertical-align: middle;
color: #333;
}
</style>
\ No newline at end of file
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment