new.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
  5. <cHead :is_menu="false" :is_head="false">
  6. <template v-slot:info>
  7. <div class="w_1200">
  8. <el-col :span="24" class="one">
  9. <el-row :span="24" class="one_1">
  10. <el-col :span="24" class="title">{{ info.title || '暂无标题' }}</el-col>
  11. </el-row>
  12. <el-row :span="24" class="one_4">
  13. <el-col :span="24" class="other"><span>发布时间</span>{{ info.time || '暂无' }}</el-col>
  14. </el-row>
  15. </el-col>
  16. <a-divider />
  17. <el-col :span="24" class="two">
  18. <a-tabs>
  19. <a-tab-pane tab="简介">
  20. <el-col :span="24" class="two_1">{{ info.brief1 || '暂无' }}</el-col>
  21. <el-col :span="24" class="two_1">{{ info.brief2 || '暂无' }}</el-col>
  22. <el-col :span="24" class="two_1">{{ info.brief3 || '暂无' }}</el-col>
  23. <el-col :span="24" class="two_1">{{ info.brief4 || '暂无' }}</el-col>
  24. <el-col :span="24" class="two_1">{{ info.brief5 || '暂无' }}</el-col>
  25. <el-col :span="24" class="two_1">{{ info.brief6 || '暂无' }}</el-col>
  26. </a-tab-pane>
  27. </a-tabs>
  28. </el-col>
  29. <el-col :span="24" class="thr">
  30. <a-button type="primary"> 我要报名 </a-button>
  31. </el-col>
  32. </div>
  33. </template>
  34. </cHead>
  35. </el-col>
  36. </el-row>
  37. </div>
  38. </template>
  39. <script setup lang="ts">
  40. // 基础
  41. import type { Ref } from 'vue';
  42. import { onMounted, ref } from 'vue';
  43. import { useRoute } from 'vue-router';
  44. // 接口
  45. // import { ToolsStore } from '@/stores/tool';
  46. // import type { IQueryResult } from '@/util/types.util';
  47. // const toolsAxios = ToolsStore();
  48. // 路由
  49. const route = useRoute();
  50. // 加载中
  51. const loading: Ref<any> = ref(false);
  52. const info: Ref<any> = ref({
  53. title: '关于2023“浙江拍”科创平台专场活动调整的通知',
  54. time: '2023-11-29 15:40:43',
  55. brief1: '各竞价(拍卖) 相关单位:',
  56. brief2: '根据2023年中国浙江网上技术市场活动周开幕式暨首届浙江科技创新合作大会具体工作安排,对2023浙江拍科创平台专场活动进行调整,具体如下:',
  57. brief3: '1、活动时间: 与中国浙江网上技术市场活动周开幕式同期,具体时间另行通知',
  58. brief4: '2、活动地点:浙江创新馆(杭州未来科技城学术交流中心)中国浙江网上技术市场(https://51iishu.com) ',
  59. brief5: '联系人: 沈丽英',
  60. brief6: '联系电话: 13588873166'
  61. });
  62. // 请求
  63. onMounted(async () => {
  64. loading.value = true;
  65. await searchOther();
  66. await search();
  67. loading.value = false;
  68. });
  69. const search = async () => {
  70. // let id = route.query.id;
  71. // if (id) {
  72. // let res: IQueryResult = await userCheckAxios.fetch(id);
  73. // if (res.errcode == '0') {
  74. // let info: any = res.data as {};
  75. // form.value = info;
  76. // dataChange({ value: info.work_status, model: 'work_status' });
  77. // }
  78. // }
  79. };
  80. // 查询其他信息
  81. const searchOther = async () => {
  82. // let res: IQueryResult;
  83. // // 性别
  84. // res = await dictAxios.query({ type: 'common_gender' });
  85. // if (res.errcode == '0') genderList.value = res.data;
  86. };
  87. </script>
  88. <style scoped lang="scss">
  89. .main {
  90. .one {
  91. margin: 20px 0 10px 0;
  92. border-top: 6px solid #2374ff;
  93. .one_1 {
  94. margin: 5px 0;
  95. .title {
  96. font-size: 18px;
  97. font-weight: 700;
  98. color: #383b40;
  99. }
  100. .file {
  101. display: flex;
  102. align-items: center;
  103. justify-content: end;
  104. font-family: PingFangSC-Regular;
  105. font-size: 14px;
  106. color: #2374ff;
  107. text-align: right;
  108. }
  109. }
  110. .one_4 {
  111. .other {
  112. color: #383b40;
  113. margin-top: 13px;
  114. font-size: 14px;
  115. line-height: 20px;
  116. span:first-child {
  117. color: #7e8288;
  118. margin: 0 15px 0 0;
  119. }
  120. }
  121. }
  122. }
  123. .two {
  124. background: #f9fafb;
  125. border-radius: 2px;
  126. padding: 30px;
  127. margin: 34px 0 20px;
  128. font-family: PingFangSC-Medium;
  129. font-size: 14px;
  130. color: #383b40;
  131. line-height: 14px;
  132. .two_1 {
  133. padding: 10px 0 0 0;
  134. }
  135. }
  136. .thr {
  137. margin: 0 0 10px 0;
  138. }
  139. }
  140. </style>