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