Commit 037cdd07 authored by zw's avatar zw

Merge branch '1130-v3.0.1' into test

# Conflicts: # application/api/service/PushClientService.php
parents 3da47d3f 174ae515
...@@ -11,6 +11,7 @@ use app\model\GHouses; ...@@ -11,6 +11,7 @@ use app\model\GHouses;
use app\model\GHousesImgs; use app\model\GHousesImgs;
use app\model\GHousesToAgents; use app\model\GHousesToAgents;
use app\model\GImageDepot; use app\model\GImageDepot;
use app\model\OPushMessageModel;
use app\model\OReportModel; use app\model\OReportModel;
use app\model\Users; use app\model\Users;
...@@ -294,5 +295,34 @@ class AppointmentTime extends Basic ...@@ -294,5 +295,34 @@ class AppointmentTime extends Basic
} }
/**
* 检查是有未评价
*
* @return \think\Response
*/
public function checkAppointment()
{
$data['name'] = $msg = "";
try {
$m_push = new OPushMessageModel();
$where['user_id'] = $this->userId;
// $where['user_id'] = 122;
$where['status'] = 0;
$id = $m_push->getListByWhere('id,operation_id,message', $where, 1, 1);
if (empty($id[0]['id'])) {
$data['is_alert'] = 0;
} else {
$data['name'] = $id[0]['message'];
$data['is_alert'] = 1;
}
} catch (\Exception $e) {
$data = [];
$msg = "内部错误:".$e->getMessage();
}
return $this->response(200, $msg, $data);
}
} }
\ No newline at end of file
...@@ -9,6 +9,7 @@ use app\model\Evaluate; ...@@ -9,6 +9,7 @@ use app\model\Evaluate;
use app\model\EvaluateSign; use app\model\EvaluateSign;
use app\model\OBargainModel; use app\model\OBargainModel;
use app\model\OMarchInModel; use app\model\OMarchInModel;
use app\model\OPushMessageModel;
/** /**
* Description of Agents * Description of Agents
...@@ -173,6 +174,9 @@ class Broker extends Basic ...@@ -173,6 +174,9 @@ class Broker extends Basic
]); ]);
if ($evaluate->id) { if ($evaluate->id) {
$m_push = new OPushMessageModel();
$m_push->updateData(['status'=>1], ['user_id' => $this->userId, 'house_id' => $params['house_id'], 'operation_id' => $params['agents_id'],]);
$data['data'] = [ 'id' => $evaluate->id ]; $data['data'] = [ 'id' => $evaluate->id ];
$data['status'] = 200; $data['status'] = 200;
$data['msg'] = '评价成功'; $data['msg'] = '评价成功';
......
...@@ -64,6 +64,7 @@ class Shop extends Basic ...@@ -64,6 +64,7 @@ class Shop extends Basic
"site_area" => 4, //来源 1c首页 2c搜索 6pc官网商铺列表 "site_area" => 4, //来源 1c首页 2c搜索 6pc官网商铺列表
// "title" => "vv", //1,2 external_title ,3,4internal_title // "title" => "vv", //1,2 external_title ,3,4internal_title
"house_id" => 4, "house_id" => 4,
"fit_industry_type" => "",//适合业态
"business_id" => 4, "business_id" => 4,
"is_carefully_chosen" => 0, //精选商铺--0否1是 "is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺) "shop_type" => 0, //商铺类型(0商场,1街铺)
...@@ -93,8 +94,9 @@ class Shop extends Basic ...@@ -93,8 +94,9 @@ class Shop extends Basic
if (empty($params['city']) && ($params['city'] == "杭州市" || $params['city'] == "上海市")) { if (empty($params['city']) && ($params['city'] == "杭州市" || $params['city'] == "上海市")) {
return $this->response("101", "城市不能为空"); return $this->response("101", "城市不能为空");
} }
$field = "id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type,external_image_id $field = "id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type,
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_show_image"; external_image_id,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,
rent_price,is_show_image,fit_industry_type";
$conditions["city"] = trim($params['city']); $conditions["city"] = trim($params['city']);
...@@ -122,6 +124,9 @@ class Shop extends Basic ...@@ -122,6 +124,9 @@ class Shop extends Basic
$conditions['create_time'] = array('between', array($start_time, $end_time)); $conditions['create_time'] = array('between', array($start_time, $end_time));
} }
if (isset($params['fit_industry_type'])) { //适合业态
$conditions['fit_industry_type'] = array('like', "%" . trim($params['fit_industry_type']) . "%");
}
$order_ = ""; $order_ = "";
$spTagArr = array(); $spTagArr = array();
switch ($params['site_area']) { switch ($params['site_area']) {
...@@ -325,7 +330,7 @@ class Shop extends Basic ...@@ -325,7 +330,7 @@ class Shop extends Basic
b.enter_num,b.external_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic, b.enter_num,b.external_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic,
b.auditorium,b.tiny_brochure_url,b.start_business_date,b.fee_rule,b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee, b.auditorium,b.tiny_brochure_url,b.start_business_date,b.fee_rule,b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,
b.area_width,b.depth,b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration b.area_width,b.depth,b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration
,b.rim_mating,b.section,b.crowd,b.other,a.is_show_image"; ,b.rim_mating,b.section,b.crowd,b.other,a.is_show_image,a.fit_industry_type";
$conditions['a.status'] = array("eq", 1); $conditions['a.status'] = array("eq", 1);
$conditions['a.is_show'] = array('eq', 0); //c端只显示公开楼盘 $conditions['a.is_show'] = array('eq', 0); //c端只显示公开楼盘
......
...@@ -76,7 +76,7 @@ class Site extends Basic ...@@ -76,7 +76,7 @@ class Site extends Basic
$field = 'id,name,city,is_del'; $field = 'id,name,city,is_del';
$get_params['is_del'] = 0; $get_params['is_del'] = 0;
$res = $this->aSite->getSite($field, $params); $res = $this->aSite->getSite($field, $get_params);
return $this->response("200", "成功", $res); return $this->response("200", "成功", $res);
} }
......
...@@ -44,8 +44,7 @@ class PushClientService ...@@ -44,8 +44,7 @@ class PushClientService
if (empty($message)) { if (empty($message)) {
$m_agent = new AAgents(); $m_agent = new AAgents();
$name = $m_agent->getAgentsById($operation_id, 'name'); $message = $m_agent->getAgentsById($operation_id, 'name');
$message = '同联商业邀请您评价经纪人'.$name.'对商铺的带看服务';
} }
$data['message'] = $message; $data['message'] = $message;
$data['order_id'] = $order_id; $data['order_id'] = $order_id;
...@@ -59,8 +58,8 @@ class PushClientService ...@@ -59,8 +58,8 @@ class PushClientService
*/ */
public function pushRecord() public function pushRecord()
{ {
$title = $type = ''; $title = $type = $content = '';
$field = 'id,addressee_id,type,message,house_id,user_id,order_id'; $field = 'id,operation_id,type,message,house_id,user_id,order_id';
$where['status'] = $id = $is_forbidden = 0; $where['status'] = $id = $is_forbidden = 0;
$push_data = $this->m_push->getDateLimit($field, $where, 100); $push_data = $this->m_push->getDateLimit($field, $where, 100);
...@@ -68,12 +67,11 @@ class PushClientService ...@@ -68,12 +67,11 @@ class PushClientService
switch ($v['type']) { switch ($v['type']) {
case 0 : case 0 :
$title = "评价经纪人"; $title = "评价经纪人";
$id = $v['house_id'];
$type = 'evaluate'; $type = 'evaluate';
$content = '同联商业邀请您评价经纪人'.$v['message'].'对商铺的带看服务';
break; break;
} }
$this->pushAgentAllDeviceId($v['operation_id'], $title, $content, $type, $v['user_id'], $is_forbidden, $v['house_id'], $v['order_id'], $v['message']);
$this->pushAgentAllDeviceId($v['addressee_id'], $title, $v['message'], $type, $id, $is_forbidden,$v['house_id'], $v['order_id']);
$update_data['status'] = 1; $update_data['status'] = 1;
$update_data['send_time'] = date('Y-m-d H:i:s'); $update_data['send_time'] = date('Y-m-d H:i:s');
...@@ -91,21 +89,28 @@ class PushClientService ...@@ -91,21 +89,28 @@ class PushClientService
* @param int $is_forbidden * @param int $is_forbidden
* @param int $house_id * @param int $house_id
* @param int $order_id * @param int $order_id
* @param $name
* @return array|bool * @return array|bool
* @throws \Exception * @throws \Exception
*/ */
public function pushAgentAllDeviceId($id, $title, $content, $type = 0, $user_id = 0, $is_forbidden = 0, $house_id = 0, $order_id = 0) public function pushAgentAllDeviceId($id, $title, $content, $type = 0, $user_id = 0, $is_forbidden = 0, $house_id = 0, $order_id = 0, $name)
{ {
if (empty($id)) { if (empty($user_id)) {
return false; return false;
} }
$push = new GeTuiUtils('client'); $push = new GeTuiUtils('client');
$chat = new ChatUser(); $chat = new ChatUser();
$chat_ext = new ChatUserExt(); $chat_ext = new ChatUserExt();
$ext_id = $chat->getFieldValue('id', ['uesr_id'=>$user_id, 'type'=>2]); $ext_id = $chat->getFieldValue('id', ['user_id'=>$user_id, 'type'=>2]);
if (empty($ext_id)) {
$result = false;
} else {
$push_id = $chat_ext->getInfo('push_id', ['ext_id'=>$ext_id, 'is_forbidden'=>$is_forbidden]); $push_id = $chat_ext->getInfo('push_id', ['ext_id'=>$ext_id, 'is_forbidden'=>$is_forbidden]);
$result = $push->public_push_message_for_one($user_id, $push_id['push_id'], $title, $content, $type, $user_id, $house_id, $order_id); $result = $push->public_push_message_for_one($id, $push_id['push_id'], $title, $content, $type, $user_id, $house_id, $order_id, $name);
}
return $result; return $result;
} }
} }
\ No newline at end of file
...@@ -175,10 +175,11 @@ class GeTuiUtils { ...@@ -175,10 +175,11 @@ class GeTuiUtils {
* @param $user_id * @param $user_id
* @param $house_id * @param $house_id
* @param $order_id * @param $order_id
* @param $name
* @return array * @return array
* @throws \Exception * @throws \Exception
*/ */
function public_push_message_for_one($id, $device_id, $title, $content, $type = 'other', $user_id, $house_id, $order_id) function public_push_message_for_one($id, $device_id, $title, $content, $type = 'other', $user_id, $house_id, $order_id, $name = "")
{ {
$home_url = $this->http_host(); $home_url = $this->http_host();
$data['agent_id'] = $id; $data['agent_id'] = $id;
...@@ -190,7 +191,7 @@ class GeTuiUtils { ...@@ -190,7 +191,7 @@ class GeTuiUtils {
'content' => $content, 'content' => $content,
'type' => $type, 'type' => $type,
'url' => '', 'url' => '',
'name' => $title, 'name' => $name,
'id' => $user_id, 'id' => $user_id,
'house_id' => $house_id, 'house_id' => $house_id,
'order_id' => $order_id, 'order_id' => $order_id,
......
...@@ -52,6 +52,11 @@ class MapFindHouse extends Basic ...@@ -52,6 +52,11 @@ class MapFindHouse extends Basic
return $this->response("101", "坐标传入有误"); return $this->response("101", "坐标传入有误");
} }
$conditions = []; $conditions = [];
$source = $params["source"];
if($source == 2){
$conditions['status'] = array('eq', 1); //只显示上架
$conditions['is_show'] = array('eq', 0); //c端只显示可显示的楼盘
}
$conditions["latitude"] = array("between", array($second_spot_arr[0], $first_spot_arr[0])); $conditions["latitude"] = array("between", array($second_spot_arr[0], $first_spot_arr[0]));
$conditions["longitude"] = array("between", array($second_spot_arr[1], $first_spot_arr[1])); $conditions["longitude"] = array("between", array($second_spot_arr[1], $first_spot_arr[1]));
...@@ -91,7 +96,13 @@ class MapFindHouse extends Basic ...@@ -91,7 +96,13 @@ class MapFindHouse extends Basic
$disc_str .= $item["name"] . ","; $disc_str .= $item["name"] . ",";
} }
$disc_str = rtrim($disc_str, ","); $disc_str = rtrim($disc_str, ",");
$shop_arr = $this->gHousesModel->getHouseNumByDisc($disc_str); $where_["a.disc"] = array("in",$disc_str);
if($params["source"] == 2){
$where_['a.status'] = array('eq', 1); //只显示上架
$where_['a.is_show'] = array('eq', 0); //c端只显示可显示的楼盘
}
$shop_arr = $this->gHousesModel->getHouseNumByDisc($where_);
$disc_arr = []; $disc_arr = [];
foreach ($disc as $key => $item) { foreach ($disc as $key => $item) {
foreach ($shop_arr as $i => $j) { foreach ($shop_arr as $i => $j) {
...@@ -105,7 +116,11 @@ class MapFindHouse extends Basic ...@@ -105,7 +116,11 @@ class MapFindHouse extends Basic
$result = $disc_arr; $result = $disc_arr;
} elseif ($params["grade"] == 2) { } elseif ($params["grade"] == 2) {
$businessModel = new GBusinessDistrict(); $businessModel = new GBusinessDistrict();
$result = $businessModel->getListByMap($params["city"]); $str = " a.city = '".$params["city"]."' ";
if($params["source"] == 2){
$str .= " and b.status = 1 and b.is_show = 0";
}
$result = $businessModel->getListByMap($str);
} }
return $this->response("200", "success", $result); return $this->response("200", "success", $result);
} }
......
...@@ -41,7 +41,7 @@ class Site extends Basic ...@@ -41,7 +41,7 @@ class Site extends Basic
$field = 'id,name,city,is_del'; $field = 'id,name,city,is_del';
$get_params['is_del'] = 0; $get_params['is_del'] = 0;
$res = $this->aSite->getSite($field, $params); $res = $this->aSite->getSite($field, $get_params);
return $this->response("200", "成功", $res); return $this->response("200", "成功", $res);
} }
......
...@@ -60,6 +60,8 @@ class Basic extends Controller ...@@ -60,6 +60,8 @@ class Basic extends Controller
"broker/addUserCallAgentV2", "broker/addUserCallAgentV2",
"broker/addSpreadUser", "broker/addSpreadUser",
"broker/getVolume", "broker/getVolume",
"broker/getCityInfoByMap",
"broker/getShopListByMap",
); );
/** /**
......
...@@ -272,7 +272,7 @@ class PushMessageService ...@@ -272,7 +272,7 @@ class PushMessageService
if (!empty($device_id_array)) { if (!empty($device_id_array)) {
foreach ($device_id_array as $k => $v) { foreach ($device_id_array as $k => $v) {
if (!empty($v['push_id'])) { if (!empty($v['push_id'])) {
$result[] = $this->push->public_push_message_for_one($id, $v['push_id'], $title, $content, $type, $user_id, $house_id, $order_id); $result[] = $this->push->public_push_message_for_one($id, $v['push_id'], $title, $content, $type, $user_id, $house_id, $order_id, $title);
} }
} }
} }
......
...@@ -58,6 +58,11 @@ ...@@ -58,6 +58,11 @@
</ul> </ul>
</div> </div>
<!--line 3--> <!--line 3-->
<!--最适合业态-->
<p class="b3_font1 b3_span_shop_yetai">
<span>最适合业态:</span>
<span class="b3_span_shop_yetai_con gw"></span>
</p>
<p class="b3_font1 b3_span_shop_num"> <p class="b3_font1 b3_span_shop_num">
<span>剩余铺数:</span> <span>剩余铺数:</span>
<span class="b3_span_build_num gw"></span> <span class="b3_span_build_num gw"></span>
......
...@@ -86,7 +86,7 @@ class ChatService ...@@ -86,7 +86,7 @@ class ChatService
//todo 保存或更新push_id //todo 保存或更新push_id
//todo 1.判断设备id +id 的数据是否存在,存在并且push_id和提交的不同则修改,否者新增 //todo 1.判断设备id +id 的数据是否存在,存在并且push_id和提交的不同则修改,否者新增
if ($id > 0 && $device_id && $push_id) { if ($id > 0 && $device_id && $push_id) {
$this->savePushIdV2($id, $device_id, $push_id, $chatUser[0]['type']); $this->savePushIdV2($id, $device_id, $push_id, $source);
} }
return [ "code" => 200, "only_id" => $only_id ]; return [ "code" => 200, "only_id" => $only_id ];
} }
...@@ -151,12 +151,19 @@ class ChatService ...@@ -151,12 +151,19 @@ class ChatService
private function savePushIdV2($chat_user_id, $device_id, $push_id, $type) private function savePushIdV2($chat_user_id, $device_id, $push_id, $type)
{ {
//todo 根据设备来判断使用设备用户, //todo 根据设备来判断使用设备用户,
$where['ext_id'] = $chat_user_id;
$where['push_id'] = $push_id;
$where['device_id'] = $device_id; $where['device_id'] = $device_id;
$where['type'] = $type; $where['type'] = $type;
$info = $this->chatUserExtModel->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,a.is_forbidden', 100); $info = $this->chatUserExtModel->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,a.is_forbidden', 100);
$result = false; $result = false;
if (count($info) > 0) { if (count($info) > 0) {
$where['device_id'] = $device_id;
$where['type'] = $type;
$where['ext_id'] = ['<>', $chat_user_id];
$info = $this->chatUserExtModel->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,a.is_forbidden', 100);
$current_user_id = 0; $current_user_id = 0;
foreach ($info as $k=>$v) { foreach ($info as $k=>$v) {
if ($v['is_forbidden'] == 0) { if ($v['is_forbidden'] == 0) {
......
...@@ -59,6 +59,11 @@ ...@@ -59,6 +59,11 @@
</ul> </ul>
</div> </div>
<!--line 3--> <!--line 3-->
<!--最适合业态-->
<p class="b3_font1 b3_span_shop_yetai">
<span>最适合业态:</span>
<span class="b3_span_shop_yetai_con gw"></span>
</p>
<p class="b3_font1 b3_span_shop_num"> <p class="b3_font1 b3_span_shop_num">
<span>剩余铺数:</span> <span>剩余铺数:</span>
<span class="b3_span_build_num gw"></span> <span class="b3_span_build_num gw"></span>
......
...@@ -34,10 +34,10 @@ class GBusinessDistrict extends BaseModel ...@@ -34,10 +34,10 @@ class GBusinessDistrict extends BaseModel
return $result; return $result;
} }
public function getListByMap($city){ public function getListByMap($params){
$sql = "select a.id,a.`name`,a.longitude,a.latitude,count(b.id) as num $sql = "select a.id,a.`name`,a.longitude,a.latitude,count(b.id) as num
from g_business_district as a left join g_houses as b on b.business_district_id=a.id from g_business_district as a left join g_houses as b on b.business_district_id=a.id
where a.city='".$city."' and a.longitude <> '' GROUP BY b.business_district_id HAVING num > 0"; where $params and a.longitude <> '' GROUP BY b.business_district_id HAVING num > 0";
return $this->query($sql); return $this->query($sql);
} }
......
...@@ -1598,14 +1598,13 @@ class GHouses extends BaseModel ...@@ -1598,14 +1598,13 @@ class GHouses extends BaseModel
} }
/** /**
* @param $disc_str * @param $params
* @return false|\PDOStatement|string|\think\Collection * @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function getHouseNumByDisc($disc_str){ public function getHouseNumByDisc($params){
$params["a.disc"] = array("in",$disc_str);
$result = Db::table($this->table) $result = Db::table($this->table)
->field("a.id,a.disc,count(1) as num") ->field("a.id,a.disc,count(1) as num")
->alias("a") ->alias("a")
......
...@@ -11,13 +11,14 @@ namespace app\model; ...@@ -11,13 +11,14 @@ namespace app\model;
use think\Db; use think\Db;
class OPushMessageModel class OPushMessageModel extends BaseModel
{ {
protected $table = "u_push_message"; protected $table = "u_push_message";
private $db_; private $db_;
public function __construct() public function __construct($data = [])
{ {
parent::__construct($data);
$this->db_ = Db::name($this->table); $this->db_ = Db::name($this->table);
} }
......
...@@ -423,6 +423,7 @@ Route::group('api', [ ...@@ -423,6 +423,7 @@ Route::group('api', [
//post AppointmentTime //post AppointmentTime
'getAppointmentSeeShopList' => ['api/appointmentTime/getAppointmentSeeShopList', ['method' => 'post|get']], 'getAppointmentSeeShopList' => ['api/appointmentTime/getAppointmentSeeShopList', ['method' => 'post|get']],
'addAppointmentSeeShop' => ['api/appointmentTime/addAppointmentSeeShop', ['method' => 'post|get']], 'addAppointmentSeeShop' => ['api/appointmentTime/addAppointmentSeeShop', ['method' => 'post|get']],
'checkAppointment' => ['api/appointmentTime/checkAppointment', ['method' => 'get']],
//tradeLog //tradeLog
......
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
if(!doc.addEventListener) return; if(!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false); win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);</script><link href=./static/css/app.7ee3b57e69b432b0911a83c779e43db0.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.74698e64579a16bcf167.js></script><script type=text/javascript src=./static/js/app.b6b55d4b5452c168829d.js></script></body></html> })(document, window);</script><link href=./static/css/app.12344a9c35bd0edb3041ec77de794ca3.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.74698e64579a16bcf167.js></script><script type=text/javascript src=./static/js/app.c6a55585eae0ec40fcb7.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{"version":3,"sources":["webpack:///webpack/bootstrap 77ac17f798d2dcfeffe0"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,KAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.3ad1d5771e9b13dbdad2.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 77ac17f798d2dcfeffe0"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
$(".kaiye-time").html(response.data.start_business_date); $(".kaiye-time").html(response.data.start_business_date);
// $(".duinei").html(response.data.city + response.data.disc + response.data.external_address); // $(".duinei").html(response.data.city + response.data.disc + response.data.external_address);
$(".duinei").html(response.data.address); $(".duinei").html(response.data.address);
$(".b3_span_shop_yetai_con").html(response.data.fit_industry_type);
$(".jiaotong").html(response.data.traffic); $(".jiaotong").html(response.data.traffic);
/*配套设施 */ /*配套设施 */
$(".electric-quantity-details").html(response.data.electric_quantity+'KW'); $(".electric-quantity-details").html(response.data.electric_quantity+'KW');
......
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
$(".kaiye-time").html(response.data.start_business_date); $(".kaiye-time").html(response.data.start_business_date);
// $(".duinei").html(response.data.city + response.data.disc + response.data.external_address); // $(".duinei").html(response.data.city + response.data.disc + response.data.external_address);
$(".duinei").html(response.data.address); $(".duinei").html(response.data.address);
$(".b3_span_shop_yetai_con").html(response.data.fit_industry_type);
$(".jiaotong").html(response.data.traffic); $(".jiaotong").html(response.data.traffic);
/*配套设施 */ /*配套设施 */
......
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<img-error :datasrc="selesctImg(item2)" :imgtype="'house'"></img-error> <img-error :datasrc="selesctImg(item2)" :imgtype="'house'"></img-error>
</div> </div>
<div class="shop-list-con shop-list"> <div class="shop-list-con shop-list">
<p class="shop-title shop-list-top">{{item2.title}}</p> <p class="shop-title shop-list-top-first">{{item2.title}}</p>
<p class="shop-rent shop-list-top">{{selesctRent(item2)}}</p> <p class="shop-rent shop-list-top-two">租金均价:<span>{{selesctRent(item2)}}</span>{{selesctRentType(item2)}}</p>
<p class="shop-list-top"> <p class="shop-list-top-three">
<span v-for="(item3, index3) in item2.shop_sign.split(',').splice(0, 3)" class="shop-lable">{{item3}}</span> <span v-for="(item3, index3) in item2.shop_sign.split(',').splice(0, 3)" class="shop-lable">{{item3}}</span>
</p> </p>
</div> </div>
...@@ -546,19 +546,35 @@ ...@@ -546,19 +546,35 @@
selesctRent(item){ selesctRent(item){
var _rent_type = ''; var _rent_type = '';
if(item.rent_type == 1){ if(item.rent_type == 1){
_rent_type ='租金均价:' + item.rent_price + '元/月'; _rent_type ='' + item.rent_price;
}; };
if(item.rent_type == 2){ if(item.rent_type == 2){
_rent_type ='租金均价:' + item.rent_price + '%'; _rent_type ='' + item.rent_price;
}; };
if(item.rent_type == 3){ if(item.rent_type == 3){
_rent_type ='租金均价:' + item.rent_price + '元/天/m²'; _rent_type ='' + item.rent_price;
}; };
if(item.rent_type == 4){ if(item.rent_type == 4){
_rent_type ='租金均价:' + item.rent_price + '元/年'; _rent_type ='' + item.rent_price;
}; };
return _rent_type; return _rent_type;
}, },
selesctRentType(item){
var _rent_type_item = '';
if(item.rent_type == 1){
_rent_type_item ='元/月';
};
if(item.rent_type == 2){
_rent_type_item ='%';
};
if(item.rent_type == 3){
_rent_type_item ='元/天/m²';
};
if(item.rent_type == 4){
_rent_type_item ='元/年';
};
return _rent_type_item;
},
resetConditions(){ resetConditions(){
let _this = this; let _this = this;
_this.mainData=[ _this.mainData=[
...@@ -682,25 +698,37 @@ ...@@ -682,25 +698,37 @@
overflow: hidden; overflow: hidden;
} }
.shop-list-con .shop-title{ .shop-list-con .shop-title{
font-size: .3rem; font-size: .28rem;
width:4.5rem; width:4.5rem;
text-overflow: ellipsis; height: .8rem;
white-space: nowrap; text-overflow: -o-ellipsis-lastline;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-top: -.05rem;
} }
.shop-list-con .shop-rent{ .shop-list-con .shop-rent{
font-size: .26rem; font-size: .20rem;
color: #FF5C50; color: #FF5C50;
} }
.shop-list-con .shop-rent>span{
font-size: .30rem;
font-weight: 600;
}
.shop-list-con .shop-lable{ .shop-list-con .shop-lable{
font-size: .22rem; font-size: .22rem;
padding: .05rem .1rem; padding: .05rem .1rem;
color: #FFA900; color: #FFA900;
background-color: #FFF4DF; background-color: #fff;
margin-right: .1rem; margin-right: .1rem;
box-sizing: border-box;
border: 1px solid rgba(255, 186, 18,0.5);
border-radius: 2px;
} }
.shop-list-top{ .shop-list-top-three{
margin-top: .12rem; margin-top: .08rem;
} }
/*选择项样式*/ /*选择项样式*/
nav>.nav-main-choose { nav>.nav-main-choose {
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<select @change="changeSearchCriteria"> <select @change="changeSearchCriteria">
<option value="商铺名称">商铺名称</option> <option value="商铺名称">商铺名称</option>
<option value="商铺编号">商铺编号</option> <option value="商铺编号">商铺编号</option>
<option value="详细业态关键词">适合业态</option>
</select> </select>
<img :src="icon_down" class="icon-search-img"/> <img :src="icon_down" class="icon-search-img"/>
</div> </div>
...@@ -32,9 +34,9 @@ ...@@ -32,9 +34,9 @@
<img-error :datasrc="selesctImg(item2)" :imgtype="'house'"></img-error> <img-error :datasrc="selesctImg(item2)" :imgtype="'house'"></img-error>
</div> </div>
<div class="shop-list-con shop-list"> <div class="shop-list-con shop-list">
<p class="shop-title shop-list-top">{{item2.title}}</p> <p class="shop-title shop-list-top-first">{{item2.title}}</p>
<p class="shop-rent shop-list-top">{{selesctRent(item2)}}</p> <p class="shop-rent shop-list-top-two">租金均价:<span>{{selesctRent(item2)}}</span>{{selesctRentType(item2)}}</p>
<p class="shop-list-top"> <p class="shop-list-top-three">
<span v-for="(item3, index3) in item2.shop_sign.split(',').splice(0, 3)" class="shop-lable">{{item3}}</span> <span v-for="(item3, index3) in item2.shop_sign.split(',').splice(0, 3)" class="shop-lable">{{item3}}</span>
</p> </p>
</div> </div>
...@@ -207,8 +209,10 @@ ...@@ -207,8 +209,10 @@
}; };
if((_this.initInputValue == '商铺名称') && !(_this.ajax_input_value == '')){ if((_this.initInputValue == '商铺名称') && !(_this.ajax_input_value == '')){
_data.title = _this.ajax_input_value; _data.title = _this.ajax_input_value;
}else if(!(_this.ajax_input_value == '')){ }else if((_this.initInputValue == '商铺编号') && !(_this.ajax_input_value == '')){
_data.house_id = _this.ajax_input_value*1; _data.house_id = _this.ajax_input_value*1;
}else if(!(_this.ajax_input_value == '')){
_data.fit_industry_type = _this.ajax_input_value;
} }
_this.axios({ _this.axios({
method: 'get', method: 'get',
...@@ -459,19 +463,35 @@ ...@@ -459,19 +463,35 @@
selesctRent(item){ selesctRent(item){
var _rent_type = ''; var _rent_type = '';
if(item.rent_type == 1){ if(item.rent_type == 1){
_rent_type ='租金均价:' + item.rent_price + '元/月'; _rent_type ='' + item.rent_price;
}; };
if(item.rent_type == 2){ if(item.rent_type == 2){
_rent_type ='租金均价:' + item.rent_price + '%'; _rent_type ='' + item.rent_price;
}; };
if(item.rent_type == 3){ if(item.rent_type == 3){
_rent_type ='租金均价:' + item.rent_price + '元/天/m²'; _rent_type ='' + item.rent_price;
}; };
if(item.rent_type == 4){ if(item.rent_type == 4){
_rent_type ='租金均价:' + item.rent_price + '元/年'; _rent_type ='' + item.rent_price;
}; };
return _rent_type; return _rent_type;
}, },
selesctRentType(item){
var _rent_type_item = '';
if(item.rent_type == 1){
_rent_type_item ='元/月';
};
if(item.rent_type == 2){
_rent_type_item ='%';
};
if(item.rent_type == 3){
_rent_type_item ='元/天/m²';
};
if(item.rent_type == 4){
_rent_type_item ='元/年';
};
return _rent_type_item;
},
resetConditions(){ resetConditions(){
let _this = this; let _this = this;
_this.mainData=[ _this.mainData=[
...@@ -579,25 +599,37 @@ ...@@ -579,25 +599,37 @@
overflow: hidden; overflow: hidden;
} }
.shop-list-con .shop-title{ .shop-list-con .shop-title{
font-size: .3rem; font-size: .28rem;
width:4.5rem; width:4.5rem;
text-overflow: ellipsis; height: .8rem;
white-space: nowrap; text-overflow: -o-ellipsis-lastline;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-top: -.05rem;
} }
.shop-list-con .shop-rent{ .shop-list-con .shop-rent{
font-size: .26rem; font-size: .20rem;
color: #FF5C50; color: #FF5C50;
} }
.shop-list-con .shop-rent>span{
font-size: .30rem;
font-weight: 600;
}
.shop-list-con .shop-lable{ .shop-list-con .shop-lable{
font-size: .22rem; font-size: .22rem;
padding: .05rem .1rem; padding: .05rem .1rem;
color: #FFA900; color: #FFA900;
background-color: #FFF4DF; background-color: #fff;
margin-right: .1rem; margin-right: .1rem;
box-sizing: border-box;
border: 1px solid rgba(255, 186, 18,0.5);
border-radius: 2px;
} }
.shop-list-top{ .shop-list-top-three{
margin-top: .12rem; margin-top: .08rem;
} }
/*选择项样式*/ /*选择项样式*/
nav>.nav-main-choose { nav>.nav-main-choose {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment