投票流程大改

This commit is contained in:
aixianling
2023-01-03 15:06:38 +08:00
parent dd134b6b23
commit 609b697440
5 changed files with 99 additions and 17 deletions

View File

@@ -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) {