Commit 57f40c71 by 匡雅琴

文件位置调整

1 parent f9908fe0
{
"usingComponents": {
"main-title": "../../components/MainTitle/MainTitle",
"main-title": "../../../components/MainTitle/MainTitle",
"menu-box": "../../components/MenuBox/MenuBox",
"goods-swiper": "../../components/GoodsSwiper/GoodsSwiper"
},
......
{
"usingComponents": {
"main-title": "../../components/MainTitle/MainTitle",
"main-title": "../../../components/MainTitle/MainTitle",
"menu-box": "../../components/MenuBox/MenuBox",
"money-saving-tips": "../../components/MoneySavingTips/MoneySavingTips"
"money-saving-tips": "../../../components/MoneySavingTips/MoneySavingTips"
},
"navigationBarTitleText": "家生活"
}
\ No newline at end of file
/* packageIndex/pages/homeLife/index.wxss */
.homelife-box {
padding: 30rpx;
background: #f8f8f8;
.homelife-img {
width: 690rpx;
height: 268rpx;
}
.title-box {
margin: 30rpx 0 20rpx 0;
}
padding: 30rpx;
background: #f8f8f8;
.homelife-img {
width: 690rpx;
height: 268rpx;
}
\ No newline at end of file
.title-box {
margin: 30rpx 0 20rpx 0;
}
}
Component({
data: {},
properties: {
menuList: {
type: Array,
value: []
}
},
methods: {}
})
\ No newline at end of file
{
"component": true
}
\ No newline at end of file
<view class="menu-box">
<view class="menu-item-box" wx:for="{{menuList}}" wx:key="index">
<view class="menu-item">
<glsx-image webp src="home/menu_icon/{{item.iconUrl}}" class="menu-item-icon"></glsx-image>
<view class="menu-item-text">
{{item.name}}
</view>
</view>
</view>
</view>
\ No newline at end of file
.menu-box {
background: #ffffff;
border-radius: 8rpx;
display: flex;
flex-wrap: wrap;
/* justify-content: space-around; */
padding: 30rpx 16rpx;
}
.menu-item-box {
width: 128rpx;
height: 116rpx;
text-align: center;
margin-right: 4rpx;
}
.menu-item-box:nth-child(4n) {
margin-right: 0;
}
.menu-item-icon {
width: 72rpx;
height: 72rpx;
}
.menu-item-text {
font-weight: 400;
font-size: 24rpx;
color: #282829;
text-align: center;
margin-top: 12rpx;
}
\ No newline at end of file
const foodMenuList = [
{
iconUrl: 'movie.png',
name: '星巴克'
},
{
iconUrl: 'movie.png',
name: '瑞幸咖啡'
},
{
iconUrl: 'movie.png',
name: '奈雪的茶'
},
{
iconUrl: 'movie.png',
name: '麦当劳'
},
{
iconUrl: 'movie.png',
name: '必胜客'
}
]
const funMenuList = [
{
iconUrl: 'movie.png',
name: '猫眼电影'
},
{
iconUrl: 'movie.png',
name: '酷狗音乐'
},
{
iconUrl: 'movie.png',
name: '爱奇艺'
},
{
iconUrl: 'movie.png',
name: '哔哩哔哩'
},
{
iconUrl: 'movie.png',
name: 'Keep'
}
]
const carMenuList = [
{
iconUrl: 'movie.png',
name: '滴滴出行'
},
{
iconUrl: 'movie.png',
name: '高德打车'
},
{
iconUrl: 'movie.png',
name: '美团骑车'
},
{
iconUrl: 'movie.png',
name: '青桔单车'
},
{
iconUrl: 'movie.png',
name: '哈罗单车'
}
]
export {
foodMenuList,
funMenuList,
carMenuList
}
\ No newline at end of file
import {foodMenuList,funMenuList,carMenuList} from './constant/constant'
Page({
data: {
foodMenuList,
funMenuList,
carMenuList
},
properties: {},
......
......@@ -3,6 +3,7 @@
"enablePullDownRefresh": true,
"onReachBottomDistance": 10,
"usingComponents": {
"main-title": "../../../components/MainTitle/MainTitle",
"menu-box": "./components/MenuBox/MenuBox"
}
}
\ No newline at end of file
.navigation-bar {
position: fixed;
top: 0;
left: 0;
z-index: 2;
background: #ffffff;
}
.save-money-box {
padding-top: 104px;
padding: 30rpx;
background: #f8f8f8;
.save-money-img {
width: 690rpx;
height: 268rpx;
}
.title-box {
margin: 30rpx 0 20rpx 0;
}
}
<view class=""></view>
\ No newline at end of file
<view class="navigation-bar">
<navigation-bar bindnavbarReady="navbarReady" page-title="省钱专区">省钱专区</navigation-bar>
</view>
<view class="save-money-box">
<glsx-image webp src="home/homelife_bg.png" class="save-money-img"></glsx-image>
<view class="title-box">
<main-title title="吃喝省"></main-title>
</view>
<menu-box menuList="{{foodMenuList}}"></menu-box>
<view class="title-box">
<main-title title="娱乐省"></main-title>
</view>
<menu-box menuList="{{funMenuList}}"></menu-box>
<view class="title-box">
<main-title title="用车省"></main-title>
</view>
<menu-box menuList="{{carMenuList}}"></menu-box>
</view>
\ No newline at end of file
{
"usingComponents": {
"money-saving-tips": "../../../packageIndex/components/MoneySavingTips/MoneySavingTips"
"money-saving-tips": "../../../components/MoneySavingTips/MoneySavingTips"
},
"navigationStyle": "custom",
"onReachBottomDistance": 10,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!