@ -0,0 +1,73 @@ | |||||
<template> | |||||
<view class="commission"> | |||||
<image src="/static/image/center/10.png" mode=""></image> | |||||
<view class="price"> | |||||
<view class="title"> | |||||
总佣金(元) | |||||
</view> | |||||
<view class="num"> | |||||
7890.34元 | |||||
</view> | |||||
</view> | |||||
<view class="btn"> | |||||
提现 | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script> | |||||
export default { | |||||
name: "userShopCommission", | |||||
data() { | |||||
return { | |||||
}; | |||||
} | |||||
} | |||||
</script> | |||||
<style scoped lang="scss"> | |||||
.commission { | |||||
width: 700rpx; | |||||
height: 300rpx; | |||||
position: relative; | |||||
margin: 20rpx auto; | |||||
color: #fff; | |||||
image { | |||||
width: 700rpx; | |||||
height: 300rpx; | |||||
position: absolute; | |||||
border-radius: 20rpx; | |||||
} | |||||
.price { | |||||
position: absolute; | |||||
left: 50rpx; | |||||
top: 80rpx; | |||||
font-weight: 900; | |||||
.title { | |||||
font-size: 32rpx; | |||||
} | |||||
.num { | |||||
font-size: 44rpx; | |||||
margin-top: 20rpx; | |||||
} | |||||
} | |||||
.btn { | |||||
position: absolute; | |||||
right: 50rpx; | |||||
bottom: 50rpx; | |||||
background-color: #FDC440; | |||||
width: 160rpx; | |||||
height: 60rpx; | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
border-radius: 30rpx; | |||||
} | |||||
} | |||||
</style> |
@ -1,27 +1,180 @@ | |||||
<template> | <template> | ||||
<view class="page"> | <view class="page"> | ||||
<tabber select="1"/> | |||||
<navbar/> | |||||
<view class="category"> | |||||
<uv-vtabs | |||||
:chain="chain" | |||||
:list="category" | |||||
height="1000px" | |||||
: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"> | |||||
<view class="item-image"> | |||||
<image | |||||
:src="item.image" | |||||
mode="aspectFill"></image> | |||||
</view> | |||||
<view class="item-unit"> | |||||
<text class="text">{{item.unit}}</text> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</uv-vtabs-item> | |||||
</uv-vtabs> | |||||
</view> | |||||
<tabber select="1" /> | |||||
</view> | </view> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
import tabber from '@/components/base/tabbar.vue' | import tabber from '@/components/base/tabbar.vue' | ||||
export default { | export default { | ||||
components : { | |||||
components: { | |||||
tabber, | tabber, | ||||
}, | }, | ||||
data() { | data() { | ||||
return { | return { | ||||
category: [ | |||||
{ | |||||
name : '桌布' | |||||
}, | |||||
{ | |||||
name : '桌布' | |||||
}, | |||||
{ | |||||
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 | |||||
} | } | ||||
}, | }, | ||||
computed : { | |||||
computed: { | |||||
list2() { | |||||
const _list = this.list[this.value]?.childrens; | |||||
return _list ? _list : []; | |||||
} | |||||
}, | }, | ||||
methods: { | |||||
onReady() { | |||||
}, | |||||
methods: { | |||||
change(index) { | |||||
console.log('选项改变:', index) | |||||
this.value = index; | |||||
} | |||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
<style scoped lang="scss"> | <style scoped lang="scss"> | ||||
</style> | |||||
.category { | |||||
font-size: 30rpx; | |||||
color: #333; | |||||
min-height: 100vh; | |||||
.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; | |||||
} | |||||
} | |||||
} | |||||
</style> |