打包配置

This commit is contained in:
BianLzhaoMin 2025-08-29 18:11:56 +08:00
parent 949ddb2096
commit 69fca571ab
34 changed files with 170 additions and 133 deletions

View File

@ -1,3 +1,4 @@
# VITE_API_BASE_URL = http://112.29.103.165:1616
# VITE_API_BASE_URL = /api
VITE_API_BASE_URL = /api
# VITE_API_BASE_URL = http://192.168.0.14:1999/hd-realname/prod-api
# VITE_API_BASE_URL = http://192.168.0.234:38080

View File

@ -1 +1 @@
VITE_API_BASE_URL = http://192.168.1.175:58080
VITE_API_BASE_URL = http://192.168.0.14:1999/hd-realname/prod-api

6
package-lock.json generated
View File

@ -12004,9 +12004,9 @@
}
},
"node_modules/uview-plus": {
"version": "3.4.65",
"resolved": "https://repo.huaweicloud.com/repository/npm/uview-plus/-/uview-plus-3.4.65.tgz",
"integrity": "sha512-SXk3CgvO+v6XNTPe8g5RrEOfebgQRHHnrsn55wTz5y1s1VE2tORvqlVjAfzvfv0udSgioeq5a4227LHcDSN3QQ==",
"version": "3.5.25",
"resolved": "https://repo.huaweicloud.com/repository/npm/uview-plus/-/uview-plus-3.5.25.tgz",
"integrity": "sha512-Z7gCtZA45qXNT8b8IEUjrb0Y++bVauK1SLv4iz/1WjIfNd++Sq7dPIsTNS9NyTwIZqJiVpnE3HqkykqIhTNCAw==",
"dependencies": {
"clipboard": "^2.0.11",
"dayjs": "^1.11.3"

View File

@ -1,15 +1,25 @@
<script>
export default {
onLaunch: function () {
console.log('App Launch')
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
},
}
<script setup>
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
onLaunch(() => {
console.log('App Launch')
uni.loadFontFace({
family: 'uicon-iconfont',
source: 'url("https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf")',
global: true,
success: (success) => {
console.log('Font loaded successfully', success)
},
fail: (fail) => {
console.log('Font loading failed', fail)
},
})
})
onShow(() => {
console.log('App Show')
})
onHide(() => {
console.log('App Hide')
})
</script>
<style lang="scss">

View File

@ -142,7 +142,7 @@
</template>
<script setup name="contractForm">
import { ref, defineExpose, watch } from 'vue'
import { ref, watch } from 'vue'
const contractFormRef = ref(null) // ref
const dateType = ref(1) // 1: 2:

View File

@ -147,7 +147,7 @@
</template>
<script setup name="keyInfoForm">
import { ref, defineExpose, onMounted, watch } from 'vue'
import { ref, onMounted, watch } from 'vue'
import {
getPostTypeSelectListAPI,
getSubSelectListByConditionAPI,

View File

@ -152,7 +152,7 @@
</template>
<script setup name="personIdCardForm">
import { ref, defineExpose, watch } from 'vue'
import { ref, watch } from 'vue'
const idCardFormRef = ref(null) // ref
const idCardModel = ref({
age: '',

View File

@ -87,7 +87,7 @@
</template>
<script setup name="wageCardForm">
import { ref, defineExpose, watch } from 'vue'
import { ref, watch } from 'vue'
const wageCardFormRef = ref(null) // ref

View File

@ -5,8 +5,19 @@ import uviewPlus from 'uview-plus'
import './static/index.scss'
export function createApp() {
const app = createSSRApp(App)
app.use(uviewPlus)
app.use(pinia)
// app.use(uviewPlus)
app.use(uviewPlus, () => {
// 注意这里是一个函数
return {
options: {
config: {
loadFontOnce: false,
},
},
}
})
return {
app,
}

View File

@ -1,34 +1,34 @@
{
"name": "实名制管理系统",
"appid": "__UNI__0A021AF",
"description": "实名制管理系统",
"versionName": "1.0.0",
"versionCode": 100,
"transformPx": false,
"name" : "实名制管理系统",
"appid" : "__UNI__0A021AF",
"description" : "实名制管理系统",
"versionName" : "1.0.0",
"versionCode" : 100,
"transformPx" : false,
/* 5+App */
"app-plus": {
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"compatible": {
"ignoreVersion": true //trueHBuilderX1.9.0
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"compatible" : {
"ignoreVersion" : true //trueHBuilderX1.9.0
},
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
/* */
"modules": {
"Barcode": {},
"Camera": {}
"modules" : {
"Barcode" : {},
"Camera" : {}
},
/* */
"distribute": {
"distribute" : {
/* android */
"android": {
"permissions": [
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
@ -48,106 +48,106 @@
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>"
],
"minSdkVersion": 24,
"abiFilters": ["armeabi-v7a"]
"minSdkVersion" : 24,
"abiFilters" : [ "armeabi-v7a" ]
},
"webview": {
"allowFileAccess": true,
"allowUniversalAccessFromFileURLs": true
"webview" : {
"allowFileAccess" : true,
"allowUniversalAccessFromFileURLs" : true
},
/* ios */
"ios": {
"permissions": {
"WRITE_EXTERNAL_STORAGE": {
"description": "允许应用保存文件到外部存储",
"permission": "YES"
"ios" : {
"permissions" : {
"WRITE_EXTERNAL_STORAGE" : {
"description" : "允许应用保存文件到外部存储",
"permission" : "YES"
},
"READ_EXTERNAL_STORAGE": {
"description": "允许应用从外部存储读取文件",
"permission": "YES"
"READ_EXTERNAL_STORAGE" : {
"description" : "允许应用从外部存储读取文件",
"permission" : "YES"
}
},
"urlschemewhitelist": ["baidumap", "iosamap"],
"dSYMs": false,
"privacyDescription": {
"NSAppleMusicUsageDescription": "该应用需要访问您的媒体资料,以便为您编辑个人信息",
"NSPhotoLibraryUsageDescription": "该应用需要读取您的相册,以便为您编辑个人信息,更新头像设置",
"NSPhotoLibraryAddUsageDescription": "该应用需要读取您的相册,以便为您编辑个人信息,更新头像设置",
"NSCameraUsageDescription": "该应用需要您的相机,以便您拍摄上传个人信息,更新头像设置,验证是否为本人",
"NSMicrophoneUsageDescription": "",
"NSLocationWhenInUseUsageDescription": "该应用需要您的位置信息,以便为您编辑个人信息",
"NSLocationAlwaysUsageDescription": "该应用需要您的位置信息,以便为您编辑个人信息",
"NSLocationAlwaysAndWhenInUseUsageDescription": "该应用需要您的位置信息,以便为您编辑个人信息",
"NSCalendarsUsageDescription": "该应用需要您的日历,以便为您编辑个人信息",
"NSContactsUsageDescription": "",
"NSLocalNetworkUsageDescription": "该应用需要您的网络,以便为您编辑个人信息"
"urlschemewhitelist" : [ "baidumap", "iosamap" ],
"dSYMs" : false,
"privacyDescription" : {
"NSAppleMusicUsageDescription" : "该应用需要访问您的媒体资料,以便为您编辑个人信息",
"NSPhotoLibraryUsageDescription" : "该应用需要读取您的相册,以便为您编辑个人信息,更新头像设置",
"NSPhotoLibraryAddUsageDescription" : "该应用需要读取您的相册,以便为您编辑个人信息,更新头像设置",
"NSCameraUsageDescription" : "该应用需要您的相机,以便您拍摄上传个人信息,更新头像设置,验证是否为本人",
"NSMicrophoneUsageDescription" : "",
"NSLocationWhenInUseUsageDescription" : "该应用需要您的位置信息,以便为您编辑个人信息",
"NSLocationAlwaysUsageDescription" : "该应用需要您的位置信息,以便为您编辑个人信息",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "该应用需要您的位置信息,以便为您编辑个人信息",
"NSCalendarsUsageDescription" : "该应用需要您的日历,以便为您编辑个人信息",
"NSContactsUsageDescription" : "",
"NSLocalNetworkUsageDescription" : "该应用需要您的网络,以便为您编辑个人信息"
},
"idfa": false
"idfa" : false
},
/* SDK */
"sdkConfigs": {
"maps": {}
"sdkConfigs" : {
"maps" : {}
},
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios": {
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
}
}
},
/* */
"quickapp": {},
"quickapp" : {},
/* */
"mp-weixin": {
"appid": "",
"setting": {
"urlCheck": false
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : false
},
"usingComponents": true,
"mergeVirtualHostAttributes": true
"usingComponents" : true,
"mergeVirtualHostAttributes" : true
},
"mp-alipay": {
"usingComponents": true
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu": {
"usingComponents": true
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao": {
"usingComponents": true,
"mergeVirtualHostAttributes": true
"mp-toutiao" : {
"usingComponents" : true,
"mergeVirtualHostAttributes" : true
},
"uniStatistics": {
"enable": false
"uniStatistics" : {
"enable" : false
},
"vueVersion": "3",
"h5": {
"title": ""
"vueVersion" : "3",
"h5" : {
"title" : ""
}
}

View File

@ -38,6 +38,7 @@
<script setup name="Attendance">
import { ref, onMounted, onBeforeUnmount } from 'vue'
import { useCommonStore } from '@/stores'
import dayjs from 'dayjs'
const commonStore = useCommonStore()
const currentTime = ref('') //
const timeInterval = ref(null) //
@ -45,7 +46,10 @@ const activeProjectName = ref('') // 当前选择的工程名称
onMounted(() => {
timeInterval.value = setInterval(() => {
currentTime.value = new Date().toLocaleTimeString()
// currentTime.value = new Date().toLocaleTimeString()
//
currentTime.value = dayjs().format('HH:mm:ss')
}, 1000)
})

View File

@ -214,7 +214,10 @@ const onHandleNext = () => {
editPasswordModel.value.oldPassword,
)
//
const res = await checkPasswordApi({ oldP: editPasswordModel.value.oldPassword })
const res = await checkPasswordApi({
phonenumber: editPasswordModel.value.username,
oldPassword: editPasswordModel.value.oldPassword,
})
console.log(
'%c🔍 校验原密码请求出参 %c',
'background: linear-gradient(90deg, #FF6B6B, #4ECDC4); color: white; padding: 5px 10px; border-radius: 5px; font-weight: bold;',

View File

@ -1,6 +1,6 @@
<template>
<!-- 我的 -->
<view class="my-container">
<view class="my-container app-container" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
<view class="my-info">
<up-image
width="52"
@ -106,6 +106,8 @@ const switchProjectShow = ref(false)
const searchProjectValue = ref('')
const activeProjectId = ref('')
const activeProjectName = ref('')
const { safeAreaInsets } = uni.getSystemInfoSync()
const userInfo = ref(memberStore.userInfo || {})
const projectList = ref([])
@ -201,9 +203,9 @@ onMounted(() => {
<style lang="scss" scoped>
.my-container {
height: 100%;
display: flex;
flex-direction: column;
// height: 100%;
// display: flex;
// flex-direction: column;
background-color: #f0f2f5;
.my-info {

View File

@ -4,7 +4,10 @@
<NavBarModal :navBarTitle="navBarTitle" />
<view
class="add-person-container"
:style="{ paddingBottom: nextBtnHeight + 'px', paddingTop: paddingTop + 'px' }"
:style="{
paddingBottom: nextBtnHeight + 'px',
paddingTop: safeAreaInsets?.top + paddingTop + 'px',
}"
>
<!-- 步骤条 -->
<view>
@ -60,12 +63,14 @@
<script setup name="addAndEditPerson">
import { ref, onMounted, nextTick } from 'vue'
import { getPersonInfoByIdAPI, updatePersonLightStatusApi } from '@/services/person-entry'
import PersonIdCardForm from '@/components/PersonIdCardForm/index.vue'
import KeyInfoForm from '@/components/KeyInfoForm/index.vue'
import ContractForm from '@/components/ContractForm/index.vue'
import WageCardForm from '@/components/WageCardForm/index.vue'
import NavBarModal from '@/components/NavBarModal/index.vue'
import { onLoad } from '@dcloudio/uni-app'
const { safeAreaInsets } = uni.getSystemInfoSync()
const navBarTitle = ref('新增人员信息')
const currentStep = ref(0) //
const nextBtnRef = ref(null) // ref

View File

@ -86,11 +86,12 @@ onMounted(() => {
box-sizing: border-box;
.my-project-title {
// margin-bottom: 20rpx;
font-size: 18px;
font-weight: bold;
color: #333;
padding: 14rpx 0;
border-bottom: 1px solid #e5e5e5;
// border-bottom: 1px solid #e5e5e5;
text-align: center;
}

View File

@ -4,7 +4,7 @@ import { http } from '@/utils/http'
export const checkPasswordApi = (data) => {
return http({
method: 'POST',
url: '/bmw/workerLight/getWorkerAttList',
url: '/bmw/app/validatePassword',
data,
})
}
@ -12,7 +12,7 @@ export const checkPasswordApi = (data) => {
export const editPasswordApi = (data) => {
return http({
method: 'POST',
url: '/bmw/workerLight/getWorkerAttListById',
url: '/bmw/app/updatePassword',
data,
})
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 607 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 833 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -10,8 +10,8 @@ export default defineConfig({
'/api': {
// target: 'http://112.29.103.165:1616', // 测试环境
// target: 'http://192.168.0.133:58080', // 梁超
target: 'http://192.168.0.14:1999/hd-realname/prod-api', // 测试环境
// target: 'http://192.168.0.234:38080', // 方亮
// target: 'http://192.168.0.14:1999/hd-realname/prod-api', // 测试环境
target: 'http://192.168.0.234:38080', // 方亮
changeOrigin: true,
rewrite: (path) => {
return path.replace(/\/api/, '')