普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

163 lines
4.1 KiB

<template>
<view>
<view class="section">
<view class="header">
<!-- todo -->
<view>普兆医疗与诺贝尔奖实验室强强联合</view>
<view>累计服务<text class="highlight">100,000+</text>用户</view>
</view>
<view class="content">
<!-- todo: check -->
<view class="card" v-for="item in list" :key="item.id" @click="openVideoPopup(item.video)">
<image class="card-img" :src="item.image" mode="scaleToFill"></image>
</view>
<view class="intro" style="margin-top: 80rpx;">
<view>
<!-- 我们携手<text class="highlight">营养学博士、医学博士</text>以及<text class="highlight">人工智能算法工程师</text>,组建了一支顶尖的专业团队。 -->
<uv-parse :content="configList.home_doctor_text_1"></uv-parse>
</view>
<view class="flex desc">
<image class="desc-img" :src="configList.home_doctor_bg" mode="scaleToFill"></image>
<view class="desc-text">
<!-- 团队依托<text class="highlight">先进的AI智能算法、世界领先的检测手段与设备</text>,充分考量用户个人的独特性,参考国人的生活方式、地域差异以及饮食习惯。<br/>
为每一位客户建立个人专属健康档案,并量身定制个性化的健康管理方案。 -->
<uv-parse :content="configList.home_doctor_text_2"></uv-parse>
</view>
</view>
</view>
</view>
</view>
<view class="section">
<view class="header">
<!-- todo -->
<view>以<text class="highlight">ISO 15189</text>为标准建立</view>
<view>高标准的质量管理体系</view>
</view>
<view class="content" style="margin-top: 16rpx;">
<view class="intro">
<!-- todo -->
合作实验室以<text class="highlight">ISO 15189</text>为标准建立质量管理体系, 保证实验室的有效且可靠的运营。
</view>
<!-- todo -->
<image class="intro-img" src="@/pages_order/static/temp-2.png" mode="scaleToFill"></image>
</view>
</view>
<!-- todo: check -->
<videoPopup ref="videoPopup"></videoPopup>
</view>
</template>
<script>
import videoPopup from './videoPopup.vue'
export default {
components: {
videoPopup,
},
data() {
return {
list: [],
}
},
created() {
this.getData()
},
methods: {
async getData() {
try {
this.list = await this.$fetch('getVideo')
} catch (err) {
}
},
openVideoPopup(url) {
this.$refs.videoPopup.open(url)
},
},
}
</script>
<style scoped lang="scss">
.header {
text-align: center;
font-family: PingFang SC;
font-weight: 600;
font-size: 40rpx;
line-height: 1.4;
color: #252545;
.highlight {
font-size: 64rpx;
font-weight: 600;
line-height: 1.4;
font-family: PingFang SC;
color: transparent;
background-image: linear-gradient(to right, #4B348F, #845CFA);
background-clip: text;
display: inline-block;
}
}
.content {
padding: 24rpx 32rpx 0 32rpx;
}
.card {
font-size: 0;
overflow: hidden;
border-radius: 32rpx;
background-image: linear-gradient(to right, #FAFAFF, #F3F3F3);
box-shadow: -5rpx -5rpx 20rpx 0 #FFFFFF,
10rpx 10rpx 20rpx 0 #AAAACC80,
4rpx 4rpx 10rpx 0 #AAAACC40,
-2rpx -2rpx 5rpx 0 #FFFFFF;
& + & {
margin-top: 32rpx;
}
&-img {
width: 100%;
height: calc((100vw - 32rpx*2) * 100 / 344);
}
}
.intro {
font-family: PingFang SC;
font-size: 32rpx;
font-weight: 400;
line-height: 1.4;
color: #616161;
.highlight {
font-weight: 600;
color: #252545;
}
.desc {
margin-top: 40rpx;
align-items: flex-start;
font-size: 28rpx;
&-img {
width: 366rpx;
height: 472rpx;
flex: none;
}
&-text {
padding-top: 24rpx;
}
}
&-img {
width: 100%;
height: calc((100vw - 32rpx*2) * 200 / 343);
margin-top: 40rpx;
}
}
</style>