合并分支 'ddd' 到 'master'
缺按钮 查看合并请求 !13
正在显示
1 个修改的文件
包含
128 行增加
和
1 行删除
@@ -10,6 +10,15 @@ const classList = ref([ | @@ -10,6 +10,15 @@ const classList = ref([ | ||
10 | { url: '@/static/class.jpg', name: '交互动效设置' }, | 10 | { url: '@/static/class.jpg', name: '交互动效设置' }, |
11 | { url: '@/static/class.jpg', name: '融媒体制作与策划' } | 11 | { url: '@/static/class.jpg', name: '融媒体制作与策划' } |
12 | ]) | 12 | ]) |
13 | + | ||
14 | +const showCenter = ref(false) | ||
15 | +const value = ref('') | ||
16 | +const text = ref('发送验证码') | ||
17 | +const showPopup = () => { | ||
18 | + console.log(111) | ||
19 | + showCenter.value = true | ||
20 | +} | ||
21 | + | ||
13 | </script> | 22 | </script> |
14 | <template> | 23 | <template> |
15 | <div class="counter"> | 24 | <div class="counter"> |
@@ -28,7 +37,7 @@ const classList = ref([ | @@ -28,7 +37,7 @@ const classList = ref([ | ||
28 | </div> | 37 | </div> |
29 | </div> | 38 | </div> |
30 | <div class="bod"> | 39 | <div class="bod"> |
31 | - <div class="n">+新建课程</div> | 40 | + <div class="n" @click="showPopup">+新建课程</div> |
32 | <div class="n">新建文件夹</div> | 41 | <div class="n">新建文件夹</div> |
33 | </div> | 42 | </div> |
34 | <div class="ban"> | 43 | <div class="ban"> |
@@ -39,6 +48,61 @@ const classList = ref([ | @@ -39,6 +48,61 @@ const classList = ref([ | ||
39 | <div class="title">{{ item.name }}</div> | 48 | <div class="title">{{ item.name }}</div> |
40 | </div> | 49 | </div> |
41 | </div> | 50 | </div> |
51 | + <!-- 新建课程 --> | ||
52 | + <div class="popup"> | ||
53 | + <van-popup v-model:show="showCenter" @click-close-icon="showCenter" closeable="true" close-icon-position="top-left" | ||
54 | + close-icon="arrow-left" round :style="{ padding: '100px auto', width: '1000px', height: '600px' }"> | ||
55 | + | ||
56 | + <div class="box"> | ||
57 | + <div class="title">新建课程</div> | ||
58 | + <div class="fenge"></div> | ||
59 | + <div class="h"> | ||
60 | + <div>课程名称</div> | ||
61 | + <input type="text"> | ||
62 | + </div> | ||
63 | + <div class="h"> | ||
64 | + <div>课程教师</div> | ||
65 | + <input type="text"> | ||
66 | + </div> | ||
67 | + <div class="h"> | ||
68 | + <div class="w">所属单位</div> | ||
69 | + <select> | ||
70 | + <option value="1">计算机与软件技术系</option> | ||
71 | + <option value="2">机电技术系</option> | ||
72 | + <option value="3">经济与管理系</option> | ||
73 | + <option value="4">数字艺术系</option> | ||
74 | + </select> | ||
75 | + <div class="q">选择学期</div> | ||
76 | + <select> | ||
77 | + <option value="1">2023-2024(1)</option> | ||
78 | + <option value="2">2023-2024(2)</option> | ||
79 | + <option value="3">2024-2025(1)</option> | ||
80 | + <option value="4">2024-2025(2)</option> | ||
81 | + </select> | ||
82 | + | ||
83 | + </div> | ||
84 | + <div class="h"> | ||
85 | + <div class="w">课程类型</div> | ||
86 | + <select> | ||
87 | + <option value="1">考试课</option> | ||
88 | + <option value="2">考查课</option> | ||
89 | + </select> | ||
90 | + | ||
91 | + </div> | ||
92 | + <div class="h"> | ||
93 | + <div>课程封面</div> | ||
94 | + <div class="pic"> | ||
95 | + <img src="@/static/class.jpg" alt=""> | ||
96 | + </div> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <!-- 底部按钮 --> | ||
100 | + <div class="e"> | ||
101 | + <button type="button" class="bt1">取消</button> | ||
102 | + <button type="button" class="bt2">完成</button> | ||
103 | + </div> | ||
104 | + </van-popup> | ||
105 | + </div> | ||
42 | </div> | 106 | </div> |
43 | </template> | 107 | </template> |
44 | 108 | ||
@@ -46,6 +110,66 @@ const classList = ref([ | @@ -46,6 +110,66 @@ const classList = ref([ | ||
46 | .counter { | 110 | .counter { |
47 | width: 100%; | 111 | width: 100%; |
48 | background-color: #f2f2f2; | 112 | background-color: #f2f2f2; |
113 | + | ||
114 | +.box{ | ||
115 | + button, select { | ||
116 | + text-transform: none; | ||
117 | + width: 150px; | ||
118 | +} | ||
119 | +.e{ | ||
120 | + display: flex; | ||
121 | + margin-left: 400px; | ||
122 | + .bt2{ | ||
123 | + margin-left: 60px; | ||
124 | + color: #6170c3; | ||
125 | + } | ||
126 | + .bt1{ | ||
127 | + margin-left: 400px; | ||
128 | + color:white ; | ||
129 | + } | ||
130 | +} | ||
131 | + .q{ | ||
132 | + margin-left: 50px; | ||
133 | + margin-right: 40px; | ||
134 | + } | ||
135 | + .w{ | ||
136 | + margin-right: 40px; | ||
137 | + } | ||
138 | + .h { | ||
139 | + margin-top: 20px; | ||
140 | + padding-left: 40px; | ||
141 | + display: flex; | ||
142 | + height: 30px; | ||
143 | + line-height: 30px; | ||
144 | + .pic{ | ||
145 | + margin-left: 40px; | ||
146 | + } | ||
147 | + img{ | ||
148 | + height: 120px; | ||
149 | + width: 200px; | ||
150 | + | ||
151 | + } | ||
152 | + } | ||
153 | + | ||
154 | + input { | ||
155 | + margin-left: 40px; | ||
156 | + height: 30px; | ||
157 | + width: 600px; | ||
158 | + } | ||
159 | + | ||
160 | + .title { | ||
161 | + font-weight: 800; | ||
162 | + // text-align: center; | ||
163 | + padding-left: 40px; | ||
164 | + font-size: 30px; | ||
165 | + margin-top: 60px; | ||
166 | + } | ||
167 | + | ||
168 | + .fenge { | ||
169 | + margin-top: 5px; | ||
170 | + border: #cdcccc 1px solid; | ||
171 | + } | ||
172 | +} | ||
49 | 173 | ||
50 | .ban { | 174 | .ban { |
51 | display: flex; | 175 | display: flex; |
@@ -53,13 +177,16 @@ const classList = ref([ | @@ -53,13 +177,16 @@ const classList = ref([ | ||
53 | justify-content: space-around; | 177 | justify-content: space-around; |
54 | margin-top: 20px; | 178 | margin-top: 20px; |
55 | width: 95%; | 179 | width: 95%; |
180 | + | ||
56 | .item { | 181 | .item { |
57 | margin: 40px; | 182 | margin: 40px; |
58 | } | 183 | } |
184 | + | ||
59 | .title { | 185 | .title { |
60 | text-align: center; | 186 | text-align: center; |
61 | margin-top: 10px; | 187 | margin-top: 10px; |
62 | } | 188 | } |
189 | + | ||
63 | img { | 190 | img { |
64 | height: 125px; | 191 | height: 125px; |
65 | width: 100%; | 192 | width: 100%; |
-
请 注册 或 登录 后发表评论