<template>
|
|
<view class="page">
|
|
|
|
|
|
|
|
<tabber select="3" />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import tabber from '@/components/base/tabbar.vue'
|
|
import {
|
|
mapGetters
|
|
} from 'vuex'
|
|
import userShopCommission from '@/components/userShop/userShopCommission.vue'
|
|
export default {
|
|
components: {
|
|
tabber,
|
|
userShopCommission,
|
|
},
|
|
computed: {
|
|
...mapGetters(['userShop']),
|
|
customStyle1() {
|
|
return {
|
|
height: '60rpx',
|
|
background: '#FFF',
|
|
color: '#000000',
|
|
fontSize: '36rpx',
|
|
borderRadius: '40rpx', //圆角
|
|
|
|
// nvue中必须是下方的写法
|
|
'border-top-right-radius': '40rpx',
|
|
'border-bottom-left-radius': '40rpx',
|
|
'border-bottom-right-radius': '40rpx',
|
|
'width': '150rpx',
|
|
}
|
|
},
|
|
customStyle2() {
|
|
return {
|
|
height: '60rpx',
|
|
background: '#fd5100',
|
|
color: '#FFF',
|
|
fontSize: '34px',
|
|
borderRadius: '40rpx', //圆角
|
|
// nvue中必须是下方的写法
|
|
'border-top-right-radius': '40rpx',
|
|
'border-bottom-left-radius': '40rpx',
|
|
'border-bottom-right-radius': '40rpx',
|
|
'width': '150rpx',
|
|
}
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
show: false,
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
|
|
headBtn() {
|
|
let self = this
|
|
uni.showModal({
|
|
title: '演示切换角色之后的效果',
|
|
success(res) {
|
|
if (res.confirm) {
|
|
self.$store.state.shop = !self.$store.state.shop
|
|
}
|
|
}
|
|
})
|
|
},
|
|
|
|
// 联系客服按钮回调
|
|
contactUs() {
|
|
this.show = true
|
|
},
|
|
confirm() {
|
|
this.show = false
|
|
},
|
|
|
|
cancle() {
|
|
this.show = false
|
|
},
|
|
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.page {
|
|
|
|
.warp {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.rect {
|
|
width: 600rpx;
|
|
height: 300rpx;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
|
|
.title {
|
|
padding: 10rpx 0 0 15rpx;
|
|
background-color: #fd5100;
|
|
color: #FFF;
|
|
text-align: left;
|
|
width: 100%;
|
|
height: 18%;
|
|
font-size: 36rpx;
|
|
}
|
|
|
|
.center {
|
|
height: 40%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 36rpx;
|
|
}
|
|
|
|
.bottom {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 50rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.head {
|
|
display: flex;
|
|
background-color: #fff;
|
|
padding: 40rpx 20rpx;
|
|
align-items: center;
|
|
position: relative;
|
|
|
|
.headImage {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
background-image: url(/static/image/center/3.png);
|
|
background-size: 100% 100%;
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
margin-right: 40rpx;
|
|
}
|
|
|
|
.info {
|
|
font-size: 28rpx;
|
|
|
|
.vip {
|
|
background-color: #FCCC92;
|
|
color: #FA6239;
|
|
width: 100rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 40rpx;
|
|
border-radius: 20rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.name {
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.tips {
|
|
font-size: 26rpx;
|
|
color: #ABABAB;
|
|
}
|
|
}
|
|
|
|
.headBtn {
|
|
margin-left: auto;
|
|
padding: 15rpx 20rpx;
|
|
background-color: $uni-color;
|
|
color: #fff;
|
|
border-radius: 20rpx;
|
|
margin-top: 50rpx;
|
|
}
|
|
|
|
.setting {
|
|
position: absolute;
|
|
right: 50rpx;
|
|
top: 50rpx;
|
|
}
|
|
}
|
|
|
|
.userShop {
|
|
.userList {
|
|
.title {
|
|
font-size: 32rpx;
|
|
font-weight: 900;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
.item {
|
|
width: 270rpx;
|
|
margin: 20rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 40rpx 30rpx;
|
|
background-color: #fff;
|
|
border-radius: 30rpx;
|
|
line-height: 60rpx;
|
|
|
|
.name {}
|
|
|
|
.num {
|
|
color: $uni-color;
|
|
font-weight: 600;
|
|
font-size: 28rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.user {
|
|
.line {
|
|
display: flex;
|
|
background-color: #fff;
|
|
margin-top: 20rpx;
|
|
padding: 20rpx 0;
|
|
|
|
.item {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20rpx 0;
|
|
|
|
&:nth-child(1) {
|
|
border-right: 1px solid #00000013;
|
|
}
|
|
|
|
.image {
|
|
width: 100rpx;
|
|
height: 70rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.grid {
|
|
flex-direction: column;
|
|
font-size: 26rpx;
|
|
padding: 20rpx;
|
|
|
|
.title {
|
|
margin-bottom: 30rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.image {
|
|
width: 70rpx;
|
|
height: 70rpx;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
text {
|
|
text-align: center;
|
|
width: 120rpx;
|
|
}
|
|
}
|
|
}
|
|
</style>
|