优化客户添加和编辑的ui

This commit is contained in:
WindowBird 2025-11-10 09:07:13 +08:00
parent 14d42ffc0c
commit b57b90eaf5
9 changed files with 33 additions and 12 deletions

View File

@ -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)
}

View File

@ -34,7 +34,7 @@
<text class="info-value">{{ customerDetail.regionName || '--' }}</text>
</view>
<view class="info-item">
<text class="info-label">工作微信</text>
<text class="info-label">微信好友</text>
<text class="info-value">{{ customerDetail.wechatId || '--' }}</text>
</view>
</view>

View File

@ -78,10 +78,10 @@
<text class="arrow"></text>
</view>
<!-- 工作微信 -->
<!-- 微信好友 -->
<view class="form-item clickable-item" @click="$emit('open-picker', 'workWechat')">
<text v-if="formData.workWechat" class="form-value">{{ formData.workWechat }}</text>
<text v-else class="form-placeholder">选择工作微信</text>
<text v-else class="form-placeholder">选择微信好友</text>
<text class="arrow"></text>
</view>
</view>
@ -160,7 +160,7 @@ const getCustomerStatusText = (value) => {
}
.form-input {
width: 100%;
height: 44px;
padding: 0 12px;
font-size: 15px;

View File

@ -122,8 +122,9 @@ const updateField = (field, value) => {
}
.form-textarea {
width: 100%;
min-height: 80px;
width:auto;
padding: 12px;
font-size: 15px;
color: #333;

View File

@ -124,10 +124,10 @@
@change="onRegionChange"
></uv-picker>
<!-- 工作微信选择弹窗 -->
<!-- 微信好友选择弹窗 -->
<view v-if="showWorkWechatPicker" class="modal-mask" @click="closePicker('workWechat')">
<view class="modal-content" @click.stop>
<view class="modal-title">选择工作微信</view>
<view class="modal-title">选择微信好友</view>
<view class="picker-options">
<view
v-for="item in workWechatOptions"
@ -306,7 +306,7 @@ const confirmCustomerStatus = () => {
closePicker('customerStatus');
};
//
//
const selectWorkWechat = (value) => {
tempWorkWechat.value = value;
};

20
jsconfig.json Normal file
View File

@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"baseUrl": "./",
"paths": {
"@/*": ["./*"],
"~/*": ["./*"]
},
"lib": ["esnext", "dom"],
"types": ["@dcloudio/types"]
},
"exclude": [
"node_modules",
"unpackage",
"dist",
".hbuilderx",
".idea"
]
}

View File

@ -287,7 +287,7 @@ const handleSave = async () => {
.add-customer-page {
display: flex;
flex-direction: column;
height: 100vh;
background-color: #f5f5f5;
}

View File

@ -375,7 +375,7 @@ const handleSave = async () => {
.edit-customer-page {
display: flex;
flex-direction: column;
height: 100vh;
background-color: #f5f5f5;
}

View File

@ -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
})