feat(service): 取消服务价格起步价文案
- 一口价直接显示金额,不再显示 ¥xx起 - 师傅报价显示参考金额 + 师傅报价,不再显示起 - 区间计价保持 ¥min-max/单位 - 计价逻辑、基础价字段与后台配置不变
这个提交包含在:
@@ -348,11 +348,11 @@ class Home extends Base
|
|||||||
public function formatService($row)
|
public function formatService($row)
|
||||||
{
|
{
|
||||||
$type = $row['price_type'];
|
$type = $row['price_type'];
|
||||||
$priceText = '¥' . (float)$row['base_price'] . '起';
|
$priceText = '¥' . (float)$row['base_price'];
|
||||||
if ($type === 'range') {
|
if ($type === 'range') {
|
||||||
$priceText = '¥' . (float)$row['base_price'] . '-' . (float)$row['max_price'] . '/' . $row['unit'];
|
$priceText = '¥' . (float)$row['base_price'] . '-' . (float)$row['max_price'] . '/' . $row['unit'];
|
||||||
} elseif ($type === 'quote') {
|
} elseif ($type === 'quote') {
|
||||||
$priceText = '¥' . (float)$row['base_price'] . '起 · 师傅报价';
|
$priceText = '¥' . (float)$row['base_price'] . ' · 师傅报价';
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
'id' => (int)$row['id'],
|
'id' => (int)$row['id'],
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户