|
@@ -0,0 +1,922 @@
|
|
1
|
+{include file="public/layout" /}
|
|
2
|
+
|
|
3
|
+<body class="bodystyle" style="overflow-y: scroll;">
|
|
4
|
+<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
|
|
5
|
+<div id="append_parent"></div>
|
|
6
|
+<div id="ajaxwaitid"></div>
|
|
7
|
+<div class="page min-hg-c-10">
|
|
8
|
+ <form class="form-horizontal" id="post_form" action="{:url('ZcwdPosition/add')}" method="post">
|
|
9
|
+ <div class="ncap-form-default">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+ <dl class="row">
|
|
13
|
+ <dt class="tit">
|
|
14
|
+ <label for="type">规则详情</label>
|
|
15
|
+ </dt>
|
|
16
|
+ <dd class="opt">
|
|
17
|
+ <input type="hidden" name="type" value="{$rule_id}" />
|
|
18
|
+ <input type="hidden" name="type_son" value="{$rule_id_son}" />
|
|
19
|
+ 规则编号: {$detail.orderno} 规则名称: {$detail_son.title} <br/>
|
|
20
|
+ </dd>
|
|
21
|
+ </dl>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+ <hr/>
|
|
26
|
+ <b>设置前置条件:</b>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+ <dl class="row">
|
|
30
|
+ <dt class="tit">
|
|
31
|
+ <label for="type">是否需要证书</label>
|
|
32
|
+ </dt>
|
|
33
|
+ <dd class="opt">
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+ <!--<label class="curpoin"><input type="radio" id="type{$field1.id}" name="type" value="{$field1.id}" onclick="TypeSwitch({$field1.id});">{$field1.name}</label>
|
|
37
|
+ -->
|
|
38
|
+
|
|
39
|
+ <?php
|
|
40
|
+ /*
|
|
41
|
+ * {eyou:foreach name='$pro_list' item='field1'}
|
|
42
|
+ <option value="{$field1.id}" {eq name="$Request.param.type" value="$field1.id"}selected{/eq}>{$field1.name}</option>
|
|
43
|
+ {/eyou:foreach}
|
|
44
|
+ */
|
|
45
|
+ ?>
|
|
46
|
+ <select name="is_zs" class="select" id="selectTest666" style="margin:0px 5px;height:30px;width:130px;">
|
|
47
|
+ <option value="0">不需要</option>
|
|
48
|
+ <option value="1">需要</option>
|
|
49
|
+ </select>
|
|
50
|
+
|
|
51
|
+ <script>
|
|
52
|
+ $(function(){
|
|
53
|
+ $("#selectTest666").change(function(e){
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+ /*var item = $("#selectTest").val();
|
|
57
|
+ if(item == '' || item == 0){
|
|
58
|
+ layer.msg('请先选择申报专业!', {icon: 2,time: 1000});
|
|
59
|
+ $("#selectTest666").val('0');
|
|
60
|
+ return false;
|
|
61
|
+ }
|
|
62
|
+ console.log(item);
|
|
63
|
+
|
|
64
|
+ //发送ajax 请求地区数据
|
|
65
|
+ $.ajax({
|
|
66
|
+ type:'POST',
|
|
67
|
+ url:"{:url('ZcwdPosition/getZs', ['_ajax'=>1])}",
|
|
68
|
+ data:{
|
|
69
|
+ id: item //获取当前专业
|
|
70
|
+ ,_ajax:1
|
|
71
|
+ },
|
|
72
|
+ success:function(res){
|
|
73
|
+ $('#zhengshu').html(res.data);
|
|
74
|
+ }
|
|
75
|
+ });*/
|
|
76
|
+
|
|
77
|
+ console.log($(this).val());
|
|
78
|
+ var v = $(this).val();
|
|
79
|
+ if(v == 1){
|
|
80
|
+ $('#citychoose').show();
|
|
81
|
+ }else{
|
|
82
|
+ $('#citychoose').hide();
|
|
83
|
+ }
|
|
84
|
+ });
|
|
85
|
+ });
|
|
86
|
+ </script>
|
|
87
|
+
|
|
88
|
+ <span class="err"></span>
|
|
89
|
+ <p class="notic"></p>
|
|
90
|
+ </dd>
|
|
91
|
+ </dl>
|
|
92
|
+
|
|
93
|
+ <dl class="row" id="citychoose" style="display: none;">
|
|
94
|
+ <dt class="tit"> <label for="title"><em>*</em>证书选择</label> </dt>
|
|
95
|
+ <dd class="opt">
|
|
96
|
+
|
|
97
|
+ <!---checked-->
|
|
98
|
+ <div id="zhengshu">
|
|
99
|
+ {$zs_html}
|
|
100
|
+ </div>
|
|
101
|
+
|
|
102
|
+ <span class="err"></span>
|
|
103
|
+ <p class="notic2 red" id="title_tips"></p>
|
|
104
|
+ </dd>
|
|
105
|
+ </dl>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+ <!--<dl class="row">
|
|
109
|
+ <dt class="tit"> <label for="title"><em>*</em>工作时间年限</label> </dt>
|
|
110
|
+ <dd class="opt">
|
|
111
|
+ <select name="sjnx[]" class="select" id="selectTest888" style="margin:0px 5px;height:30px;width:130px;">
|
|
112
|
+ <option value="0" selected>不限制</option>
|
|
113
|
+ <option value="1">1年</option>
|
|
114
|
+ <option value="2">2年</option>
|
|
115
|
+ <option value="3">3年</option>
|
|
116
|
+ <option value="4">4年</option>
|
|
117
|
+ <option value="5">5年</option>
|
|
118
|
+ <option value="6">6年</option>
|
|
119
|
+ <option value="7">7年</option>
|
|
120
|
+ <option value="8">8年</option>
|
|
121
|
+ </select>
|
|
122
|
+ 以上(包括)
|
|
123
|
+ </dd>
|
|
124
|
+ </dl>-->
|
|
125
|
+
|
|
126
|
+ <dl class="row">
|
|
127
|
+ <dt class="tit"> <label for="title"><em>*</em>工作要求:</label> </dt>
|
|
128
|
+ <dd class="opt">
|
|
129
|
+ {eyou:for start='1' end='10'}
|
|
130
|
+ {$i}. <input type="text" name="gzyq[]" value="" id="title" class="input-txt" autocomplete="off" style="margin-top: 5px;width: 800px !important;"><br/>
|
|
131
|
+ {/eyou:for}
|
|
132
|
+ </dd>
|
|
133
|
+ </dl>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+ <hr/>
|
|
137
|
+ <b>其他:</b>
|
|
138
|
+
|
|
139
|
+ <?php
|
|
140
|
+
|
|
141
|
+ /*
|
|
142
|
+ * <dl class="row 1615775137_dl" style="display: none;" id="1615775137_1">
|
|
143
|
+ <dt class="tit"> <label>主题背景</label> </dt>
|
|
144
|
+ <dd class="opt">
|
|
145
|
+ <div class="tab-pane" id="tab_imgupload">
|
|
146
|
+ <table class="table table-bordered">
|
|
147
|
+ <tbody>
|
|
148
|
+ <tr>
|
|
149
|
+ <td >
|
|
150
|
+ <div class="sort-list">
|
|
151
|
+ <div class="images_upload">
|
|
152
|
+ </div>
|
|
153
|
+ </div>
|
|
154
|
+ <a href="javascript:void(0);" onClick="GetUploadify(30,'','allimg','imgupload_call_back');" class="img-upload b-img-upload mb15" title="点击上传">
|
|
155
|
+ <div class="y-line"></div>
|
|
156
|
+ <div class="x-line"></div>
|
|
157
|
+ </a>
|
|
158
|
+ </td>
|
|
159
|
+ </tr>
|
|
160
|
+ </tbody>
|
|
161
|
+ </table>
|
|
162
|
+ </div>
|
|
163
|
+ <!-- 上传图片显示的样板 start -->
|
|
164
|
+ <div class="images_upload_tpl none">
|
|
165
|
+ <div class="images_upload ic">
|
|
166
|
+ <div class="ic">
|
|
167
|
+ <div class='upimg' title="拖动修改排序" onmouseover="upimgMouseover(this);" onmouseout="upimgMouseout(this);">
|
|
168
|
+ <div class='icaction' style="display: none">
|
|
169
|
+ <span class="load_images" onclick="">
|
|
170
|
+ <a href="javascript:void(0);" style="color: white">
|
|
171
|
+ <i class='fa fa-search-plus'></i>大图
|
|
172
|
+ </a>
|
|
173
|
+ </span>
|
|
174
|
+ <span class="load_images" onclick="">
|
|
175
|
+ <i class='fa fa-file-text-o'></i>信息
|
|
176
|
+ </span>
|
|
177
|
+ </div>
|
|
178
|
+ <div class='cover-bg' style="display: none"></div>
|
|
179
|
+ <img src="__STATIC__/admin/images/add-button.jpg"/>
|
|
180
|
+ <a class="delect" href="javascript:void(0);" title="删除"></a>
|
|
181
|
+ </div>
|
|
182
|
+
|
|
183
|
+ <div class="load_input" data-showOrHide="hide">
|
|
184
|
+ <input type="hidden"/>
|
|
185
|
+ <span class="span_input"> <input type="hidden"/> </span>
|
|
186
|
+ <textarea placeholder="请输入标题..." style="height: 28px;"></textarea>
|
|
187
|
+ <textarea placeholder="请输入链接网址..." style="height: 28px;"></textarea>
|
|
188
|
+ <textarea placeholder="广告注释:支持HTML代码" style="height: 64px;"></textarea>
|
|
189
|
+ <div class="operation">
|
|
190
|
+ <a href="javascript:void(0)"> </a>
|
|
191
|
+ <a href="javascript:void(0)"> </a>
|
|
192
|
+ <a style="width: 32%;" href="javascript:void(0);"> </a>
|
|
193
|
+ </div>
|
|
194
|
+ </div>
|
|
195
|
+ </div>
|
|
196
|
+ </div>
|
|
197
|
+ </div>
|
|
198
|
+ <!-- 上传图片显示的样板 end -->
|
|
199
|
+ </dd>
|
|
200
|
+ </dl>
|
|
201
|
+ */
|
|
202
|
+
|
|
203
|
+ ?>
|
|
204
|
+
|
|
205
|
+ <dl class="row 1615775137_dl" style="display: none;" id="1615775137_2">
|
|
206
|
+ <dt class="tit"> <label for="type">广告内容</label> </dt>
|
|
207
|
+ <dd class="opt">
|
|
208
|
+ <input type="text" name="video_litpic" id="video_litpic" class="input-txt">
|
|
209
|
+ <input type="file" id="courseware_file" data-type='local' onchange="upload_video_litpic_1615775137(this)" style="display: none;">
|
|
210
|
+ {eq name="$WeappOpen.qny_open" value="1"}
|
|
211
|
+ <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="upload_video_litpic_qiniu" onclick="$('#courseware_file').attr('data-type', 'qiniu').trigger('click');">七牛云上传</a>
|
|
212
|
+ {/eq}
|
|
213
|
+ {eq name="$WeappOpen.oss_open" value="1"}
|
|
214
|
+ <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="upload_video_litpic_oss" onclick="$('#courseware_file').attr('data-type', 'oss').trigger('click');">oss上传</a>
|
|
215
|
+ {/eq}
|
|
216
|
+ {eq name="$WeappOpen.cos_open" value="1"}
|
|
217
|
+ <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="upload_video_litpic_cos" onclick="$('#courseware_file').attr('data-type', 'cos').trigger('click');">cos上传</a>
|
|
218
|
+ {/eq}
|
|
219
|
+ <a href="javascript:void(0);" class="ncap-btn ncap-btn-green " id="upload_video_litpic_local" onclick="$('#courseware_file').attr('data-type', 'local').trigger('click');">本地上传</a>
|
|
220
|
+ <input type="hidden" id="OpenPreviewVideoUrl" value="{:url('ZcwdPosition/open_preview_video')}">
|
|
221
|
+ <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="PreviewVideo" onclick="OpenPreviewVideo();">预览</a>
|
|
222
|
+ </dd>
|
|
223
|
+ </dl>
|
|
224
|
+
|
|
225
|
+ <dl class="row 1615775137_dl" style="display: none;" id="1615775137_3">
|
|
226
|
+ <dt class="tit"> <label for="type">广告内容</label> </dt>
|
|
227
|
+ <dd class="opt">
|
|
228
|
+ <textarea rows="5" cols="60" id="html_intro" name="html_intro" style="height: 200px;"></textarea>
|
|
229
|
+ <span class="err"></span>
|
|
230
|
+ <p class="notic"></p>
|
|
231
|
+ </dd>
|
|
232
|
+ </dl>
|
|
233
|
+
|
|
234
|
+ <dl class="row">
|
|
235
|
+ <dt class="tit">
|
|
236
|
+ <label>其他条件</label>
|
|
237
|
+ </dt>
|
|
238
|
+ <dd class="opt">
|
|
239
|
+ <textarea rows="5" cols="60" id="intro" name="qttj" style="height:60px;"></textarea>
|
|
240
|
+ <span class="err"></span>
|
|
241
|
+ <p class="notic"></p>
|
|
242
|
+ </dd>
|
|
243
|
+ </dl>
|
|
244
|
+
|
|
245
|
+ <dl class="row">
|
|
246
|
+ <dt class="tit">
|
|
247
|
+ <label>输出结果</label>
|
|
248
|
+ </dt>
|
|
249
|
+ <dd class="opt">
|
|
250
|
+
|
|
251
|
+ 匹配算法: 前端根据选择的申报专业和所选资料,按所设定的规则(多条)进行对比,结果可能符合多个区域(符合省市),生成多个报告;
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+ <span class="err"></span>
|
|
255
|
+ <p class="notic"></p>
|
|
256
|
+ </dd>
|
|
257
|
+ </dl>
|
|
258
|
+
|
|
259
|
+ <input type="hidden" id="zhengshu_val" name="zhengshu_val" value="" />
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+ <div class="bot"><a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
|
|
263
|
+ </div>
|
|
264
|
+ </form>
|
|
265
|
+</div>
|
|
266
|
+
|
|
267
|
+<script type="text/javascript">
|
|
268
|
+ var SelectedType = 1;
|
|
269
|
+ $(function() {
|
|
270
|
+ // 新增时,广告类型默认选中图片类型
|
|
271
|
+ $('#type1').prop('checked', 'checked');
|
|
272
|
+ // 新增时,默认显示图片上传
|
|
273
|
+ $('#1615775137_1').show();
|
|
274
|
+ // 多媒体类型 && 广告内容不为空 则执行显示 否则 执行隐藏
|
|
275
|
+ VideoLitpicValue('#video_litpic');
|
|
276
|
+ });
|
|
277
|
+
|
|
278
|
+ // 切换广告类型
|
|
279
|
+ function TypeSwitch(typeValue) {
|
|
280
|
+ // 隐藏全部类型内容
|
|
281
|
+ $('.1615775137_dl').hide();
|
|
282
|
+ // 显示指定类型内容
|
|
283
|
+ $('#1615775137_'+typeValue).show();
|
|
284
|
+ // 切换类型后设置为当前切换的类型
|
|
285
|
+ SelectedType = typeValue;
|
|
286
|
+ // 多媒体类型 && 广告内容不为空 则执行显示 否则 执行隐藏
|
|
287
|
+ VideoLitpicValue('#video_litpic');
|
|
288
|
+ }
|
|
289
|
+
|
|
290
|
+ // 多媒体类型 && 广告内容不为空 则执行显示 否则 执行隐藏
|
|
291
|
+ function VideoLitpicValue(obj) {
|
|
292
|
+ // 获取广告内容(多媒体为播放链接)
|
|
293
|
+ // var video_litpic = $(obj).val();
|
|
294
|
+ // 判断隐藏/显示预览按钮if (2 == SelectedType && video_litpic)
|
|
295
|
+ if (2 == SelectedType) {
|
|
296
|
+ $('#PreviewVideo').show();
|
|
297
|
+ } else {
|
|
298
|
+ $('#PreviewVideo').hide();
|
|
299
|
+ }
|
|
300
|
+ }
|
|
301
|
+
|
|
302
|
+ // 打开预览视频
|
|
303
|
+ function OpenPreviewVideo() {
|
|
304
|
+ // 获取视频链接
|
|
305
|
+ var video_litpic = $('#video_litpic').val();
|
|
306
|
+ if (video_litpic == '') {
|
|
307
|
+ $('#video_litpic').focus();
|
|
308
|
+ showErrorMsg('请先上传视频');
|
|
309
|
+ return false;
|
|
310
|
+ }
|
|
311
|
+
|
|
312
|
+ /* 视频链接后缀验证处理 */
|
|
313
|
+ var fileExt = video_litpic.substr(video_litpic.lastIndexOf('.')).toLowerCase();
|
|
314
|
+ var fileExt = judgeExt(fileExt);
|
|
315
|
+ if (fileExt == -1) {
|
|
316
|
+ $('#video_litpic').focus();
|
|
317
|
+ showErrorMsg('不支持的视频格式,可在附件设置中修改');
|
|
318
|
+ return false;
|
|
319
|
+ }
|
|
320
|
+ /* END */
|
|
321
|
+
|
|
322
|
+ /* 视频链接是否存在斜杠处理 */
|
|
323
|
+ var fileInfo = video_litpic.lastIndexOf('/');
|
|
324
|
+ if (fileInfo == -1) {
|
|
325
|
+ $('#video_litpic').focus();
|
|
326
|
+ showErrorMsg('视频链接不完整,无法正常预览');
|
|
327
|
+ return false;
|
|
328
|
+ }
|
|
329
|
+ /* END */
|
|
330
|
+
|
|
331
|
+ // 打开视频播放
|
|
332
|
+ $.ajax({
|
|
333
|
+ type : 'post',
|
|
334
|
+ url : $('#OpenPreviewVideoUrl').val(),
|
|
335
|
+ data : {video_litpic: video_litpic},
|
|
336
|
+ dataType : 'json',
|
|
337
|
+ success : function(res) {
|
|
338
|
+ if (1 == res.code) {
|
|
339
|
+ var PreviewVideo = "<video style='width:100%; height:100%;' src='"+res.url+"' controls preload='auto' oncontextmenu='return fase' autoplay></video>";
|
|
340
|
+ layer.open({
|
|
341
|
+ type: 1,
|
|
342
|
+ title: false,
|
|
343
|
+ fixed: true, //不固定
|
|
344
|
+ shadeClose: false,
|
|
345
|
+ shade: layer_shade,
|
|
346
|
+ area: ['80%', '80%'],
|
|
347
|
+ content: PreviewVideo
|
|
348
|
+ });
|
|
349
|
+ } else {
|
|
350
|
+ showErrorMsg(res.msg);
|
|
351
|
+ }
|
|
352
|
+ },
|
|
353
|
+ error: function(e) {
|
|
354
|
+ showErrorAlert(e.responseText);
|
|
355
|
+ }
|
|
356
|
+ });
|
|
357
|
+ }
|
|
358
|
+
|
|
359
|
+ // 上传媒体文件
|
|
360
|
+ function upload_video_litpic_1615775137(e) {
|
|
361
|
+ var data_type = $(e).attr('data-type');
|
|
362
|
+ if ('qiniu' == data_type) {
|
|
363
|
+ // 七牛云上传
|
|
364
|
+ upload_video_litpic_qiniu(e);
|
|
365
|
+ } else if ('oss' == data_type) {
|
|
366
|
+ // OSS上传
|
|
367
|
+ upload_video_litpic_oss(e);
|
|
368
|
+ } else if ('cos' == data_type) {
|
|
369
|
+ // COS上传
|
|
370
|
+ upload_video_litpic_cos(e);
|
|
371
|
+ } else {
|
|
372
|
+ // 本地上传
|
|
373
|
+ upload_video_litpic_local(e);
|
|
374
|
+ }
|
|
375
|
+ }
|
|
376
|
+
|
|
377
|
+ // 七牛云上传
|
|
378
|
+ function upload_video_litpic_qiniu(e) {
|
|
379
|
+ // 获取文件路径名
|
|
380
|
+ var file = $(e)[0].files[0];
|
|
381
|
+
|
|
382
|
+ // 验证上传格式
|
|
383
|
+ var fileName = file.name;
|
|
384
|
+ var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
|
|
385
|
+ var ext = judgeExt(fileExt);
|
|
386
|
+ if (ext == -1) {
|
|
387
|
+ showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
|
|
388
|
+ return false;
|
|
389
|
+ }
|
|
390
|
+
|
|
391
|
+ // 验证上传大小
|
|
392
|
+ var size = "{$upload_max_filesize}";
|
|
393
|
+ if (file.size > size) {
|
|
394
|
+ showErrorMsg('视频大小超过限制,可在附件设置中修改');
|
|
395
|
+ return false;
|
|
396
|
+ }
|
|
397
|
+
|
|
398
|
+ // 执行上传
|
|
399
|
+ layer_loading('上传本地');
|
|
400
|
+ $.ajax({
|
|
401
|
+ type: 'POST',
|
|
402
|
+ url: '__ROOT_DIR__/index.php?m=plugins&c=Qiniuyun&a=qiniu_upload',
|
|
403
|
+ data: {_ajax: 1},
|
|
404
|
+ dataType: "JSON",
|
|
405
|
+ success: function(res1) {
|
|
406
|
+ if (1 == res1.code) {
|
|
407
|
+ var token = res1.data.token;
|
|
408
|
+ var formData = new FormData();
|
|
409
|
+ formData.append('file', file);
|
|
410
|
+ formData.append('token', token);
|
|
411
|
+
|
|
412
|
+ fileName = res1.data.filePath + fileExt;
|
|
413
|
+ formData.append('key', fileName);
|
|
414
|
+ $.ajax({
|
|
415
|
+ url: res1.data.uphost,
|
|
416
|
+ type: 'POST',
|
|
417
|
+ dataType: 'JSON',
|
|
418
|
+ data: formData,
|
|
419
|
+ timeout: 1200000,
|
|
420
|
+ cache: false,
|
|
421
|
+ processData: false,
|
|
422
|
+ contentType: false,
|
|
423
|
+ xhr: function () {
|
|
424
|
+ myXhr = $.ajaxSettings.xhr();
|
|
425
|
+ if (myXhr.upload) {
|
|
426
|
+ myXhr.upload.addEventListener('progress', function(e){
|
|
427
|
+ var curr = e.loaded;
|
|
428
|
+ var total = e.total;
|
|
429
|
+ process = parseInt(curr / total * 100);
|
|
430
|
+ $("#upload_video_litpic_qiniu").text('上传中...'+process+"%");
|
|
431
|
+ });
|
|
432
|
+ }
|
|
433
|
+ return myXhr;
|
|
434
|
+ },
|
|
435
|
+ success: function(res2) {
|
|
436
|
+ layer.closeAll();
|
|
437
|
+ $("#upload_video_litpic_qiniu").text('上传成功');
|
|
438
|
+ setTimeout(function() {
|
|
439
|
+ $('#upload_video_litpic_qiniu').text('七牛云上传');
|
|
440
|
+ }, 2000);
|
|
441
|
+ var video_url = res1.data.domain + "/" + res2.key;
|
|
442
|
+ $("#video_litpic").val(video_url);
|
|
443
|
+ },
|
|
444
|
+ error: function(e) {
|
|
445
|
+ layer.closeAll();
|
|
446
|
+ showErrorMsg(e.responseText);
|
|
447
|
+ return false;
|
|
448
|
+ }
|
|
449
|
+ });
|
|
450
|
+ } else {
|
|
451
|
+ layer.closeAll();
|
|
452
|
+ showErrorMsg(res1.msg);
|
|
453
|
+ }
|
|
454
|
+ },
|
|
455
|
+ error: function(e) {
|
|
456
|
+ layer.closeAll();
|
|
457
|
+ showErrorMsg(e.responseText);
|
|
458
|
+ }
|
|
459
|
+ });
|
|
460
|
+ }
|
|
461
|
+
|
|
462
|
+ // 阿里云OSS上传
|
|
463
|
+ function upload_video_litpic_oss(e) {
|
|
464
|
+ // 获取文件路径名
|
|
465
|
+ var file = $(e)[0].files[0];
|
|
466
|
+
|
|
467
|
+ // 验证上传格式
|
|
468
|
+ var fileName = file.name;
|
|
469
|
+ var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
|
|
470
|
+ var ext = judgeExt(fileExt);
|
|
471
|
+ if (ext == -1) {
|
|
472
|
+ showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
|
|
473
|
+ return false;
|
|
474
|
+ }
|
|
475
|
+
|
|
476
|
+ // 验证上传大小
|
|
477
|
+ var size = "{$upload_max_filesize}";
|
|
478
|
+ if (file.size > size) {
|
|
479
|
+ showErrorMsg('视频大小超过限制,可在附件设置中修改');
|
|
480
|
+ return false;
|
|
481
|
+ }
|
|
482
|
+
|
|
483
|
+ // 执行上传
|
|
484
|
+ layer_loading('上传阿里云OSS');
|
|
485
|
+ $.ajax({
|
|
486
|
+ type: 'POST',
|
|
487
|
+ url: '__ROOT_DIR__/index.php?m=plugins&c=AliyunOss&a=oss_upload',
|
|
488
|
+ data: {_ajax: 1},
|
|
489
|
+ dataType: "JSON",
|
|
490
|
+ success: function(res1){
|
|
491
|
+ if (1 == res1.code){
|
|
492
|
+ fileName = res1.data.filePath + fileExt;
|
|
493
|
+ //组装发送数据
|
|
494
|
+ var request = new FormData();
|
|
495
|
+ request.append("OSSAccessKeyId",res1.data.accessid);
|
|
496
|
+ request.append("policy",res1.data.policy);
|
|
497
|
+ request.append("Signature",res1.data.signature);
|
|
498
|
+ request.append("key",fileName);
|
|
499
|
+ request.append("success_action_status",201);
|
|
500
|
+ request.append('file', file);
|
|
501
|
+
|
|
502
|
+ $.ajax({
|
|
503
|
+ url : res1.data.host,
|
|
504
|
+ data : request,
|
|
505
|
+ processData: false,
|
|
506
|
+ cache: false,
|
|
507
|
+ contentType: false,
|
|
508
|
+ dataType: 'xml',
|
|
509
|
+ type : 'post',
|
|
510
|
+ xhr: function () {
|
|
511
|
+ myXhr = $.ajaxSettings.xhr();
|
|
512
|
+ if (myXhr.upload) {
|
|
513
|
+ myXhr.upload.addEventListener('progress', function(e){
|
|
514
|
+ var curr = e.loaded;
|
|
515
|
+ var total = e.total;
|
|
516
|
+ var process = parseInt(curr / total * 100);
|
|
517
|
+ $("#upload_video_litpic_oss").text('上传中...'+process+"%");
|
|
518
|
+ });
|
|
519
|
+ }
|
|
520
|
+ return myXhr;
|
|
521
|
+ },
|
|
522
|
+ success : function(data) {
|
|
523
|
+ layer.closeAll();
|
|
524
|
+ var res = $(data).find('PostResponse');
|
|
525
|
+ if (res) {
|
|
526
|
+ var key = res.find('Key').text();
|
|
527
|
+ $("#upload_video_litpic_oss").text('上传成功');
|
|
528
|
+ setTimeout(function() {
|
|
529
|
+ $('#upload_video_litpic_oss').text('oss上传');
|
|
530
|
+ }, 2000);
|
|
531
|
+ var video_url = res1.data.domain + "/" + key;
|
|
532
|
+ $("#video_litpic").val(video_url);
|
|
533
|
+ } else {
|
|
534
|
+ $("#upload_video_litpic_oss").text('上传失败');
|
|
535
|
+ setTimeout(function() {
|
|
536
|
+ $('#upload_video_litpic_oss').text('oss上传');
|
|
537
|
+ }, 2000);
|
|
538
|
+ }
|
|
539
|
+ },
|
|
540
|
+ error : function(e) {
|
|
541
|
+ layer.closeAll();
|
|
542
|
+ console.log(e.responseText);
|
|
543
|
+ }
|
|
544
|
+ });
|
|
545
|
+ } else {
|
|
546
|
+ layer.closeAll();
|
|
547
|
+ showErrorMsg(res1.msg);
|
|
548
|
+ }
|
|
549
|
+ },
|
|
550
|
+ error: function(e) {
|
|
551
|
+ layer.closeAll();
|
|
552
|
+ showErrorMsg(e.responseText);
|
|
553
|
+ }
|
|
554
|
+ });
|
|
555
|
+ }
|
|
556
|
+
|
|
557
|
+ // 腾讯云COS上传
|
|
558
|
+ function upload_video_litpic_cos(e) {
|
|
559
|
+ // 获取文件路径名
|
|
560
|
+ var file = $(e)[0].files[0];
|
|
561
|
+
|
|
562
|
+ // 验证上传格式
|
|
563
|
+ var fileName = file.name;
|
|
564
|
+ var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
|
|
565
|
+ var ext = judgeExt(fileExt);
|
|
566
|
+ if (ext == -1) {
|
|
567
|
+ showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
|
|
568
|
+ return false;
|
|
569
|
+ }
|
|
570
|
+
|
|
571
|
+ // 验证上传大小
|
|
572
|
+ var size = "{$upload_max_filesize}";
|
|
573
|
+ if (file.size > size) {
|
|
574
|
+ showErrorMsg('视频大小超过限制,可在附件设置中修改');
|
|
575
|
+ return false;
|
|
576
|
+ }
|
|
577
|
+
|
|
578
|
+ // 上传参数
|
|
579
|
+ var formData = new FormData();
|
|
580
|
+ formData.append('file', file);
|
|
581
|
+ formData.append('file_ext', fileExt);
|
|
582
|
+
|
|
583
|
+ // 执行上传
|
|
584
|
+ $.ajax({
|
|
585
|
+ type: 'post',
|
|
586
|
+ url: '__ROOT_DIR__/index.php?m=plugins&c=Cos&a=cos_upload&_ajax=1',
|
|
587
|
+ data: formData,
|
|
588
|
+ contentType: false,
|
|
589
|
+ processData: false,
|
|
590
|
+ dataType: 'json',
|
|
591
|
+ xhr: function () {
|
|
592
|
+ myXhr = $.ajaxSettings.xhr();
|
|
593
|
+ if (myXhr.upload) {
|
|
594
|
+ myXhr.upload.addEventListener('progress', function(e){
|
|
595
|
+ var curr = e.loaded;
|
|
596
|
+ var total = e.total;
|
|
597
|
+ process = parseInt(curr / total * 100);
|
|
598
|
+ if (100 == process) {
|
|
599
|
+ process = 99;
|
|
600
|
+ layer_loading('上传腾讯云');
|
|
601
|
+ }
|
|
602
|
+ $("#upload_video_litpic_cos").text('上传中...'+process+"%");
|
|
603
|
+
|
|
604
|
+ });
|
|
605
|
+ }
|
|
606
|
+ return myXhr;
|
|
607
|
+ },
|
|
608
|
+ success: function(res) {
|
|
609
|
+ layer.closeAll();
|
|
610
|
+ if (1 == res.code) {
|
|
611
|
+ $("#video_litpic").val(res.data.url);
|
|
612
|
+ $("#upload_video_litpic_cos").text('上传成功');
|
|
613
|
+ } else {
|
|
614
|
+ $("#upload_video_litpic_cos").text('上传失败');
|
|
615
|
+ }
|
|
616
|
+ setTimeout(function() {
|
|
617
|
+ $('#upload_video_litpic_cos').text('cos上传');
|
|
618
|
+ }, 2000);
|
|
619
|
+ },
|
|
620
|
+ error: function(e) {
|
|
621
|
+ layer.closeAll();
|
|
622
|
+ showErrorMsg(e.responseText);
|
|
623
|
+ }
|
|
624
|
+ });
|
|
625
|
+ }
|
|
626
|
+
|
|
627
|
+ // 本地上传
|
|
628
|
+ function upload_video_litpic_local(e) {
|
|
629
|
+ // 获取文件路径名
|
|
630
|
+ var file = $(e)[0].files[0];
|
|
631
|
+
|
|
632
|
+ // 验证上传格式
|
|
633
|
+ var fileName = file.name;
|
|
634
|
+ var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
|
|
635
|
+ var ext = judgeExt(fileExt);
|
|
636
|
+ if (ext == -1) {
|
|
637
|
+ showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
|
|
638
|
+ return false;
|
|
639
|
+ }
|
|
640
|
+
|
|
641
|
+ // 验证上传大小
|
|
642
|
+ var size = "{$upload_max_filesize}";
|
|
643
|
+ if (file.size > size) {
|
|
644
|
+ showErrorMsg('视频大小超过限制,可在附件设置中修改');
|
|
645
|
+ return false;
|
|
646
|
+ }
|
|
647
|
+
|
|
648
|
+ // 定义上传数据
|
|
649
|
+ var formData = new FormData();
|
|
650
|
+ formData.append('file', file);
|
|
651
|
+
|
|
652
|
+ // 执行上传
|
|
653
|
+ layer_loading('上传本地');
|
|
654
|
+ $.ajax({
|
|
655
|
+ type: 'post',
|
|
656
|
+ url : "{:url('Ueditor/upVideo', ['savepath'=>'media'])}",
|
|
657
|
+ data: formData,
|
|
658
|
+ contentType: false,
|
|
659
|
+ processData: false,
|
|
660
|
+ dataType: 'json',
|
|
661
|
+ xhr: function () {
|
|
662
|
+ myXhr = $.ajaxSettings.xhr();
|
|
663
|
+ if (myXhr.upload) {
|
|
664
|
+ myXhr.upload.addEventListener('progress', function(e){
|
|
665
|
+ var curr = e.loaded;
|
|
666
|
+ var total = e.total;
|
|
667
|
+ process = parseInt(curr / total * 100);
|
|
668
|
+ $("#upload_video_litpic_local").html('上传中...'+process+"%");
|
|
669
|
+ });
|
|
670
|
+ }
|
|
671
|
+ return myXhr;
|
|
672
|
+ },
|
|
673
|
+ success: function (res) {
|
|
674
|
+ layer.closeAll();
|
|
675
|
+ $("#upload_video_litpic_local").html('上传成功');
|
|
676
|
+ setTimeout(function() {
|
|
677
|
+ $('#upload_video_litpic_local').html('本地上传');
|
|
678
|
+ }, 2000);
|
|
679
|
+ if ("SUCCESS" == res.state) {
|
|
680
|
+ $("#video_litpic").val(res.url);
|
|
681
|
+ } else {
|
|
682
|
+ showErrorMsg(res.msg);
|
|
683
|
+ }
|
|
684
|
+ }
|
|
685
|
+ });
|
|
686
|
+ }
|
|
687
|
+
|
|
688
|
+ // 验证格式
|
|
689
|
+ function judgeExt(ext) {
|
|
690
|
+ var type = "{$media_type}";
|
|
691
|
+ var extArr = [];
|
|
692
|
+ extArr = type.split("|");
|
|
693
|
+ var ext = ext.replace(".","");
|
|
694
|
+ return extArr.indexOf(ext);
|
|
695
|
+ }
|
|
696
|
+</script>
|
|
697
|
+
|
|
698
|
+<script type="text/javascript">
|
|
699
|
+ var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
700
|
+ // 勾选新窗口打开链接
|
|
701
|
+ function CheckedTarget(t){
|
|
702
|
+ if ($(t).is(':checked')) {
|
|
703
|
+ $(t).parent().find('input[name="img_target[]"]').val(1);
|
|
704
|
+ }else{
|
|
705
|
+ $(t).parent().find('input[name="img_target[]"]').val(0);
|
|
706
|
+ }
|
|
707
|
+ }
|
|
708
|
+ // 鼠标事件,加载查看大图和更新图片
|
|
709
|
+ function upimgMouseover(obj)
|
|
710
|
+ {
|
|
711
|
+ $(obj).find('div.icaction').show();
|
|
712
|
+ $(obj).find('div.cover-bg').show();
|
|
713
|
+ }
|
|
714
|
+ function upimgMouseout(obj)
|
|
715
|
+ {
|
|
716
|
+ $(obj).find('div.icaction').hide();
|
|
717
|
+ $(obj).find('div.cover-bg').hide();
|
|
718
|
+ }
|
|
719
|
+
|
|
720
|
+ // 检测广告名称是否存在重复
|
|
721
|
+ function DetectionTitleRepeat(obj) {
|
|
722
|
+ // 当前广告ID
|
|
723
|
+ var id = 0;
|
|
724
|
+ // 传入的广告名称
|
|
725
|
+ var title = $(obj).val();
|
|
726
|
+ // 执行检测
|
|
727
|
+ $.ajax({
|
|
728
|
+ type: 'post',
|
|
729
|
+ url : "{:url('ZcwfPosition/detection_title_repeat', ['_ajax'=>1])}",
|
|
730
|
+ data: {id: id, title: title},
|
|
731
|
+ dataType: 'json',
|
|
732
|
+ success: function(res) {
|
|
733
|
+ if (0 == res.code) {
|
|
734
|
+ $('#title_tips').show().html(res.msg);
|
|
735
|
+ } else {
|
|
736
|
+ $('#title_tips').hide().html('');
|
|
737
|
+ }
|
|
738
|
+ },
|
|
739
|
+ error: function(e){
|
|
740
|
+ layer.closeAll();
|
|
741
|
+ showErrorAlert(e.responseText);
|
|
742
|
+ }
|
|
743
|
+ });
|
|
744
|
+ }
|
|
745
|
+
|
|
746
|
+ // 判断输入框是否为空
|
|
747
|
+ function checkForm(){
|
|
748
|
+ /* if($('input[name=title]').val() == ''){
|
|
749
|
+ layer.msg('广告位名称不能为空!', {icon: 2,time: 1000});
|
|
750
|
+ return false;
|
|
751
|
+ }*/
|
|
752
|
+
|
|
753
|
+ /*if($("#selectTest").val() == ''){
|
|
754
|
+ layer.msg('请选择申报专业!', {icon: 2,time: 1000});
|
|
755
|
+ return false;
|
|
756
|
+ }*/
|
|
757
|
+
|
|
758
|
+ if($('#selectTest666').val() == '1'){
|
|
759
|
+ var checkedValues = [];
|
|
760
|
+ $('#zhengshu input[type=checkbox]:checked').each(function() {
|
|
761
|
+ checkedValues.push($(this).val());
|
|
762
|
+ });
|
|
763
|
+ console.log(checkedValues); // 打印选中的checkbox值
|
|
764
|
+ if(checkedValues.length > 0){
|
|
765
|
+
|
|
766
|
+ }else{
|
|
767
|
+ layer.msg('请选择证书!', {icon: 2,time: 1000});
|
|
768
|
+ return false;
|
|
769
|
+ }
|
|
770
|
+ }
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+ //'zyid': $("#selectTest").val(),
|
|
775
|
+ //'sf': $('#selectTest000_1').val(),
|
|
776
|
+ //'cs': $('#selectTest000_2').val(),
|
|
777
|
+ //'sbdj': $('#selectTest000_2').val(),
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+ //循环所有checkbox 重新构建数组
|
|
781
|
+ //var zhengshu = [];
|
|
782
|
+ var zhengshu = '';
|
|
783
|
+ $('#zhengshu input[type=checkbox]').each(function() {
|
|
784
|
+ if ($(this).is(':checked')) {
|
|
785
|
+ // 至少有一个checkbox被选中
|
|
786
|
+ //zhengshu.push($(this).val());
|
|
787
|
+ zhengshu += $(this).val()+',';
|
|
788
|
+ } else {
|
|
789
|
+ // 没有任何checkbox被选中
|
|
790
|
+ //zhengshu.push("0");
|
|
791
|
+ zhengshu += '0,';
|
|
792
|
+ }
|
|
793
|
+ });
|
|
794
|
+ console.log($('#post_form').serializeArray());
|
|
795
|
+ $('#zhengshu_val').val(zhengshu);
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+ layer_loading('正在处理');
|
|
799
|
+ $.ajax({
|
|
800
|
+ type : 'post',
|
|
801
|
+ url : "{:url('ZcwfPosition/add', ['_ajax'=>1])}",
|
|
802
|
+ data : $('#post_form').serialize(),
|
|
803
|
+ dataType : 'json',
|
|
804
|
+ success : function(res) {
|
|
805
|
+ layer.closeAll();
|
|
806
|
+ if (1 == res.code) {
|
|
807
|
+ var _parent = parent;
|
|
808
|
+ _parent.layer.close(parentObj);
|
|
809
|
+ _parent.layer.msg(res.msg, {icon: 1, shade: layer_shade, time: 1000}, function() {
|
|
810
|
+ _parent.window.location.reload();
|
|
811
|
+ });
|
|
812
|
+ } else {
|
|
813
|
+ showErrorMsg(res.msg);
|
|
814
|
+ }
|
|
815
|
+ },
|
|
816
|
+ error: function(e) {
|
|
817
|
+ layer.closeAll();
|
|
818
|
+ showErrorAlert(e.responseText);
|
|
819
|
+ }
|
|
820
|
+ });
|
|
821
|
+ }
|
|
822
|
+
|
|
823
|
+ // 显示信息输入框
|
|
824
|
+ function ShowInput(id) {
|
|
825
|
+ var obj = $("#"+id+"_ShowInput");
|
|
826
|
+ var showOrHide = obj.attr('data-showOrHide');
|
|
827
|
+ if ('hide' == showOrHide) {
|
|
828
|
+ obj.show().attr('data-showOrHide', 'show');
|
|
829
|
+ } else {
|
|
830
|
+ obj.hide().attr('data-showOrHide', 'hide');
|
|
831
|
+ }
|
|
832
|
+ }
|
|
833
|
+
|
|
834
|
+ // 隐藏信息输入
|
|
835
|
+ function HideInput(id) {
|
|
836
|
+ $("#"+id+"_ShowInput").hide().attr('data-showOrHide', 'hide');
|
|
837
|
+ }
|
|
838
|
+
|
|
839
|
+ // 上传图集相册回调函数
|
|
840
|
+ function imgupload_call_back(paths){
|
|
841
|
+ var last_div = $(".images_upload_tpl").html();
|
|
842
|
+ var inputs = $('.span_input input');
|
|
843
|
+ var timestamp = 0;
|
|
844
|
+
|
|
845
|
+ for (var i=0; i<paths.length; i++){
|
|
846
|
+ // 生成新的时间戳
|
|
847
|
+ timestamp = (new Date()).getTime();
|
|
848
|
+ // 插入一个 新图片
|
|
849
|
+ $(".images_upload:eq(0)").before(last_div);
|
|
850
|
+ // 处理他的链接地址
|
|
851
|
+ $(".images_upload:eq(0)").find('span:eq(0)').attr('onclick',"Images('"+paths[i]+"', 900, 600);");
|
|
852
|
+ // 处理信息显示隐藏按钮
|
|
853
|
+ $(".images_upload:eq(0)").find('span:eq(1)').attr('onclick', "ShowInput('"+timestamp+"');");
|
|
854
|
+ // 处理他的图片路径
|
|
855
|
+ $(".images_upload:eq(0)").find('img').attr('src',paths[i]);
|
|
856
|
+ // 处理删除按钮
|
|
857
|
+ $(".images_upload:eq(0)").find('a:eq(1)').attr('onclick', "ClearPicArr(this, '"+paths[i]+"', 0);");
|
|
858
|
+ // 处理图片信息框ID
|
|
859
|
+ $(".images_upload:eq(0)").find('.load_input:eq(0)').attr('id', timestamp+'_ShowInput');
|
|
860
|
+
|
|
861
|
+ // 处理图片路径及隐藏域
|
|
862
|
+ if (inputs.length > '0') {
|
|
863
|
+ // 修改隐藏域,提交ID隐藏域
|
|
864
|
+ $(".images_upload:eq(0)").find('input:eq(0)').attr('name','img_id[]').attr('value','');
|
|
865
|
+ // 修改隐藏域,提交图片隐藏域
|
|
866
|
+ $(".span_input:eq(0)").find('input:eq(0)').attr('name','img_litpic[]').attr('value',paths[i]);
|
|
867
|
+ // 提交标题
|
|
868
|
+ $(".images_upload:eq(0)").find('textarea:eq(0)').attr('name','img_title[]');
|
|
869
|
+ // 提交跳转链接
|
|
870
|
+ $(".images_upload:eq(0)").find('textarea:eq(1)').attr('name','img_links[]');
|
|
871
|
+ // 处理内容描述
|
|
872
|
+ $(".images_upload:eq(0)").find('textarea:eq(2)').attr('name','img_intro[]');
|
|
873
|
+ // 提交新窗口选项
|
|
874
|
+ $(".images_upload:eq(0)").find('div.operation a:eq(0)').html("<label><input type='checkbox' title='在新窗口打开' onclick='CheckedTarget(this)'/>新窗口<input type='hidden' name='img_target[]' value='0'></label>");
|
|
875
|
+ // 处理收回按钮
|
|
876
|
+ $(".images_upload:eq(0)").find('div.operation a:eq(2)').attr('onclick', "HideInput('"+timestamp+"');").attr('title', "收回").html('<i style="font-size:16px;" class="fa fa-angle-double-up"></i>');
|
|
877
|
+ }
|
|
878
|
+ }
|
|
879
|
+ }
|
|
880
|
+
|
|
881
|
+ // 上传之后删除组图input
|
|
882
|
+ function ClearPicArr(obj,path)
|
|
883
|
+ {
|
|
884
|
+ $(obj).parent().parent().parent().remove(); // 删除完服务器的, 再删除 html上的图片
|
|
885
|
+ $.ajax({
|
|
886
|
+ type:'POST',
|
|
887
|
+ url:"{:url('Uploadimgnew/delupload')}",
|
|
888
|
+ data:{action:"del", filename:path, _ajax:1},
|
|
889
|
+ success:function(){}
|
|
890
|
+ });
|
|
891
|
+ }
|
|
892
|
+
|
|
893
|
+ // 代码调用js
|
|
894
|
+ function copyToClipBoard(id) {
|
|
895
|
+ var adstr = "{eyou:ad aid='" + id + "'}\r\n <a href='{$"+"field.links}' {$"+"field.target}><img src='{$"+"field.litpic}' alt='{$"+"field.title}' /></a>\r\n{/eyou:ad";
|
|
896
|
+ var contentdiv = '<div class="dialog_content" style="margin: 0px; padding: 0px;"><dl style="padding:10px 30px;line-height:30px"><dd>标签 ad 调用:</dd>'
|
|
897
|
+ contentdiv += '<textarea rows="4" cols="60" style="width:400px;height:80px;">' + adstr + '}</textarea>'
|
|
898
|
+ contentdiv += '<dd style="border-top: dotted 1px #E7E7E7; color: #F60;">请将对应标签代码复制并粘贴到对应模板文件中!</dd></dl></div>'
|
|
899
|
+ layer.open({
|
|
900
|
+ title: '代码调用',
|
|
901
|
+ type: 1,
|
|
902
|
+ shade: layer_shade,
|
|
903
|
+ skin: 'layui-layer-demo',
|
|
904
|
+ area: ['480px', '240px'], //宽高
|
|
905
|
+ content: contentdiv
|
|
906
|
+ });
|
|
907
|
+ }
|
|
908
|
+
|
|
909
|
+ // 图集相册的拖动排序相关 js
|
|
910
|
+ $( ".sort-list" ).sortable({
|
|
911
|
+ start: function( event, ui) {
|
|
912
|
+
|
|
913
|
+ }
|
|
914
|
+ ,stop: function( event, ui ) {
|
|
915
|
+
|
|
916
|
+ }
|
|
917
|
+ });
|
|
918
|
+ //因为他们要拖动,所以尽量设置他们的文字不能选择。
|
|
919
|
+ // $( ".sort-list" ).disableSelection();
|
|
920
|
+</script>
|
|
921
|
+
|
|
922
|
+{include file="public/footer" /}
|