index.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <template>
  2. <div id="index" class="container">
  3. <van-row>
  4. <van-row>
  5. <van-col span="24" class="style">
  6. <van-col span="24" class="banner">
  7. <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
  8. <van-swipe-item class="swipList" v-for="(item, index) in swipList" :key="index">
  9. <van-image :src="item.url" />
  10. </van-swipe-item>
  11. </van-swipe>
  12. </van-col>
  13. <van-col span="24" class="click">
  14. <van-col span="8" class="btn" @click.native="$router.push({ path: '/meetingBrief/index', query: { type: '0' } })">
  15. <i class="iconfont iconjianjie icon" style="color:#FF8C00;"></i>
  16. <p style="color:#FF8C00;">会议简介</p>
  17. </van-col>
  18. <van-col span="8" class="btn" @click.native="$router.push({ path: '/meetingBrief/index', query: { type: '1' } })">
  19. <i class="iconfont iconicon-test icon" style="color:#B76958;"></i>
  20. <p style="color:#B76958;">会议日程</p>
  21. </van-col>
  22. <van-col span="8" class="btn" @click.native="$router.push({ path: '/meetingBrief/index', query: { type: '2' } })">
  23. <i class="iconfont iconzhubanfangrenzheng icon" style="color:#5B4ED4;"></i>
  24. <p style="color:#5B4ED4;">主办方介绍</p>
  25. </van-col>
  26. <van-col span="8" class="btn" @click.native="$router.push({ path: '/meetingBrief/index', query: { type: '3' } })">
  27. <i class="iconfont iconzhubanfangrenzheng icon" style="color:#2D5868;"></i>
  28. <p style="color:#2D5868;">协办方介绍</p>
  29. </van-col>
  30. <van-col span="8" class="btn" @click.native="$router.push({ path: '/meetingBrief/index', query: { type: '4' } })">
  31. <i class="iconfont icon111 icon" style="color:#00A8C4;"></i>
  32. <p style="color:#00A8C4;">专家介绍</p>
  33. </van-col>
  34. <van-col span="8" class="btn" @click.native="$router.push({ path: '/user/index', query: { type: '5' } })">
  35. <i class="iconfont iconjiaoyu icon" style="color:#3B9C55;"></i>
  36. <p style="color:#3B9C55;">继续教育学分申请</p>
  37. </van-col>
  38. <van-col span="8" class="btn" @click.native="$router.push({ path: '/live/roomlist' })">
  39. <i class="iconfont iconzhibo icon" style="color:#645FB9;"></i>
  40. <p style="color:#645FB9;">直播入口</p>
  41. </van-col>
  42. <van-col span="8" class="btn" @click.native="$router.push({ path: '/meetingBrief/detail', query: { type: '7' } })">
  43. <i class="iconfont iconkefu icon" style="color:#00A8C4;"></i>
  44. <p style="color:#00A8C4;">联系客服</p>
  45. </van-col>
  46. <van-col span="8" class="btn" @click.native="$router.push({ path: '/meetingBrief/index', query: { type: '6' } })">
  47. <i class="iconfont iconwenxintishi icon" style="color:#E6A23C;"></i>
  48. <p style="color:#5E2422;">温馨提示</p>
  49. </van-col>
  50. </van-col>
  51. <!-- <van-col span="24" class="after">
  52. <h4 style="color:#0DB1AF">往期直播</h4>
  53. <van-col span="24">
  54. <van-col
  55. span="24"
  56. class="videoList"
  57. v-for="(item, index) in videoList"
  58. :key="index"
  59. @click.native="$router.push({ path: '/onlive/videoinfo', query: { id: item.id, fileid: item.file_id } })"
  60. >
  61. <van-col span="9" class="image">
  62. <van-image :src="item.filedir" />
  63. </van-col>
  64. <van-col span="15" class="text">
  65. <p class="textOver">{{ item.title }}</p>
  66. <p>时间:{{ item.starttime }}</p>
  67. <p>
  68. <span>{{ item.username }}</span>
  69. <span>¥{{ item.price }}</span>
  70. </p>
  71. </van-col>
  72. </van-col>
  73. </van-col>
  74. </van-col> -->
  75. <van-col span="24" class="foot">
  76. <van-tabbar v-model="active">
  77. <van-tabbar-item icon="home-o" @click.native="$router.push({ path: '/live/index' })">首页</van-tabbar-item>
  78. <van-tabbar-item icon="tv-o" @click.native="$router.push({ path: '/live/roomlist' })">直播</van-tabbar-item>
  79. <van-tabbar-item icon="replay" @click.native="$router.push({ path: '/live/roomrecord' })">往期</van-tabbar-item>
  80. <van-tabbar-item icon="contact" @click.native="$router.push({ path: '/user/index', query: { type: '5' } })">我的</van-tabbar-item>
  81. </van-tabbar>
  82. </van-col>
  83. </van-col>
  84. </van-row>
  85. </van-row>
  86. <!-- <el-col :span="24" class="title">
  87. <span>叁多健康管理平台</span>
  88. </el-col>
  89. <el-col :span="24" class="main">
  90. <el-col class="guide-box">
  91. <el-col class="single-box" @click.native="$router.push({ path: '/meetingBrief/roomlist' })">
  92. <el-image class="icon" :src="require('@/assets/multiroom.png')"> </el-image>
  93. <span class="label">直播入口</span>
  94. <span class="desc"></span>
  95. </el-col>
  96. <el-col class="single-box" @click.native="$router.push({ path: '/meetingBrief/roomrecord' })">
  97. <el-image class="icon" :src="require('@/assets/voice.png')"> </el-image>
  98. <span class="label">往期讲堂</span>
  99. <span class="desc"></span>
  100. </el-col>
  101. <el-col class="single-box" @click.native="$router.push({ path: '/user/index' })">
  102. <el-image class="icon" :src="require('@/assets/export.png')"> </el-image>
  103. <span class="label">个人中心</span>
  104. <span class="desc"></span>
  105. </el-col>
  106. </el-col>
  107. </el-col>
  108. <el-col :span="24" class="foot">
  109. <span>潍坊恒源科技有限公司</span>
  110. </el-col> -->
  111. </div>
  112. </template>
  113. <script>
  114. import { mapState, mapMutations, createNamespacedHelpers } from 'vuex';
  115. const { mapActions: room } = createNamespacedHelpers('room');
  116. const jwt = require('jsonwebtoken');
  117. export default {
  118. name: 'index',
  119. props: {},
  120. components: {},
  121. data: () => ({
  122. // 头部标题
  123. title: '',
  124. // meta为true
  125. isleftarrow: '',
  126. // 返回
  127. navShow: true,
  128. // 轮播图
  129. swipList: [
  130. {
  131. url: require('@/assets/7.png'),
  132. },
  133. {
  134. url: require('@/assets/6.png'),
  135. },
  136. {
  137. url: require('@/assets/1.jpg'),
  138. },
  139. {
  140. url: require('@/assets/2.jpg'),
  141. },
  142. {
  143. url: require('@/assets/3.jpg'),
  144. },
  145. {
  146. url: require('@/assets/4.jpg'),
  147. },
  148. {
  149. url: require('@/assets/5.jpg'),
  150. },
  151. ],
  152. // 往期直播
  153. videoList: [],
  154. // 底部标签
  155. active: 0,
  156. }),
  157. created() {
  158. if (this.token) {
  159. this.sesstoken();
  160. }
  161. // this.searchInfo();
  162. },
  163. methods: {
  164. ...mapMutations(['setUser']),
  165. ...room({ roomQuery: 'query' }),
  166. async searchInfo() {
  167. const info = {};
  168. info.ishis = '1';
  169. let res = await this.roomQuery(info);
  170. if (this.$checkRes(res)) {
  171. this.$set(this, `videoList`, res.data);
  172. }
  173. },
  174. sesstoken() {
  175. sessionStorage.setItem('token', this.token);
  176. let user = jwt.decode(this.token);
  177. this.setUser(user);
  178. },
  179. handleEntry(data) {
  180. if (data === 1) {
  181. } else if (data === 2) {
  182. } else if (data === 3) {
  183. }
  184. },
  185. },
  186. computed: {
  187. ...mapState(['user']),
  188. token() {
  189. return this.$route.query.token;
  190. },
  191. },
  192. mounted() {},
  193. };
  194. </script>
  195. <style lang="less" scoped>
  196. .style {
  197. .banner {
  198. .swipList {
  199. width: 100%;
  200. height: 200px;
  201. .van-image {
  202. width: 100%;
  203. height: 200px;
  204. }
  205. }
  206. }
  207. .click {
  208. border-bottom: 0px solid #ccc;
  209. .btn {
  210. padding: 15px 0;
  211. text-align: center;
  212. .icon {
  213. font-size: 40px;
  214. }
  215. p {
  216. font-size: 12px;
  217. padding: 5px 0 0 0;
  218. }
  219. }
  220. }
  221. .after {
  222. margin: 0 0 50px 0;
  223. h4 {
  224. padding: 0 10px;
  225. }
  226. .videoList {
  227. position: relative;
  228. padding: 0 10px;
  229. .image {
  230. .van-image {
  231. height: 90px;
  232. }
  233. }
  234. .text {
  235. padding: 0 5px;
  236. p:nth-child(2) {
  237. font-size: 14px;
  238. padding: 5px 0;
  239. color: #333;
  240. }
  241. p:last-child {
  242. position: absolute;
  243. bottom: 8px;
  244. width: 57%;
  245. span {
  246. display: inline-block;
  247. width: 50%;
  248. font-size: 14px;
  249. }
  250. span:last-child {
  251. text-align: right;
  252. }
  253. }
  254. }
  255. }
  256. }
  257. }
  258. /deep/.van-image__img {
  259. border-top-right-radius: 5px;
  260. border-top-left-radius: 5px;
  261. }
  262. </style>