本地生活首页列表数据暂时只展示东龙汇公司

This commit is contained in:
wangxiaowei 2024-09-29 20:04:47 +08:00
parent 181f05fb0f
commit b43619faac

@ -43,10 +43,10 @@ class LocalStoreLogic extends Logic
$sql = "SELECT * FROM ls_local_store where lstore_id = 22 and is_delete = 0 and store_state = 1 and shopLogo is not null $s ORDER BY lstore_id asc limit " . $page . "," . $size;
// var_dump($sql);
$lists = Db::query($sql);
foreach ($lists as $key => $value) {
$lists[$key]['distance'] = round($this->distance($data['latitude'], $data['longitude'], $value['latitude'], $value['longitude']) / 1000, 2) . "公里";
$lists[$key]['store_nickname'] = $value["shopName"];
}
// foreach ($lists as $key => $value) {
// $lists[$key]['distance'] = round($this->distance($data['latitude'], $data['longitude'], $value['latitude'], $value['longitude']) / 1000, 2) . "公里";
// $lists[$key]['store_nickname'] = $value["shopName"];
// }
$data = [
'list' => $lists,
'page' => $data['page_no'],