|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
<navbar/> |
|
|
|
<navbar title="商品列表" leftClick @leftClick="$utils.navigateBack" /> |
|
|
|
|
|
|
|
<view class="category"> |
|
|
|
<uv-vtabs |
|
|
@ -10,36 +10,28 @@ |
|
|
|
:barItemBadgeStyle="{right:'20px',top:'12px'}" |
|
|
|
@change="change"> |
|
|
|
<uv-vtabs-item> |
|
|
|
<view class="category-title"> |
|
|
|
租赁 |
|
|
|
</view> |
|
|
|
<view class="list"> |
|
|
|
<view class="item" v-for="(item,index) in list" :key="index" |
|
|
|
@click="$utils.navigateTo('/pages_order/product/productDetail?id=123')"> |
|
|
|
<view class="item-image"> |
|
|
|
<image |
|
|
|
:src="item.image" |
|
|
|
mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
<view class="item-unit"> |
|
|
|
<text class="text">{{item.unit}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<productItem |
|
|
|
v-for="(item, index) in 10" |
|
|
|
:key="index" |
|
|
|
:item="item" |
|
|
|
@click="$utils.navigateTo('/pages_order/product/productDetail?id=123')" |
|
|
|
/> |
|
|
|
</view> |
|
|
|
</uv-vtabs-item> |
|
|
|
</uv-vtabs> |
|
|
|
</view> |
|
|
|
|
|
|
|
<tabber select="1" /> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
|
|
|
|
import productItem from '@/components/product/productItem.vue'; |
|
|
|
import mixinsList from '@/mixins/list.js' |
|
|
|
export default { |
|
|
|
mixins : [mixinsList], |
|
|
|
components: { |
|
|
|
tabber, |
|
|
|
productItem, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -54,45 +46,6 @@ |
|
|
|
name : '桌布' |
|
|
|
}, |
|
|
|
], |
|
|
|
list : [ |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
{ |
|
|
|
unit : '100*50*60', |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
}, |
|
|
|
], |
|
|
|
chain: false, |
|
|
|
value: 0 |
|
|
|
} |
|
|
|
}, |
|
|
@ -117,74 +70,21 @@ |
|
|
|
<style scoped lang="scss"> |
|
|
|
.page{ |
|
|
|
/deep/ .uv-vtabs{ |
|
|
|
height: calc(100vh - 360rpx) !important; |
|
|
|
height: calc(100vh - 220rpx) !important; |
|
|
|
} |
|
|
|
/deep/ .uv-vtabs__bar{ |
|
|
|
height: calc(100vh - 360rpx) !important; |
|
|
|
height: calc(100vh - 220rpx) !important; |
|
|
|
} |
|
|
|
/deep/ .uv-vtabs__content{ |
|
|
|
height: calc(100vh - 360rpx) !important; |
|
|
|
height: calc(100vh - 220rpx) !important; |
|
|
|
} |
|
|
|
} |
|
|
|
.category { |
|
|
|
font-size: 30rpx; |
|
|
|
color: #333; |
|
|
|
.category-title{ |
|
|
|
position: relative; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
height: 120rpx; |
|
|
|
|
|
|
|
&::before, |
|
|
|
&::after { |
|
|
|
position: absolute; |
|
|
|
top: 50%; |
|
|
|
content: ''; |
|
|
|
width: 10%; |
|
|
|
border-top: 2rpx solid black; |
|
|
|
} |
|
|
|
|
|
|
|
&::before { |
|
|
|
left: 25%; |
|
|
|
} |
|
|
|
|
|
|
|
&::after { |
|
|
|
right: 25%; |
|
|
|
} |
|
|
|
} |
|
|
|
.list{ |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
margin: 0 auto; |
|
|
|
width: 490rpx; |
|
|
|
.item { |
|
|
|
padding: 10rpx 20rpx; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
.item-image { |
|
|
|
width: 120rpx; |
|
|
|
height: 120rpx; |
|
|
|
image{ |
|
|
|
height: 100%; |
|
|
|
width: 100%; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.item-unit { |
|
|
|
font-size: 24rpx; |
|
|
|
margin-top: 15rpx; |
|
|
|
color: #555; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.gap { |
|
|
|
padding: 0 30rpx; |
|
|
|
} |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
} |