RewardDetails.vue 11 KB

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