xmcg.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. <template>
  2. <div id="xmcg">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="one">
  6. <div class="w_1200">
  7. <el-col :span="20" class="left">
  8. <el-col :span="24" class="leftone">
  9. <span>科技成果展洽会</span>
  10. <span>欢迎您</span>
  11. </el-col>
  12. <el-col :span="24" class="lefttwo">
  13. SCIENTIFIC AND TECHNOLOGICAL ACHIEVEEMENTS EXHIBITION
  14. </el-col>
  15. </el-col>
  16. <el-col :span="4" class="right">
  17. <el-link :underline="false">帮助中心</el-link>
  18. </el-col>
  19. </div>
  20. </el-col>
  21. <el-col :span="24" class="two">
  22. <div class="w_1200">
  23. <el-col :span="24" class="twotop">
  24. <el-col :span="18" class="left">
  25. <p>{{ dockInfo.title }}</p>
  26. <el-image :src="two1"></el-image>
  27. </el-col>
  28. <el-col :span="6" class="right">
  29. <el-image :src="two2"></el-image>
  30. <p>{{ dockInfo.start_time }}</p>
  31. <p>距离展会结束还有</p>
  32. <p>倒计时</p>
  33. </el-col>
  34. </el-col>
  35. <el-col :span="24" class="twocen">
  36. <el-col :span="15" class="left"> <span>主办单位:</span>{{ dockInfo.sponsor }} </el-col>
  37. <el-col :span="8" class="right">
  38. <el-button class="btn1" @click="$router.push({ path: '/halltwo/directTwo', query: { id: dockInfo.id } })">返回展会进行页</el-button>
  39. <el-button class="btn2" @click="$router.push({ path: '/halltwo/detail', query: { id: dockInfo.id } })">进入展会总结页</el-button>
  40. </el-col>
  41. </el-col>
  42. </div>
  43. </el-col>
  44. <el-col :span="24" class="three">
  45. <div class="w_1200">
  46. <el-col :span="24" class="threeinfo">
  47. <p>项目成果</p>
  48. <el-col :span="24" class="all">
  49. <el-col :span="3" class="textAll"><span>全部</span></el-col>
  50. <el-col :span="3" class="field" v-for="(item, index) in fieldList" :key="index" @click.native="change(item, index)">{{ item }}</el-col>
  51. </el-col>
  52. <el-col :span="24" class="list">
  53. <el-table :data="list1" stripe style="width: 100%" fit :show-header="showHead">
  54. <el-table-column prop="field" width="300">
  55. <template slot-scope="scope">
  56. <span style="margin-left: 20px">{{ scope.row.field }}</span>
  57. </template>
  58. </el-table-column>
  59. <el-table-column prop="name" width="700">
  60. <template slot-scope="scope">
  61. <span class="name">{{ scope.row.name }}</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column>
  65. <template slot-scope="scope">
  66. <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">对接</el-button>
  67. </template>
  68. </el-table-column>
  69. </el-table>
  70. <el-col class="page1" :span="24">
  71. <el-pagination
  72. @current-change="handleCurrentChange"
  73. :current-page="currentPage"
  74. layout="total, prev, pager, next, jumper"
  75. :total="total"
  76. :page-size="pageSize"
  77. >
  78. </el-pagination>
  79. </el-col>
  80. </el-col>
  81. </el-col>
  82. </div>
  83. </el-col>
  84. <el-col :span="24" class="four">
  85. <div class="w_1200">
  86. <el-col :span="24" class="info">
  87. <el-col :span="8" class="left">
  88. <h1>专家咨询:</h1>
  89. <p>工作日:08:30~17:00</p>
  90. <p>咨询电话:</p>
  91. <p>0431-81666508</p>
  92. </el-col>
  93. <el-col :span="8" class="left">
  94. <h1>业务联系:</h1>
  95. <p>长春中科北斗工程技术有限公司</p>
  96. <p>联系人:刘经理</p>
  97. <p>电话:18604328977</p>
  98. <p>邮箱:18889898@qq.com</p>
  99. </el-col>
  100. <el-col :span="8" class="left right">
  101. <h1>活动帮微信:</h1>
  102. <el-image :src="erweima" style="width:132px;height:132px;"></el-image>
  103. </el-col>
  104. </el-col>
  105. </div>
  106. </el-col>
  107. </el-col>
  108. <div class="pz_down">
  109. <live-foot></live-foot>
  110. </div>
  111. </el-row>
  112. </div>
  113. </template>
  114. <script>
  115. import liveFoot from '@/layout/live/foot.vue';
  116. import { mapState, createNamespacedHelpers } from 'vuex';
  117. const { mapActions: dock } = createNamespacedHelpers('dock');
  118. export default {
  119. metaInfo() {
  120. return { title: this.$route.meta.title };
  121. },
  122. name: 'xmcg',
  123. props: {},
  124. components: {
  125. liveFoot,
  126. },
  127. data: function() {
  128. return {
  129. two1: require('@a/sy_04.png'),
  130. two2: require('@a/dock2.png'),
  131. // 展會詳情
  132. dockInfo: {},
  133. // 指导单位
  134. erweima: require('@a/二维码.jpg'),
  135. //领域列表
  136. fieldList: [],
  137. //全部列表
  138. list: [],
  139. //列表头部
  140. showHead: false,
  141. pageSize: 10,
  142. total: 0,
  143. currentPage: 1,
  144. origin: [],
  145. list1: [],
  146. };
  147. },
  148. async created() {
  149. await this.searchInfo();
  150. },
  151. methods: {
  152. ...dock({ dockQuery: 'query', dockFetch: 'fetch', goodsquery: 'goodsquery' }),
  153. async searchInfo() {
  154. // 查询展会详情
  155. if (this.id) {
  156. let res = await this.dockFetch(this.id);
  157. if (this.$checkRes(res)) {
  158. this.$set(this, `dockInfo`, res.data);
  159. let czxm = res.data.apply.map(item => item.goodsList);
  160. czxm = _.flattenDeep(czxm);
  161. let czxmNew = czxm.filter(item => item.dockStatus == '1');
  162. // 技术成果
  163. let achieve = czxmNew.filter(i => i.type == '1');
  164. this.$set(this, `list`, achieve);
  165. this.$set(this, `total`, achieve.length);
  166. let lists = this.list;
  167. let fieldLists = this.fieldList;
  168. for (let item of lists) {
  169. if (fieldLists.indexOf(item.field) == -1) fieldLists.push(item.field);
  170. }
  171. }
  172. }
  173. },
  174. searchPage(page = 1) {
  175. this.$set(this, `list1`, this.origin[page - 1]);
  176. },
  177. handleCurrentChange(currentPage) {
  178. this.searchPage(currentPage);
  179. },
  180. handleEdit(index, row) {
  181. console.log(index, row);
  182. },
  183. change(item, index) {
  184. let val = this.list;
  185. let techol = val.filter(i => i.field == item);
  186. this.$set(this, `list1`, techol);
  187. this.$set(this, `total`, techol.length);
  188. },
  189. },
  190. computed: {
  191. ...mapState(['user']),
  192. id() {
  193. return this.$route.query.id;
  194. },
  195. },
  196. watch: {
  197. list: {
  198. immediate: true,
  199. deep: true,
  200. handler(val) {
  201. if (val && val.length > 0) this.$set(this, `origin`, _.chunk(val, this.pageSize));
  202. this.searchPage();
  203. },
  204. },
  205. },
  206. };
  207. </script>
  208. <style lang="less" scoped>
  209. .main {
  210. .one {
  211. height: 100px;
  212. .left {
  213. height: 100px;
  214. .leftone {
  215. margin: 15px 0 0 0;
  216. span:nth-child(1) {
  217. font-size: 35px;
  218. color: #535353;
  219. font-weight: bold;
  220. font-family: cursive;
  221. }
  222. span:nth-child(2) {
  223. font-size: 15px;
  224. padding: 0 10px;
  225. color: #535353;
  226. }
  227. }
  228. .lefttwo {
  229. font-size: 12px;
  230. color: #535353;
  231. }
  232. }
  233. .right {
  234. height: 100px;
  235. line-height: 100px;
  236. text-align: right;
  237. }
  238. }
  239. .two {
  240. height: 610px;
  241. background: url('~@/assets/bj1.jpg');
  242. padding: 20px 0;
  243. .twotop {
  244. margin: 0 0 10px 0;
  245. .left {
  246. height: 357px;
  247. margin: 0 10px 0 0;
  248. background: url('~@/assets/dock1.png');
  249. p {
  250. float: left;
  251. width: 79%;
  252. font-size: 43px;
  253. color: #fff;
  254. font-weight: bold;
  255. padding: 13% 0 0 20px;
  256. }
  257. .el-image {
  258. float: left;
  259. width: 153px;
  260. height: 94px;
  261. margin: 4% 0 0 0;
  262. }
  263. }
  264. .right {
  265. background-color: #ffffff;
  266. width: 24%;
  267. height: 357px;
  268. text-align: center;
  269. padding: 0 10px;
  270. .el-image {
  271. width: 120px;
  272. height: 48px;
  273. margin: 50px 0 0px 0;
  274. }
  275. p:nth-child(2) {
  276. font-size: 18px;
  277. margin: 30px 0 5px 0;
  278. }
  279. p:nth-child(3) {
  280. font-size: 22px;
  281. font-weight: bold;
  282. margin-bottom: 30px;
  283. }
  284. p:nth-child(4) {
  285. background: #f5f5f5;
  286. padding: 20px 0px;
  287. border-radius: 5px;
  288. height: 50px;
  289. }
  290. }
  291. .right:hover {
  292. cursor: pointer;
  293. p:nth-child(3) {
  294. color: #535353;
  295. }
  296. }
  297. }
  298. .twocen {
  299. height: 130px;
  300. overflow: hidden;
  301. line-height: 130px;
  302. background-color: #fff;
  303. margin: 0 0 35px 0;
  304. .left {
  305. font-size: 18px;
  306. margin: 0 0 0 30px;
  307. span {
  308. font-size: 22px;
  309. font-weight: bold;
  310. }
  311. }
  312. .right {
  313. .btn1 {
  314. font-size: 16px;
  315. color: #fff;
  316. background: red;
  317. border: none;
  318. font-weight: bold;
  319. }
  320. .btn2 {
  321. font-size: 16px;
  322. color: #ff0000;
  323. border: 1px solid #ff0000;
  324. font-weight: bold;
  325. }
  326. }
  327. }
  328. }
  329. .three {
  330. height: 860px;
  331. overflow: hidden;
  332. position: relative;
  333. top: -50px;
  334. z-index: 999;
  335. .threeinfo {
  336. height: 860px;
  337. overflow: hidden;
  338. background-color: #fff;
  339. border: 1px solid red;
  340. padding: 30px;
  341. p:nth-child(1) {
  342. font-family: '微软雅黑';
  343. font-weight: 400;
  344. font-size: 26px;
  345. }
  346. .all {
  347. line-height: 46px;
  348. background: #f8f8f8;
  349. margin: 20px 0 40px 0;
  350. .field,
  351. .textAll {
  352. text-align: center;
  353. font-size: 16px;
  354. padding: 0 15px;
  355. cursor: pointer;
  356. overflow: hidden;
  357. white-space: nowrap;
  358. text-overflow: ellipsis;
  359. }
  360. .textAll {
  361. background-color: #2152cb;
  362. span {
  363. color: #fff;
  364. }
  365. }
  366. .field:hover {
  367. color: #777;
  368. }
  369. }
  370. .list {
  371. .page1 {
  372. margin: 40px 0px;
  373. text-align: center;
  374. }
  375. .name:hover {
  376. color: #777;
  377. cursor: pointer;
  378. }
  379. }
  380. }
  381. }
  382. .four {
  383. border-top: 2px solid #305798;
  384. height: 250px;
  385. .info {
  386. .left {
  387. h1 {
  388. padding: 15px 0;
  389. font-weight: bold;
  390. color: #4d4d4d;
  391. }
  392. p {
  393. font-size: 16px;
  394. color: #4d4d4d;
  395. padding: 5px 0;
  396. }
  397. }
  398. .right {
  399. text-align: center;
  400. }
  401. }
  402. }
  403. }
  404. /deep/.el-table .cell {
  405. font-weight: 400;
  406. font-size: 14px;
  407. color: black;
  408. }
  409. </style>