118 lines
2.0 KiB
Vue
118 lines
2.0 KiB
Vue
<template>
|
|
<view class="app">
|
|
<image src="../../static/pages/wenzhenbanner.png" mode="" class="banner"></image>
|
|
<view class="card">
|
|
<view class="topbar">
|
|
<view class="item">
|
|
<image src="../../static/pagesB/tuwen.png" mode=""></image>
|
|
<view class="text">
|
|
图文问诊
|
|
</view>
|
|
</view>
|
|
<view class="item">
|
|
<image src="../../static/pagesB/zhuanjia.png" mode=""></image>
|
|
<view class="text">
|
|
专家问诊
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="title">
|
|
专家信息栏
|
|
</view>
|
|
<u-tabs :list="tabList" :current="tabcurrent" @change="tabchange" active-color='#26A888'></u-tabs>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
tabcurrent: 0,
|
|
tabList: [{
|
|
name: '健康常识'
|
|
}],
|
|
};
|
|
},
|
|
methods: {
|
|
tabchange() {},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background-color: #F4F5F7;
|
|
}
|
|
|
|
.app {
|
|
|
|
|
|
.card {
|
|
background-color: #fff;
|
|
width: 94%;
|
|
margin: 0 auto;
|
|
padding-top: 35rpx;
|
|
|
|
::v-deep .u-tabs {
|
|
padding-top: 30rpx;
|
|
}
|
|
|
|
.title {
|
|
width: 94%;
|
|
margin: 0 auto;
|
|
border-bottom: 2rpx solid #CDC9C9;
|
|
font-size: 34rpx;
|
|
font-weight: 500;
|
|
color: #000000;
|
|
margin-top: 40rpx;
|
|
padding-bottom: 30rpx;
|
|
}
|
|
|
|
.topbar {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
color: #fff;
|
|
|
|
.item {
|
|
width: 46%;
|
|
height: 180rpx;
|
|
background: #26A888;
|
|
border-radius: 5rpx;
|
|
position: relative;
|
|
|
|
.text {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 40%;
|
|
transform: translateY(-50%);
|
|
display: inline-block;
|
|
font-size: 34rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
image {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 20%;
|
|
transform: translateY(-50%);
|
|
width: 48rpx;
|
|
height: 41rpx;
|
|
}
|
|
}
|
|
|
|
.item:nth-child(2) {
|
|
background: #FFA115;
|
|
}
|
|
}
|
|
}
|
|
|
|
.banner {
|
|
display: block;
|
|
width: 94%;
|
|
height: 350rpx;
|
|
margin: 20rpx auto 0;
|
|
}
|
|
}
|
|
</style> |