|
|
@ -1,131 +1,215 @@ |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
|
|
|
|
<navbar title="个人中心" /> |
|
|
|
<navbar bgColor="#3796F8"/> |
|
|
|
|
|
|
|
<view class="head"> |
|
|
|
<view class="headImage"> |
|
|
|
<image src="" mode=""></image> |
|
|
|
<image :src="headImage" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="info"> |
|
|
|
<view class="name"> |
|
|
|
倾心. |
|
|
|
倾心. |
|
|
|
<view> |
|
|
|
<uv-icon name="edit-pen" size="40rpx" color="#fff"></uv-icon> |
|
|
|
修改资料 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="vip"> |
|
|
|
VIP1 |
|
|
|
</view> --> |
|
|
|
<view class="tips"> |
|
|
|
今天是您来的的第32天 |
|
|
|
手机号:1300000000 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="headBtn" @click="headBtn"> |
|
|
|
<!-- <view class="headBtn" @click="headBtn"> |
|
|
|
角色切换 |
|
|
|
</view> |
|
|
|
<view class="setting"> |
|
|
|
<uv-icon name="setting" size="40rpx"></uv-icon> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 酒店 --> |
|
|
|
<view class="user"> |
|
|
|
|
|
|
|
<!-- 实名认证 --> |
|
|
|
<view class="auth"> |
|
|
|
<uv-cell |
|
|
|
icon="setting-fill" |
|
|
|
title="完成实名认证,信息优先推荐!" |
|
|
|
value="去认证" |
|
|
|
isLink></uv-cell> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 轮播图 --> |
|
|
|
<view class="swipe"> |
|
|
|
<uv-swiper |
|
|
|
:list="bannerList" |
|
|
|
indicator |
|
|
|
height="220rpx" |
|
|
|
keyName="url"></uv-swiper> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="line"> |
|
|
|
<view class="item"> |
|
|
|
<view class="image"> |
|
|
|
<image src="/static/image/center/1.png" mode=""></image> |
|
|
|
<view class=""> |
|
|
|
30000 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
余额¥3000 |
|
|
|
正式积分 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="item"> |
|
|
|
<view class="image"> |
|
|
|
<image src="/static/image/center/4.png" mode=""></image> |
|
|
|
<view class=""> |
|
|
|
30000 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
临时积分 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="item"> |
|
|
|
<view class=""> |
|
|
|
30000 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
押金¥30000 |
|
|
|
我的收藏 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="item"> |
|
|
|
<view class=""> |
|
|
|
30000 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
联系记录 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="line grid"> |
|
|
|
<view class="title"> |
|
|
|
我的工作 |
|
|
|
</view> |
|
|
|
<uv-grid :col="4" :border="false"> |
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">我的找活</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.redirectTo('/index/order')"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">谁看过我的简历</text> |
|
|
|
</uv-grid-item> |
|
|
|
</uv-grid> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="line grid"> |
|
|
|
<view class="title"> |
|
|
|
我的服务 |
|
|
|
</view> |
|
|
|
<uv-grid :col="4" :border="false"> |
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')"> |
|
|
|
<!-- <image class="image" src="/static/image/center/7.png" mode=""></image> --> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">会员充值</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.redirectTo('/index/order')"> |
|
|
|
<!-- <image class="image" src="/static/image/center/8.png" mode=""></image> --> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">获取积分</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+0)"> |
|
|
|
<!-- <image class="image" src="/static/image/center/5.png" mode=""></image> --> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">积分记录</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+1)"> |
|
|
|
<!-- <image class="image" src="/static/image/center/7.png" mode=""></image> --> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">实名认证</text> |
|
|
|
</uv-grid-item> |
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">兑换码</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.redirectTo('/index/order')"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">考证咨询</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+0)"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">电子合同</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+1)"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">面对面分享</text> |
|
|
|
</uv-grid-item> |
|
|
|
</uv-grid> |
|
|
|
</view> |
|
|
|
<view class="line grid"> |
|
|
|
<view class="title"> |
|
|
|
设置与帮助 |
|
|
|
</view> |
|
|
|
<uv-grid :col="4" :border="false"> |
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">系统设置</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.redirectTo('/index/order')"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">帮助与反馈</text> |
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+0)"> |
|
|
|
<image class="image" src="/static/image/center/5.png" mode=""></image> |
|
|
|
<text class="grid-text">关于本程序</text> |
|
|
|
</uv-grid-item> |
|
|
|
</uv-grid> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<tabber select="4" /> |
|
|
|
<tabber select="3" /> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
import { |
|
|
|
mapGetters |
|
|
|
mapState |
|
|
|
} 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', |
|
|
|
} |
|
|
|
...mapState(['userInfo']), |
|
|
|
headImage(){ |
|
|
|
|
|
|
|
}, |
|
|
|
username(){ |
|
|
|
|
|
|
|
}, |
|
|
|
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, |
|
|
|
bannerList: [ |
|
|
|
{ |
|
|
|
url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
|
|
|
}, |
|
|
|
{ |
|
|
|
url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png', |
|
|
|
}, |
|
|
|
{ |
|
|
|
url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
|
|
|
}, |
|
|
|
], |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -162,50 +246,8 @@ |
|
|
|
|
|
|
|
<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%; |
|
|
@ -213,11 +255,12 @@ |
|
|
|
|
|
|
|
.head { |
|
|
|
display: flex; |
|
|
|
background-color: #fff; |
|
|
|
background-color: $uni-color; |
|
|
|
padding: 40rpx 20rpx; |
|
|
|
align-items: center; |
|
|
|
position: relative; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
padding-bottom: 70rpx; |
|
|
|
.headImage { |
|
|
|
width: 120rpx; |
|
|
|
height: 120rpx; |
|
|
@ -230,101 +273,81 @@ |
|
|
|
|
|
|
|
.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; |
|
|
|
display: flex; |
|
|
|
padding-bottom: 10rpx; |
|
|
|
view{ |
|
|
|
display: flex; |
|
|
|
font-size: 20rpx; |
|
|
|
align-items: center; |
|
|
|
padding-left: 20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tips { |
|
|
|
font-size: 26rpx; |
|
|
|
color: #ABABAB; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.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; |
|
|
|
} |
|
|
|
// .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 { |
|
|
|
position: relative; |
|
|
|
padding-top: 30rpx; |
|
|
|
.auth{ |
|
|
|
width: 690rpx; |
|
|
|
position: absolute; |
|
|
|
top: -50rpx; |
|
|
|
left: 30rpx; |
|
|
|
z-index: 99; |
|
|
|
background-color: #fff; |
|
|
|
border-radius: 20rpx; |
|
|
|
/deep/ text{ |
|
|
|
font-size: 26rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.user { |
|
|
|
|
|
|
|
.swipe{ |
|
|
|
margin: 30rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
.line { |
|
|
|
display: flex; |
|
|
|
background-color: #fff; |
|
|
|
margin-top: 20rpx; |
|
|
|
padding: 20rpx 0; |
|
|
|
margin: 30rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
.item { |
|
|
|
flex: 1; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
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; |
|
|
|
font-size: 24rpx; |
|
|
|
padding: 10rpx 0; |
|
|
|
view{ |
|
|
|
padding: 5rpx 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -337,18 +360,17 @@ |
|
|
|
.title { |
|
|
|
margin-bottom: 30rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
font-weight: 600; |
|
|
|
} |
|
|
|
|
|
|
|
.image { |
|
|
|
width: 70rpx; |
|
|
|
height: 70rpx; |
|
|
|
width: 45rpx; |
|
|
|
height: 45rpx; |
|
|
|
margin-bottom: 10rpx; |
|
|
|
} |
|
|
|
|
|
|
|
text { |
|
|
|
text-align: center; |
|
|
|
width: 120rpx; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |