丰都投票界面已完成
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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, {})
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user