RewardDetails.vue 11 KB

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