邓淳远、崔鹏宇、翁思扬组云计算期末项目
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.

434 lines
28 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
  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" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" />
  11. <meta name="description" content="Huge selection of charts created with the React ChartJS Plugin">
  12. <meta name="msapplication-tap-highlight" content="no">
  13. <link href="../static/css/charts.css" rel="stylesheet">
  14. <link href="../static/css/main.css" rel="stylesheet">
  15. <script src="../static/js/jquery-3.5.1.min.js"></script>
  16. <script>
  17. // wsy
  18. var cookie = {
  19. setCookie: function (name, value) {
  20. document.cookie = name + '=' + value + ';';
  21. },
  22. getCookie: function (name) {
  23. var arr = document.cookie.split('; ');
  24. for (var i = 0; i < arr.length; i++) {
  25. var arr2 = arr[i].split('=');
  26. if (arr2[0] == name) {
  27. return arr2[1];
  28. }
  29. }
  30. return '';
  31. },
  32. removeCookie: function (name) {
  33. cookie.setCookie(name, '', -1)
  34. }
  35. };
  36. // wsy:这个phonenum可能需要用什么传参的方式得到
  37. var phonenum = cookie.getCookie("phonenum");
  38. if(phonenum == ""){
  39. window.location.href = "login.html";
  40. //phonenum = "1";
  41. }
  42. $(document).ready(function () { getContent('collection'); });
  43. </script>
  44. <style>
  45. .standard-input {
  46. height: 100px;
  47. width: 500px;
  48. background-color: aliceblue;
  49. margin-top: 1em;
  50. }
  51. </style>
  52. </head>
  53. <body>
  54. <div class="app-container app-theme-white body-tabs-shadow fixed-sidebar fixed-header">
  55. <div class="app-header header-shadow">
  56. <div class="app-header__logo">
  57. <div class="logo-src"></div>
  58. <div class="header__pane ml-auto">
  59. <div>
  60. <button type="button" class="hamburger close-sidebar-btn hamburger--elastic" data-class="closed-sidebar">
  61. <span class="hamburger-box">
  62. <span class="hamburger-inner"></span>
  63. </span>
  64. </button>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="app-header__mobile-menu">
  69. <div>
  70. <button type="button" class="hamburger hamburger--elastic mobile-toggle-nav">
  71. <span class="hamburger-box">
  72. <span class="hamburger-inner"></span>
  73. </span>
  74. </button>
  75. </div>
  76. </div>
  77. <div class="app-header__menu">
  78. <span>
  79. <button type="button" class="btn-icon btn-icon-only btn btn-primary btn-sm mobile-toggle-header-nav">
  80. <span class="btn-icon-wrapper">
  81. <i class="fa fa-ellipsis-v fa-w-6"></i>
  82. </span>
  83. </button>
  84. </span>
  85. </div>
  86. </div>
  87. <div class="ui-theme-settings">
  88. <button type="button" id="TooltipDemo" class="btn-open-options btn btn-warning">
  89. <i class="fa fa-cog fa-w-16 fa-spin fa-2x"></i>
  90. </button>
  91. <div class="theme-settings__inner">
  92. <div class="scrollbar-container">
  93. <div class="theme-settings__options-wrapper">
  94. <h3 class="themeoptions-heading">布局选项
  95. </h3>
  96. <div class="p-3">
  97. <ul class="list-group">
  98. <li class="list-group-item">
  99. <div class="widget-content p-0">
  100. <div class="widget-content-wrapper">
  101. <div class="widget-content-left mr-3">
  102. <div class="switch has-switch switch-container-class" data-class="fixed-header">
  103. <div class="switch-animate switch-on">
  104. <input type="checkbox" checked data-toggle="toggle" data-onstyle="success">
  105. </div>
  106. </div>
  107. </div>
  108. <div class="widget-content-left">
  109. <div class="widget-heading">固定网页头部
  110. </div>
  111. <div class="widget-subheading">使标题顶部固定,始终可见。
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </li>
  117. <li class="list-group-item">
  118. <div class="widget-content p-0">
  119. <div class="widget-content-wrapper">
  120. <div class="widget-content-left mr-3">
  121. <div class="switch has-switch switch-container-class" data-class="fixed-sidebar">
  122. <div class="switch-animate switch-on">
  123. <input type="checkbox" checked data-toggle="toggle" data-onstyle="success">
  124. </div>
  125. </div>
  126. </div>
  127. <div class="widget-content-left">
  128. <div class="widget-heading">固定网页侧栏
  129. </div>
  130. <div class="widget-subheading">使侧边栏保持固定,始终可见。
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </li>
  136. </ul>
  137. </div>
  138. <h3 class="themeoptions-heading">
  139. <div>
  140. 网页头部选项
  141. </div>
  142. <button type="button" class="btn-pill btn-shadow btn-wide ml-auto btn btn-focus btn-sm switch-header-cs-class" data-class="">
  143. 恢复默认
  144. </button>
  145. </h3>
  146. <div class="p-3">
  147. <ul class="list-group">
  148. <li class="list-group-item">
  149. <h5 class="pb-2">选择配色
  150. </h5>
  151. <div class="theme-settings-swatches">
  152. <div class="swatch-holder bg-primary switch-header-cs-class" data-class="bg-primary header-text-light">
  153. </div>
  154. <div class="swatch-holder bg-secondary switch-header-cs-class" data-class="bg-secondary header-text-light">
  155. </div>
  156. <div class="swatch-holder bg-success switch-header-cs-class" data-class="bg-success header-text-dark">
  157. </div>
  158. <div class="swatch-holder bg-info switch-header-cs-class" data-class="bg-info header-text-dark">
  159. </div>
  160. <div class="swatch-holder bg-warning switch-header-cs-class" data-class="bg-warning header-text-dark">
  161. </div>
  162. <div class="swatch-holder bg-danger switch-header-cs-class" data-class="bg-danger header-text-light">
  163. </div>
  164. <div class="swatch-holder bg-light switch-header-cs-class" data-class="bg-light header-text-dark">
  165. </div>
  166. <div class="swatch-holder bg-dark switch-header-cs-class" data-class="bg-dark header-text-light">
  167. </div>
  168. <div class="swatch-holder bg-focus switch-header-cs-class" data-class="bg-focus header-text-light">
  169. </div>
  170. <div class="swatch-holder bg-alternate switch-header-cs-class" data-class="bg-alternate header-text-light">
  171. </div>
  172. <div class="divider">
  173. </div>
  174. <div class="swatch-holder bg-vicious-stance switch-header-cs-class" data-class="bg-vicious-stance header-text-light">
  175. </div>
  176. <div class="swatch-holder bg-midnight-bloom switch-header-cs-class" data-class="bg-midnight-bloom header-text-light">
  177. </div>
  178. <div class="swatch-holder bg-night-sky switch-header-cs-class" data-class="bg-night-sky header-text-light">
  179. </div>
  180. <div class="swatch-holder bg-slick-carbon switch-header-cs-class" data-class="bg-slick-carbon header-text-light">
  181. </div>
  182. <div class="swatch-holder bg-asteroid switch-header-cs-class" data-class="bg-asteroid header-text-light">
  183. </div>
  184. <div class="swatch-holder bg-royal switch-header-cs-class" data-class="bg-royal header-text-light">
  185. </div>
  186. <div class="swatch-holder bg-warm-flame switch-header-cs-class" data-class="bg-warm-flame header-text-dark">
  187. </div>
  188. <div class="swatch-holder bg-night-fade switch-header-cs-class" data-class="bg-night-fade header-text-dark">
  189. </div>
  190. <div class="swatch-holder bg-sunny-morning switch-header-cs-class" data-class="bg-sunny-morning header-text-dark">
  191. </div>
  192. <div class="swatch-holder bg-tempting-azure switch-header-cs-class" data-class="bg-tempting-azure header-text-dark">
  193. </div>
  194. <div class="swatch-holder bg-amy-crisp switch-header-cs-class" data-class="bg-amy-crisp header-text-dark">
  195. </div>
  196. <div class="swatch-holder bg-heavy-rain switch-header-cs-class" data-class="bg-heavy-rain header-text-dark">
  197. </div>
  198. <div class="swatch-holder bg-mean-fruit switch-header-cs-class" data-class="bg-mean-fruit header-text-dark">
  199. </div>
  200. <div class="swatch-holder bg-malibu-beach switch-header-cs-class" data-class="bg-malibu-beach header-text-light">
  201. </div>
  202. <div class="swatch-holder bg-deep-blue switch-header-cs-class" data-class="bg-deep-blue header-text-dark">
  203. </div>
  204. <div class="swatch-holder bg-ripe-malin switch-header-cs-class" data-class="bg-ripe-malin header-text-light">
  205. </div>
  206. <div class="swatch-holder bg-arielle-smile switch-header-cs-class" data-class="bg-arielle-smile header-text-light">
  207. </div>
  208. <div class="swatch-holder bg-plum-plate switch-header-cs-class" data-class="bg-plum-plate header-text-light">
  209. </div>
  210. <div class="swatch-holder bg-happy-fisher switch-header-cs-class" data-class="bg-happy-fisher header-text-dark">
  211. </div>
  212. <div class="swatch-holder bg-happy-itmeo switch-header-cs-class" data-class="bg-happy-itmeo header-text-light">
  213. </div>
  214. <div class="swatch-holder bg-mixed-hopes switch-header-cs-class" data-class="bg-mixed-hopes header-text-light">
  215. </div>
  216. <div class="swatch-holder bg-strong-bliss switch-header-cs-class" data-class="bg-strong-bliss header-text-light">
  217. </div>
  218. <div class="swatch-holder bg-grow-early switch-header-cs-class" data-class="bg-grow-early header-text-light">
  219. </div>
  220. <div class="swatch-holder bg-love-kiss switch-header-cs-class" data-class="bg-love-kiss header-text-light">
  221. </div>
  222. <div class="swatch-holder bg-premium-dark switch-header-cs-class" data-class="bg-premium-dark header-text-light">
  223. </div>
  224. <div class="swatch-holder bg-happy-green switch-header-cs-class" data-class="bg-happy-green header-text-light">
  225. </div>
  226. </div>
  227. </li>
  228. </ul>
  229. </div>
  230. <h3 class="themeoptions-heading">
  231. <div>网页侧栏选项</div>
  232. <button type="button" class="btn-pill btn-shadow btn-wide ml-auto btn btn-focus btn-sm switch-sidebar-cs-class" data-class="">
  233. 恢复默认
  234. </button>
  235. </h3>
  236. <div class="p-3">
  237. <ul class="list-group">
  238. <li class="list-group-item">
  239. <h5 class="pb-2">选择配色
  240. </h5>
  241. <div class="theme-settings-swatches">
  242. <div class="swatch-holder bg-primary switch-sidebar-cs-class" data-class="bg-primary sidebar-text-light">
  243. </div>
  244. <div class="swatch-holder bg-secondary switch-sidebar-cs-class" data-class="bg-secondary sidebar-text-light">
  245. </div>
  246. <div class="swatch-holder bg-success switch-sidebar-cs-class" data-class="bg-success sidebar-text-dark">
  247. </div>
  248. <div class="swatch-holder bg-info switch-sidebar-cs-class" data-class="bg-info sidebar-text-dark">
  249. </div>
  250. <div class="swatch-holder bg-warning switch-sidebar-cs-class" data-class="bg-warning sidebar-text-dark">
  251. </div>
  252. <div class="swatch-holder bg-danger switch-sidebar-cs-class" data-class="bg-danger sidebar-text-light">
  253. </div>
  254. <div class="swatch-holder bg-light switch-sidebar-cs-class" data-class="bg-light sidebar-text-dark">
  255. </div>
  256. <div class="swatch-holder bg-dark switch-sidebar-cs-class" data-class="bg-dark sidebar-text-light">
  257. </div>
  258. <div class="swatch-holder bg-focus switch-sidebar-cs-class" data-class="bg-focus sidebar-text-light">
  259. </div>
  260. <div class="swatch-holder bg-alternate switch-sidebar-cs-class" data-class="bg-alternate sidebar-text-light">
  261. </div>
  262. <div class="divider">
  263. </div>
  264. <div class="swatch-holder bg-vicious-stance switch-sidebar-cs-class" data-class="bg-vicious-stance sidebar-text-light">
  265. </div>
  266. <div class="swatch-holder bg-midnight-bloom switch-sidebar-cs-class" data-class="bg-midnight-bloom sidebar-text-light">
  267. </div>
  268. <div class="swatch-holder bg-night-sky switch-sidebar-cs-class" data-class="bg-night-sky sidebar-text-light">
  269. </div>
  270. <div class="swatch-holder bg-slick-carbon switch-sidebar-cs-class" data-class="bg-slick-carbon sidebar-text-light">
  271. </div>
  272. <div class="swatch-holder bg-asteroid switch-sidebar-cs-class" data-class="bg-asteroid sidebar-text-light">
  273. </div>
  274. <div class="swatch-holder bg-royal switch-sidebar-cs-class" data-class="bg-royal sidebar-text-light">
  275. </div>
  276. <div class="swatch-holder bg-warm-flame switch-sidebar-cs-class" data-class="bg-warm-flame sidebar-text-dark">
  277. </div>
  278. <div class="swatch-holder bg-night-fade switch-sidebar-cs-class" data-class="bg-night-fade sidebar-text-dark">
  279. </div>
  280. <div class="swatch-holder bg-sunny-morning switch-sidebar-cs-class" data-class="bg-sunny-morning sidebar-text-dark">
  281. </div>
  282. <div class="swatch-holder bg-tempting-azure switch-sidebar-cs-class" data-class="bg-tempting-azure sidebar-text-dark">
  283. </div>
  284. <div class="swatch-holder bg-amy-crisp switch-sidebar-cs-class" data-class="bg-amy-crisp sidebar-text-dark">
  285. </div>
  286. <div class="swatch-holder bg-heavy-rain switch-sidebar-cs-class" data-class="bg-heavy-rain sidebar-text-dark">
  287. </div>
  288. <div class="swatch-holder bg-mean-fruit switch-sidebar-cs-class" data-class="bg-mean-fruit sidebar-text-dark">
  289. </div>
  290. <div class="swatch-holder bg-malibu-beach switch-sidebar-cs-class" data-class="bg-malibu-beach sidebar-text-light">
  291. </div>
  292. <div class="swatch-holder bg-deep-blue switch-sidebar-cs-class" data-class="bg-deep-blue sidebar-text-dark">
  293. </div>
  294. <div class="swatch-holder bg-ripe-malin switch-sidebar-cs-class" data-class="bg-ripe-malin sidebar-text-light">
  295. </div>
  296. <div class="swatch-holder bg-arielle-smile switch-sidebar-cs-class" data-class="bg-arielle-smile sidebar-text-light">
  297. </div>
  298. <div class="swatch-holder bg-plum-plate switch-sidebar-cs-class" data-class="bg-plum-plate sidebar-text-light">
  299. </div>
  300. <div class="swatch-holder bg-happy-fisher switch-sidebar-cs-class" data-class="bg-happy-fisher sidebar-text-dark">
  301. </div>
  302. <div class="swatch-holder bg-happy-itmeo switch-sidebar-cs-class" data-class="bg-happy-itmeo sidebar-text-light">
  303. </div>
  304. <div class="swatch-holder bg-mixed-hopes switch-sidebar-cs-class" data-class="bg-mixed-hopes sidebar-text-light">
  305. </div>
  306. <div class="swatch-holder bg-strong-bliss switch-sidebar-cs-class" data-class="bg-strong-bliss sidebar-text-light">
  307. </div>
  308. <div class="swatch-holder bg-grow-early switch-sidebar-cs-class" data-class="bg-grow-early sidebar-text-light">
  309. </div>
  310. <div class="swatch-holder bg-love-kiss switch-sidebar-cs-class" data-class="bg-love-kiss sidebar-text-light">
  311. </div>
  312. <div class="swatch-holder bg-premium-dark switch-sidebar-cs-class" data-class="bg-premium-dark sidebar-text-light">
  313. </div>
  314. <div class="swatch-holder bg-happy-green switch-sidebar-cs-class" data-class="bg-happy-green sidebar-text-light">
  315. </div>
  316. </div>
  317. </li>
  318. </ul>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="app-main">
  325. <div class="app-sidebar sidebar-shadow">
  326. <div class="app-header__logo">
  327. <div class="logo-src"></div>
  328. <div class="header__pane ml-auto">
  329. <div>
  330. <button type="button" class="hamburger close-sidebar-btn hamburger--elastic" data-class="closed-sidebar">
  331. <span class="hamburger-box">
  332. <span class="hamburger-inner"></span>
  333. </span>
  334. </button>
  335. </div>
  336. </div>
  337. </div>
  338. <div class="app-header__mobile-menu">
  339. <div>
  340. <button type="button" class="hamburger hamburger--elastic mobile-toggle-nav">
  341. <span class="hamburger-box">
  342. <span class="hamburger-inner"></span>
  343. </span>
  344. </button>
  345. </div>
  346. </div>
  347. <div class="app-header__menu">
  348. <span>
  349. <button type="button" class="btn-icon btn-icon-only btn btn-primary btn-sm mobile-toggle-header-nav">
  350. <span class="btn-icon-wrapper">
  351. <i class="fa fa-ellipsis-v fa-w-6"></i>
  352. </span>
  353. </button>
  354. </span>
  355. </div>
  356. <div class="scrollbar-sidebar">
  357. <div class="app-sidebar__inner">
  358. <ul class="vertical-nav-menu">
  359. <li class="app-sidebar__heading">个人中心</li>
  360. <li>
  361. <a href="personal.html">
  362. <i class="metismenu-icon pe-7s-browser">
  363. </i>我的集锦
  364. </a>
  365. </li>
  366. <li class="app-sidebar__heading">广场</li>
  367. <li>
  368. <a href="square.html" class="mm-active">
  369. <i class="metismenu-icon pe-7s-display2">
  370. </i>用户集锦
  371. </a>
  372. </li>
  373. </ul>
  374. </div>
  375. </div>
  376. </div>
  377. <div class="app-main__outer">
  378. <div class="app-main__inner">
  379. <div class="app-page-title">
  380. <div class="page-title-wrapper">
  381. <div class="page-title-heading">
  382. <div class="page-title-icon">
  383. <i class="pe-7s-bandaid icon-gradient bg-amy-crisp">
  384. </i>
  385. </div>
  386. <div>用户集锦
  387. <div class="page-title-subheading">单击集锦查看信息
  388. </div>
  389. </div>
  390. </div>
  391. <div class="page-title-actions">
  392. <!--搜索集锦-->
  393. <form>
  394. <i class="nav-link-icon fa fa-search"></i>&nbsp;
  395. <input type="text" name="" id="search">
  396. <input type="button" value="search" onclick="getContent('collection')">
  397. </form>
  398. </div>
  399. </div>
  400. </div>
  401. <div class="row" id="recommend">
  402. <!-- 集锦样例 -->
  403. <div class="col-md-4" v-for="item in textList":key="item.id" v-bind:item='item'>
  404. <div class="card mb-3 bg-arielle-smile widget-chart text-white card-border">
  405. <div class="widget-numbers" v-on:click="jump_to('start.add',item.name,id);"><span>{{item.name}}</span></div><br>
  406. <div class="widget-subheading"><i class="fa fa-tags"></i>&nbsp;&nbsp;<span>{{item.tag}}</span></div>
  407. <!-- 未点赞时的状态:点击超链接以增加赞 -->
  408. <div class="widget-description text-danger" v-if="item.isLike!=true"><i class="pe-7s-like" v-on:click="like(item.order)"></i>&nbsp;<span class="pr-1">{{item.like}}</span></div>
  409. <!-- 点赞后的状态:点击超链接以取消赞 -->
  410. <div class="widget-description text-danger" v-if="item.isLike==true"><i class="fa fa-heart" v-on:click="unlike(item.order)"></i>&nbsp;<span class="pr-1">{{item.like}}</span></div>
  411. </div>
  412. </div>
  413. </div>
  414. </div>
  415. </div>
  416. </div>
  417. <script type="text/javascript" src="../static/assets/scripts/main.js"></script>
  418. <script src="../static/js/wsy.js"></script>
  419. </body>
  420. </html>