|
@ -9,184 +9,81 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="info"> |
|
|
<view class="info"> |
|
|
<view class="name"> |
|
|
<view class="name"> |
|
|
倾心. |
|
|
|
|
|
|
|
|
微信用户 |
|
|
</view> |
|
|
</view> |
|
|
<!-- <view class="vip"> |
|
|
|
|
|
VIP1 |
|
|
|
|
|
</view> --> |
|
|
|
|
|
<view class="tips"> |
|
|
<view class="tips"> |
|
|
今天是您来的的第32天 |
|
|
|
|
|
|
|
|
加入时间:2024-03-03 |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="headBtn" @click="headBtn"> |
|
|
|
|
|
角色切换 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="setting"> |
|
|
<view class="setting"> |
|
|
<uv-icon name="setting" size="40rpx"></uv-icon> |
|
|
|
|
|
|
|
|
<!-- <uv-icon name="setting" size="40rpx"></uv-icon> --> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 水洗店 --> |
|
|
|
|
|
<view class="userShop" v-if="userShop"> |
|
|
|
|
|
<userShopCommission /> |
|
|
|
|
|
<view class="userList"> |
|
|
|
|
|
<view class="title"> |
|
|
|
|
|
我的用户 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="list"> |
|
|
|
|
|
<view class="item" v-for="(item, index) in 20" :key="index"> |
|
|
|
|
|
<view class="name"> |
|
|
|
|
|
客户:王生 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="num"> |
|
|
|
|
|
剩余水洗布:198 |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 酒店 --> |
|
|
|
|
|
<view class="user" v-else> |
|
|
|
|
|
<view class="line"> |
|
|
|
|
|
<view class="item"> |
|
|
|
|
|
<view class="image"> |
|
|
|
|
|
<image src="/static/image/center/1.png" mode=""></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class=""> |
|
|
|
|
|
余额¥3000 |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="item"> |
|
|
|
|
|
<view class="image"> |
|
|
|
|
|
<image src="/static/image/center/4.png" mode=""></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class=""> |
|
|
|
|
|
押金¥30000 |
|
|
|
|
|
</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/7.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> |
|
|
|
|
|
<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/7.png" mode=""></image> |
|
|
|
|
|
<text class="grid-text">退货</text> |
|
|
|
|
|
</uv-grid-item> |
|
|
|
|
|
</uv-grid> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="line grid"> |
|
|
|
|
|
<uv-grid :col="4" :border="false"> |
|
|
|
|
|
|
|
|
|
|
|
<uv-grid-item @click="contactUs"> |
|
|
|
|
|
<image class="image" src="/static/image/center/9.png" mode=""></image> |
|
|
|
|
|
<text class="grid-text">联系客服</text> |
|
|
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
|
|
|
|
<uv-grid-item> |
|
|
|
|
|
<image class="image" src="/static/image/center/6.png" mode=""></image> |
|
|
|
|
|
<text class="grid-text">我的租赁</text> |
|
|
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
|
|
|
|
<uv-grid-item @click="$utils.redirectTo('/index/cart')"> |
|
|
|
|
|
<image class="image" src="/static/image/center/7.png" mode=""></image> |
|
|
|
|
|
<text class="grid-text">租赁车</text> |
|
|
|
|
|
</uv-grid-item> |
|
|
|
|
|
|
|
|
|
|
|
<uv-grid-item |
|
|
|
|
|
@click="$utils.navigateTo('/pages_order/auth/loginAndRegisterAndForgetPassword?index='+2)"> |
|
|
|
|
|
<image class="image" src="/static/image/center/7.png" mode=""></image> |
|
|
|
|
|
<text class="grid-text">申请成为水洗店</text> |
|
|
|
|
|
</uv-grid-item> |
|
|
|
|
|
</uv-grid> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="line"> |
|
|
|
|
|
<uv-cell-group> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 我的收藏 --> |
|
|
|
|
|
<uv-cell icon="setting-fill" title="我的收藏" |
|
|
|
|
|
isLink> |
|
|
|
|
|
<template #icon> |
|
|
|
|
|
<image src="/static/image/center/1.png" |
|
|
|
|
|
class="uv-cell-icon"></image> |
|
|
|
|
|
</template> |
|
|
|
|
|
</uv-cell> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 我的预约 --> |
|
|
|
|
|
<uv-cell icon="setting-fill" title="我的预约" |
|
|
|
|
|
isLink> |
|
|
|
|
|
<template #icon> |
|
|
|
|
|
<image src="/static/image/center/2.png" |
|
|
|
|
|
class="uv-cell-icon"></image> |
|
|
|
|
|
</template> |
|
|
|
|
|
</uv-cell> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 我的订单 --> |
|
|
|
|
|
<uv-cell icon="setting-fill" title="我的订单" |
|
|
|
|
|
@click="$utils.navigateTo('/pages_order/order/order')" |
|
|
|
|
|
isLink> |
|
|
|
|
|
<template #icon> |
|
|
|
|
|
<image src="/static/image/center/3.png" |
|
|
|
|
|
class="uv-cell-icon"></image> |
|
|
|
|
|
</template> |
|
|
|
|
|
</uv-cell> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 我的地址 --> |
|
|
|
|
|
<uv-cell icon="setting-fill" title="我的地址" |
|
|
|
|
|
@click="$utils.navigateTo('/pages_order/mine/address')" |
|
|
|
|
|
isLink> |
|
|
|
|
|
<template #icon> |
|
|
|
|
|
<image src="/static/image/center/1.png" |
|
|
|
|
|
class="uv-cell-icon"></image> |
|
|
|
|
|
</template> |
|
|
|
|
|
</uv-cell> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 加入志愿者 --> |
|
|
|
|
|
<uv-cell icon="setting-fill" title="加入志愿者" |
|
|
|
|
|
isLink> |
|
|
|
|
|
<template #icon> |
|
|
|
|
|
<image src="/static/image/center/4.png" |
|
|
|
|
|
class="uv-cell-icon"></image> |
|
|
|
|
|
</template> |
|
|
|
|
|
</uv-cell> |
|
|
|
|
|
</uv-cell-group> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 联系客服弹框 --> |
|
|
|
|
|
<uv-overlay :show="show" @click="show = false"> |
|
|
|
|
|
<view class="warp"> |
|
|
|
|
|
<view class="rect" @tap.stop> |
|
|
|
|
|
<view class="title">联系客服</view> |
|
|
|
|
|
<view class="center">确定拨打客服电话?</view> |
|
|
|
|
|
<view class="bottom"> |
|
|
|
|
|
<view> |
|
|
|
|
|
<uv-button type="info" shape="circle" text="取消" :custom-style="customStyle1" |
|
|
|
|
|
@click="cancle"></uv-button> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view> |
|
|
|
|
|
<uv-button type="info" shape="circle" text="确定" :custom-style="customStyle2" |
|
|
|
|
|
@click="confirm"></uv-button> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</uv-overlay> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tabber select="4" /> |
|
|
|
|
|
|
|
|
<tabber select="2" /> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
import { |
|
|
|
|
|
mapGetters |
|
|
|
|
|
} from 'vuex' |
|
|
|
|
|
import userShopCommission from '@/components/userShop/userShopCommission.vue' |
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
tabber, |
|
|
tabber, |
|
|
userShopCommission, |
|
|
|
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
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() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -195,32 +92,6 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
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> |
|
|
</script> |
|
@ -228,50 +99,25 @@ |
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
.page { |
|
|
.page { |
|
|
padding-bottom: 200rpx; |
|
|
padding-bottom: 200rpx; |
|
|
|
|
|
|
|
|
.warp { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.rect { |
|
|
|
|
|
width: 600rpx; |
|
|
|
|
|
height: 300rpx; |
|
|
|
|
|
|
|
|
min-height: 100vh; |
|
|
|
|
|
background-color: #FFFDF6; |
|
|
|
|
|
.line{ |
|
|
|
|
|
margin: 30rpx; |
|
|
background-color: #fff; |
|
|
background-color: #fff; |
|
|
border-radius: 20rpx; |
|
|
|
|
|
|
|
|
border-radius: 30rpx; |
|
|
overflow: hidden; |
|
|
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; |
|
|
|
|
|
|
|
|
box-shadow: 0 0 10rpx 10rpx #00000007; |
|
|
|
|
|
.uv-cell-icon{ |
|
|
|
|
|
width: 60rpx; |
|
|
|
|
|
height: 60rpx; |
|
|
|
|
|
margin-right: 20rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.bottom { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
gap: 50rpx; |
|
|
|
|
|
|
|
|
/deep/ .uv-cell__body{ |
|
|
|
|
|
padding: 40rpx 30rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
image { |
|
|
image { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
height: 100%; |
|
@ -279,11 +125,11 @@ |
|
|
|
|
|
|
|
|
.head { |
|
|
.head { |
|
|
display: flex; |
|
|
display: flex; |
|
|
background-color: #fff; |
|
|
|
|
|
padding: 40rpx 20rpx; |
|
|
|
|
|
|
|
|
background-color: $uni-color; |
|
|
|
|
|
padding: 60rpx 40rpx; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
|
|
color: #fff; |
|
|
.headImage { |
|
|
.headImage { |
|
|
width: 120rpx; |
|
|
width: 120rpx; |
|
|
height: 120rpx; |
|
|
height: 120rpx; |
|
@ -297,37 +143,16 @@ |
|
|
.info { |
|
|
.info { |
|
|
font-size: 28rpx; |
|
|
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 { |
|
|
.name { |
|
|
font-size: 32rpx; |
|
|
font-size: 32rpx; |
|
|
|
|
|
margin-bottom: 10rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.tips { |
|
|
.tips { |
|
|
font-size: 26rpx; |
|
|
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 { |
|
|
.setting { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
right: 50rpx; |
|
|
right: 50rpx; |
|
@ -335,87 +160,5 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.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> |
|
|
</style> |