Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(group): (#581) 管理员置顶帖子时仍有密码确认框弹出的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 15, 2018
1 parent b08543c commit 2c62828
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/applyForTop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
</div>

<template v-if="applyType !== 'post-manager'">
<template v-if="!isManager">
<div class="m-box m-aln-center m-justify-bet m-bb1 m-pinned-row plr20 m-pinned-amount-customize m-main" style="margin-top: .2rem">
<span>置顶金额</span>
<div class="m-box m-aln-center">
Expand Down Expand Up @@ -66,7 +66,7 @@
class="m-long-btn m-signin-btn"
@click="showPasswordConfirm">
<circle-loading v-if="loading"/>
<span v-else>{{ isOwner ? '确认置顶' : '申请置顶' }}</span>
<span v-else>{{ isOwner || isManager ? '确认置顶' : '申请置顶' }}</span>
</button>
</div>
</main>
Expand Down Expand Up @@ -117,6 +117,9 @@ export default {
currency() {
const currency = this.$store.state.CURRENTUSER.currency || {};
return currency.sum || 0;
},
isManager() {
return this.applyType === "post-manager";
}
},
watch: {
Expand Down Expand Up @@ -152,7 +155,8 @@ export default {
this.cancel();
return this.$router.push({ name: "currencyRecharge" });
}
this.$refs.password.show();
if (this.isManager) this.applyTop();
else this.$refs.password.show();
},
applyTop(password) {
if (this.loading || !this.applyType) return;
Expand Down

0 comments on commit 2c62828

Please sign in to comment.