优化客户添加和编辑的ui
This commit is contained in:
parent
14d42ffc0c
commit
b57b90eaf5
2
App.vue
2
App.vue
|
|
@ -8,7 +8,7 @@
|
||||||
// 如果还没有 token,则设置一个测试 token
|
// 如果还没有 token,则设置一个测试 token
|
||||||
const token = uni.getStorageSync('token')
|
const token = uni.getStorageSync('token')
|
||||||
if (!token) {
|
if (!token) {
|
||||||
const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI4MDUzOGE0LThjNTQtNGZlMy04NmMwLThhYzhlZmMwMTg1ZCJ9.xalBJnQcnxHsHUVFn46XXamKBPA2RdDtvVvhRQwc7j-lARywOjKMfSqjUiSe8DbWMKt1iBZIz0Z0JDYX7IGb_g'
|
const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImNkYjJlNjM0LTM5M2MtNDk3MC1iNDQ3LTViNGVmYTQ1NzQwYiJ9.oMAFItV_sRDGWu44EwQqT7K6VP7Bz43n-dm00V2UPOwtN0FtFw_4u9TPa993VDcDM0zxDVI_sxS5cjcKcgl1GA'
|
||||||
uni.setStorageSync('token', testToken)
|
uni.setStorageSync('token', testToken)
|
||||||
console.log('已设置测试 token:', testToken)
|
console.log('已设置测试 token:', testToken)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
<text class="info-value">{{ customerDetail.regionName || '--' }}</text>
|
<text class="info-value">{{ customerDetail.regionName || '--' }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<text class="info-label">工作微信</text>
|
<text class="info-label">微信好友</text>
|
||||||
<text class="info-value">{{ customerDetail.wechatId || '--' }}</text>
|
<text class="info-value">{{ customerDetail.wechatId || '--' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -78,10 +78,10 @@
|
||||||
<text class="arrow">›</text>
|
<text class="arrow">›</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 工作微信 -->
|
<!-- 微信好友 -->
|
||||||
<view class="form-item clickable-item" @click="$emit('open-picker', 'workWechat')">
|
<view class="form-item clickable-item" @click="$emit('open-picker', 'workWechat')">
|
||||||
<text v-if="formData.workWechat" class="form-value">{{ formData.workWechat }}</text>
|
<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>
|
<text class="arrow">›</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -160,7 +160,7 @@ const getCustomerStatusText = (value) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-input {
|
.form-input {
|
||||||
width: 100%;
|
|
||||||
height: 44px;
|
height: 44px;
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|
|
||||||
|
|
@ -122,8 +122,9 @@ const updateField = (field, value) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-textarea {
|
.form-textarea {
|
||||||
width: 100%;
|
|
||||||
min-height: 80px;
|
min-height: 80px;
|
||||||
|
width:auto;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
|
||||||
|
|
@ -124,10 +124,10 @@
|
||||||
@change="onRegionChange"
|
@change="onRegionChange"
|
||||||
></uv-picker>
|
></uv-picker>
|
||||||
|
|
||||||
<!-- 工作微信选择弹窗 -->
|
<!-- 微信好友选择弹窗 -->
|
||||||
<view v-if="showWorkWechatPicker" class="modal-mask" @click="closePicker('workWechat')">
|
<view v-if="showWorkWechatPicker" class="modal-mask" @click="closePicker('workWechat')">
|
||||||
<view class="modal-content" @click.stop>
|
<view class="modal-content" @click.stop>
|
||||||
<view class="modal-title">选择工作微信</view>
|
<view class="modal-title">选择微信好友</view>
|
||||||
<view class="picker-options">
|
<view class="picker-options">
|
||||||
<view
|
<view
|
||||||
v-for="item in workWechatOptions"
|
v-for="item in workWechatOptions"
|
||||||
|
|
@ -306,7 +306,7 @@ const confirmCustomerStatus = () => {
|
||||||
closePicker('customerStatus');
|
closePicker('customerStatus');
|
||||||
};
|
};
|
||||||
|
|
||||||
// 工作微信
|
// 微信好友
|
||||||
const selectWorkWechat = (value) => {
|
const selectWorkWechat = (value) => {
|
||||||
tempWorkWechat.value = value;
|
tempWorkWechat.value = value;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
20
jsconfig.json
Normal file
20
jsconfig.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -287,7 +287,7 @@ const handleSave = async () => {
|
||||||
.add-customer-page {
|
.add-customer-page {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ const handleSave = async () => {
|
||||||
.edit-customer-page {
|
.edit-customer-page {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ export const Request = () => {
|
||||||
// 初始化请求配置
|
// 初始化请求配置
|
||||||
uni.$uv.http.setConfig((config) => {
|
uni.$uv.http.setConfig((config) => {
|
||||||
/* config 为默认全局配置*/
|
/* config 为默认全局配置*/
|
||||||
config.baseURL = 'http://192.168.1.7:4001'; /* 根域名 */
|
config.baseURL = 'http://192.168.1.5:4001'; /* 根域名 */
|
||||||
return config
|
return config
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user