丰都投票界面已完成

This commit is contained in:
aixianling
2022-12-29 14:49:43 +08:00
parent 6217856c27
commit 225b369090
3 changed files with 6 additions and 9 deletions

View File

@@ -206,7 +206,7 @@ const oauth2Weixin = params => qs.stringifyUrl({
url: "https://open.weixin.qq.com/connect/oauth2/authorize",
query: {
response_type: 'code',
url: encodeURIComponent(location.href),
redirect_uri: encodeURIComponent(location.href),
...params
},
fragmentIdentifier: "wechat_redirect"

View File

@@ -19,21 +19,15 @@
</template>
<script>
import {mapState, mapActions} from "vuex"
export default {
name: "AppVote",
appName: "公众投票",
computed: {
...mapState(['user']),
},
data() {
return {
detail: {}
}
},
methods: {
...mapActions(['getWechatToken', 'getCode']),
getDetail() {
this.$http.post("/app/vote/detail", null, {})
},

View File

@@ -11,18 +11,21 @@
</template>
<script>
import AiHighlight from "../../../components/AiHighlight";
import {mapState, mapActions} from "vuex"
export default {
name: "voteDetail",
components: {AiHighlight},
appName: "投票详情",
computed: {
...mapState(['user']),
},
data() {
return {
detail: {}
}
},
methods: {
...mapActions(['getWechatToken', 'getCode']),
getDetail() {
this.$http.post("/app/vote/detail", null, {}).then(res => {
if (res?.data) {