index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view class="main">
  3. <!--轮播图-->
  4. <view class="banner">
  5. <u-swiper circular :radius="5" :indicator="true" keyName="image" :list="bannerList" :height="150" class="uni-swiper" @click="click"></u-swiper>
  6. </view>
  7. <!--通知公告-->
  8. <view class="notice">
  9. <u-notice-bar color="#848484" :text="noticeList" :step="true" direction="column" mode="link" bgColor="white" speed="300" url="/pages/notice/index"></u-notice-bar>
  10. </view>
  11. <view class="flow">
  12. <view class="title">操作流程</view>
  13. <view class="item">
  14. <view class="tb"><view class="icon">&#xe600;</view></view>
  15. <view class="con">
  16. <view class="bt">实名认证</view>
  17. <view class="bor" style="background: linear-gradient(to right, rgb(198 187 250), rgb(251 251 251))"></view>
  18. <view class="zt">未实名</view>
  19. </view>
  20. <view class="state">
  21. <text class="zt">已认证</text>
  22. <text class="icon">&#xe62b;</text>
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="tb"><view class="icon">&#xe600;</view></view>
  27. <view class="con">
  28. <view class="bt">关联企业</view>
  29. <view class="bor" style="background: linear-gradient(to right, #eecce0, rgb(253 253 253))"></view>
  30. <view class="zt">未实名</view>
  31. </view>
  32. <view class="state">
  33. <text class="zt">已认证</text>
  34. <text class="icon">&#xe62b;</text>
  35. </view>
  36. </view>
  37. <view class="item">
  38. <view class="tb"><view class="icon">&#xe600;</view></view>
  39. <view class="con">
  40. <view class="bt">开始接包</view>
  41. <view class="bor" style="background: linear-gradient(to right, #c9f1d4, rgb(250 255 252))"></view>
  42. <view class="zt">未实名</view>
  43. </view>
  44. <view class="state">
  45. <text class="zt">已认证</text>
  46. <text class="icon">&#xe62b;</text>
  47. </view>
  48. </view>
  49. <view class="item">
  50. <view class="tb"><view class="icon">&#xe600;</view></view>
  51. <view class="con">
  52. <view class="bt">电子签约</view>
  53. <view class="bor" style="background: linear-gradient(to right, #f6f6bf, rgb(246 246 246))"></view>
  54. <view class="zt">未实名</view>
  55. </view>
  56. <view class="state">
  57. <text class="zt">已认证</text>
  58. <text class="icon">&#xe62b;</text>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. export default {
  66. data() {
  67. return {
  68. ip: this.http.ip,
  69. user: {},
  70. bannerList: [{ image: '../../static/index.jpg' }],
  71. noticeList: ['承揽时代小程序上线了', '个人接包时代来临,动动手指就赚钱']
  72. };
  73. },
  74. onShow() {
  75. this.user = this.getUser();
  76. },
  77. onLoad() {
  78. //this.getData();
  79. },
  80. methods: {
  81. getData() {
  82. this.http.request({
  83. url: this.http.urls.home_list,
  84. success: (res) => {
  85. res.data.data.forEach((item) => {
  86. this.noticeList.push(item.title);
  87. });
  88. }
  89. });
  90. }
  91. }
  92. };
  93. </script>
  94. <style lang="scss">
  95. .main {
  96. padding: 15px;
  97. }
  98. .banner {
  99. }
  100. .notice {
  101. margin-top: 10px;
  102. }
  103. .flow {
  104. padding-top: 20px;
  105. .title {
  106. font-size: 15px;
  107. }
  108. .item {
  109. background-color: white;
  110. border-radius: 10px;
  111. padding: 20px;
  112. overflow: hidden;
  113. margin-top: 12px;
  114. .tb {
  115. .icon {
  116. float: left;
  117. padding: 13px;
  118. border: 1px solid $main-color;
  119. color: $main-color;
  120. border-radius: 50%;
  121. font-size: 23px;
  122. }
  123. }
  124. .con {
  125. float: left;
  126. padding-left: 20px;
  127. .bt {
  128. font-size: 18px;
  129. }
  130. .bor {
  131. background-color: red;
  132. border-radius: 20px;
  133. height: 9px;
  134. margin-top: -9px;
  135. width: 105px;
  136. margin-left: -5px;
  137. }
  138. .zt {
  139. font-size: 13px;
  140. padding-top: 3px;
  141. color: #909090;
  142. }
  143. }
  144. .state {
  145. float: right;
  146. padding-top: 11px;
  147. .zt {
  148. font-size: 13px;
  149. color: $main-color;
  150. }
  151. .icon {
  152. color: #909090;
  153. }
  154. }
  155. }
  156. }
  157. </style>