mh-two-thousand-and-two
2024-03-29 d27fbd63d7840787d7f3ca5333b6e24dc3a860d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<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>