打包配置

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 = http://112.29.103.165:1616
# VITE_API_BASE_URL = /api
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": { "node_modules/uview-plus": {
"version": "3.4.65", "version": "3.5.25",
"resolved": "https://repo.huaweicloud.com/repository/npm/uview-plus/-/uview-plus-3.4.65.tgz", "resolved": "https://repo.huaweicloud.com/repository/npm/uview-plus/-/uview-plus-3.5.25.tgz",
"integrity": "sha512-SXk3CgvO+v6XNTPe8g5RrEOfebgQRHHnrsn55wTz5y1s1VE2tORvqlVjAfzvfv0udSgioeq5a4227LHcDSN3QQ==", "integrity": "sha512-Z7gCtZA45qXNT8b8IEUjrb0Y++bVauK1SLv4iz/1WjIfNd++Sq7dPIsTNS9NyTwIZqJiVpnE3HqkykqIhTNCAw==",
"dependencies": { "dependencies": {
"clipboard": "^2.0.11", "clipboard": "^2.0.11",
"dayjs": "^1.11.3" "dayjs": "^1.11.3"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@ import { http } from '@/utils/http'
export const checkPasswordApi = (data) => { export const checkPasswordApi = (data) => {
return http({ return http({
method: 'POST', method: 'POST',
url: '/bmw/workerLight/getWorkerAttList', url: '/bmw/app/validatePassword',
data, data,
}) })
} }
@ -12,7 +12,7 @@ export const checkPasswordApi = (data) => {
export const editPasswordApi = (data) => { export const editPasswordApi = (data) => {
return http({ return http({
method: 'POST', method: 'POST',
url: '/bmw/workerLight/getWorkerAttListById', url: '/bmw/app/updatePassword',
data, 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': { '/api': {
// target: 'http://112.29.103.165:1616', // 测试环境 // target: 'http://112.29.103.165:1616', // 测试环境
// target: 'http://192.168.0.133:58080', // 梁超 // target: 'http://192.168.0.133:58080', // 梁超
target: 'http://192.168.0.14:1999/hd-realname/prod-api', // 测试环境 // target: 'http://192.168.0.14:1999/hd-realname/prod-api', // 测试环境
// target: 'http://192.168.0.234:38080', // 方亮 target: 'http://192.168.0.234:38080', // 方亮
changeOrigin: true, changeOrigin: true,
rewrite: (path) => { rewrite: (path) => {
return path.replace(/\/api/, '') return path.replace(/\/api/, '')