index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <view class="main">
  3. <!--轮播图-->
  4. <view class="banner">
  5. <u-swiper circular :radius="5" :indicator="true" keyName="pic" :list="bannerList" :height="150" class="uni-swiper" @click="click"></u-swiper>
  6. </view>
  7. <!--菜单-->
  8. <view class="menu">
  9. <view class="cd">
  10. <view class="out">
  11. <view class="int">
  12. <view class="icon" style="background-color: #f44336;">&#xe6be;</view>
  13. <view class="title">失业登记</view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="cd">
  18. <view class="out">
  19. <view class="int">
  20. <view class="icon" style="background-color: #4CAF50">&#xe64a;</view>
  21. <view class="title">就业补贴</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="cd">
  26. <view class="out">
  27. <view class="int">
  28. <view class="icon" style="background-color: #ff9800">&#xe73c;</view>
  29. <view class="title">培训指导</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="cd">
  34. <view class="out">
  35. <view class="int">
  36. <view class="icon" style="background-color: #607d8b">&#xe998;</view>
  37. <view class="title">法务服务</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="cd" @click="go('/pages/index/index')">
  42. <view class="out">
  43. <view class="int">
  44. <view class="icon" style="background-color: #03A9F4">&#xe725;</view>
  45. <view class="title">结算广场</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="cd" @click="go('/pages/clsd/job/full_time')">
  50. <view class="out">
  51. <view class="int">
  52. <view class="icon" style="background-color: #4581fb">&#xe9d9;</view>
  53. <view class="title">全职岗位</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="cd" @click="go('/pages/clsd/job/part_time')">
  58. <view class="out">
  59. <view class="int">
  60. <view class="icon" style="background-color: #FF5722">&#xe62a;</view>
  61. <view class="title">兼职岗位</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="cd">
  66. <view class="out">
  67. <view class="int">
  68. <view class="icon" style="background-color: #795548">&#xe6a6;</view>
  69. <view class="title">社保窗口</view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <!--新闻-->
  75. <view class="news" @click="webview('https://chenglantimes.com/tzgg')">
  76. <view class="gg">
  77. <view class="title">最新资讯</view>
  78. <view class="bor"></view>
  79. <view class="more">
  80. <text>更多</text>
  81. <text class="icon">&#xe62b;</text>
  82. </view>
  83. </view>
  84. <view class="item">
  85. <view class="title omit">春招进行时......</view>
  86. <view class="date">04-29</view>
  87. </view>
  88. <view class="item">
  89. <view class="title omit">2022年全区十八大与南宁召开广西大力推广招聘兼职的在线</view>
  90. <view class="date">04-29</view>
  91. </view>
  92. </view>
  93. <!--横幅-->
  94. <image src="../../static/banner.jpg" mode="widthFix" class="hengfu" @click="webview('https://chenglantimes.com/a1')"></image>
  95. <!--图片内容-->
  96. <view class="ad" style="margin-left: -10px; margin-right: -10px">
  97. <view class="item" style="height: 190px">
  98. <view class="out" @click="webview('https://chenglantimes.com/a1')">
  99. <view class="int" style="height: 175px; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2)">
  100. <image src="https://chenglantimes.com/prod-api/profile/upload/2024/05/20/1716197779982.jpg" mode="heightFix" style="height: 180px; width: 100%"></image>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="item" style="height: 190px">
  105. <view class="out">
  106. <view class="int">
  107. <view class="it" style="height: 80px" @click="webview('https://chenglantimes.com/a1')">
  108. <image src="https://chenglantimes.com/prod-api/profile/upload/2024/05/20/1716195826603.jpg" mode="aspectFill" style="height: 85px; width: 100%"></image>
  109. </view>
  110. <view class="it" style="height: 80px; margin-top: 15px" @click="webview('https://chenglantimes.com/a1')">
  111. <image src="https://chenglantimes.com/prod-api/profile/upload/2024/05/20/1716198212203.jpg" mode="aspectFill" style="height: 77px; width: 100%"></image>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </template>
  119. <script>
  120. export default {
  121. data() {
  122. return {
  123. ip: this.http.ip,
  124. user: {},
  125. jobs: [1, 2, 3, 4, 5, 6],
  126. bannerList: [],
  127. noticeList: []
  128. };
  129. },
  130. onShow() {
  131. if (this.hasLogin()) {
  132. //this.getUserInfo();
  133. }
  134. },
  135. onLoad() {
  136. this.getData();
  137. },
  138. methods: {
  139. getUserInfo() {
  140. this.http.request({
  141. url: '/app/user/info',
  142. success: (res) => {
  143. this.user = res.data.data;
  144. }
  145. });
  146. },
  147. getData() {
  148. this.http.request({
  149. url: '/app/home/index',
  150. success: (res) => {
  151. this.contract = res.data.data.contract;
  152. this.bannerList = res.data.data.bannerList;
  153. res.data.data.noticeList.forEach((item) => {
  154. this.noticeList.push(item.title);
  155. });
  156. }
  157. });
  158. },
  159. go(url) {
  160. uni.navigateTo({ url: url });
  161. },
  162. webview(src) {
  163. uni.navigateTo({
  164. url: '/pages/other/webview?src=' + src
  165. })
  166. }
  167. }
  168. };
  169. </script>
  170. <style lang="scss">
  171. @import 'index.scss';
  172. </style>