From b57b90eaf5aadf4379098d43e38383f5ebe50c8c Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Mon, 10 Nov 2025 09:07:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=A2=E6=88=B7=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=92=8C=E7=BC=96=E8=BE=91=E7=9A=84ui?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 2 +-
components/customer-detail/InfoTab.vue | 2 +-
.../customer-form/CustomerBasicInfo.vue | 6 +++---
.../customer-form/CustomerOtherInfo.vue | 3 ++-
components/customer-form/CustomerPickers.vue | 6 +++---
jsconfig.json | 20 +++++++++++++++++++
pages/customer/add/index.vue | 2 +-
pages/customer/edit/index.vue | 2 +-
utils/request/index.js | 2 +-
9 files changed, 33 insertions(+), 12 deletions(-)
create mode 100644 jsconfig.json
diff --git a/App.vue b/App.vue
index 1c56512..a7c5b69 100644
--- a/App.vue
+++ b/App.vue
@@ -8,7 +8,7 @@
// 如果还没有 token,则设置一个测试 token
const token = uni.getStorageSync('token')
if (!token) {
- const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI4MDUzOGE0LThjNTQtNGZlMy04NmMwLThhYzhlZmMwMTg1ZCJ9.xalBJnQcnxHsHUVFn46XXamKBPA2RdDtvVvhRQwc7j-lARywOjKMfSqjUiSe8DbWMKt1iBZIz0Z0JDYX7IGb_g'
+ const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImNkYjJlNjM0LTM5M2MtNDk3MC1iNDQ3LTViNGVmYTQ1NzQwYiJ9.oMAFItV_sRDGWu44EwQqT7K6VP7Bz43n-dm00V2UPOwtN0FtFw_4u9TPa993VDcDM0zxDVI_sxS5cjcKcgl1GA'
uni.setStorageSync('token', testToken)
console.log('已设置测试 token:', testToken)
}
diff --git a/components/customer-detail/InfoTab.vue b/components/customer-detail/InfoTab.vue
index 44a8af0..c267622 100644
--- a/components/customer-detail/InfoTab.vue
+++ b/components/customer-detail/InfoTab.vue
@@ -34,7 +34,7 @@
{{ customerDetail.regionName || '--' }}
- 工作微信
+ 微信好友
{{ customerDetail.wechatId || '--' }}
diff --git a/components/customer-form/CustomerBasicInfo.vue b/components/customer-form/CustomerBasicInfo.vue
index 700ceb7..62dd8a3 100644
--- a/components/customer-form/CustomerBasicInfo.vue
+++ b/components/customer-form/CustomerBasicInfo.vue
@@ -78,10 +78,10 @@
›
-
+
{{ formData.workWechat }}
- 选择工作微信
+ 选择微信好友
›
@@ -160,7 +160,7 @@ const getCustomerStatusText = (value) => {
}
.form-input {
- width: 100%;
+
height: 44px;
padding: 0 12px;
font-size: 15px;
diff --git a/components/customer-form/CustomerOtherInfo.vue b/components/customer-form/CustomerOtherInfo.vue
index ffa8ada..6a5fecf 100644
--- a/components/customer-form/CustomerOtherInfo.vue
+++ b/components/customer-form/CustomerOtherInfo.vue
@@ -122,8 +122,9 @@ const updateField = (field, value) => {
}
.form-textarea {
- width: 100%;
+
min-height: 80px;
+ width:auto;
padding: 12px;
font-size: 15px;
color: #333;
diff --git a/components/customer-form/CustomerPickers.vue b/components/customer-form/CustomerPickers.vue
index 6b0d481..26660af 100644
--- a/components/customer-form/CustomerPickers.vue
+++ b/components/customer-form/CustomerPickers.vue
@@ -124,10 +124,10 @@
@change="onRegionChange"
>
-
+
- 选择工作微信
+ 选择微信好友
{
closePicker('customerStatus');
};
-// 工作微信
+// 微信好友
const selectWorkWechat = (value) => {
tempWorkWechat.value = value;
};
diff --git a/jsconfig.json b/jsconfig.json
new file mode 100644
index 0000000..c0771c2
--- /dev/null
+++ b/jsconfig.json
@@ -0,0 +1,20 @@
+{
+ "compilerOptions": {
+ "target": "esnext",
+ "module": "commonjs",
+ "baseUrl": "./",
+ "paths": {
+ "@/*": ["./*"],
+ "~/*": ["./*"]
+ },
+ "lib": ["esnext", "dom"],
+ "types": ["@dcloudio/types"]
+ },
+ "exclude": [
+ "node_modules",
+ "unpackage",
+ "dist",
+ ".hbuilderx",
+ ".idea"
+ ]
+}
\ No newline at end of file
diff --git a/pages/customer/add/index.vue b/pages/customer/add/index.vue
index 796758a..9264c5b 100644
--- a/pages/customer/add/index.vue
+++ b/pages/customer/add/index.vue
@@ -287,7 +287,7 @@ const handleSave = async () => {
.add-customer-page {
display: flex;
flex-direction: column;
- height: 100vh;
+
background-color: #f5f5f5;
}
diff --git a/pages/customer/edit/index.vue b/pages/customer/edit/index.vue
index f43ef94..ca554a6 100644
--- a/pages/customer/edit/index.vue
+++ b/pages/customer/edit/index.vue
@@ -375,7 +375,7 @@ const handleSave = async () => {
.edit-customer-page {
display: flex;
flex-direction: column;
- height: 100vh;
+
background-color: #f5f5f5;
}
diff --git a/utils/request/index.js b/utils/request/index.js
index 7a0e930..878b5dd 100644
--- a/utils/request/index.js
+++ b/utils/request/index.js
@@ -8,7 +8,7 @@ export const Request = () => {
// 初始化请求配置
uni.$uv.http.setConfig((config) => {
/* config 为默认全局配置*/
- config.baseURL = 'http://192.168.1.7:4001'; /* 根域名 */
+ config.baseURL = 'http://192.168.1.5:4001'; /* 根域名 */
return config
})