BUG 22
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
<u-parse :html="detail.ending"/>
|
||||
</AiGroup>
|
||||
<u-gap height="160"/>
|
||||
<weixin-login :autoShow="!user.token||wxLogin" content="投票需要您授权您的微信信息" @login="getList"/>
|
||||
<weixin-login :autoShow="!user.token" :visible.sync="wxLogin" content="投票需要您授权您的微信信息" @login="getList"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex"
|
||||
import WeixinLogin from "./weixinLogin";
|
||||
import WeixinLogin from "./component/weixinLogin";
|
||||
|
||||
export default {
|
||||
name: "AppVote",
|
||||
@@ -33,7 +33,7 @@ export default {
|
||||
return {
|
||||
detail: {},
|
||||
list: [],
|
||||
wxLogin: false
|
||||
wxLogin: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
})
|
||||
},
|
||||
handleDetail(id) {
|
||||
if (!this.user.token) this.wxLogin = true
|
||||
if (!this.user.token) this.wxLogin++
|
||||
else uni.navigateTo({url: './voteDetail?id=' + id})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user