[本时生活h5端]
This commit is contained in:
37
pages/payView/payView.vue
Normal file
37
pages/payView/payView.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<view class="content"></view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { wechatCode } from '@/apis/interfaces/authUrl'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
// 获取微信code
|
||||
wechatCode({
|
||||
code: options.code
|
||||
}).then(res => {
|
||||
this.$store.commit('setOpenId', res.openid)
|
||||
this.$Router.push({
|
||||
name: this.$Route.query.pageName
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: "none"
|
||||
})
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user