Files
douhuo-h5/pages/index/general.vue
2023-06-09 17:59:05 +08:00

62 lines
1.4 KiB
Vue

<template>
<view class="content">
<image class="code-img" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/23bde2fc0d19babf775e8921caa3248b.jpg" mode="widthFix"></image>
<view class="code-btn">
<image class="code-btn-go" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/d7a1d276f6ff69e54d446820e8d774a4.png" mode="widthFix" @click="$Router.push({name: 'Index'})"></image>
</view>
<image class="code-back" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/217580df4568f32e960506b4403911d2.png" mode="widthFix"></image>
</view>
</template>
<script>
import { wechatCode } from '@/apis/interfaces/index'
export default {
data() {
return {
}
},
onLoad(options) {
// 获取微信code
wechatCode({
code: this.$Route.query.code
}).then(res => {}).catch(err => {
uni.showToast({
title: err.message,
icon: "none"
})
})
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.content {
background-color: #1f25ae;
height: 100%;
}
.code-img {
width: 100%;
}
.code-back {
position: relative;
bottom: 0;
left: 0;
width: 100%;
}
.code-btn {
position: relative;
bottom: 20%;
z-index: 9;
width: 100%;
left: 0;
text-align: center;
.code-btn-go {
width: 50%;
margin: 0 auto;
}
}
</style>