客户详细-客户信息
This commit is contained in:
parent
3a6d9d1b6b
commit
4c7ee14a4b
2
App.vue
2
App.vue
|
|
@ -8,7 +8,7 @@
|
|||
// 如果还没有 token,则设置一个测试 token
|
||||
const token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjlkN2JjOTU3LTllMTYtNGI5ZC04NWZiLThiZjJlZDI3MjRjNiJ9.hJ0Tf691DnryIMp4TAsKILSy9ueN8SgeMZdp0HwxbgGOIhYl5vOUu9H64tA02jpXkB-Sg5owrBjjJxUG17yA7g'
|
||||
const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjA4ZmEzNGU0LTU3NWYtNDdmMy1iY2IyLTBhMDVhNWVhOWRmNiJ9.bjaWTzwNZWyUD1UEX0te4u0a9vPhS5iLxxubgvpVF6rQ_ZhGfkvS8rdwr_kLNEWAILgLJQW3h8whDHMq9NzLtA'
|
||||
uni.setStorageSync('token', testToken)
|
||||
console.log('已设置测试 token:', testToken)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
</view>
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">客户类型</text>
|
||||
<text class="summary-value">{{ customerDetail.customerType || '--' }}</text>
|
||||
<text class="summary-value">{{ getCustomerTypeText(customerDetail.type) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
|
|
@ -177,7 +177,7 @@
|
|||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">客户意向</text>
|
||||
<text class="info-value">{{ customerDetail.intent || '--' }}</text>
|
||||
<text class="info-value">{{ formatIntents(customerDetail.intents) }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">意向强度</text>
|
||||
|
|
@ -185,11 +185,11 @@
|
|||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">客户地区</text>
|
||||
<text class="info-value">{{ formatRegion(customerDetail.region, customerDetail.city) }}</text>
|
||||
<text class="info-value">{{ customerDetail.regionName || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">工作微信</text>
|
||||
<text class="info-value">{{ customerDetail.workWechat || '--' }}</text>
|
||||
<text class="info-value">{{ customerDetail.wechatId || '--' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
|
@ -215,19 +215,19 @@
|
|||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">顾虑点</text>
|
||||
<text class="info-value">{{ customerDetail.concerns || '--' }}</text>
|
||||
<text class="info-value">{{ customerDetail.concern || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">痛点</text>
|
||||
<text class="info-value">{{ customerDetail.painPoints || '--' }}</text>
|
||||
<text class="info-value">{{ customerDetail.pain || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">关注点</text>
|
||||
<text class="info-value">{{ customerDetail.focusPoints || '--' }}</text>
|
||||
<text class="info-value">{{ customerDetail.attention || '--' }}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">需求点</text>
|
||||
<text class="info-value">{{ customerDetail.requirements || '--' }}</text>
|
||||
<text class="info-value">{{ customerDetail.demand || '--' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -438,10 +438,19 @@ const formatDeadline = (project) => {
|
|||
}
|
||||
};
|
||||
|
||||
// 格式化地区
|
||||
const formatRegion = (region, city) => {
|
||||
if (!region && !city) return '--';
|
||||
return [region, city].filter(Boolean).join('/');
|
||||
// 格式化客户意向(数组转字符串)
|
||||
const formatIntents = (intents) => {
|
||||
if (!intents || !Array.isArray(intents) || intents.length === 0) return '--';
|
||||
return intents.join('、');
|
||||
};
|
||||
|
||||
// 获取客户类型文本
|
||||
const getCustomerTypeText = (type) => {
|
||||
const typeMap = {
|
||||
'1': '企业客户',
|
||||
'2': '个人客户'
|
||||
};
|
||||
return typeMap[type] || '--';
|
||||
};
|
||||
|
||||
// 获取意向强度文本
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user