增加录音功能调整页面布局。
This commit is contained in:
@@ -443,8 +443,7 @@ export default {
|
||||
detailedAddress: this.formData.detailedAddress?.trim() || "",
|
||||
salesPhone: trimmedSalesPhone || "",
|
||||
contactCount: Number(this.formData.contactCount) || 0,
|
||||
operationType: action,
|
||||
scenario: "furniture"
|
||||
operationType: action
|
||||
};
|
||||
|
||||
try {
|
||||
@@ -455,9 +454,13 @@ export default {
|
||||
// 获取认证信息
|
||||
let tenantId = '';
|
||||
let token = '';
|
||||
let scenario = '';
|
||||
try {
|
||||
const loginResponse = uni.getStorageSync('backend-login-response') || {};
|
||||
tenantId = uni.getStorageSync('backend-tenant-id') || '';
|
||||
token = uni.getStorageSync('backend-token') || '';
|
||||
// 场景值来自登录返回,兜底读取历史缓存字段
|
||||
scenario = (loginResponse.scenario || uni.getStorageSync('backend-scenario') || '').toString().trim();
|
||||
} catch (e) {
|
||||
console.error('获取认证信息失败:', e);
|
||||
}
|
||||
@@ -472,6 +475,10 @@ export default {
|
||||
if (tenantId) {
|
||||
headers['X-Tenant-Id'] = tenantId;
|
||||
}
|
||||
if (scenario) {
|
||||
headers['X-Scenario'] = scenario;
|
||||
params.scenario = scenario;
|
||||
}
|
||||
|
||||
const res = await uni.request({
|
||||
url: getApiUrl('/api/customerManagement/add'),
|
||||
|
||||
Reference in New Issue
Block a user