RewardDetails.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. <template>
  2. <div id="app">
  3. <div class="details-container">
  4. <div class="activity-brief center-row">
  5. <div class="activity-brief-left">
  6. <img src="http://ttkt.sxedu.org:70/upload/activity/cover/40/40.jpg?_=1557306525954"/>
  7. </div>
  8. <div class="activity-brief-right">
  9. <div class="activity-brief-title">
  10. <span>2019年柯桥区天天智慧课堂 5月份 优课评比 </span>
  11. <span class="status" style="background: rgb(182, 182, 182);">活动结束</span>
  12. </div>
  13. <div class="activity-brief-info center-row">
  14. <div class="brief-info-left">
  15. <div class="items"><p class="item">2019.05.01-06.08</p> <span class="tips">活动时间</span></div>
  16. <div class="items"><p class="item">20</p> <span class="tips">数量</span></div>
  17. </div>
  18. <div class="brief-info-left">
  19. <div class="items"><p class="item">柯桥区教师发展中心</p> <span class="tips">主办方</span></div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="activity-details center-row">
  25. <div class="details-left center-col">
  26. <div class="title-tip">
  27. <p class="title">奖项设置<span>FORMAT</span></p>
  28. <div class="award" v-for="(item,index) in rewardSettings" :key="index">
  29. <p class="award-name">{{item.name}}</p>
  30. <p class="award-tip">{{item.ratioTip}}</p>
  31. </div>
  32. </div>
  33. <div class="review-attachment">
  34. <p class="title">活动附件<span>ATTACHMENT</span></p>
  35. <div class="content">
  36. <div class="attach attachicon-2" v-for="(item,index) in attachmentsList" :key="index">
  37. <a :href="item.fileNameUri" :download="item.fileName" :title="item.fileName">{{item.fileName}}</a>
  38. <span style="float: right; font-size: 13px;">&nbsp;{{item.fileSizeTip}}</span>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="details-right center-col">
  44. <div class="review-awards" style="margin-top:0">
  45. <Tabs value="获奖作品" @on-click="tabClick">
  46. <TabPane label="获奖作品" name="获奖作品"></TabPane>
  47. <TabPane label="月冠军" name="月冠军"></TabPane>
  48. <TabPane label="月亚军" name="月亚军"></TabPane>
  49. <TabPane label="月季军" name="月季军"></TabPane>
  50. <TabPane label="优课" name="优课"></TabPane>
  51. </Tabs>
  52. <Table :columns="columns1" :data="rewardDatas"></Table>
  53. </div>
  54. <div class="description title-tip">
  55. <p class="title">
  56. 活动介绍
  57. <span>INTRODUCE</span>
  58. </p>
  59. <div class="content" style="overflow: hidden;" v-html="activityInfo.description">
  60. </div>
  61. </div>
  62. <div class="guide title-tip">
  63. <p class="title">
  64. 参赛指南
  65. <span>GUIDE</span>
  66. </p>
  67. <div class="content" v-html="activityInfo.guide"></div>
  68. </div>
  69. <div class="faq title-tip">
  70. <p class="title">
  71. 常见问题
  72. <span>FAQ</span>
  73. </p>
  74. <div class="content" v-html="activityInfo.faq"></div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </template>
  81. <script>
  82. import attachmentsList from '@/static/attachmentsList.json'
  83. import activityInfo from '@/static/activityDetails.json'
  84. import rewardList from '@/static/rewardList.json'
  85. export default {
  86. components: {
  87. },
  88. data() {
  89. return {
  90. reviewAcList: [],
  91. attachmentsList: [],
  92. rewardSettings:[
  93. {
  94. "activityId":16,
  95. "activityName":"2018年柯桥区天天智慧课堂 12月份 优课评比",
  96. "applyCount":20,
  97. "id":46,
  98. "name":"月冠军",
  99. "ratio":1,
  100. "ratioTip":"5.00%/1人",
  101. "sortNumber":1,
  102. "type":2
  103. },
  104. {
  105. "activityId":16,
  106. "activityName":"2018年柯桥区天天智慧课堂 12月份 优课评比",
  107. "applyCount":20,
  108. "id":47,
  109. "name":"月亚军",
  110. "ratio":1,
  111. "ratioTip":"5.00%/1人",
  112. "sortNumber":2,
  113. "type":2
  114. },
  115. {
  116. "activityId":16,
  117. "activityName":"2018年柯桥区天天智慧课堂 12月份 优课评比",
  118. "applyCount":20,
  119. "id":48,
  120. "name":"月季军",
  121. "ratio":1,
  122. "ratioTip":"5.00%/1人",
  123. "sortNumber":3,
  124. "type":2
  125. },
  126. {
  127. "activityId":16,
  128. "activityName":"2018年柯桥区天天智慧课堂 12月份 优课评比",
  129. "applyCount":20,
  130. "id":49,
  131. "name":"优课",
  132. "ratio":7,
  133. "ratioTip":"35.00%/7人",
  134. "sortNumber":4,
  135. "type":2
  136. }
  137. ],
  138. activityInfo: {},
  139. columns1: [
  140. {
  141. title: '作品名称',
  142. key: 'applyName'
  143. },
  144. {
  145. title: '作者',
  146. key: 'employeeName'
  147. },
  148. {
  149. title: '学校',
  150. key: 'employeeSchoolName'
  151. },
  152. {
  153. title: '年级',
  154. key: 'gradeName'
  155. },
  156. {
  157. title: '学科',
  158. key: 'categoryName'
  159. },
  160. {
  161. title: '奖项',
  162. key: 'activityAwardName'
  163. }
  164. ],
  165. rewardDatas: []
  166. }
  167. },
  168. created() {
  169. this.attachmentsList = attachmentsList.data.list;
  170. this.activityInfo = activityInfo.data;
  171. this.rewardDatas = rewardList.data.list;
  172. },
  173. methods: {
  174. tabClick(name) {
  175. this.rewardDatas = name == "获奖作品" ? rewardList.data.list : rewardList.data.list.filter(item => item.activityAwardName == name);
  176. }
  177. },
  178. mounted() {
  179. }
  180. }
  181. </script>
  182. <style scoped>
  183. html, body, #app {
  184. height: 100% !important;
  185. user-select: none;
  186. }
  187. .main-content {
  188. background: rgb(248,248,248) !important;
  189. }
  190. .center-row {
  191. display:flex;
  192. flex-direction:row;
  193. }
  194. .center-col {
  195. display:flex;
  196. flex-direction:column;
  197. }
  198. .banner {
  199. width:100%;
  200. margin-top:80px;
  201. }
  202. .banner img {
  203. width: 100%;
  204. min-width: 1280px;
  205. }
  206. .details-container {
  207. position:relative;
  208. width: 1200px;
  209. margin: 120px auto;
  210. z-index:999;
  211. display: flex;
  212. flex-direction: column;
  213. }
  214. .details-container .activity-brief {
  215. width:100%;
  216. background:#fff;
  217. border-top-left-radius: 8px;
  218. border-top-right-radius: 8px;
  219. }
  220. .details-container .activity-brief .activity-brief-left {
  221. width:30%;
  222. height:100%;
  223. padding:20px;
  224. }
  225. .details-container .activity-brief .activity-brief-right {
  226. width:70%;
  227. height:100%;
  228. padding:20px;
  229. }
  230. .details-container .activity-brief-title {
  231. font-size:26px;
  232. font-weight:bolder;
  233. color:#333;
  234. padding:5px 20px;
  235. margin-left:10px;
  236. border-bottom:1px solid #f6f6f6;
  237. }
  238. .details-container .activity-brief-title .status {
  239. display: inline-block;
  240. margin-left: 10px;
  241. font-size: 14px;
  242. color: #fff;
  243. padding: 1px 6px;
  244. vertical-align: top;
  245. margin-top: 6px;
  246. background-color: #53c766;
  247. border-radius: 3px;
  248. }
  249. .details-container .activity-brief-title .ivu-btn {
  250. width:120px;
  251. height:38px;
  252. margin-left:20px;
  253. margin-bottom:10px;
  254. }
  255. .details-container .brief-info-left {
  256. width:50%;
  257. }
  258. .details-container .brief-info-left .items {
  259. margin:30px;
  260. }
  261. .details-container .brief-info-left .items .item {
  262. font-size:20px;
  263. color:#666;
  264. }
  265. .details-container .brief-info-left .items .item2 {
  266. font-size:20px;
  267. color:#ffa853;
  268. }
  269. .details-container .brief-info-left .items .tips {
  270. font-size:14px;
  271. color:#bbb;
  272. }
  273. .details-container .activity-details {
  274. width:100%;
  275. margin-top:20px;
  276. }
  277. .details-container .activity-details .details-left {
  278. width:30%;
  279. height:100%;
  280. }
  281. .details-container .activity-details .details-right {
  282. width:70%;
  283. height:100%;
  284. margin-left:20px;
  285. }
  286. .details-container .activity-details .details-right .title-tip {
  287. margin-top:20px;
  288. }
  289. .details-container .title-tip{
  290. padding: 20px;
  291. background: #fff;
  292. }
  293. .details-container .review-attachment{
  294. padding: 20px;
  295. margin-top: 20px;
  296. background: #fff;
  297. }
  298. .details-container .title {
  299. color: #33aafe;
  300. font-size: 16px;
  301. padding-bottom: 15px;
  302. border-bottom: 1px solid #f6f6f6;
  303. }
  304. .details-container .title span {
  305. color: #ccc;
  306. font-size: 14px;
  307. margin-left: 8px;
  308. }
  309. .details-container .title-tip .content {
  310. color: #999;
  311. font-size: 14px;
  312. margin-top: 15px;
  313. }
  314. .details-container .details-left .review-attachment .attach {
  315. height: 40px;
  316. line-height: 40px;
  317. padding-left: 40px;
  318. margin-bottom: 14px;
  319. margin-top:10px;
  320. }
  321. .details-container .details-left .review-attachment .attach a {
  322. display: inline-block;
  323. text-decoration: none;
  324. font-size: 13px;
  325. color: #555;
  326. overflow: hidden;
  327. text-overflow: ellipsis;
  328. white-space: nowrap;
  329. width: 160px;
  330. text-decoration: underline;
  331. }
  332. .details-container .details-left .review-attachment .attachicon-2 {
  333. background:url("http://hystkj-oss.oss-cn-shenzhen.aliyuncs.com/icon.png") no-repeat;
  334. }
  335. .details-container .review-awards {
  336. background:#fff;
  337. padding:20px;
  338. }
  339. .details-container .review-awards /deep/ .ivu-tabs {
  340. font-weight:bold;
  341. }
  342. .details-container .details-left .award {
  343. margin:15px;
  344. letter-spacing:1px;
  345. }
  346. .details-container .details-left .award-name {
  347. font-size:16px;
  348. color:#666;
  349. font-weight:bolder;
  350. margin-bottom:5px;
  351. }
  352. </style>