修改样式
This commit is contained in:
@@ -4,5 +4,5 @@ export const AGREEWELCOME_KEY="agreewelcome";
|
|||||||
// clientId 默认写2
|
// clientId 默认写2
|
||||||
export const CLIENT_ID="2";
|
export const CLIENT_ID="2";
|
||||||
// #区分内外网 //1-内网,2-外网
|
// #区分内外网 //1-内网,2-外网
|
||||||
export const NETWORK_ENV=2;
|
export const NETWORK_ENV=1;
|
||||||
|
|
||||||
|
|||||||
@@ -296,6 +296,7 @@ const inputRefs = ref([]);
|
|||||||
const activeIndex = ref(0);//初始化焦点
|
const activeIndex = ref(0);//初始化焦点
|
||||||
let authCode = ref('')
|
let authCode = ref('')
|
||||||
const handleInput = (index, event) => {
|
const handleInput = (index, event) => {
|
||||||
|
activeIndex.value = index;
|
||||||
// 只允许数字输入
|
// 只允许数字输入
|
||||||
const value = event.detail.value.replace(/\D/g, '')
|
const value = event.detail.value.replace(/\D/g, '')
|
||||||
codes.value[index] = value
|
codes.value[index] = value
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<!-- 待办内容 -->
|
<!-- 待办内容 -->
|
||||||
<view class="backlog-bg">
|
<view class="backlog-bg">
|
||||||
<view class="backlog-b-item">
|
<view class="backlog-b-item" @click="handleJump('/pages/notice/notice',1)">
|
||||||
<view class="font-number">{{ backBlogObj.count1 }}</view>
|
<view class="font-number">{{ backBlogObj.count1 }}</view>
|
||||||
<view class="font-title">待办</view>
|
<view class="font-title">待办</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -326,12 +326,16 @@ const getCommonServices = async ()=>{
|
|||||||
let data = await getUserFavorite({});
|
let data = await getUserFavorite({});
|
||||||
commonServiceList.value = data || []
|
commonServiceList.value = data || []
|
||||||
}
|
}
|
||||||
// 跳转
|
// 跳转 type:1-tabbar
|
||||||
let handleJump=(url)=>{
|
let handleJump=(url,type)=>{
|
||||||
if(url){
|
if(url){
|
||||||
|
if(type==1){
|
||||||
|
uni.switchTab({url});
|
||||||
|
}else{
|
||||||
uni.navigateTo({ url })
|
uni.navigateTo({ url })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 添加常用服务
|
// 添加常用服务
|
||||||
const handleAddCommonSercice = ()=>{
|
const handleAddCommonSercice = ()=>{
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container" :style="{ height: `100vh` }">
|
<view class="container" :style="{ height: `100vh` }">
|
||||||
<view class="bg"></view>
|
<view class="bg">
|
||||||
|
<view class="env-txt" v-if="networkEnv==1">企业内网</view>
|
||||||
|
</view>
|
||||||
<view class="version">Version {{ appVersion }}</view>
|
<view class="version">Version {{ appVersion }}</view>
|
||||||
<!-- <view class="bottom-bg"></view> -->
|
<!-- <view class="bottom-bg"></view> -->
|
||||||
|
|
||||||
@@ -29,6 +31,7 @@ import {showAlert} from '@/utils/message.js'
|
|||||||
import { useUserStore } from '@/stores/user';
|
import { useUserStore } from '@/stores/user';
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
const networkEnv = ref(proxy.$NETWORK_ENV);//1-内网 2-外网
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// 获取 存储手机的module
|
// 获取 存储手机的module
|
||||||
@@ -58,13 +61,13 @@ onLoad(async(opt) => {
|
|||||||
if(!versionVisible.value){
|
if(!versionVisible.value){
|
||||||
try {
|
try {
|
||||||
// 授权设备存储
|
// 授权设备存储
|
||||||
let granted = requestAndroidPermission(systemInfo);
|
// let granted = requestAndroidPermission(systemInfo);
|
||||||
if(granted){
|
// if(granted){
|
||||||
// showAlert("22授权成功!")
|
// showAlert("22授权成功!")
|
||||||
setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
selectDeviceId();
|
selectDeviceId();
|
||||||
},500)
|
// },500)
|
||||||
}
|
// }
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('权限请求出错:', error);
|
console.error('权限请求出错:', error);
|
||||||
// showAlert(JSON.stringify(error))
|
// showAlert(JSON.stringify(error))
|
||||||
@@ -100,12 +103,7 @@ const getOSVesion = async()=>{
|
|||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
verNumber : systemInfo.appVersion,
|
verNumber : systemInfo.appVersion,
|
||||||
// #endif
|
// #endif
|
||||||
// deviceType:systemInfo.model,//型号
|
|
||||||
os: formatIOS(systemInfo.osName),//操作系统 Android IOS
|
os: formatIOS(systemInfo.osName),//操作系统 Android IOS
|
||||||
// osVersion:systemInfo.osVersion,//操作系统版本
|
|
||||||
// resolution:systemInfo.windowWidth+"*"+systemInfo.windowHeight,//分辨率
|
|
||||||
// trademark:systemInfo.deviceBrand,//设备品牌
|
|
||||||
// uniqueCode:systemInfo.deviceId//设备ID
|
|
||||||
}
|
}
|
||||||
// 当前手机版本
|
// 当前手机版本
|
||||||
appVersion.value = param.verNumber;
|
appVersion.value = param.verNumber;
|
||||||
@@ -137,10 +135,11 @@ const selectDeviceId = async()=>{
|
|||||||
// let deviceId = uni.getStorageSync('app_device_id');// 本地设备ID
|
// let deviceId = uni.getStorageSync('app_device_id');// 本地设备ID
|
||||||
try {
|
try {
|
||||||
safeSave.getSafeFile({ "key": "app_device_id" }, res2 => {
|
safeSave.getSafeFile({ "key": "app_device_id" }, res2 => {
|
||||||
|
// showAlert(JSON.stringify(res2));
|
||||||
if (res2.code == 1) {
|
if (res2.code == 1) {
|
||||||
let deviceId = res2.data;
|
let deviceId = res2.data;
|
||||||
console.log("读取成功=>",deviceId)
|
|
||||||
// showAlert("读取成功=>"+deviceId);
|
// showAlert("读取成功=>"+deviceId);
|
||||||
|
if(deviceId!=""){
|
||||||
getBindStatus({uniqCode:deviceId}).then(res=>{
|
getBindStatus({uniqCode:deviceId}).then(res=>{
|
||||||
let bindStatus = res.bindStatus
|
let bindStatus = res.bindStatus
|
||||||
// setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
@@ -165,12 +164,15 @@ const selectDeviceId = async()=>{
|
|||||||
// },1000)
|
// },1000)
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
// showAlert('读取失败:'+res2.msg)
|
|
||||||
// setTimeout(()=>{
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/deviceAuth/deviceAuth',
|
url: '/pages/deviceAuth/deviceAuth',
|
||||||
});
|
});
|
||||||
// },1000)
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/deviceAuth/deviceAuth',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -206,12 +208,22 @@ const handleClose=()=>{
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding-top:100px;
|
padding-top:100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container .bg{
|
.container .bg{
|
||||||
background:url('@/static/images/loading-logo.png') no-repeat;
|
background:url('@/static/images/loading-logo.png') no-repeat;
|
||||||
background-size:700rpx 800rpx;
|
background-size:700rpx 800rpx;
|
||||||
width: 700rpx;
|
width: 700rpx;
|
||||||
height: 800rpx;
|
height: 800rpx;
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.container .bg .env-txt{
|
||||||
|
position: absolute;
|
||||||
|
right: 35rpx;
|
||||||
|
top:10rpx;
|
||||||
|
color:#fff;
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.container .version{
|
.container .version{
|
||||||
color:#A8D4FF;
|
color:#A8D4FF;
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
<view class="login-con">
|
<view class="login-con">
|
||||||
<view :style="{height: navBarPaddingTop + 'px'}"></view>
|
<view :style="{height: navBarPaddingTop + 'px'}"></view>
|
||||||
<image mode="aspectFit" src="../../static/images/pic-logo.png" class="login-logo"></image>
|
<image mode="aspectFit" src="../../static/images/pic-logo.png" class="login-logo"></image>
|
||||||
<view class="login-title">欢迎来到718友晟</view>
|
<view class="login-title" v-if="networkEnv==1"><text>718友晟</text><text>企业内网</text></view>
|
||||||
|
<view class="login-title" v-else>欢迎来到718友晟</view>
|
||||||
<view class="login-tab">
|
<view class="login-tab">
|
||||||
<customTabs v-model="activeTab" :tabs="tabList" :modelValue="activeTab">
|
<customTabs v-model="activeTab" :tabs="tabList" :modelValue="activeTab">
|
||||||
<!-- 验证码登录 -->
|
<!-- 验证码登录 -->
|
||||||
@@ -257,7 +258,7 @@ const submitForm = () => {
|
|||||||
param.runEnv = networkEnv.value;
|
param.runEnv = networkEnv.value;
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
param.uniqCode = '7666ac20-827a-4c23-8e2e-fbbf24564fc0';//h5测试用 内网-sn123456 外网-7666ac20-827a-4c23-8e2e-fbbf24564fc0
|
param.uniqCode = 'b6ffbbfb-5b2d-4640-af3a-e43d0158eaf9';//h5测试用 内网-sn123456 外网-b6ffbbfb-5b2d-4640-af3a-e43d0158eaf9
|
||||||
let res = await login(param);
|
let res = await login(param);
|
||||||
userStore.login(res);
|
userStore.login(res);
|
||||||
uni.switchTab({ url: '/pages/home/home' })
|
uni.switchTab({ url: '/pages/home/home' })
|
||||||
@@ -329,6 +330,12 @@ const submitForm = () => {
|
|||||||
margin: 0 0 35rpx 70rpx;
|
margin: 0 0 35rpx 70rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login-con .login-title text:not(:last-child)::after {
|
||||||
|
content: "·";
|
||||||
|
margin: 0 10px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
:deep(.login-tab .tabs-header) {
|
:deep(.login-tab .tabs-header) {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
border-bottom: none !important;
|
border-bottom: none !important;
|
||||||
|
|||||||
@@ -2,14 +2,18 @@
|
|||||||
<view class="con-body">
|
<view class="con-body">
|
||||||
<view class="con-bg">
|
<view class="con-bg">
|
||||||
|
|
||||||
|
<!-- 头部 -->
|
||||||
|
<customHeader ref="customHeaderRef" :title="myTitle"
|
||||||
|
:leftFlag="false" :rightFlag="false"
|
||||||
|
></customHeader>
|
||||||
|
<!-- 高度来避免头部遮挡 -->
|
||||||
|
<view class="top-height"></view>
|
||||||
|
|
||||||
<!-- 下拉刷新 -->
|
<!-- 下拉刷新 -->
|
||||||
<mescroll-uni ref="mescrollRef" @init="mescrollInit"
|
<mescroll-uni ref="mescrollRef" @init="mescrollInit"
|
||||||
:down="downOption" @down="downCallback"
|
:down="downOption" @down="downCallback"
|
||||||
:fixed="false" class="scroll-h" :style="{ paddingTop: navBarPaddingTop + 'px' }"
|
:fixed="false" class="scroll-h"
|
||||||
>
|
>
|
||||||
<!-- #ifdef H5 -->
|
|
||||||
<view style="height:50rpx"></view>
|
|
||||||
<!-- #endif -->
|
|
||||||
<!-- 头像 -->
|
<!-- 头像 -->
|
||||||
<view class="head-pic">
|
<view class="head-pic">
|
||||||
<img class="pic-img" :src="'static/images/userinfo/icon-userinfo.png'" />
|
<img class="pic-img" :src="'static/images/userinfo/icon-userinfo.png'" />
|
||||||
@@ -93,7 +97,6 @@
|
|||||||
<!-- <view class="bottom-height"></view> -->
|
<!-- <view class="bottom-height"></view> -->
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 弹窗模板 -->
|
<!-- 弹窗模板 -->
|
||||||
<!-- <customShowModal
|
<!-- <customShowModal
|
||||||
:title="title"
|
:title="title"
|
||||||
@@ -109,6 +112,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted,getCurrentInstance } from 'vue'
|
import { ref, onMounted,getCurrentInstance } from 'vue'
|
||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
|
import customHeader from '@/components/customHeader.vue'
|
||||||
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
||||||
import { getNavBarPaddingTop } from '@/utils/system.js'
|
import { getNavBarPaddingTop } from '@/utils/system.js'
|
||||||
import { getUserInfo,versionCheck } from '@/api/auth.js'
|
import { getUserInfo,versionCheck } from '@/api/auth.js'
|
||||||
@@ -117,6 +121,11 @@ import { showAlert } from '@/utils/message.js'
|
|||||||
import { useUserStore } from '@/stores/user';
|
import { useUserStore } from '@/stores/user';
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
const networkEnv = ref(proxy.$NETWORK_ENV);//1-内网 2-外网
|
||||||
|
|
||||||
|
let myTitle = '我的';
|
||||||
|
myTitle = networkEnv.value==1?'我的 · 企业内网':'我的'
|
||||||
|
|
||||||
|
|
||||||
// 1.头部导航栏
|
// 1.头部导航栏
|
||||||
const navBarPaddingTop = ref(0);
|
const navBarPaddingTop = ref(0);
|
||||||
@@ -245,10 +254,10 @@ onMounted(() => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.scroll-h{
|
.scroll-h{
|
||||||
/* #ifdef APP-PLUS */
|
/* #ifdef APP-PLUS */
|
||||||
height:calc(100vh - 50px) !important;
|
height:calc(100vh - 78px) !important;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
/* #ifndef APP-PLUS */
|
/* #ifndef APP-PLUS */
|
||||||
height: calc(100vh - 30px) !important;
|
height: calc(100vh - 80px) !important;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
}
|
}
|
||||||
:deep(.mescroll-upwarp){
|
:deep(.mescroll-upwarp){
|
||||||
@@ -256,7 +265,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
.head-pic {
|
.head-pic {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 40rpx 0rpx 10rpx 30rpx;
|
padding: 10rpx 0rpx 10rpx 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head-pic .pic-img {
|
.head-pic .pic-img {
|
||||||
|
|||||||
Reference in New Issue
Block a user