邓淳远、崔鹏宇、翁思扬组云计算期末项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

584 lines
36 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta http-equiv="Content-Language" content="en">
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>个人中心</title>
  10. <meta name="viewport"
  11. content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" />
  12. <meta name="description" content="Huge selection of charts created with the React ChartJS Plugin">
  13. <meta name="msapplication-tap-highlight" content="no">
  14. <link href="../static/css/charts.css" rel="stylesheet">
  15. <link href="../static/css/main.css" rel="stylesheet">
  16. <script src="../static/js/jquery-3.5.1.min.js"></script>
  17. <script type="text/javascript">
  18. $(document).ready(function () {
  19. getContent('block');
  20. });
  21. </script>
  22. <!-- wsy:临时用样式 -->
  23. <style>
  24. .standard-input {
  25. height: 100px;
  26. width: 500px;
  27. background-color: aliceblue;
  28. margin-top: 1em;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <div class="app-container app-theme-white body-tabs-shadow fixed-sidebar fixed-header">
  34. <div class="app-header header-shadow">
  35. <div class="app-header__logo">
  36. <div class="logo-src"></div>
  37. <div class="header__pane ml-auto">
  38. <div>
  39. <button type="button" class="hamburger close-sidebar-btn hamburger--elastic"
  40. data-class="closed-sidebar">
  41. <span class="hamburger-box">
  42. <span class="hamburger-inner"></span>
  43. </span>
  44. </button>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="app-header__mobile-menu">
  49. <div>
  50. <button type="button" class="hamburger hamburger--elastic mobile-toggle-nav">
  51. <span class="hamburger-box">
  52. <span class="hamburger-inner"></span>
  53. </span>
  54. </button>
  55. </div>
  56. </div>
  57. <div class="app-header__menu">
  58. <span>
  59. <button type="button"
  60. class="btn-icon btn-icon-only btn btn-primary btn-sm mobile-toggle-header-nav">
  61. <span class="btn-icon-wrapper">
  62. <i class="fa fa-ellipsis-v fa-w-6"></i>
  63. </span>
  64. </button>
  65. </span>
  66. </div>
  67. </div>
  68. <div class="ui-theme-settings">
  69. <button type="button" id="TooltipDemo" class="btn-open-options btn btn-warning">
  70. <i class="fa fa-cog fa-w-16 fa-spin fa-2x"></i>
  71. </button>
  72. <div class="theme-settings__inner">
  73. <div class="scrollbar-container">
  74. <div class="theme-settings__options-wrapper">
  75. <h3 class="themeoptions-heading">布局选项
  76. </h3>
  77. <div class="p-3">
  78. <ul class="list-group">
  79. <li class="list-group-item">
  80. <div class="widget-content p-0">
  81. <div class="widget-content-wrapper">
  82. <div class="widget-content-left mr-3">
  83. <div class="switch has-switch switch-container-class"
  84. data-class="fixed-header">
  85. <div class="switch-animate switch-on">
  86. <input type="checkbox" checked data-toggle="toggle"
  87. data-onstyle="success">
  88. </div>
  89. </div>
  90. </div>
  91. <div class="widget-content-left">
  92. <div class="widget-heading">固定网页头部
  93. </div>
  94. <div class="widget-subheading">使标题顶部固定,始终可见。
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </li>
  100. <li class="list-group-item">
  101. <div class="widget-content p-0">
  102. <div class="widget-content-wrapper">
  103. <div class="widget-content-left mr-3">
  104. <div class="switch has-switch switch-container-class"
  105. data-class="fixed-sidebar">
  106. <div class="switch-animate switch-on">
  107. <input type="checkbox" checked data-toggle="toggle"
  108. data-onstyle="success">
  109. </div>
  110. </div>
  111. </div>
  112. <div class="widget-content-left">
  113. <div class="widget-heading">固定网页侧栏
  114. </div>
  115. <div class="widget-subheading">使侧边栏保持固定,始终可见。
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </li>
  121. </ul>
  122. </div>
  123. <h3 class="themeoptions-heading">
  124. <div>
  125. 网页头部选项
  126. </div>
  127. <button type="button"
  128. class="btn-pill btn-shadow btn-wide ml-auto btn btn-focus btn-sm switch-header-cs-class"
  129. data-class="">
  130. 恢复默认
  131. </button>
  132. </h3>
  133. <div class="p-3">
  134. <ul class="list-group">
  135. <li class="list-group-item">
  136. <h5 class="pb-2">选择配色
  137. </h5>
  138. <div class="theme-settings-swatches">
  139. <div class="swatch-holder bg-primary switch-header-cs-class"
  140. data-class="bg-primary header-text-light">
  141. </div>
  142. <div class="swatch-holder bg-secondary switch-header-cs-class"
  143. data-class="bg-secondary header-text-light">
  144. </div>
  145. <div class="swatch-holder bg-success switch-header-cs-class"
  146. data-class="bg-success header-text-dark">
  147. </div>
  148. <div class="swatch-holder bg-info switch-header-cs-class"
  149. data-class="bg-info header-text-dark">
  150. </div>
  151. <div class="swatch-holder bg-warning switch-header-cs-class"
  152. data-class="bg-warning header-text-dark">
  153. </div>
  154. <div class="swatch-holder bg-danger switch-header-cs-class"
  155. data-class="bg-danger header-text-light">
  156. </div>
  157. <div class="swatch-holder bg-light switch-header-cs-class"
  158. data-class="bg-light header-text-dark">
  159. </div>
  160. <div class="swatch-holder bg-dark switch-header-cs-class"
  161. data-class="bg-dark header-text-light">
  162. </div>
  163. <div class="swatch-holder bg-focus switch-header-cs-class"
  164. data-class="bg-focus header-text-light">
  165. </div>
  166. <div class="swatch-holder bg-alternate switch-header-cs-class"
  167. data-class="bg-alternate header-text-light">
  168. </div>
  169. <div class="divider">
  170. </div>
  171. <div class="swatch-holder bg-vicious-stance switch-header-cs-class"
  172. data-class="bg-vicious-stance header-text-light">
  173. </div>
  174. <div class="swatch-holder bg-midnight-bloom switch-header-cs-class"
  175. data-class="bg-midnight-bloom header-text-light">
  176. </div>
  177. <div class="swatch-holder bg-night-sky switch-header-cs-class"
  178. data-class="bg-night-sky header-text-light">
  179. </div>
  180. <div class="swatch-holder bg-slick-carbon switch-header-cs-class"
  181. data-class="bg-slick-carbon header-text-light">
  182. </div>
  183. <div class="swatch-holder bg-asteroid switch-header-cs-class"
  184. data-class="bg-asteroid header-text-light">
  185. </div>
  186. <div class="swatch-holder bg-royal switch-header-cs-class"
  187. data-class="bg-royal header-text-light">
  188. </div>
  189. <div class="swatch-holder bg-warm-flame switch-header-cs-class"
  190. data-class="bg-warm-flame header-text-dark">
  191. </div>
  192. <div class="swatch-holder bg-night-fade switch-header-cs-class"
  193. data-class="bg-night-fade header-text-dark">
  194. </div>
  195. <div class="swatch-holder bg-sunny-morning switch-header-cs-class"
  196. data-class="bg-sunny-morning header-text-dark">
  197. </div>
  198. <div class="swatch-holder bg-tempting-azure switch-header-cs-class"
  199. data-class="bg-tempting-azure header-text-dark">
  200. </div>
  201. <div class="swatch-holder bg-amy-crisp switch-header-cs-class"
  202. data-class="bg-amy-crisp header-text-dark">
  203. </div>
  204. <div class="swatch-holder bg-heavy-rain switch-header-cs-class"
  205. data-class="bg-heavy-rain header-text-dark">
  206. </div>
  207. <div class="swatch-holder bg-mean-fruit switch-header-cs-class"
  208. data-class="bg-mean-fruit header-text-dark">
  209. </div>
  210. <div class="swatch-holder bg-malibu-beach switch-header-cs-class"
  211. data-class="bg-malibu-beach header-text-light">
  212. </div>
  213. <div class="swatch-holder bg-deep-blue switch-header-cs-class"
  214. data-class="bg-deep-blue header-text-dark">
  215. </div>
  216. <div class="swatch-holder bg-ripe-malin switch-header-cs-class"
  217. data-class="bg-ripe-malin header-text-light">
  218. </div>
  219. <div class="swatch-holder bg-arielle-smile switch-header-cs-class"
  220. data-class="bg-arielle-smile header-text-light">
  221. </div>
  222. <div class="swatch-holder bg-plum-plate switch-header-cs-class"
  223. data-class="bg-plum-plate header-text-light">
  224. </div>
  225. <div class="swatch-holder bg-happy-fisher switch-header-cs-class"
  226. data-class="bg-happy-fisher header-text-dark">
  227. </div>
  228. <div class="swatch-holder bg-happy-itmeo switch-header-cs-class"
  229. data-class="bg-happy-itmeo header-text-light">
  230. </div>
  231. <div class="swatch-holder bg-mixed-hopes switch-header-cs-class"
  232. data-class="bg-mixed-hopes header-text-light">
  233. </div>
  234. <div class="swatch-holder bg-strong-bliss switch-header-cs-class"
  235. data-class="bg-strong-bliss header-text-light">
  236. </div>
  237. <div class="swatch-holder bg-grow-early switch-header-cs-class"
  238. data-class="bg-grow-early header-text-light">
  239. </div>
  240. <div class="swatch-holder bg-love-kiss switch-header-cs-class"
  241. data-class="bg-love-kiss header-text-light">
  242. </div>
  243. <div class="swatch-holder bg-premium-dark switch-header-cs-class"
  244. data-class="bg-premium-dark header-text-light">
  245. </div>
  246. <div class="swatch-holder bg-happy-green switch-header-cs-class"
  247. data-class="bg-happy-green header-text-light">
  248. </div>
  249. </div>
  250. </li>
  251. </ul>
  252. </div>
  253. <h3 class="themeoptions-heading">
  254. <div>网页侧栏选项</div>
  255. <button type="button"
  256. class="btn-pill btn-shadow btn-wide ml-auto btn btn-focus btn-sm switch-sidebar-cs-class"
  257. data-class="">
  258. 恢复默认
  259. </button>
  260. </h3>
  261. <div class="p-3">
  262. <ul class="list-group">
  263. <li class="list-group-item">
  264. <h5 class="pb-2">选择配色
  265. </h5>
  266. <div class="theme-settings-swatches">
  267. <div class="swatch-holder bg-primary switch-sidebar-cs-class"
  268. data-class="bg-primary sidebar-text-light">
  269. </div>
  270. <div class="swatch-holder bg-secondary switch-sidebar-cs-class"
  271. data-class="bg-secondary sidebar-text-light">
  272. </div>
  273. <div class="swatch-holder bg-success switch-sidebar-cs-class"
  274. data-class="bg-success sidebar-text-dark">
  275. </div>
  276. <div class="swatch-holder bg-info switch-sidebar-cs-class"
  277. data-class="bg-info sidebar-text-dark">
  278. </div>
  279. <div class="swatch-holder bg-warning switch-sidebar-cs-class"
  280. data-class="bg-warning sidebar-text-dark">
  281. </div>
  282. <div class="swatch-holder bg-danger switch-sidebar-cs-class"
  283. data-class="bg-danger sidebar-text-light">
  284. </div>
  285. <div class="swatch-holder bg-light switch-sidebar-cs-class"
  286. data-class="bg-light sidebar-text-dark">
  287. </div>
  288. <div class="swatch-holder bg-dark switch-sidebar-cs-class"
  289. data-class="bg-dark sidebar-text-light">
  290. </div>
  291. <div class="swatch-holder bg-focus switch-sidebar-cs-class"
  292. data-class="bg-focus sidebar-text-light">
  293. </div>
  294. <div class="swatch-holder bg-alternate switch-sidebar-cs-class"
  295. data-class="bg-alternate sidebar-text-light">
  296. </div>
  297. <div class="divider">
  298. </div>
  299. <div class="swatch-holder bg-vicious-stance switch-sidebar-cs-class"
  300. data-class="bg-vicious-stance sidebar-text-light">
  301. </div>
  302. <div class="swatch-holder bg-midnight-bloom switch-sidebar-cs-class"
  303. data-class="bg-midnight-bloom sidebar-text-light">
  304. </div>
  305. <div class="swatch-holder bg-night-sky switch-sidebar-cs-class"
  306. data-class="bg-night-sky sidebar-text-light">
  307. </div>
  308. <div class="swatch-holder bg-slick-carbon switch-sidebar-cs-class"
  309. data-class="bg-slick-carbon sidebar-text-light">
  310. </div>
  311. <div class="swatch-holder bg-asteroid switch-sidebar-cs-class"
  312. data-class="bg-asteroid sidebar-text-light">
  313. </div>
  314. <div class="swatch-holder bg-royal switch-sidebar-cs-class"
  315. data-class="bg-royal sidebar-text-light">
  316. </div>
  317. <div class="swatch-holder bg-warm-flame switch-sidebar-cs-class"
  318. data-class="bg-warm-flame sidebar-text-dark">
  319. </div>
  320. <div class="swatch-holder bg-night-fade switch-sidebar-cs-class"
  321. data-class="bg-night-fade sidebar-text-dark">
  322. </div>
  323. <div class="swatch-holder bg-sunny-morning switch-sidebar-cs-class"
  324. data-class="bg-sunny-morning sidebar-text-dark">
  325. </div>
  326. <div class="swatch-holder bg-tempting-azure switch-sidebar-cs-class"
  327. data-class="bg-tempting-azure sidebar-text-dark">
  328. </div>
  329. <div class="swatch-holder bg-amy-crisp switch-sidebar-cs-class"
  330. data-class="bg-amy-crisp sidebar-text-dark">
  331. </div>
  332. <div class="swatch-holder bg-heavy-rain switch-sidebar-cs-class"
  333. data-class="bg-heavy-rain sidebar-text-dark">
  334. </div>
  335. <div class="swatch-holder bg-mean-fruit switch-sidebar-cs-class"
  336. data-class="bg-mean-fruit sidebar-text-dark">
  337. </div>
  338. <div class="swatch-holder bg-malibu-beach switch-sidebar-cs-class"
  339. data-class="bg-malibu-beach sidebar-text-light">
  340. </div>
  341. <div class="swatch-holder bg-deep-blue switch-sidebar-cs-class"
  342. data-class="bg-deep-blue sidebar-text-dark">
  343. </div>
  344. <div class="swatch-holder bg-ripe-malin switch-sidebar-cs-class"
  345. data-class="bg-ripe-malin sidebar-text-light">
  346. </div>
  347. <div class="swatch-holder bg-arielle-smile switch-sidebar-cs-class"
  348. data-class="bg-arielle-smile sidebar-text-light">
  349. </div>
  350. <div class="swatch-holder bg-plum-plate switch-sidebar-cs-class"
  351. data-class="bg-plum-plate sidebar-text-light">
  352. </div>
  353. <div class="swatch-holder bg-happy-fisher switch-sidebar-cs-class"
  354. data-class="bg-happy-fisher sidebar-text-dark">
  355. </div>
  356. <div class="swatch-holder bg-happy-itmeo switch-sidebar-cs-class"
  357. data-class="bg-happy-itmeo sidebar-text-light">
  358. </div>
  359. <div class="swatch-holder bg-mixed-hopes switch-sidebar-cs-class"
  360. data-class="bg-mixed-hopes sidebar-text-light">
  361. </div>
  362. <div class="swatch-holder bg-strong-bliss switch-sidebar-cs-class"
  363. data-class="bg-strong-bliss sidebar-text-light">
  364. </div>
  365. <div class="swatch-holder bg-grow-early switch-sidebar-cs-class"
  366. data-class="bg-grow-early sidebar-text-light">
  367. </div>
  368. <div class="swatch-holder bg-love-kiss switch-sidebar-cs-class"
  369. data-class="bg-love-kiss sidebar-text-light">
  370. </div>
  371. <div class="swatch-holder bg-premium-dark switch-sidebar-cs-class"
  372. data-class="bg-premium-dark sidebar-text-light">
  373. </div>
  374. <div class="swatch-holder bg-happy-green switch-sidebar-cs-class"
  375. data-class="bg-happy-green sidebar-text-light">
  376. </div>
  377. </div>
  378. </li>
  379. </ul>
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. <div class="app-main">
  386. <div class="app-sidebar sidebar-shadow">
  387. <div class="app-header__logo">
  388. <div class="logo-src"></div>
  389. <div class="header__pane ml-auto">
  390. <div>
  391. <button type="button" class="hamburger close-sidebar-btn hamburger--elastic"
  392. data-class="closed-sidebar">
  393. <span class="hamburger-box">
  394. <span class="hamburger-inner"></span>
  395. </span>
  396. </button>
  397. </div>
  398. </div>
  399. </div>
  400. <div class="app-header__mobile-menu">
  401. <div>
  402. <button type="button" class="hamburger hamburger--elastic mobile-toggle-nav">
  403. <span class="hamburger-box">
  404. <span class="hamburger-inner"></span>
  405. </span>
  406. </button>
  407. </div>
  408. </div>
  409. <div class="app-header__menu">
  410. <span>
  411. <button type="button"
  412. class="btn-icon btn-icon-only btn btn-primary btn-sm mobile-toggle-header-nav">
  413. <span class="btn-icon-wrapper">
  414. <i class="fa fa-ellipsis-v fa-w-6"></i>
  415. </span>
  416. </button>
  417. </span>
  418. </div>
  419. <div class="scrollbar-sidebar">
  420. <div class="app-sidebar__inner">
  421. <ul class="vertical-nav-menu">
  422. <li class="app-sidebar__heading">个人中心</li>
  423. <li>
  424. <a href="personal.html" class="mm-active">
  425. <i class="metismenu-icon pe-7s-browser">
  426. </i>我的集锦
  427. </a>
  428. </li>
  429. <li class="app-sidebar__heading">广场</li>
  430. <li>
  431. <a href="square.html">
  432. <i class="metismenu-icon pe-7s-display2">
  433. </i>用户集锦
  434. </a>
  435. </li>
  436. </ul>
  437. </div>
  438. </div>
  439. </div>
  440. <div class="app-main__outer">
  441. <div class="app-main__inner">
  442. <div class="app-page-title">
  443. <div class="page-title-wrapper">
  444. <div class="page-title-heading">
  445. <div class="page-title-icon">
  446. <i class="pe-7s-bandaid icon-gradient bg-amy-crisp">
  447. </i>
  448. </div>
  449. <div id="collection_name">{{name}}
  450. </div>
  451. </div>
  452. </div>
  453. </div>
  454. <div class="row" id="textList">
  455. <!-- 集锦块样例 -->
  456. <div class="col-md-4" v-for="item in textList" :key="item.id" v-bind:item='item'>
  457. <div class="card mb-3 bg-mixed-hopes widget-chart text-white card-border">
  458. <div class="widget-chart-actions">
  459. <div class="btn-group dropdown">
  460. <button type="button" aria-haspopup="true" data-toggle="dropdown"
  461. aria-expanded="false" class="text-white btn btn-link" v-if="id!='null'">
  462. <i class="fa fa-ellipsis-h"></i>
  463. </button>
  464. <div v-if="id==null"tabindex="-1" role="menu" aria-hidden="true"
  465. class="dropdown-menu-lg dropdown-menu-right dropdown-menu">
  466. <ul class="nav flex-column">
  467. <li class="nav-item-header nav-item">操作</li>
  468. <li class="nav-item">
  469. <div v-on:click="swap(item.order,'up','block');" class="nav-link">上移
  470. </div>
  471. <div v-on:click="swap(item.order,'down','block');" class="nav-link">
  472. 下移</div>
  473. <div v-on:click="delete_item(item.order,'block');" class="nav-link">删除
  474. </div>
  475. </li>
  476. <li class="nav-item-divider nav-item"></li>
  477. <li class="nav-item-header nav-item" v-if="item.type!='picture' ">修改名称
  478. </li>
  479. <li class="nav-item" v-if="item.type!='picture' ">
  480. <input type="text" autocomplete="off" v-model="content"
  481. v-bind:placeholder="item.content"
  482. class="form-control input-mask-trigger">
  483. </li>
  484. <li class="nav-item-btn nav-item" v-if="item.type!='picture' ">
  485. <button class="btn-wide btn-shadow btn btn-danger btn-sm"
  486. v-on:click="edit(item.order,'block')">修改</button>
  487. </li>
  488. </ul>
  489. </div>
  490. </div>
  491. </div>
  492. <div class="widget-numbers">
  493. <span v-if="item.type=='text'">{{item.content}}</span>
  494. <img v-if="item.type=='picture'" v-bind:src="item.content" alt="" >
  495. <a v-if="item.type=='url'" v-bind:href="item.content">{{item.title}}</a>
  496. </div>
  497. </div>
  498. </div>
  499. <div class="col-md-4" v-show="id!='null'">
  500. <div class="card mb-3 bg-mixed-hopes widget-chart text-white card-border">
  501. <div class="widget-chart-actions">
  502. <div class="btn-group dropdown">
  503. <button type="button" aria-haspopup="true" data-toggle="dropdown"
  504. aria-expanded="false" class="text-white btn btn-link">
  505. <i class="pe-7s-plus"></i>
  506. </button>
  507. <div tabindex="-1" role="menu" aria-hidden="true"
  508. class="dropdown-menu-lg dropdown-menu-right dropdown-menu">
  509. <ul class="nav flex-column">
  510. <li class="nav-item-header nav-item">添加内容</li>
  511. <li class="nav-item">
  512. <input type="text" autocomplete="off" v-model="content"
  513. placeholder="内容" class="form-control input-mask-trigger"
  514. id="myInput">
  515. </li>
  516. <li class="nav-item-btn nav-item">
  517. <button class="btn-wide btn-shadow btn btn-danger btn-sm"
  518. v-on:click="add_item('block')">新建</button>
  519. </li>
  520. </ul>
  521. </div>
  522. </div>
  523. </div>
  524. <div class="widget-subheading"><span>单击右上角添加集锦块</span></div><br>
  525. <div class="widget-numbers"><span>新建集锦块</span></div>
  526. </div>
  527. </div>
  528. </div>
  529. </div>
  530. </div>
  531. </div>
  532. <script type="text/javascript" src="../static/assets/scripts/main.js"></script>
  533. <script src="../static/js/wsy.js"></script>
  534. <script>
  535. document.getElementById('myInput').addEventListener('paste', function (e) {
  536. if (!(e.clipboardData && e.clipboardData.items)) {
  537. return;
  538. }
  539. for (var i = 0, len = e.clipboardData.items.length; i < len; i++) {
  540. var item = e.clipboardData.items[i];
  541. if (item.kind === "file") {
  542. var f = item.getAsFile();
  543. console.log(f);
  544. let reader = new FileReader();
  545. reader.readAsDataURL(f);
  546. console.log(f);
  547. reader.onload = function (e) {
  548. submit(f, "picture", page.textList.length);
  549. };
  550. }
  551. }
  552. });
  553. var collection_name = new Vue({
  554. el: "#collection_name",
  555. data: {
  556. name: null
  557. },
  558. created() {
  559. this.name = cookie.getCookie('name');
  560. page.id = cookie.getCookie('id');
  561. console.log(this.name);
  562. },
  563. }
  564. )
  565. </script>
  566. </body>
  567. </html>