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,24 @@
//index.js
//获取应用实例
const { $http, $utils } = getApp().globalData
Page({
data: {
swiperList: [
{ id: 1, url: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/aa34be7e8eda3b108ba6c62a7367868b.jpeg?thumb=1&w=720&h=360' },
{ id: 2, url: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/05f7665eadee22e00a50cb1e54943364.jpg?thumb=1&w=720&h=360' },
{ id: 3, url: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/03ff022009a635262d53451d532518ed.jpg?thumb=1&w=720&h=360' }
]
},
//事件处理函数
bindViewTap: function() {
},
onLoad: async function () {
let res = await $http.HomeService.IndexType({});
console.log("数据请求:",res);
},
getUserInfo: function(e) {
}
})

View File

@@ -0,0 +1,8 @@
{
"usingComponents": {
"van-nav-bar": "@vant/weapp/nav-bar/index",
"m-swiper": "/components/swiper/swiper",
"van-grid": "@vant/weapp/grid/index",
"van-grid-item": "@vant/weapp/grid-item/index"
}
}

View File

@@ -0,0 +1,16 @@
<!-- index.wxml -->
<view class="index">
<m-swiper swiper-list="{{ swiperList }}"></m-swiper>
<van-grid column-num="3">
<van-grid-item icon="photo-o" text="文字" wx:for="{{ 6 }}" />
</van-grid>
<view class="hot">
<view class="left">
<image mode="widthFix" style="width:100%" src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/d692a30ee3d586c4274575eec255d3c5.jpg?f=webp&w=537&h=762&bg=C1DDE9"></image>
</view>
<view class="right">
<image class="top" mode="widthFix" style="width:100%;height: 100%" src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/827a686678f39b1bbdc99c6e6b6a13c8.jpg?f=webp&w=537&h=378&bg=DAECFA"></image>
<image mode="widthFix" style="width:100%;height: 100%" src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/827a686678f39b1bbdc99c6e6b6a13c8.jpg?f=webp&w=537&h=378&bg=DAECFA"></image>
</view>
</view>
</view>

View File

@@ -0,0 +1,15 @@
.hot {
display: flex;
justify-content: space-between;
}
.left {
width: 50%;
}
.right {
width: 50%;
display: flex;
flex-direction: column;
}
.top {
margin-bottom: 3px;
}