32 lines
501 B
Vue
32 lines
501 B
Vue
<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'
|
|
}
|
|
},
|
|
created() {
|
|
this.getIndex();
|
|
},
|
|
methods: {
|
|
async getIndex() {
|
|
let res = await this.$http.index.home();
|
|
console.log(res)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import "@/less/page/index.less";
|
|
</style>
|