index.vue 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <view class="work-container">
  3. <!-- 轮播图 -->
  4. <uni-swiper-dot class="uni-swiper-dot-box" :info="data" :current="current" field="content">
  5. <swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
  6. <swiper-item v-for="(item, index) in data" :key="index">
  7. <view class="swiper-item" @click="clickBannerItem(item)">
  8. <image :src="item.image" mode="aspectFill" :draggable="false" />
  9. </view>
  10. </swiper-item>
  11. </swiper>
  12. </uni-swiper-dot>
  13. <!-- 宫格组件 -->
  14. <uni-section class="uni-section" title="系统管理" type="line" @click="certification">
  15. <template v-slot:right>
  16. {{certificationStatus}}
  17. </template>
  18. </uni-section>
  19. <!-- <uni-section class="uni-section" title="系统管理" type="line"></uni-section> -->
  20. <view class="grid-body">
  21. <uni-grid :column="4" :showBorder="false">
  22. <uni-grid-item>
  23. <view class="grid-item-box" @tap="changeGrid(0)">
  24. <uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
  25. <text class="text">代办案件</text>
  26. </view>
  27. </uni-grid-item>
  28. <!-- <uni-grid-item>
  29. <view class="grid-item-box" @tap="changeGrid(1)">
  30. <uni-icons type="staff-filled" size="30" color="#327DD7"></uni-icons>
  31. <text class="text">代办案件</text>
  32. </view>
  33. </uni-grid-item>
  34. <uni-grid-item>
  35. <view class="grid-item-box" @tap="changeGrid(2)">
  36. <uni-icons type="color" size="30" color="#327DD7"></uni-icons>
  37. <text class="text">代理立案</text>
  38. </view>
  39. </uni-grid-item>
  40. <uni-grid-item>
  41. <view class="grid-item-box" @tap="changeGrid(3)">
  42. <uni-icons type="settings-filled" size="30" color="#327DD7"></uni-icons>
  43. <text class="text">代理案件进展</text>
  44. </view>
  45. </uni-grid-item>
  46. <uni-grid-item>
  47. <view class="grid-item-box" @tap="changeGrid(4)">
  48. <uni-icons type="heart-filled" size="30" color="#327DD7"></uni-icons>
  49. <text class="text">证据交换</text>
  50. </view>
  51. </uni-grid-item> -->
  52. <uni-grid-item>
  53. <view class="grid-item-box" @tap="changeGrid(5)">
  54. <uni-icons type="bars" size="30" color="#327DD7"></uni-icons>
  55. <text class="text">互联网庭</text>
  56. </view>
  57. </uni-grid-item>
  58. <!-- <uni-grid-item>
  59. <view class="grid-item-box" @tap="changeGrid(6)">
  60. <uni-icons type="gear-filled" size="30" color="#327DD7"></uni-icons>
  61. <text class="text">在线撤诉</text>
  62. </view>
  63. </uni-grid-item>
  64. <uni-grid-item>
  65. <view class="grid-item-box" @tap="changeGrid(7)">
  66. <uni-icons type="chat-filled" size="30" color="#327DD7"></uni-icons>
  67. <text class="text">笔录签字</text>
  68. </view>
  69. </uni-grid-item>
  70. <uni-grid-item>
  71. <view class="grid-item-box" @tap="changeGrid(8)">
  72. <uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
  73. <text class="text">仲裁文书</text>
  74. </view>
  75. </uni-grid-item>
  76. <uni-grid-item>
  77. <view class="grid-item-box" @tap="changeGrid(9)">
  78. <uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
  79. <text class="text">法规政策</text>
  80. </view>
  81. </uni-grid-item> -->
  82. </uni-grid>
  83. </view>
  84. </view>
  85. </template>
  86. <script>
  87. import {
  88. startEid
  89. } from '../../mp_ecard_sdk/main.js'
  90. export default {
  91. data() {
  92. return {
  93. current: 0,
  94. swiperDotIndex: 0,
  95. data: [{
  96. image: 'https://img.tukuppt.com/bg_grid/00/09/96/qWJxN1umma.jpg!/fh/350'
  97. },
  98. {
  99. image: 'https://img.tukuppt.com/bg_grid/00/18/92/JBheZs7ZVK.jpg!/fh/350'
  100. },
  101. {
  102. image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
  103. }
  104. ],
  105. certificationStatus: "未认证"
  106. }
  107. },
  108. methods: {
  109. clickBannerItem(item) {
  110. console.info(item)
  111. },
  112. changeSwiper(e) {
  113. this.current = e.detail.current
  114. },
  115. changeGrid(e) {
  116. // this.$modal.showToast('模块建设中~')
  117. switch (e) {
  118. case 0:
  119. uni.navigateTo({
  120. url: ('/pages/handlecase/index')
  121. })
  122. break;
  123. case 5:
  124. uni.navigateTo({
  125. url: ('/pages/im/index')
  126. })
  127. break;
  128. default:
  129. break;
  130. }
  131. },
  132. // 点击实名认证
  133. certification() {
  134. uni.navigateTo({
  135. url: ('/mp_ecard_sdk/index/index')
  136. })
  137. startEid({
  138. data: {
  139. token,
  140. },
  141. verifyDoneCallback(res) {
  142. const {
  143. token,
  144. verifyDone
  145. } = res;
  146. console.log('收到核身完成的res:', res);
  147. console.log('核身的token是:', token);
  148. console.log('是否完成核身:', verifyDone);
  149. },
  150. });
  151. }
  152. }
  153. }
  154. </script>
  155. <style lang="scss">
  156. /* #ifndef APP-NVUE */
  157. page {
  158. display: flex;
  159. flex-direction: column;
  160. box-sizing: border-box;
  161. background-color: #fff;
  162. min-height: 100%;
  163. height: auto;
  164. }
  165. view {
  166. font-size: 14px;
  167. line-height: inherit;
  168. }
  169. /* #endif */
  170. .text {
  171. text-align: center;
  172. font-size: 26rpx;
  173. margin-top: 10rpx;
  174. }
  175. .grid-item-box {
  176. flex: 1;
  177. /* #ifndef APP-NVUE */
  178. display: flex;
  179. /* #endif */
  180. flex-direction: column;
  181. align-items: center;
  182. justify-content: center;
  183. padding: 15px 0;
  184. }
  185. .uni-margin-wrap {
  186. width: 690rpx;
  187. width: 100%;
  188. ;
  189. }
  190. .swiper {
  191. height: 300rpx;
  192. }
  193. .swiper-box {
  194. height: 150px;
  195. }
  196. .swiper-item {
  197. /* #ifndef APP-NVUE */
  198. display: flex;
  199. /* #endif */
  200. flex-direction: column;
  201. justify-content: center;
  202. align-items: center;
  203. color: #fff;
  204. height: 300rpx;
  205. line-height: 300rpx;
  206. }
  207. .grid-body {
  208. // background-image: url('https://img.tukuppt.com/bg_grid/00/18/52/aEicoC2qMI.jpg!/fh/350');
  209. background-repeat: no-repeat;
  210. background-size: cover;
  211. height: 900rpx;
  212. // color: #fff;
  213. opacity: 0.9;
  214. }
  215. .uni-section {
  216. background-color: #b90404 !important;
  217. color: #fff;
  218. }
  219. /deep/ .uni-section__content-title {
  220. color: #fff !important;
  221. }
  222. @media screen and (min-width: 500px) {
  223. .uni-swiper-dot-box {
  224. width: 400px;
  225. /* #ifndef APP-NVUE */
  226. margin: 0 auto;
  227. /* #endif */
  228. margin-top: 8px;
  229. }
  230. .image {
  231. width: 100%;
  232. }
  233. }
  234. </style>