丰都投票界面已完成

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", url: "https://open.weixin.qq.com/connect/oauth2/authorize",
query: { query: {
response_type: 'code', response_type: 'code',
url: encodeURIComponent(location.href), redirect_uri: encodeURIComponent(location.href),
...params ...params
}, },
fragmentIdentifier: "wechat_redirect" fragmentIdentifier: "wechat_redirect"

View File

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

View File

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