打包配置

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 () {
<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)
},
onShow: function () {
fail: (fail) => {
console.log('Font loading failed', fail)
},
})
})
onShow(() => {
console.log('App Show')
},
onHide: function () {
})
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

@ -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/, '')