choujiang/pagesB/integralMall/integralMall.vue

151 lines
4.0 KiB
Vue

<template>
<view>
<statusNav returnColor="#141414" fontWeight="800" titleColor="#141414" backgroudColor="#fff" navBarTitle="积分商城">
</statusNav>
<view class="head" :style="{top: statusBarHeight+40+'px'}">
<input type="text" class="input" value="" placeholder="搜索" placeholder-class="input-placeholder" />
<view class="nav">
<view class="li" @click="navIndexFun(index)" :class="navIndex==index?'on':''" v-for="(item,index) in navList">
{{item.title}}
</view>
</view>
</view>
<view class="mall">
<view class="li" v-for="(item,index) in 6">
<image src="" class="img" mode=""></image>
<view class="name">
现金红包666元独宠一人
</view>
<view class="num">
30.00+20
</view>
</view>
</view>
</view>
</template>
<script>
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
import statusNav from '../../components/status-nav.vue';
export default {
components: {
footTabOne,
statusNav
},
data() {
return {
navIndex:0,
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
navList:[
{
title:"热门推荐",
},
{
title:"生活用品"
},
{
title:"美妆护肤"
},
{
title:"生鲜食品"
},
{
title:"母婴"
},
{
title:"母婴"
},
]
}
},
methods: {
navIndexFun(index){
this.navIndex=index
}
}
}
</script>
<style>
.head {
width: 100%;
height: 208rpx;
padding-top: 36rpx;
background-color: #FFFFFF;
box-sizing: border-box;
position: fixed;
top: 0rpx;
left: 0rpx;
}
.head .input {
width: 692rpx;
margin: auto;
height: 36px;
line-height: 20px;
margin-top: ;
border-radius: 5px;
background-color: rgba(236, 236, 236, 100);
text-align: center;
}
.input-placeholder {
text-align: center;
color: rgba(185, 185, 185, 100);
font-size: 28rpx;
}
.head .nav{
display: flex;
padding-left: 30rpx;
overflow: auto;
}
.head .nav .li{
padding: 30rpx 0rpx;
margin-right: 54rpx;
color: rgba(113, 113, 113, 100);
border-bottom: 8rpx solid #FFFFFF;
font-size: 28rpx;
position: relative;
white-space: nowrap;
}
.head .nav .on{
color: rgba(243, 122, 97, 100);
border-bottom: 8rpx solid #F37A61;
}
.mall{
padding: 20rpx 25rpx 0rpx;
margin-top: 208rpx;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.mall .li{
width: 340rpx;
height: 440rpx;
border-radius: 20rpx;
margin-bottom: 22rpx;
box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.1);
}
.mall .li .img{
background-color: rgba(236, 236, 236, 100);
width: 100%;
height: 310rpx;
border-radius: 20rpx 20rpx 0px 0px;
}
.mall .li .name{
color: rgba(16, 16, 16, 100);
font-size: 28rpx;
padding: 14rpx 14rpx;
font-family: PingFangSC-regular;
}
.mall .li .num{
color: rgba(243, 122, 97, 100);
font-size: 28rpx;
padding: 0 14rpx;
font-weight: normal;
}
</style>