mh-two-thousand-and-two
2024-03-25 bd37b0a842b37ab5e0eb016b82cd757c0cc7da2d
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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<template>
    <view>
        <view class="NavTop flex">
            <view class=""><img src="../../static/中医人物知识库0201/三条杠.png" alt="" /></view>
            <view class="">中医医事制度</view>
            <view class="NavTopr">
                <img src="../../static/中医人物知识库0201/三条杠.png" alt="" />
                <img src="../../static/中医人物知识库0201/三条杠.png" alt="" />
                <img src="../../static/中医人物知识库0201/三条杠.png" alt="" />
            </view>
        </view>
        <view class="mImage">
            <img src="https://img0.baidu.com/it/u=3838093562,4126749835&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1710522000&t=a986064700deada5ec74d05e02abd8b5"
                alt="" />
        </view>
        <view class="flex flex-center" style="flex-direction: column;">
            <view class="search">
                <next-search-more :selectValue="selectValue">
                </next-search-more>
            </view>
            <view class="flex">
                热门搜索:
                <ul class="flex" style="margin-right: 10rpx;">
                    <li v-for="item in hot" :key="item.id" @tap="HotClick(item.id)" style="margin: 0 10rpx;"
                        :style="{color:item.bgColor==true?'#5879a4':'#000'}">
                        {{item.name}}
                    </li>
                </ul>
            </view>
        </view>
        <view class="centre flex">
            <view class="CLeft flex">
                <ul class="institution">
                    <view class="" style="font-weight: 700;padding-bottom: 6rpx;">机构统计10</view>
                    <li v-for="ietm1 in 7" :key="item1" class="flex">
                        <view class="">item</view>
                        <view class="">112</view>
                    </li>
                </ul>
                <ul class="institution institution2">
                    <view class="" style="font-weight: 700;padding-bottom: 6rpx;">机构统计10</view>
                    <li v-for="ietm1 in 4" :key="item1" class="flex">
                        <view class="">item</view>
                        <view class="">112</view>
                    </li>
                </ul>
                <ul class="institution institution3 ">
                    <view class="" style="font-weight: 700;padding-bottom: 6rpx;">机构统计10</view>
                    <li v-for="ietm1 in 1    " :key="item1" class="flex">
                        <view class="">item</view>
                        <view class="">112</view>
                    </li>
                </ul>
            </view>
            <view class="CRight flex flex-column relative">
                <el-row style="height: 50rpx;width: 100%;">
                    <view class="flex">
                        <view class="">共{{total}}条</view>
                        <view class="">
                            <uni-data-select style="width: 250rpx;" v-model="rankVal" :localdata="rank" :clear="false"
                                @change="selectChange">
                            </uni-data-select>
                        </view>
                    </view>
                </el-row>
                <view style="flex-grow: 1;" class="flex CommodityList">
                    <view class="" v-for="item in CommodityList" :key="item" style="height:28% ;">
                        <el-card class="box-card" style="height:  100%;">
                            <view class="flex flex-start">
                                <view class=""
                                    style="background-color: #5879a4;text-align: right;transform:translateX(-50rpx);color: #fff;padding:0 10rpx 0 50rpx;">
                                    {{item.post}}
                                </view>
                                <view class="" style="margin-right:  20rpx;">{{item.name}}</view>
                                <view class=""
                                    style="border: 1px solid #d4d4d4;font-weight:500;padding: 0 10rpx;border-radius: 10rpx;">
                                    {{item.dynasty}}
                                </view>
                            </view>
                            <view class=""
                                style="background-color: #f6f6f6;padding: 5rpx 10rpx;color: #777777; margin: 15rpx 0;">
                                {{item.anotherNamer}}
                            </view>
                            <view class=""
                                style="font-weight: 600; font-size: 20rpx;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;">
                                {{item.content}}
                            </view>
                        </el-card>
                    </view>
                </view>
                <!-- 弹出层 -->
                <el-dialog title="" class="dialog" :visible.sync="dialogVisible" width="40%">
                    <!-- 取消键 -->
                    <view class="" @click="dialogVisible=false"
                        style="padding: 20rpx;position: absolute;left: 0;top: 0;font-size: 40rpx;z-index: 999;">X</view>
                    <view class="flex" style="height: 100%;flex-direction: column;">
                        <view class="detailImage" style="position: relative;">
                            <img style="opacity: .5;" src="https://img0.baidu.com/it/u=3628503530,464378779&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1710608400&t=42d653b0f525a8de1d45825ea8b45f66"
                                alt="" />
                            <view class=" flex flex-column " style="height: 100%;justify-content: center; position: relative;z-index: 999;">
                                <view class="" style="font-size: 40rpx;font-weight: 900;">御医</view>
                                <view class="" style="font-size: 20rpx;font-weight: 800; border: 2rpx solid #000;margin: 30rpx 0;background-color: #fff;border-radius: 10rpx;padding: 0 10rpx;">御医</view>
                                <ul class="flex">
                                    <li v-for="item in 3" style="background-color: #fff;color: #415c7a; border: 2rpx solid #415c7a;border-radius: 30rpx;padding: 0 15rpx;margin-right: 10rpx;" >ssdf</li>
                                </ul>
                            </view>
                        </view> 
                        <view class="" style="width: 80%; height: 100%;position: relative;">
                            <view class=" flex flex-content"
                                style=" box-shadow: 4px 4px 8px #888; background-color: #fff; width: 100%;left: 0; position: relative;top: -50rpx;padding:  30rpx 0; ">
                                <view class="">品级: <span>二品</span> </view>
                                <view class="">品级: <span>二品</span> </view>
                                <view class="">品级: <span>二品</span> </view>
                            </view>
                            <view class="" style="background-color: #f4f4f4;font-weight: 700;padding: 10rpx;">
                                相关描述
                            </view>
                            <view class="" style="font-size: 23rpx;font-weight: 600;margin: 30rpx 0;">按摩博士是古代太医署职称,负责掌管按摩正骨专业的教授考核,官阶在从九品下[1]。按摩博士,隋代设二人,品位不详。唐代设一人,官阶为从九品下,按摩博士负责掌管按摩、正骨专业的教学,下设按摩师、按摩工等作为助手。</view>
                            <view class="" style="background-color: #f4f4f4;font-weight: 700;padding: 10rpx;">
                                相关描述
                            </view>
                            <view class="" style="font-size: 23rpx;font-weight: 600;margin: 30rpx 0;">按摩博士是古代太医署职称,负责掌管按摩正骨专业的教授考核,官阶在从九品下[1]。按摩博士,隋代设二人,品位不详。唐代设一人,官阶为从九品下,按摩博士负责掌管按摩、正骨专业的教学,下设按摩师、按摩工等作为助手。</view>
                        </view>
                        <view class="flex" style="padding: 20rpx; box-sizing: border-box; width: 100%;margin-bottom: 2rpx;">
                            <el-button class="flex">
                                <view class="flex">
                                    <view class="" style="margin-right: 40rpx;">上一条</view>
                                    <view class="">机构: 太医院 </view>
                                </view>
                            </el-button>
                            <el-button class="flex">
                                <view class="flex">
                                    <view class="" style="margin-right: 40rpx;">机构: 太医院 </view>
                                    <view class="" >下一条</view>
                                </view>
                            </el-button>
                        </view>
                    </view>
                </el-dialog>
                <!-- 分页 -->
                <el-row style="height: 50rpx;position: absolute;bottom: 50rpx;">
                    <el-pagination class="paging" :current-page="CurrentPage" :total="total" :page-size="6"
                        @current-change="CurrentChange" @prev-click="PrevClick" @next-click="NextClick" prev-text="上一页"
                        next-text="下一页" background layout="prev, pager, next">
                    </el-pagination>
                    </el-pagination>
                </el-row>
            </view>
        </view>
 
 
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                // 弹出层
                dialogVisible: true,
                // 搜索的下拉列表
                selectValue: [{
                    value: 0,
                    text: '是否'
                }, {
                    value: 1,
                    text: '11sd1'
                }, {
                    value: 2,
                    text: '11sdsd1'
                }],
                // 热门搜索
                hot: [{
                    id: 1,
                    name: '李时珍',
                    bgColor: false
                }, {
                    id: 2,
                    name: '李时珍2',
                    bgColor: false
                }, {
                    id: 3,
                    name: '李时珍3',
                    bgColor: false
                }, ],
                // 点击的搜索项
                HotBg: false,
                // 排序下拉菜单
                rank: [{
                    value: 0,
                    text: '排序'
                }, {
                    value: 1,
                    text: '排序s'
                }],
                rankVal: 0,
                // 列表项  
                CommodityList: [{
                        id: 1,
                        post: '机构',
                        name: '太医院',
                        dynasty: '唐朝',
                        anotherNamer: '别称----------',
                        content: '内容++++++++++++++++++++++++++++++'
                    },
                    {
                        id: 2,
                        post: '机构',
                        name: '太医院',
                        dynasty: '唐朝',
                        anotherNamer: '别称----------',
                        content: '内容++++++++++++++++++++++++++++++'
                    },
                    {
                        id: 3,
                        post: '机构',
                        name: '太医院',
                        dynasty: '唐朝',
                        anotherNamer: '别称----------',
                        content: '内容++++++++++++++++++++++++++++++'
                    }
                ],
                // 分页的总数
                total: 100,
                // 当前页
                CurrentPage: 1
 
            }
        },
        methods: {
            // 热门搜索
            HotClick(id) {
                this.hot.forEach(item => {
                    if (item.id === id) {
                        console.log(item.id === id);
                        item.bgColor = true
                    } else {
                        console.log(item.id === id);
                        item.bgColor = false
                    }
                })
 
            },
            selectChange(e) {
 
                console.log(e);
            },
            // 分页当前页触发事件
            CurrentChange(val) {
                if (this.CurrentPage != val) {
                    this.CurrentPage = val
                    console.log('当前页', val);
                    console.log(this.CurrentPage);
                }
 
            },
            // 上一页
            PrevClick(val) {
                if (this.CurrentPage != val) {
                    this.CurrentPage = val
                    console.log('上一页', val);
                    console.log(this.CurrentPage);
 
                }
            },
            // 下一页
            NextClick(val) {
                if (this.CurrentPage != val) {
                    // console.log('下一页',val);
                    this.CurrentPage = val
                    console.log(this.CurrentPage);
                }
            }
        }
    }
</script>
 
<style>
    img {
        width: 100%;
        height: 100%;
    }
 
    .NavTop {
        background-color: #0c274c;
        padding: 25rpx;
        color: #fff !important;
 
        img {
            width: 30rpx;
            height: 30rpx;
            vertical-align: middle;
        }
 
        .NavTopr {
            img {
                margin-right: 10rpx;
            }
        }
    }
 
    .mImage {
        width: 100%;
        height: 40rpx;
 
        img {
            vertical-align: top;
        }
    }
 
    .search {
        width: 50%;
    }
 
    .centre {
        padding: 0 30rpx;
        /* border: 1px solid #000; */
        height: 70vh;
        /* overflow: hidden; */
        align-items: flex-start;
 
        .CLeft {
            height: 100%;
            vertical-align: top;
            flex-direction: column;
 
            .institution {
                width: 300rpx;
                border: 1px solid #000;
                padding: 20rpx;
 
            }
 
            .institution2 {
                margin: 20rpx 0;
            }
 
            .institution3 {
                flex-grow: 1;
            }
        }
 
        .CRight {
            margin-left: 20rpx;
            height: 100%;
            flex-grow: 1;
            border: 1px solid #000;
            box-sizing: border-box;
            overflow: hidden;
            padding: 10rpx 30rpx;
        }
    }
 
    .CommodityList {
        flex-grow: 1;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        align-content: flex-start;
        padding: 20rpx 20rpx 0 20rpx;
        justify-content: space-between;
 
        >view {
            width: 49%;
            margin-bottom: 20rpx;
 
            .box-card {
                overflow: visible;
            }
        }
    }
 
    /* ::v-deep .el-card__body{
        padding: 30rpx;
    } */
    .paging {
        display: flex;
        align-items: center;
    }
 
    .dialog {
        position: fixed;
        right: 0;
        top: 0;
 
        >div {
            height: 100%;
            margin: 0 !important;
            position: fixed;
            right: 0;
            top: 0;
 
            > :nth-child(1) {
                display: none;
            }
 
 
            >:nth-child(2) {
                padding: 0;
            }
        }
    }
 
    ::v-deep .el-dialog .el-dialog__body {
        height: 100%;
    }
 
    .detailImage {
        width: 100%;
        height: 450rpx;
        color: #000;
        img{
            position: absolute;
            width: 100%;
            height: 100%;
            vertical-align: top;
        }
    }
</style>