自动化接入

This commit is contained in:
aixianling
2023-01-05 14:33:11 +08:00
parent 4ddf69b6e6
commit b8ff07c733
14 changed files with 229 additions and 111 deletions

View File

@@ -1,13 +1,10 @@
<script>
export default {
onLaunch: function () {
console.log('App Launch')
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
},
}
</script>

View File

@@ -1,10 +1,9 @@
import {
createSSRApp
} from "vue";
import {createSSRApp} from "vue";
import App from "./App.vue";
export function createApp() {
const app = createSSRApp(App);
return {
app,
};
const app = createSSRApp(App);
return {
app,
};
}

View File

@@ -1,16 +0,0 @@
{
"pages": [
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
}
}

23
wxmp/src/pages/home.vue Normal file
View File

@@ -0,0 +1,23 @@
<template>
<section class="home">
<open-data type="userAvatarUrl"/>
<open-data type="userNickName"/>
</section>
</template>
<script>
export default {
name: "home",
data() {
return {}
},
methods: {},
created() {
}
}
</script>
<style lang="scss" scoped>
.home {
}
</style>

View File

@@ -1,48 +0,0 @@
<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{ title }}</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello',
}
},
onLoad() {},
methods: {},
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200px;
width: 200px;
margin-top: 200px;
margin-left: auto;
margin-right: auto;
margin-bottom: 50px;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36px;
color: #8f8f94;
}
</style>

22
wxmp/src/pages/mine.vue Normal file
View File

@@ -0,0 +1,22 @@
<template>
<section class="mine">
</section>
</template>
<script>
export default {
name: "mine",
data() {
return {}
},
methods: {},
created() {
}
}
</script>
<style lang="scss" scoped>
.mine {
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB