[抖火客户端]
This commit is contained in:
62
pages/index/general.vue
Normal file
62
pages/index/general.vue
Normal file
@@ -0,0 +1,62 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user