Skip to content

Commit 2e31484

Browse files
committed
简历
1 parent d5ed042 commit 2e31484

30 files changed

+52961
-21
lines changed

README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
# wzskyline
1+
# wzskyline
2+
var obj = AV.Object.extend('file');
3+
var obj = new obj();
4+
obj.set('state', 0);
5+
obj.save().then(function (obj) {
6+
console.log('New object created with objectId: ' + obj.id);
7+
}, function (error) {
8+
console.error('Failed to create new object, with error message: ' + error.message);
9+
});
10+
# wzskyline
11+
12+
13+
const query = new AV.Query('file').descending('createdAt').equalTo('state', 1);
14+
const size = 1;
15+
query.limit(size);
16+
query.skip(this.data.page * size);
17+
query.find().then(function (list) {
18+
item = list[0]
19+
console.log(item.id,item.attributes.name)
20+
})

admin.html

+15-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ <h2>John Doe</h2>
5959
<h3>目錄</h3>
6060
<ul class="nav side-menu">
6161
<li><a onclick="change_menu(0)" ><i class="fa fa-table"></i> 留言</a></li>
62-
<li><a onclick="change_menu(1)" ><i class="fa fa-bar-chart-o"></i> 大廳</a></li>
62+
<li><a onclick="change_menu(1)" ><i class="fa fa-bar-chart-o"></i> 大厅</a></li>
63+
<li><a onclick="change_menu(2)" ><i class="fa fa-book"></i> 简历</a></li>
6364
</ul>
6465
</div>
6566
</div>
@@ -209,7 +210,19 @@ <h2> 大廳 聊天消息列表 </h2>
209210
</div end="x_panel">
210211
</div end="page">
211212
<!-- end all page -->
212-
213+
<!-- page2 简历-->
214+
<div class="right_col page mainpage">
215+
<div class="x_panel">
216+
<input type="file" id="photoFileUpload"/>
217+
<br>
218+
<button id="workerUpload">上传</button>
219+
220+
221+
222+
223+
</div end="x_panel">
224+
</div end="page">
225+
<!-- end all page -->
213226
<!-- footer content -->
214227
<footer>
215228
<div class="pull-right">

