first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// index.js
// 获取应用实例
const { index, util} = getApp().globalData
Page({
data: {
list: {}
},
onLoad() {
util.test();
this.getHome();
},
async getHome() {
let res = await index.home();
this.setData({
list: res
})
console.log(res);
}
})

View File

@@ -0,0 +1,5 @@
{
"usingComponents": {
"van-button": "@vant/weapp/button/index"
}
}

View File

@@ -0,0 +1,8 @@
<view class="index">
<van-button type="danger">危险按钮</van-button>
<view class="list">
<text class="title" wx:key="index" wx:for="{{ list.newest.data }}">
{{ item.title }}
</text>
</view>
</view>

View File

@@ -0,0 +1,19 @@
/**index.wxss**/
.userinfo {
display: flex;
flex-direction: column;
align-items: center;
color: #aaa;
}
.userinfo-avatar {
overflow: hidden;
width: 128rpx;
height: 128rpx;
margin: 20rpx;
border-radius: 50%;
}
.usermotto {
margin-top: 200px;
}