|
@ -11,53 +11,83 @@ |
|
|
|
|
|
|
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<view class="flex user"> |
|
|
<view class="flex user"> |
|
|
<view class="user-avatar"> |
|
|
|
|
|
<image class="user-avatar-img" src="@/pages_order/static/report/avatar.png" mode="scaleToFill"></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="user-info"> |
|
|
|
|
|
<view class="user-info-name">战斗世界</view> |
|
|
|
|
|
<view class="user-info-desc">世界这么美,身体要健康~</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 用户信息 --> |
|
|
|
|
|
<template v-if="isLogin"> |
|
|
|
|
|
<view class="user-avatar"> |
|
|
|
|
|
<image class="user-avatar-img" src="@/pages_order/static/report/avatar.png" mode="scaleToFill"></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="user-info"> |
|
|
|
|
|
<view class="user-info-name">战斗世界</view> |
|
|
|
|
|
<view class="user-info-desc">世界这么美,身体要健康~</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-else> |
|
|
|
|
|
<view class="user-avatar is-default"> |
|
|
|
|
|
<image class="user-avatar-img" src="@/pages_order/static/center/avatar-default.png" mode="scaleToFill"></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="user-info"> |
|
|
|
|
|
<view class="user-info-tips">暂未登录 请先登录</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</template> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 体检报告 --> |
|
|
<report-card></report-card> |
|
|
<report-card></report-card> |
|
|
<order-card></order-card> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 订单信息 --> |
|
|
|
|
|
<template v-if="isLogin"> |
|
|
|
|
|
<order-card></order-card> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 微信公众号 --> |
|
|
<account-card></account-card> |
|
|
<account-card></account-card> |
|
|
|
|
|
|
|
|
<view class="card"> |
|
|
|
|
|
<view v-for="item in list1" :key="item.id"> |
|
|
|
|
|
<template v-if="item.key === 'service'"> |
|
|
|
|
|
<button plain class="flex btn-service" open-type="contact"> |
|
|
|
|
|
<view class="flex row"> |
|
|
|
|
|
<view class="flex label"> |
|
|
|
|
|
<image class="icon" :src="item.icon" mode="scaleToFill"></image> |
|
|
|
|
|
<view>{{ item.label }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
</button> |
|
|
|
|
|
</template> |
|
|
|
|
|
<view v-else class="flex row" @click="onClick(item)"> |
|
|
|
|
|
<view class="flex label"> |
|
|
|
|
|
<image class="icon" :src="item.icon" mode="scaleToFill"></image> |
|
|
|
|
|
<view>{{ item.label }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 用户菜单 --> |
|
|
|
|
|
<template v-if="isLogin"> |
|
|
|
|
|
|
|
|
|
|
|
<view class="card"> |
|
|
|
|
|
<view v-for="item in list1" :key="item.id"> |
|
|
|
|
|
<template v-if="item.key === 'service'"> |
|
|
|
|
|
<button plain class="flex btn-service" open-type="contact"> |
|
|
|
|
|
<view class="flex row"> |
|
|
|
|
|
<view class="flex label"> |
|
|
|
|
|
<image class="icon" :src="item.icon" mode="scaleToFill"></image> |
|
|
|
|
|
<view>{{ item.label }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
</button> |
|
|
|
|
|
</template> |
|
|
|
|
|
<view v-else class="flex row" @click="onClick(item)"> |
|
|
|
|
|
<view class="flex label"> |
|
|
|
|
|
<image class="icon" :src="item.icon" mode="scaleToFill"></image> |
|
|
|
|
|
<view>{{ item.label }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="card"> |
|
|
|
|
|
<view v-for="item in list2" :key="item.id"> |
|
|
|
|
|
<view class="flex row" @click="onClick(item)"> |
|
|
|
|
|
<view class="flex label"> |
|
|
|
|
|
<image class="icon" :src="item.icon" mode="scaleToFill"></image> |
|
|
|
|
|
<view>{{ item.label }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="card"> |
|
|
|
|
|
<view v-for="item in list2" :key="item.id"> |
|
|
|
|
|
<view class="flex row" @click="onClick(item)"> |
|
|
|
|
|
<view class="flex label"> |
|
|
|
|
|
<image class="icon" :src="item.icon" mode="scaleToFill"></image> |
|
|
|
|
|
<view>{{ item.label }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
<!-- 用户登陆 --> |
|
|
|
|
|
<template v-else> |
|
|
|
|
|
<view class="login"> |
|
|
|
|
|
<button class="btn" @click="$utils.toLogin">立即登录</button> |
|
|
|
|
|
<view class="tips">暂未登录 请先登录</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -104,6 +134,9 @@ |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapState(['userInfo']), |
|
|
...mapState(['userInfo']), |
|
|
|
|
|
isLogin() { |
|
|
|
|
|
return this.userInfo && this.userInfo.id |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
onClick(target) { |
|
|
onClick(target) { |
|
@ -176,6 +209,12 @@ |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
|
|
|
&.is-default { |
|
|
|
|
|
width: 108rpx; |
|
|
|
|
|
height: 108rpx; |
|
|
|
|
|
border: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
&-img { |
|
|
&-img { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
height: 100%; |
|
@ -201,6 +240,14 @@ |
|
|
line-height: 1.5; |
|
|
line-height: 1.5; |
|
|
color: #F4F4F4; |
|
|
color: #F4F4F4; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-tips { |
|
|
|
|
|
font-family: PingFang SC; |
|
|
|
|
|
font-weight: 400; |
|
|
|
|
|
font-size: 36rpx; |
|
|
|
|
|
line-height: 1.2; |
|
|
|
|
|
color: #FFFFFF; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -238,4 +285,30 @@ |
|
|
border: none; |
|
|
border: none; |
|
|
padding: 0; |
|
|
padding: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.login { |
|
|
|
|
|
margin-top: 307rpx; |
|
|
|
|
|
padding: 0 128rpx; |
|
|
|
|
|
|
|
|
|
|
|
.btn { |
|
|
|
|
|
padding: 16rpx 0; |
|
|
|
|
|
font-family: PingFang SC; |
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
font-size: 36rpx; |
|
|
|
|
|
line-height: 1.4; |
|
|
|
|
|
color: #FFFFFF; |
|
|
|
|
|
background-image: linear-gradient(to right, #4B348F, #845CFA); |
|
|
|
|
|
border-radius: 41rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.tips { |
|
|
|
|
|
margin-top: 16rpx; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
font-family: PingFang SC; |
|
|
|
|
|
font-weight: 400; |
|
|
|
|
|
font-size: 26rpx; |
|
|
|
|
|
line-height: 1.4; |
|
|
|
|
|
color: #A3A3A3; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |