老师,能否看下我的点击门诊跳转到科室排班表的结构和动态,感觉没有思路

老师,能否看下我的点击门诊跳转到科室排班表的结构和动态,感觉没有思路

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
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>城市预约挂号统一平台</title>
    <link rel="stylesheet" href="css/layout.css"/>
    <link rel="stylesheet" href="css/index.css"/>
    <link rel="stylesheet" href="css/ui.css"/>
    <script src="js/jquery-1.7.1.min.js"></script>
</head>
<body>
    <div id="top" class="top">
        <div class="wrap">
            <p class="call">010-114/116114电话预约</p>
            <p class="welcome">欢迎来到城市预约挂号统一平台&nbsp;&nbsp;请&nbsp;&nbsp;&nbsp;&nbsp;
 <a href="#">登录</a>&nbsp;&nbsp;
 <a href="#">注册</a>
            </p>
        </div>
    </div>
 
    <div id="header" class="header">
        <div class="wrap">
            <div class="logo">
                <img src="img/logo.png"/>
            </div>
            <div class="search ui-search">
                <div class="ui-search-selected">医院</div>
                <div class="ui-search-select-list">
                    <a href="#">科室</a>
                    <a href="#">疾病</a>
                    <a href="#">医院</a>
                </div>
                <input type="text" name="search-content" class="ui-search-input" placeholder="请输入搜索内容"/>
                <a href="#" class="ui-search-submit">&nbsp;</a>
            </div>
        </div>
    </div>
 
    <div id="nav" class="nav">
        <div class="wrap">
            <a href="#">首页</a>
            <a href="#">按医院挂号</a>
            <a href="#">按科室挂号</a>
            <a href="#">按疾病挂号</a>
            <a href="#">最新公告</a>
        </div>
    </div>
 
    <div class="hospital_intro">
        <div class="wrap">
            <div class="hospital">
                <div class="hospital_caption">
                    <p class="name">北京协和医院<span class="subname">关注医院</span></p>
                    <p class="info">
                        <a href="#">等级: <span>三级甲等</span></a>
                        <a href="#">区域: <span>东城区</span></a>
                        <a href="#">分类: <span>中国医科院所属医院</span></a>
                    </p>
                </div>
                <div class="hospital_content">
                    <div class="left"></div>
                    <div class="center">
                        <div class="item">
                            <i></i><span>[东院]北京市东城区帅府园一号 [西院]北京市西城区大木胡同41号</span>
                        </div>
                        <div class="item">
                            <i></i><span>http://www.pumch.cn/</span>
                        </div>
                        <div class="item">
                            <i></i>东院咨询台:010-69155564;西院咨询台:010-69158010
                        </div>
                        <div class="item">
                            <i></i><span>东院:106,108,110,111,116,684,685到东单路口北;41,104块,814到东单路口南;1,52,728,802到东单路口西;
                            地铁1/5号线到东单。西院:68到比才胡同口;更多乘车路线详见须知</span>
                        </div>
                    </div>
                    <div class="right"></div>
                </div>
            </div>
        </div>
    </div>
 
    <div class="hospital_system">
        <div class="wrap">
            <div class="hospital_system_caption">
                <a class="item item_focus" href="javascript:;">预约挂号</a>
                <a class="item " href="javascript:;">医院介绍</a>
                <a class="item " href="javascript:;">预约通知</a>
                <a class="item " href="javascript:;">停诊信息</a>
                <a class="item " href="javascript:;">查询取消</a>
            </div>
            <div class="hospital_system_content">
                <div class="item">
                    <div class="appointment_office">
                        <div class="appointment_office_caption">预约开放科室</div>
                        <div class="appointment_office_content">
                            <div class="item">
                                <div class="item_caption">2301</div>
                                <div class="item_content">
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                    <a href="#" class="link">特殊门诊科</a>
                                </div>
                                <!-- 科室排班表-->
 <div class="section_schedule" style="display: none">
                                    <div class="item">特殊门诊科1</div>
                                    <div class="item">特殊门诊科2</div>
                                </div>
                            </div>
                            <div class="item">
                                <div class="item_caption">专科</div>
                                <div class="item_content">
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                </div>
                            </div>
                            <div class="item">
                                <div class="item_caption">内科</div>
                                <div class="item_content">
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                </div>
                            </div>
                            <div class="item">
                                <div class="item_caption">内科</div>
                                <div class="item_content">
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="rule">
                        <div class="rule_caption">预约规则 <span>(更新时间每日8:30更新)</span></div>
                        <div class="rule_content">
                            <div class="rule_content_item">
                                <p>预约周期:<span>7天</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>放号时间:<span>8:30</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>停挂时间:<span>下午14:00停止次日预约挂号(周五14:00后停挂至下周一)</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>退号时间:<span>就诊前一工作日14:00前取消</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>特殊规则:<span>取号地点不同:西园区预约取号地点:西园区门诊一号大厅挂号窗口取号。
                                    东园区预约取号地点:东园区门诊一号大厅挂号窗口取号</span></p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="item" style="display: none"><img src="img/page2.jpg"/></div>
                <div class="item" style="display: none"><img src="img/page3.jpg"/></div>
                <div class="item" style="display: none"><img src="img/page4.jpg"/></div>
                <div class="item search" style="display: none">
                    <div class="search_detail">
                        <span>预约识别码&nbsp;&nbsp;:&nbsp;&nbsp;</span>
                        <input type="text"/>
                        <p class="button">
                            <a href="#">查询订单</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
 
    <div id="footer" class="footer">
        Copyright&nbsp;&nbsp;&nbsp;&nbsp;&copy;&nbsp;&nbsp;&nbsp;&nbsp;2017慕课网版权所有
    </div>
    <script src="js/ui.js"></script>
</body>
</html>
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
layout.css
/*页面布局样式*/
*{
    padding0;
    margin0;
}
.wrap{
    width1000px;
    margin0 auto;
    positionrelative;
}
select,input{
    border0;
    outline0;
}
#top{
    height30px;
    background-color#f5f5f5;
}
#header{
    height92px;
}
#nav{
    height35px;
    background-color#60bff2;
}
.hospital_intro{
    height258px;
    margin30px 0 40px 0;
}
.hospital{
    height230px;
    background-color#f7f7f7;
}
.hospital_system{
    height460px;
    margin-bottom80px;
}
.hospital_system_caption{
    height30px;
    border-bottom2px solid #60bff2;
    margin-bottom20px;
}
.hospital_system_content{
    height410px;
}
.appointment_office{
    width708px;
    height408px;
    border1px solid #f4f6fa;
    floatleft;
}
.rule{
    width273px;
    height282px;
    border1px solid #f4f6fa;
    floatright;
}
#footer{
    height70px;
    background-color#eceef2;
}
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
index.css
/*页面样式*/
/*top模块*/
a {
    text-decorationnone;
}
 
.top {
    line-height30px;
    color#868686;
    font-size14px;
}
 
.top p.call {
    floatleft;
    backgroundurl("../img/icon-call.png"no-repeat 0 5px;
    text-indent20px;
}
 
.top p.welcome {
    floatright;
}
 
.top p.welcome a {
    color#2da5e1;
}
 
/*header 模块*/
.header .logo {
    width350px;
    height58px;
    padding20px 15px;
}
 
.header .logo img {
    width100%;
    height100%;
}
 
.header .search {
    width328px;
    height38px;
    background-color: orange;
    positionabsolute;
    right0;
    top29px;
}
 
/*nav 模块*/
.nav {
    line-height35px;
}
 
.nav a {
    display: inline-block;
    padding-left53px;
    color#fff;
}
 
.nav a:hover {
    color#d7f3ff;;
}
 
/*hospital_intro 医院介绍*/
.hospital {
    padding15px 25px 20px 25px;
}
 
.hospital_caption {
    height35px;
    border-bottom2px solid #dcdddd;
}
 
.hospital_caption p {
    font-size16px;
}
 
.hospital_caption .subname {
    font-size14px;
    color#f29600;
    margin-left13px;
}
 
.hospital_caption p.name {
    floatleft;
}
 
.hospital_caption p.info {
    floatright;
}
 
.hospital_caption p.info a {
    color#0000ff;
    margin-right14px;
}
 
.hospital_caption p.info a:last-child {
    margin-right0;
}
 
.hospital_caption p.info span {
    color#000;
}
 
.hospital_content {
    margin-top10px;
}
 
.hospital_content .left {
    width200px;
    height150px;
    backgroundurl("../img/hospital-1.jpg");
    floatleft;
}
 
.hospital_content .center {
    width447px;
    height157px;
    floatleft;
    margin-left30px;
}
 
.center .item {
    font-size14px;
    color#888888;
    margin-bottom18px;
}
 
.center .item span {
    line-height23px;
}
 
.center .item i {
    display: inline-block;
    width15px;
    height16px;
    margin-right15px;
}
 
.center .item:first-child i {
    backgroundurl("../img/icon-web.png"0 0;
}
 
.center .item:nth-child(2) i {
    backgroundurl("../img/icon-web.png"0 -22px;
}
 
.center .item:nth-child(3) i {
    backgroundurl("../img/icon-web.png"0 -44px;
}
 
.center .item:last-child i {
    backgroundurl("../img/icon-web.png"0 -65px;
}
 
.hospital_content .right {
    floatright;
    width250px;
    height165px;
    backgroundurl("../img/map-1.png");
}
 
/*hospital_system 医院体系*/
.hospital_system_caption a {
    display: inline-block;
    width110px;
    height30px;
    line-height30px;
    text-aligncenter;
    color#60bff2;
}
 
.hospital_system_caption a.item_focus {
    background-color#60bff2;
    color#fff;
}
 
.hospital_system_content .search {
    margin-top90px;
    height200px;
    border1px solid #DCDDDD;
    positionrelative;
}
 
.search .search_detail {
    width420px;
    height30px;
    positionabsolute;
    top50%;
    margin-top-15px;
    left50%;
    margin-left-210px;
}
 
.search_detail span {
    floatleft;
}
 
.search_detail input {
    height30px;
    width194px;
    border1px solid #dcdcdc;
    floatleft;
}
 
.search_detail .button {
    floatleft;
    width110px;
    height30px;
    margin-left5px;
    line-height30px;
    text-aligncenter;
    background-color#00B3EC;
}
 
.search_detail .button a {
    color#fff;
}
 
.appointment_office_caption {
    height44px;
    background-color#f4f6fa;
    line-height40px;
    padding-left30px;
}
 
.appointment_office_content .item {
    height90px;
    border-bottom1px solid #f4f6fa;
}
 
.appointment_office_content .item_caption {
    width144px;
    height80px;
    background-color#f2fbff;
    floatleft;
    text-aligncenter;
    padding-top10px;
}
 
.appointment_office_content .item_content {
    width560px;
    height100%;
    floatleft;
}
.appointment_office_content .item_content .link{
    display: inline-block;
    width100px;
    height27px;
    margin-left20px;
    padding-top3px;
    color#4c4948;
}
.rule {
    overflowauto;
}
 
.rule_caption {
    height40px;
    padding-left10px;
    background-color#f4f6fa;
    line-height40px;
    color#606060;
}
 
.rule_caption span {
    font-size14px;
    color#00b3ea;
}
 
.rule_content {
    height244px;
    padding15px 10px;
}
 
.rule_content .rule_content_item {
    line-height22px;
    margin-bottom10px;
}
 
.rule_content .rule_content_item p {
    width100%;
    color#555555;
}
 
.rule_content .rule_content_item span {
    color#888888;
}
 
/*footer 模块*/
.footer {
    text-aligncenter;
    line-height70px;
    color#acacac;
    font-size14px;
}
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
ui.css
/* 搜索 */
.ui-search{
    backgroundurl(../img/ui-search.jpg) center no-repeat;
    font-size14px;
    color#fff;
    positionrelative;
}
.ui-search-selected{
    width70px;
    height38px;
    line-height38px;
    positionabsolute;
    left0;
    top0;
    text-indent14px;
}
.ui-search-select-list{
    displaynone;
    positionabsolute;
    width67px;
    line-height24px;
    background-color#fff;
    box-shadow: 3px 3px 5px rgba(0,0,0,.2);
    left2px;
    top36px;
    z-index2;
}
.ui-search-select-list a{
    displayblock;
    color#A5a2a2;
    text-aligncenter;
}
.ui-search-select-list a:hover{
    background-color#ebeef5;
}
.ui-search-input{
    width208px;
    height26px;
    positionabsolute;
    top7px;
    left73px;
    line-height26px;
    font-size13px;
    color#A5A2A2;
 
}
.ui-search-submit{
    displayblock;
    positionabsolute;
    right0;
    top1px;
    width40px;
    height36px;
}
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
//ui-search定义
$.fn.UiSearch=function(){
    var ui=$(this);
    $('.ui-search-selected',ui).on('click',function(){
        $('.ui-search-select-list').show();
        return false;
    })
    $('.ui-search-select-list a',ui).on('click',function(){
        $('.ui-search-selected').text($(this).text());
        $('.ui-search-select-list').hide();
        return false;
    })
    $('body').on('click',function(){
        $('.ui-search-select-list').hide();
        return false;
    });
}
 
//ui-tab定义
$.fn.UiTab=function(header,content){
    var ui=$(this);
    var tabs=$(header,ui);
    var cons=$(content,ui);
 
    tabs.on('click',function(){
        var index=$(this).index();
        tabs.removeClass('item_focus').eq(index).addClass('item_focus');
        cons.hide().eq(index).show();
        return false;
    })
}
 
//页面脚本逻辑
$(function(){
    $('.ui-search').UiSearch();
    $('.hospital_system').UiTab('.hospital_system_caption >.item','.hospital_system_content >.item');
    $('.hospital_system .appointment_office_content .item_content')
        .UiTab('.item_content .link','.section_schedule >.item');
})

http://img1.sycdn.imooc.com//climg/5d2ef4ba0001c7ad02190211.jpg

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
好帮手慕慕子 2019-07-17 19:19:10

同学你好, 点击“门诊”跳转到科室排班表这里,可以新建一个HTML页面表示科室排班表的页面, 然后直接给a链接添加文件地址实现跳转即可。老师这里以部分示例:

http://img1.sycdn.imooc.com//climg/5d2f03bc0001390307550373.jpg

同学可以自己测试一下哦

如果帮助到了你, 欢迎采纳!

祝学习愉快~~~~~

  • 提问者 天青色烟雨蒙 #1
    也就是a链接跳转到另一个页面了,好的那我再试下,如果还有其他问题,请老师也能帮我细心检查下,谢谢
    2019-07-18 10:36:11
  • 同学你好, 在学习过程中遇到问题, 都可以在问答区提问哦, 我们会帮助你分析解决问题的, 祝学习愉快~~~
    2019-07-18 10:55:33
  • 提问者 天青色烟雨蒙 #3
    这样直接在a标签的href属性里添加url地址没有用啊
    2019-07-18 11:28:25
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
2.组件化网页开发
  • 参与学习           人
  • 提交作业       1121    份
  • 解答问题       14456    个

本阶段在运用JS实现动态网页开发的基础上,带你深入理解企业开发核心思想,完成一个企业级网页的开发,体验前端工程师的成就感。

了解课程
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师
插入代码