You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.2 KiB
69 lines
2.2 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>测试编辑客户页面</title>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body>
|
|
<h1>测试编辑客户页面字段回显</h1>
|
|
|
|
<h2>问题描述</h2>
|
|
<p>在 pages/market/clue/edit_clues 页面中,电话六要素的购买力字段和备注字段没有正确回显。</p>
|
|
|
|
<h2>问题原因</h2>
|
|
<ol>
|
|
<li><strong>购买力字段名不一致</strong>:
|
|
<ul>
|
|
<li>前端使用:<code>purchasing_power_name</code></li>
|
|
<li>后端返回:<code>purchase_power_name</code></li>
|
|
<li>数据库字段:<code>purchase_power</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><strong>备注字段名不一致</strong>:
|
|
<ul>
|
|
<li>前端使用:<code>remark</code></li>
|
|
<li>数据库字段:<code>consultation_remark</code></li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
|
|
<h2>修复内容</h2>
|
|
<ol>
|
|
<li><strong>修复购买力字段</strong>:
|
|
<ul>
|
|
<li>第875行:<code>purchasing_power: sixSpeed.purchase_power</code></li>
|
|
<li>第945行:<code>sixSpeed.purchase_power_name</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><strong>修复备注字段</strong>:
|
|
<ul>
|
|
<li>第886行:<code>remark: sixSpeed.consultation_remark</code></li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
|
|
<h2>测试数据</h2>
|
|
<p>已在数据库中为 resource_id=38 的记录设置测试数据:</p>
|
|
<ul>
|
|
<li>购买力:2(对应"中等")</li>
|
|
<li>备注:测试备注信息</li>
|
|
</ul>
|
|
|
|
<h2>验证步骤</h2>
|
|
<ol>
|
|
<li>打开页面:<code>pages/market/clue/edit_clues?resource_sharing_id=38</code></li>
|
|
<li>检查购买力选择器是否显示"中等"</li>
|
|
<li>检查备注输入框是否显示"测试备注信息"</li>
|
|
</ol>
|
|
|
|
<h2>修改的文件</h2>
|
|
<ul>
|
|
<li><code>uniapp/pages/market/clue/edit_clues.vue</code> - 修复字段名不一致问题</li>
|
|
</ul>
|
|
|
|
<script>
|
|
console.log('测试页面加载完成');
|
|
console.log('请在 UniApp 中测试编辑客户页面的字段回显功能');
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|