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