|
@@ -1,18 +1,20 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="work-container">
|
|
<view class="work-container">
|
|
|
<!-- 轮播图 -->
|
|
<!-- 轮播图 -->
|
|
|
|
|
+ <view style="padding:0 26rpx;">
|
|
|
<uni-swiper-dot class="uni-swiper-dot-box" :info="data" :current="current" field="content">
|
|
<uni-swiper-dot class="uni-swiper-dot-box" :info="data" :current="current" field="content">
|
|
|
<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
|
|
<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
|
|
|
<swiper-item v-for="(item, index) in data" :key="index">
|
|
<swiper-item v-for="(item, index) in data" :key="index">
|
|
|
<view class="swiper-item" @click="clickBannerItem(item)">
|
|
<view class="swiper-item" @click="clickBannerItem(item)">
|
|
|
- <image :src="item.image" mode="aspectFill" :draggable="false" />
|
|
|
|
|
|
|
+ <image :src="item.image" mode="aspectFill" :draggable="false" style="border-radius: 12rpx" />
|
|
|
</view>
|
|
</view>
|
|
|
</swiper-item>
|
|
</swiper-item>
|
|
|
</swiper>
|
|
</swiper>
|
|
|
</uni-swiper-dot>
|
|
</uni-swiper-dot>
|
|
|
|
|
+ </view>
|
|
|
<view style="box-sizing: border-box;margin-top:20rpx;padding:0 20rpx">
|
|
<view style="box-sizing: border-box;margin-top:20rpx;padding:0 20rpx">
|
|
|
|
|
|
|
|
- <view class="grid-item-box" v-if="hasRole(['admin'])" @click="goPage('user')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" v-if="hasRole(['admin'])" @click="goPage('user')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/user.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/user.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -22,7 +24,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('deptuser')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('deptuser')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/user.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/user.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -32,7 +34,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('device')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('device')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/device.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/device.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -43,7 +45,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="grid-item-box" @click="goPage('wifi')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" @click="goPage('wifi')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/wifi.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/wifi.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -53,7 +55,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="grid-item-box" v-if="isCompanyUser()" @click="scanCode()" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" v-if="isCompanyUser()" @click="scanCode()" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/bind.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/bind.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -64,7 +66,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="grid-item-box" v-if="hasRole(['admin'])" @click="goPage('scan')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" v-if="hasRole(['admin'])" @click="goPage('scan')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/bind.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/bind.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -75,7 +77,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="grid-item-box" @click="watchDevice" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" @click="watchDevice" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/scan.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/scan.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -86,7 +88,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('alert')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('alert')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/alert.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/alert.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -97,7 +99,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('alert')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" v-if="isCompanyUser()" @click="goPage('alert')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/error.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/error.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -107,7 +109,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="grid-item-box" @click="goPage('reset')" v-if="hasRole(['admin'])" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" @click="goPage('reset')" v-if="hasRole(['admin'])" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/reset.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/reset.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -118,7 +120,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="grid-item-box" @click="goPage('time')" style="background-image: url('/static/images/icons/bg.png');background-size: 100% 100%">
|
|
|
|
|
|
|
+ <view class="grid-item-box" @click="goPage('time')" style="background-image: url('https://hyscancode.oss-cn-hangzhou.aliyuncs.com/jianyaoji/images/icons/bg.png');background-size: 100% 100%">
|
|
|
<view class="grid-image">
|
|
<view class="grid-image">
|
|
|
<u-image :showLoading="true" src="/static/images/icons/rank.png" width="80rpx" height="80rpx" ></u-image>
|
|
<u-image :showLoading="true" src="/static/images/icons/rank.png" width="80rpx" height="80rpx" ></u-image>
|
|
|
</view>
|
|
</view>
|
|
@@ -159,7 +161,7 @@ export default {
|
|
|
show:false,
|
|
show:false,
|
|
|
scanDevice:{},
|
|
scanDevice:{},
|
|
|
data: [{
|
|
data: [{
|
|
|
- image: '/static/images/banner/banner01.jpg'
|
|
|
|
|
|
|
+ image: '/static/images/banner/banner01.png'
|
|
|
},
|
|
},
|
|
|
// {
|
|
// {
|
|
|
// image: '/static/images/banner/banner02.jpg'
|
|
// image: '/static/images/banner/banner02.jpg'
|