feat(service): 取消服务价格起步价文案

- 一口价直接显示金额,不再显示 ¥xx起
- 师傅报价显示参考金额 + 师傅报价,不再显示起
- 区间计价保持 ¥min-max/单位
- 计价逻辑、基础价字段与后台配置不变
这个提交包含在:
linda
2026-10-29 09:56:07 +08:00
父节点 31fed8e48b
当前提交 cc86d0ae6e

查看文件

@@ -348,11 +348,11 @@ class Home extends Base
public function formatService($row)
{
$type = $row['price_type'];
$priceText = '¥' . (float)$row['base_price'] . '起';
$priceText = '¥' . (float)$row['base_price'];
if ($type === 'range') {
$priceText = '¥' . (float)$row['base_price'] . '-' . (float)$row['max_price'] . '/' . $row['unit'];
} elseif ($type === 'quote') {
$priceText = '¥' . (float)$row['base_price'] . '起 · 师傅报价';
$priceText = '¥' . (float)$row['base_price'] . ' · 师傅报价';
}
return [
'id' => (int)$row['id'],