Files
douhuo-rule/pages/index/general.vue
2023-05-15 13:33:00 +08:00

62 lines
1.1 KiB
Vue

<template>
<view class="content">
<image class="code-img" src="@/static/imgs/code_back.jpg" mode="widthFix"></image>
<view class="code-btn">
<image class="code-btn-go" src="/static/imgs/code_btn.png" mode="widthFix" @click="$Router.push({name: 'Index'})"></image>
</view>
<image class="code-back" src="../../static/imgs/code_bottom.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>