| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <template>
- <view class="work-container">
- <!-- 轮播图 -->
- <uni-swiper-dot class="uni-swiper-dot-box" :info="data" :current="current" field="content">
- <swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
- <swiper-item v-for="(item, index) in data" :key="index">
- <view class="swiper-item" @click="clickBannerItem(item)">
- <image :src="item.image" mode="aspectFill" :draggable="false" />
- </view>
- </swiper-item>
- </swiper>
- </uni-swiper-dot>
-
- <!-- 宫格组件 -->
- <uni-section v-if="certificationStatus == '已认证'" class="uni-section" title="系统管理" type="line">
- <template v-slot:right>
- {{certificationStatus}}
- </template>
- </uni-section>
- <uni-section v-else class="uni-section" title="系统管理" type="line" @click="certification">
- <template v-slot:right>
- {{certificationStatus}}
- </template>
- </uni-section>
- <!-- <uni-section class="uni-section" title="系统管理" type="line"></uni-section> -->
- <view class="grid-body">
- <uni-grid :column="4" :showBorder="false">
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(0)">
- <uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
- <text class="text">代办案件</text>
- </view>
- </uni-grid-item>
- <!-- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(1)">
- <uni-icons type="staff-filled" size="30" color="#327DD7"></uni-icons>
- <text class="text">代办案件</text>
- </view>
- </uni-grid-item>
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(2)">
- <uni-icons type="color" size="30" color="#327DD7"></uni-icons>
- <text class="text">代理立案</text>
- </view>
- </uni-grid-item>
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(3)">
- <uni-icons type="settings-filled" size="30" color="#327DD7"></uni-icons>
- <text class="text">代理案件进展</text>
- </view>
- </uni-grid-item>
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(4)">
- <uni-icons type="heart-filled" size="30" color="#327DD7"></uni-icons>
- <text class="text">证据交换</text>
- </view>
- </uni-grid-item> -->
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(5)">
- <uni-icons type="bars" size="30" color="#327DD7"></uni-icons>
- <text class="text">互联网庭</text>
- </view>
- </uni-grid-item>
- <!-- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(6)">
- <uni-icons type="gear-filled" size="30" color="#327DD7"></uni-icons>
- <text class="text">在线撤诉</text>
- </view>
- </uni-grid-item>
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(7)">
- <uni-icons type="chat-filled" size="30" color="#327DD7"></uni-icons>
- <text class="text">笔录签字</text>
- </view>
- </uni-grid-item>
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(8)">
- <uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
- <text class="text">仲裁文书</text>
- </view>
- </uni-grid-item>
- <uni-grid-item>
- <view class="grid-item-box" @tap="changeGrid(9)">
- <uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
- <text class="text">法规政策</text>
- </view>
- </uni-grid-item> -->
- </uni-grid>
- </view>
- </view>
- </template>
-
- <script>
- import {
- startEid
- } from '../../mp_ecard_sdk/main.js'
- import {
- getEidtoken
- } from "../../api/login.js"
- export default {
- data() {
- return {
- current: 0,
- swiperDotIndex: 0,
- data: [{
- image: 'https://img.tukuppt.com/bg_grid/00/09/96/qWJxN1umma.jpg!/fh/350'
- },
- {
- image: 'https://img.tukuppt.com/bg_grid/00/18/92/JBheZs7ZVK.jpg!/fh/350'
- },
- {
- image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
- }
- ],
- certificationStatus: "未认证",
- eidToken: ""
- }
- },
- methods: {
- clickBannerItem(item) {
- console.info(item)
- },
- changeSwiper(e) {
- this.current = e.detail.current
- },
- changeGrid(e) {
- // this.$modal.showToast('模块建设中~')
- if (this.certificationStatus == "未认证") {
- uni.showToast({
- title: '请先完成实名认证',
- icon: 'none',
- duration: 1000
- })
- return
- }
- switch (e) {
- case 0:
- uni.navigateTo({
- url: ('/pages/handlecase/index')
- })
- break;
- case 5:
- uni.navigateTo({
- url: ('/pages/im/index')
- })
- break;
- default:
- break;
- }
- },
- // 获取eidtoken
- getEidtokenFn() {
- getEidtoken({}).then(res => {
- console.log(res.data.eidToken, "kkkkkkkkk");
- this.eidToken = res.data.eidToken
- })
- },
- // 点击实名认证
- certification() {
- let that = this
- // uni.navigateTo({
- // url: ('/mp_ecard_sdk/index/index')
- // })
- startEid({
- data: {
- token: this.eidToken,
- },
- verifyDoneCallback(res) {
- const {
- token,
- verifyDone
- } = res;
- console.log('收到核身完成的res:', res);
- console.log('核身的token是:', token);
- console.log('是否完成核身:', verifyDone);
- // flagShow = '已认证'
- // console.log(flagShow, "JKJJKJKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKk");
- // console.log(this, "PPPPPPPPPPPPPPP");
- that.certificationStatus = '已认证'
- },
- });
- }
- },
- onLoad() {
- this.getEidtokenFn()
- },
- }
- </script>
-
- <style lang="scss">
- /* #ifndef APP-NVUE */
- page {
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- background-color: #fff;
- min-height: 100%;
- height: auto;
- }
-
- view {
- font-size: 14px;
- line-height: inherit;
- }
-
- /* #endif */
-
- .text {
- text-align: center;
- font-size: 26rpx;
- margin-top: 10rpx;
- }
-
- .grid-item-box {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 15px 0;
- }
-
- .uni-margin-wrap {
- width: 690rpx;
- width: 100%;
- ;
- }
-
- .swiper {
- height: 300rpx;
- }
-
- .swiper-box {
- height: 150px;
- }
-
- .swiper-item {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- color: #fff;
- height: 300rpx;
- line-height: 300rpx;
- }
-
- .grid-body {
- // background-image: url('https://img.tukuppt.com/bg_grid/00/18/52/aEicoC2qMI.jpg!/fh/350');
- background-repeat: no-repeat;
- background-size: cover;
- height: 900rpx;
- // color: #fff;
- opacity: 0.9;
- }
-
- .uni-section {
- background-color: #b90404 !important;
- color: #fff;
- }
-
- /deep/ .uni-section__content-title {
- color: #fff !important;
- }
-
- @media screen and (min-width: 500px) {
- .uni-swiper-dot-box {
- width: 400px;
- /* #ifndef APP-NVUE */
- margin: 0 auto;
- /* #endif */
- margin-top: 8px;
- }
-
- .image {
- width: 100%;
- }
- }
- </style>
|