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

优化代码

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