chat/chat.css

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#workDownload{
2+
color:#9fe759;
3+
}
14
.print-wall {
25
overflow: auto;
36
margin: 1px auto;

images/american-express.png

-2.73 KB
Binary file not shown.

images/cropper.jpg

-154 KB
Binary file not shown.

images/img.jpg

31.9 KB
Loading

images/inbox.png

-21.5 KB
Binary file not shown.

images/mastercard.png

-1.94 KB
Binary file not shown.

images/media.jpg

-284 KB
Binary file not shown.

images/paypal.png

-1.38 KB
Binary file not shown.

images/picture.jpg

-25.1 KB
Binary file not shown.

images/prod-1.jpg

-47.2 KB
Binary file not shown.

images/prod-2.jpg

-33.4 KB
Binary file not shown.

images/prod-3.jpg

-21.3 KB
Binary file not shown.

images/prod-4.jpg

-27.3 KB
Binary file not shown.

images/prod-5.jpg

-33.1 KB
Binary file not shown.

images/visa.png

-1.17 KB
Binary file not shown.

index.html

+12-11
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ <h2> 站长信息 </h2>
145145
</div>
146146
<div class="x_content">
147147

148-
<iframe src="https://s3.amazonaws.com/avos-cloud-mw9ufmnmx0ph/b67ca8f8ca064cf26cc6.pdf" width="100%" height="500px"></iframe>
148+
149149
<div class="">
150150
<!-- 個人簡介開始 -->
151151
<pre>
@@ -283,7 +283,7 @@ <h2 class="section-title"> 选择 雪阳</h2>
283283
<div style="padding: 10px;width:50%">
284284
<a class="btn btn-default submit" onclick="page[1].login()">登陆</a>
285285
</div>
286-
<div style="padding: 10px;width:50%">
286+
<div style="padding: 10px;width:100%">
287287
<a onclick="change_menu(2)" class="reset_pass" href="#"> 前往注册</a>
288288
<span>/</span>
289289
<a onclick="change_menu(3)" class="reset_pass" href="#"> 忘记密码</a>
@@ -305,7 +305,7 @@ <h2 class="section-title"> 选择 雪阳</h2>
305305
<div style="padding: 10px;width:50%">
306306
<a class="btn btn-default submit" onclick="page[2].regist()">注册</a>
307307
</div>
308-
<div style="padding: 10px;width:50%">
308+
<div style="padding: 10px;width:100%">
309309
<a onclick="change_menu(1)" class="reset_pass" href="#">前往登陆</a>
310310
</div>
311311
</div end="x_panel">
@@ -320,7 +320,7 @@ <h2 class="section-title"> 选择 雪阳</h2>
320320
<img src="images/wechat.jpg" style="padding:0 10% 0 10% ;width:100%" >
321321
</div>
322322

323-
<div style="padding: 10px;width:50%">
323+
<div style="padding: 10px;width:100%">
324324
<a onclick="change_menu(1)" class="reset_pass" href="#">前往登陆</a>
325325
</div>
326326

@@ -447,9 +447,10 @@ <h2>我也來留言一下 ~ ~ </h2>
447447

448448
<!-- page8 簡歷 -->
449449
<div class="right_col page mainpage">
450-
<div class="x_panel">
451-
<div style="padding: 10px;width:50%">
452-
简历
450+
<div class="x_panel" style="padding:0">
451+
<div style="">
452+
<div style="margin:10px 0 0 10px ">站长的简历,感谢您的阅览 ~ ~ <a id="workDownload" href="" download="文洲-简历.txt">>>欢迎下载 </a></div>
453+
<iframe id="worker" src="" width="100%" height="500px"></iframe>
453454

454455
</div>
455456

@@ -493,7 +494,7 @@ <h2>我也來留言一下 ~ ~ </h2>
493494
<div class="col-md-12 col-sm-12 col-xs-12">
494495
<div class="x_panel">
495496
<div class="x_title">
496-
<h2> 訪客 信息</h2>
497+
<h2> 访客 信息</h2>
497498

498499
<div class="clearfix"></div>
499500
</div>
@@ -504,7 +505,7 @@ <h2> 訪客 信息</h2>
504505
<tr>
505506
<th>ip</th>
506507
<th>address</th>
507-
<th>時間</th>
508+
<th>时间</th>
508509
</tr>
509510
</thead>
510511
<tbody id = "vistorTable">
@@ -526,7 +527,7 @@ <h2> 訪客 信息</h2>
526527
<!-- footer content -->
527528
<footer>
528529
<div class="pull-right">
529-
夜行百里路,只為在前川 !
530+
夜行百里路,只为在前川 !
530531
</div>
531532
<div class="clearfix"></div>
532533
</footer>
@@ -579,7 +580,7 @@ <h2> 訪客 信息</h2>
579580

580581
user.ip = returnCitySN["cip"]
581582
user.address = returnCitySN["cname"]
582-
wzskyline.save_user()
583+
// wzskyline.save_user()
583584
console.log(returnCitySN)
584585
$("body").scroll(function(){
585586
alert()

js/admin.js

+46-2
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,59 @@ function change_menu(index, is_Check) {
125125
$("#chatTable").html(html)
126126
}, function (error) {
127127
});
128-
129-
$('.chat_check_box').iCheck({checkboxClass: 'icheckbox_square-green',radioClass: 'iradio_square-green'});
128+
130129
},
131130
flush: function () {
132131

133132

134133
},
135134
}
135+
//简历
136+
page[2] = {
137+
name: "简历",
138+
cur_son_page:null,
139+
is_init: false,
140+
141+
init: function (state) {
142+
$("#workerUpload").click(function(){
143+
var fileUploadControl = $('#photoFileUpload')[0];
144+
if (fileUploadControl.files.length > 0) {
145+
var localFile = fileUploadControl.files[0];
146+
var name = 'worker.pdf';
147+
148+
var file = new AV.File(name, localFile);
149+
file.save().then(function(file) {
150+
// 文件保存成功
151+
console.log(file.url());
152+
var obj = AV.Object.extend('file');
153+
var obj = new obj();
154+
obj.set('filename','worker.pdf');
155+
obj.set('base64', file.url());
156+
obj.set('state', 0);
157+
obj.save().then(function (obj) {
158+
console.log('New object created with objectId: ' + obj.id);
159+
BootstrapDialog.show({
160+
title: '上传成功',
161+
message: '可调整文件状态.',
162+
})
163+
164+
}, function (error) {
165+
// 异常处理
166+
console.error('Failed to create new object, with error message: ' + error.message);
167+
});
136168

169+
}, function(error) {
170+
// 异常处理
171+
console.error(error);
172+
});
173+
}
174+
})
175+
},
176+
flush: function () {
177+
178+
179+
},
180+
}
137181
function admin_update_message(){
138182
// 獲取列表
139183
$.each($('.message_check_box'),function(i,o){

js/pdf/jquery.min.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)