投票流程大改
This commit is contained in:
@@ -16,12 +16,17 @@
|
||||
<AiGroup noBorder description>
|
||||
<u-parse :html="detail.ending"/>
|
||||
</AiGroup>
|
||||
<weixin-login :autoShow="!user.token" content="投票需要您授权您的微信信息" @login="getList"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex"
|
||||
import WeixinLogin from "./weixinLogin";
|
||||
|
||||
export default {
|
||||
name: "AppVote",
|
||||
components: {WeixinLogin},
|
||||
appName: "公众投票",
|
||||
data() {
|
||||
return {
|
||||
@@ -29,6 +34,9 @@ export default {
|
||||
list: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post("/app/appvideovoteconfig/queryDetailByCorpId", null, {
|
||||
@@ -41,7 +49,7 @@ export default {
|
||||
},
|
||||
getList() {
|
||||
this.$http.post("/app/appvideoinfo/list", null, {
|
||||
withoutToken: true,
|
||||
withoutToken: !this.user.token,
|
||||
param: {size: 20}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
|
||||
Reference in New Issue
Block a user