123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <template>
  2. <view class="work-container">
  3. <!-- 仲裁轮播图 -->
  4. <uni-swiper-dot v-if="sysType==1" 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-swiper-dot v-if="sysType==2" class="uni-swiper-dot-box" :info="refreesVal" :current="current" field="content">
  15. <swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
  16. <swiper-item v-for="(item, index) in refreesVal" :key="index">
  17. <view class="swiper-item" @click="clickBannerItem(item)">
  18. <image :src="item.image" mode="aspectFill" :draggable="false" />
  19. </view>
  20. </swiper-item>
  21. </swiper>
  22. </uni-swiper-dot>
  23. <!-- 宫格组件 -->
  24. <!-- <uni-section v-if="certificationStatus == '1'" class="uni-section" title="系统管理" type="line">
  25. <template v-slot:right>
  26. 已认证
  27. </template>
  28. </uni-section>
  29. <uni-section v-else class="uni-section" title="系统管理" type="line" @click="certification">
  30. <template v-slot:right>
  31. 未认证
  32. </template>
  33. </uni-section> -->
  34. <!-- <uni-section class="uni-section" title="系统管理" type="line"></uni-section> -->
  35. <view class="grid-body">
  36. <uni-grid :column="4" :showBorder="false">
  37. <uni-grid-item>
  38. <view class="grid-item-box" @tap="changeGrid(0)">
  39. <uni-icons type="calendar-filled" size="30" color="#327DD7"></uni-icons>
  40. <text class="text" v-if="sysType == 1">待办案件</text>
  41. <text class="text" v-if="sysType == 2">我的申请</text>
  42. </view>
  43. </uni-grid-item>
  44. <uni-grid-item v-if="sysType == 2 && checkPermi(['caseManagement:list:add'])">
  45. <view class="grid-item-box" @tap="changeGrid(1)">
  46. <uni-icons type="staff-filled" size="30" color="#327DD7"></uni-icons>
  47. <text class="text">立案申请</text>
  48. </view>
  49. </uni-grid-item>
  50. <!-- <uni-grid-item v-if="sysType == 2">
  51. <view class="grid-item-box" @tap="changeGrid(2)">
  52. <uni-icons type="color" size="30" color="#327DD7"></uni-icons>
  53. <text class="text">线上调解</text>
  54. </view>
  55. </uni-grid-item>
  56. <uni-grid-item v-if="sysType == 2">
  57. <view class="grid-item-box" @tap="changeGrid(3)">
  58. <uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
  59. <text class="text">我的申请</text>
  60. </view>
  61. </uni-grid-item> -->
  62. <!-- <uni-grid-item>
  63. <view class="grid-item-box" @tap="changeGrid(4)">
  64. <uni-icons type="heart-filled" size="30" color="#327DD7"></uni-icons>
  65. <text class="text">证据交换</text>
  66. </view>
  67. </uni-grid-item> -->
  68. <uni-grid-item>
  69. <view class="grid-item-box" @tap="changeGrid(5)">
  70. <uni-icons type="bars" size="30" color="#327DD7"></uni-icons>
  71. <text class="text" v-if="sysType == 1">视频审理</text>
  72. <text class="text" v-if="sysType == 2">线上调解</text>
  73. </view>
  74. </uni-grid-item>
  75. <!-- <uni-grid-item>
  76. <view class="grid-item-box" @tap="changeGrid(6)">
  77. <uni-icons type="email-filled" size="30" color="#327DD7"></uni-icons>
  78. <text class="text">查询快递</text>
  79. </view>
  80. </uni-grid-item> -->
  81. <!-- <uni-grid-item>
  82. <view class="grid-item-box" @tap="changeGrid(7)">
  83. <uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
  84. <text class="text">在线签字</text>
  85. </view>
  86. </uni-grid-item> -->
  87. <!-- <uni-grid-item>
  88. <view class="grid-item-box" @tap="changeGrid(8)">
  89. <uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
  90. <text class="text">仲裁文书</text>
  91. </view>
  92. </uni-grid-item>
  93. <uni-grid-item>
  94. <view class="grid-item-box" @tap="changeGrid(9)">
  95. <uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
  96. <text class="text">法规政策</text>
  97. </view>
  98. </uni-grid-item> -->
  99. </uni-grid>
  100. </view>
  101. </view>
  102. </template>
  103. <script>
  104. import {
  105. startEid
  106. } from '../../mp_ecard_sdk/main.js'
  107. import {
  108. getEidtoken,
  109. sendEidtoken
  110. } from "../../api/login.js"
  111. export default {
  112. data() {
  113. return {
  114. current: 0,
  115. swiperDotIndex: 0,
  116. data: [{
  117. image: 'https://img.tukuppt.com/bg_grid/00/09/96/qWJxN1umma.jpg!/fh/350'
  118. },
  119. {
  120. image: 'https://img.tukuppt.com/bg_grid/00/18/92/JBheZs7ZVK.jpg!/fh/350'
  121. },
  122. {
  123. image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
  124. }
  125. ],
  126. refreesVal :[
  127. {
  128. image:'../../static/tiaojie1.png'
  129. },{
  130. image:'../../static/tiaojie2.png'
  131. },{
  132. image:'../../static/tiaojie4.png'
  133. }
  134. ],
  135. certificationStatus: "",
  136. eidToken: "",
  137. sysType:null
  138. }
  139. },
  140. methods: {
  141. clickBannerItem(item) {
  142. console.info(item)
  143. },
  144. changeSwiper(e) {
  145. this.current = e.detail.current
  146. },
  147. changeGrid(e) {
  148. // this.$modal.showToast('模块建设中~')
  149. // if (this.certificationStatus == "0") {
  150. // uni.showToast({
  151. // title: '请先完成实名认证',
  152. // icon: 'none',
  153. // duration: 1000
  154. // })
  155. // return
  156. // }
  157. switch (e) {
  158. case 0:
  159. uni.navigateTo({
  160. url: ('/pages/handlecase/index')
  161. })
  162. break;
  163. case 5:
  164. uni.navigateTo({
  165. url: ('/pages/im/index')
  166. })
  167. break;
  168. case 6:
  169. uni.navigateTo({
  170. url: ('/pages/expressDelivery/index')
  171. })
  172. break;
  173. case 7:
  174. uni.navigateTo({
  175. url: ('/pages/signature/index')
  176. })
  177. break;
  178. case 1:
  179. uni.navigateTo({
  180. url: (`/pages/handlecase/component/newlyAddedCase?title=新增案件`)
  181. })
  182. break;
  183. default:
  184. break;
  185. }
  186. },
  187. // 获取eidtoken
  188. getEidtokenFn() {
  189. getEidtoken({}).then(res => {
  190. console.log(res.data.EidToken, "kkkkkkkkk");
  191. this.eidToken = res.data.EidToken
  192. })
  193. },
  194. // 点击实名认证
  195. certification() {
  196. let that = this
  197. // uni.navigateTo({
  198. // url: ('/mp_ecard_sdk/index/index')
  199. // })
  200. startEid({
  201. data: {
  202. token: this.eidToken,
  203. },
  204. verifyDoneCallback(res) {
  205. const {
  206. token,
  207. verifyDone
  208. } = res;
  209. console.log('收到核身完成的res:', res);
  210. console.log('核身的token是:', token);
  211. console.log('是否完成核身:', verifyDone);
  212. sendEidtoken({
  213. "eidToken": token
  214. }).then(res => {
  215. that.certificationStatus = '1'
  216. })
  217. },
  218. });
  219. }
  220. },
  221. onLoad() {
  222. this.sysType = uni.getStorageSync('sysType');
  223. console.log(this.sysType)
  224. // sendEidtoken({
  225. // "eidToken": 'C0339AE1-7B30-4DB9-B1E4-35A10F45249B'
  226. // }).then(res => {
  227. // // that.certificationStatus = '已认证'
  228. // })
  229. this.getEidtokenFn()
  230. // this.certificationStatus = uni.getStorageSync('certificationStatus')
  231. },
  232. }
  233. </script>
  234. <style lang="scss">
  235. /* #ifndef APP-NVUE */
  236. page {
  237. display: flex;
  238. flex-direction: column;
  239. box-sizing: border-box;
  240. background-color: #fff;
  241. min-height: 100%;
  242. height: auto;
  243. }
  244. view {
  245. font-size: 14px;
  246. line-height: inherit;
  247. }
  248. /* #endif */
  249. .text {
  250. text-align: center;
  251. font-size: 26rpx;
  252. margin-top: 10rpx;
  253. }
  254. .grid-item-box {
  255. flex: 1;
  256. /* #ifndef APP-NVUE */
  257. display: flex;
  258. /* #endif */
  259. flex-direction: column;
  260. align-items: center;
  261. justify-content: center;
  262. padding: 15px 0;
  263. }
  264. .uni-margin-wrap {
  265. width: 690rpx;
  266. width: 100%;
  267. ;
  268. }
  269. .swiper {
  270. height: 300rpx;
  271. }
  272. .swiper-box {
  273. height: 150px;
  274. }
  275. .swiper-item {
  276. /* #ifndef APP-NVUE */
  277. display: flex;
  278. /* #endif */
  279. flex-direction: column;
  280. justify-content: center;
  281. align-items: center;
  282. color: #fff;
  283. height: 300rpx;
  284. line-height: 300rpx;
  285. }
  286. .grid-body {
  287. // background-image: url('https://img.tukuppt.com/bg_grid/00/18/52/aEicoC2qMI.jpg!/fh/350');
  288. background-repeat: no-repeat;
  289. background-size: cover;
  290. height: 900rpx;
  291. // color: #fff;
  292. opacity: 0.9;
  293. }
  294. .uni-section {
  295. background-color: #b90404 !important;
  296. color: #fff;
  297. }
  298. /deep/ .uni-section__content-title {
  299. color: #fff !important;
  300. }
  301. @media screen and (min-width: 500px) {
  302. .uni-swiper-dot-box {
  303. width: 400px;
  304. /* #ifndef APP-NVUE */
  305. margin: 0 auto;
  306. /* #endif */
  307. margin-top: 8px;
  308. }
  309. .image {
  310. width: 100%;
  311. }
  312. }
  313. </style>