<template>
|
<view class="container flex flex-center" style="align-items: flex-start;">
|
<view class="repository relative">
|
<view class="flex Ttop flex-column" style="width: 100%;">
|
<view class="flex" style="width: 100%;">
|
<view class="" style="width: 2.5rem;"></view>
|
<view class=" flex flex-center flex-wrap" style="width: 100%; flex-direction: column;">
|
<view class=""></view>
|
<view class="" ref="Rtop">
|
<text class="login"></text>
|
<text
|
style="font-size: .36rem;letter-spacing: 4rpx;vertical-align: middle;font-family: cursive;font-weight: bold;">中国医学人物知识库</text>
|
</view>
|
</view>
|
<view class="flex" style="height: .5rem;">
|
<view @click="iconClick(item)" v-for="item in 3" :key="item" :class="'s'+item" class="ss1" style="margin-right: .3rem;">
|
</view>
|
</view>
|
</view>
|
|
<!-- 高级搜索 -->
|
<view v-if="isSearchTrue" style="margin: .35rem 0 .16rem 0; height: .52rem;">
|
<advancedSearch @onSearch="onSearch" :isAvancedTrue="false" :isSearchTrue="false" />
|
</view>
|
</view>
|
<view class="Bbottom ">
|
<!-- 选项卡 -->
|
<ul class="secretary flex ">
|
<li @click="listDataClick(item)" v-for="(item,index) in listData" :key="index">
|
<span class="font-family"
|
style="font-weight: 700;color: #2C2C2C; width: 36px;display: inline-block; font-size: .32rem;overflow: hidden;height: 80%;line-height: 1.5;">{{item.name}}</span>
|
<view class="flex flex-content"
|
style="width: .5rem;height: .5rem;border-radius: 50%;background-color: #244A7B;">
|
<image style="width: 40%;height: 20%;" src="@/static/image/eResize.png" mode=""></image>
|
</view>
|
</li>
|
</ul>
|
</view>
|
</view>
|
<view class="hua"></view>
|
<!-- 底部人物背景图左侧 -->
|
<view class="fff"></view>
|
<!-- 底部花的背景图右侧 -->
|
<view class="rrr"></view>
|
|
<Footer1 />
|
</view>
|
</template>
|
|
<script>
|
import {
|
nextTick
|
} from "vue";
|
import Footer1 from '@/components/footer/footer.vue'
|
export default {
|
components: {
|
Footer1
|
},
|
data() {return {
|
// 搜索的显示
|
isSearchTrue:true,
|
// 登录注册框
|
loginTrue: true,
|
Rtop1: 0,
|
value: 'sdfdsf',
|
// 注册用户对应的数据
|
registerData: {
|
loginID: '',
|
pass: '',
|
checkPass: '',
|
cellphoneORmailbox: '',
|
verifyCode: ''
|
},
|
// 登录用户账号
|
loginData: {
|
// 账号
|
loginID: '',
|
pass: ''
|
},
|
// 重置密码
|
resetDataPass: {
|
cellphoneORmailbox: '',
|
verifyCode: "",
|
newPass: "",
|
checkPass: ""
|
},
|
// 修改密码
|
amendDataPass: {
|
loginID: '',
|
originalPass: "",
|
newPass: "",
|
checkPass: ""
|
},
|
// 书籍数据
|
listData: [{
|
name: '历代医家传记库',
|
id: 1,
|
}, {
|
name: '世医医家库',
|
id: 2,
|
}, {
|
name: '医学学术流派',
|
id: 3,
|
}, {
|
name: '中国地域医谱',
|
id: 4,
|
}, {
|
name: '中国医事制度',
|
id: 5,
|
},
|
|
]
|
}
|
},
|
onLoad() {
|
uni.getSystemInfo({
|
success: function(info) {
|
// console.log('屏幕的宽度:' + info.windowWidth);
|
// console.log('屏幕的高度:' + info.windowHeight);
|
}
|
});
|
},
|
mounted() {
|
this.getElementWidth();
|
},
|
methods: {
|
onSearch(val){
|
uni.navigateTo({
|
url:'/pages/knowledgeBase/knowledgeBase?name='+val
|
})
|
console.log('vv',val);
|
},
|
// 列表项跳转
|
listDataClick(item) {
|
console.log(item);
|
// 在当前页面设置全局变量
|
// uni.setStorageSync('globalData', { id: 123, name: 'example' });
|
if (item.id == 1) {
|
uni.navigateTo({
|
url: '/pages/repository/repository?id=' + item.id
|
})
|
} else if (item.id == 2) {
|
console.log(item.name);
|
// uni.navigateTo({
|
// url:'/pages/repository/repository?id='+item.id
|
// })
|
} else if (item.id == 3) {
|
uni.navigateTo({
|
url: '/pages/dataDisplay/dataDisplay?id=' + item.id
|
})
|
} else if (item.id == 4) {
|
uni.navigateTo({
|
url: '/pages/territory/territory?id=' + item.id
|
})
|
} else if (item.id == 5) {
|
uni.navigateTo({
|
url: '/pages/TcmSystem/TcmSystem?id=' + item.id
|
})
|
}
|
|
},
|
|
// 验证码校验
|
validateVerificationCode(rule, value, callback) {
|
if (value !== '123456') {
|
callback(new Error('验证码错误'));
|
} else {
|
callback();
|
}
|
},
|
getElementWidth() {
|
|
this.$nextTick(() => {
|
var width = this.$refs.Rtop.$el.clientWidth;
|
this.Rtop1 = width + 50;
|
console.log('Element width:', width);
|
})
|
},
|
iconClick(index){
|
console.log(index);
|
// 搜索的显示
|
if(index==1){
|
this.isSearchTrue = !this.isSearchTrue
|
}
|
}
|
}
|
}
|
</script>
|
|
<style scoped>
|
/*
|
在屏幕宽度超过 1440px 时的样式设置 */
|
@media screen and (min-width: 1441px) {
|
::v-deep .el-card {
|
top: 60% !important;
|
}
|
|
.BottomColumn {
|
padding: .10rem 0;
|
}
|
.Ttop{
|
margin-bottom: .6rem !important;
|
}
|
.secretary{
|
li{
|
height: 4.5rem !important;
|
}
|
}
|
.LoginTop {
|
margin-bottom: .17rem !important;
|
}
|
|
.btn ::v-deep .el-button {
|
margin-top: 0.1rem !important;
|
font-size: 0.2rem !important;
|
width: 100%;
|
padding: 0.12rem !important;
|
}
|
|
.LoginBg {
|
height: .3rem !important;
|
}
|
|
.hua {
|
height: 4rem !important;
|
}
|
|
.fff {
|
height: 3.5rem !important;
|
}
|
|
.rrr {
|
height: 2.5rem !important;
|
}
|
}
|
|
.btn>>>.el-form-item__content {
|
margin-left: 0 !important;
|
}
|
|
::v-deep .el-form-item__label {
|
color: #244a7b;
|
}
|
|
::v-deep .el-input__inner {
|
border: none;
|
border-bottom: 1px solid #2d476a;
|
border-radius: 0;
|
}
|
|
::v-deep .el-form-item__error {
|
/* display: none; */
|
}
|
|
::v-deep .input.invalid:focus {
|
border-color: #2d476a !important;
|
}
|
|
::v-deep .el-input__inner:invalid {
|
border-color: #2d476a !important;
|
}
|
|
::v-deep .el-form-item__label {
|
padding: 0;
|
}
|
|
::v-deep .el-form-item__label {
|
color: #2d476a;
|
}
|
|
::v-deep .el-form-item {
|
margin-bottom: 32rpx;
|
}
|
|
.ss1 {
|
background-repeat: no-repeat;
|
background-size: 100% 100%;
|
width: .34rem;
|
height: .34rem;
|
background-size: 100% 100%;
|
}
|
|
.s1 {
|
background-image: url(@/static/image/search.svg);
|
|
}
|
|
.s2 {
|
background-image: url(@/static/image/profile.svg);
|
}
|
|
.s3 {
|
background-image: url(@/static/image/quote.svg);
|
margin-right: .59rem !important;
|
}
|
|
.container {
|
background: url(@/static/image/bg1.png);
|
width: 100vw;
|
height: 100vh;
|
|
color: #fff;
|
|
.repository {
|
width: 100% !important;
|
/* margin-top: 19px; */
|
/* height: 68%; */
|
display: flex;
|
flex-direction: column;
|
justify-content: space-around;
|
align-items: center;
|
|
.Ttop {
|
margin-top: .38rem;
|
margin-bottom: 1.22rem;
|
}
|
|
.r-top {
|
font-size: 40rpx !important;
|
margin: 10rpx 0;
|
}
|
}
|
|
}
|
|
.login {
|
width: 102rpx;
|
height: 102rpx;
|
display: inline-block;
|
vertical-align: middle;
|
margin-right: 20rpx;
|
background: url(@/static/image/logo.png) no-repeat 0 0;
|
background-size: 100% 100%;
|
}
|
|
.rrr {
|
position: absolute;
|
right: .53rem;
|
bottom: .36rem;
|
width: 2.5rem;
|
height: 3.07rem;
|
opacity: 1;
|
background: url(@/static/image/bg4.png);
|
background-size: 100% 100%;
|
}
|
|
.hua {
|
width: 13.81rem;
|
height: 5.965rem;
|
position: absolute;
|
background: url(@/static/image/bg3.png) no-repeat 0 0;
|
background-size: 100% 100%;
|
}
|
|
/* 底部人物背景图 */
|
.fff {
|
background: url(@/static/image/bg2.png) no-repeat 0 0;
|
background-size: 100% 100%;
|
width: 2.74rem;
|
height: 4.52rem;
|
position: fixed;
|
bottom: 0;
|
z-index: 9999999999999;
|
left: 0;
|
}
|
|
::v-deep .uni-easyinput__content {
|
border-radius: 30rpx !important;
|
/* height: 52rpx; */
|
}
|
|
|
.secretary {
|
/* width: 1300rpx !important; */
|
/* height: 50rpx; */
|
/* height: 80%; */
|
/* flex-wrap: wrap; */
|
padding: 0 20px;
|
text-align: center;
|
|
li {
|
background-color: #fff;
|
color: black;
|
width: 1.6rem;
|
height: 4.8rem;
|
display: flex;
|
justify-content: center;
|
flex-direction: column;
|
align-items: center;
|
text-align: center;
|
background: #EBF4FF;
|
font-weight: 600;
|
margin: 0 .21rem;
|
}
|
}
|
|
|
|
/* .Bbottom {
|
display: flex;
|
justify-content: center;
|
|
} */
|
</style>
|