|
@@ -1,19 +1,30 @@
|
|
<template>
|
|
<template>
|
|
<view class="admin-shouye-page">
|
|
<view class="admin-shouye-page">
|
|
<view class="shouye-head-box">{{indexInfoData.jzName}}</view>
|
|
<view class="shouye-head-box">{{indexInfoData.jzName}}</view>
|
|
- <view class="index-tj-box">
|
|
|
|
- <view class="tj-btn-box">
|
|
|
|
- <text :class="{active: tjBtn == 1}" @click="tjBtnClick(1)">本周</text>
|
|
|
|
- <text :class="{active: tjBtn == 2}" @click="tjBtnClick(2)">本月</text>
|
|
|
|
- <text :class="{active: tjBtn == 0}" @click="tjBtnClick(0)">全部</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="tj-num-box">{{indexInfoData.bzCount}}/{{indexInfoData.jzCount}}</view>
|
|
|
|
- <view class="tj-tip-box">考证人员/家政人员</view>
|
|
|
|
|
|
+ <view class="index-banner-default" v-if="!swiperInfo.length>0"></view>
|
|
|
|
+ <uni-swiper-dot v-else class="shouye-swiper-box" :info="swiperInfo" :current="current" field="content" mode="dot" :dots-styles="dotStyle">
|
|
|
|
+ <swiper class="swiper-box" @change="change" >
|
|
|
|
+ <!-- autoplay circular interval="3000" -->
|
|
|
|
+ <swiper-item v-for="(item ,index) in swiperInfo" :key="index">
|
|
|
|
+ <img class="index-banner-img" :src="item.pic" @click="gotoKc(item)"/>
|
|
|
|
+ </swiper-item>
|
|
|
|
+ </swiper>
|
|
|
|
+ </uni-swiper-dot>
|
|
|
|
+ <view class="tj-btn-box">
|
|
|
|
+ <text :class="{active: tjBtn == 1}" @click="tjBtnClick(1)">本周</text>
|
|
|
|
+ <text :class="{active: tjBtn == 2}" @click="tjBtnClick(2)">本月</text>
|
|
|
|
+ <text :class="{active: tjBtn == 0}" @click="tjBtnClick(0)">全部</text>
|
|
</view>
|
|
</view>
|
|
- <view class="index-tongzhi-box" @click="goToPage('tz')">
|
|
|
|
- <text class="tongzhi-num">{{tzNum}}</text>
|
|
|
|
- <rich-text :nodes="tzContent" class="tongzhi-content"></rich-text>
|
|
|
|
- <icon></icon>
|
|
|
|
|
|
+ <view class="index-tj-row">
|
|
|
|
+ <view class="index-tj-box">
|
|
|
|
+ <view class="tj-num-box">{{indexInfoData.bzCount}}/{{indexInfoData.jzCount}}</view>
|
|
|
|
+ <view class="tj-tip-box">考证人员/家政人员</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="index-tongzhi-box" @click="goToPage('tz')">
|
|
|
|
+ <text class="tongzhi-num">{{tzNum}}</text>
|
|
|
|
+ <rich-text :nodes="tzContent" class="tongzhi-content"></rich-text>
|
|
|
|
+ <icon></icon>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="card-list-box">
|
|
<view class="card-list-box">
|
|
<view class="card-list-title">管理家政人员</view>
|
|
<view class="card-list-title">管理家政人员</view>
|
|
@@ -54,29 +65,55 @@
|
|
import {onLoad,onShow} from '@dcloudio/uni-app';
|
|
import {onLoad,onShow} from '@dcloudio/uni-app';
|
|
import {reactive,ref} from "vue";
|
|
import {reactive,ref} from "vue";
|
|
import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
|
|
import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
|
|
-import {getAppNoticeList,getAppNoticeWait,getGlIndexInfo} from '@/api/shouye.js'
|
|
|
|
|
|
+import {getAppNoticeList,getAppNoticeWait,getGlIndexInfo,getIndexKechengList} from '@/api/shouye.js'
|
|
|
|
|
|
const tjBtn = ref(1);
|
|
const tjBtn = ref(1);
|
|
const tzNum = ref(0);
|
|
const tzNum = ref(0);
|
|
const tzContent = ref('');
|
|
const tzContent = ref('');
|
|
const searchType = ref('');
|
|
const searchType = ref('');
|
|
|
|
+const current = ref(0);
|
|
let indexInfoData = reactive({
|
|
let indexInfoData = reactive({
|
|
searchType:1,
|
|
searchType:1,
|
|
bzCount: 0,
|
|
bzCount: 0,
|
|
jzCount: 0,
|
|
jzCount: 0,
|
|
jzName: '',
|
|
jzName: '',
|
|
});
|
|
});
|
|
|
|
+const swiperInfo = ref([]);
|
|
|
|
+const dotStyle = reactive({
|
|
|
|
+ width:'8',
|
|
|
|
+ height:'8',
|
|
|
|
+ bottom:'-12',
|
|
|
|
+ backgroundColor: 'rgba(226,230,236)',
|
|
|
|
+ border: '1px rgb(226,230,236) solid',
|
|
|
|
+ selectedBackgroundColor: 'rgb(92, 192, 147)',
|
|
|
|
+ selectedBorder: '1px rgb(92, 192, 147) solid'
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+function change(e) {
|
|
|
|
+ current.value = e.detail.current
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+function gotoKc(item){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/admin/Kecheng/study?kcId=${item.kcId}&from=shouye`
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
initPage();
|
|
initPage();
|
|
})
|
|
})
|
|
|
|
|
|
function initPage() {
|
|
function initPage() {
|
|
|
|
+ getKcTg();
|
|
getTzNum();
|
|
getTzNum();
|
|
getTzlist();
|
|
getTzlist();
|
|
getIndexInfo();
|
|
getIndexInfo();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+function getKcTg(){
|
|
|
|
+ getIndexKechengList({}).then(res => {
|
|
|
|
+ swiperInfo.value = res.data.data;
|
|
|
|
+ })
|
|
|
|
+}
|
|
function getTzNum(){
|
|
function getTzNum(){
|
|
getAppNoticeWait({}).then(res => {
|
|
getAppNoticeWait({}).then(res => {
|
|
tzNum.value = res.data;
|
|
tzNum.value = res.data;
|