Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
e0f077f5
Commit
e0f077f5
authored
Jun 13, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3
parent
0be3ffe9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
6 deletions
+58
-6
buildingDictionary.js
public/resource/js/buildingDictionary.js
+57
-5
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+1
-1
No files found.
public/resource/js/buildingDictionary.js
View file @
e0f077f5
...
@@ -33,6 +33,8 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -33,6 +33,8 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
buildingStations
:
''
,
buildingStations
:
''
,
delArr
:[],
delArr
:[],
businessDistrictId
:
0
,
//编辑商圈id
businessDistrictId
:
0
,
//编辑商圈id
businessJvli
:
0
,
//距离
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
"body"
).
append
(
template
);
$
(
"body"
).
append
(
template
);
...
@@ -82,7 +84,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -82,7 +84,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
alert
(
'最多添加5条'
);
alert
(
'最多添加5条'
);
return
false
;
return
false
;
}
else
{
}
else
{
_iYJAAObj
.
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
business
.
addStr
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number
" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
_iYJAAObj
.
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
business
.
addStr
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number" disabled="disabled
" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
};
};
});
});
//详情弹出框,成交信息里的实收佣金相关的事件,点击x删除这条
//详情弹出框,成交信息里的实收佣金相关的事件,点击x删除这条
...
@@ -122,7 +124,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -122,7 +124,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
$
(
'#container_body_img_area'
).
html
(
''
);
$
(
'#container_body_img_area'
).
html
(
''
);
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
html
(
''
);
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
html
(
''
);
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
_iYJAAObj
.
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
business
.
addStr
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number
" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
_iYJAAObj
.
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
business
.
addStr
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number" disabled="disabled
" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
});
});
...
@@ -479,6 +481,53 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -479,6 +481,53 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
$
(
this
).
next
().
html
(
_str
);
$
(
this
).
next
().
html
(
_str
);
});
});
//点击地铁站 获取距离 米
_doc
.
on
(
'input'
,
'.shop_area_id_line'
,
function
()
{
var
stations_latitude
=
$
(
this
).
find
(
'option:selected'
).
attr
(
'data-latitude'
);
var
stations_longitude
=
$
(
this
).
find
(
'option:selected'
).
attr
(
'data-longitude'
);
console
.
log
(
$
(
'#latitude'
).
val
());
console
.
log
(
$
(
'#longitude'
).
val
());
console
.
log
(
stations_latitude
);
console
.
log
(
stations_longitude
);
var
next_
=
$
(
this
).
next
();
$
.
ajax
({
type
:
'GET'
,
url
:
'/office_index/getDistance'
,
data
:
{
"address_latitude"
:
$
(
'#latitude'
).
val
(),
"address_longitude"
:
$
(
'#longitude'
).
val
(),
"stations_latitude"
:
stations_latitude
,
"stations_longitude"
:
stations_longitude
,
},
timeout
:
30000
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
business
.
businessJvli
=
data
.
data
.
distance
;
next_
.
val
(
business
.
businessJvli
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
// _loadMainItem.hide();
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
});
//点击 区域 获取 商圈(新增)
//点击 区域 获取 商圈(新增)
_doc
.
on
(
'input'
,
'#shop_area_id_add'
,
function
()
{
_doc
.
on
(
'input'
,
'#shop_area_id_add'
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
...
@@ -635,6 +684,10 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -635,6 +684,10 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
if
(
imgname1
.
concat
(
imgname2
).
length
==
0
){
if
(
imgname1
.
concat
(
imgname2
).
length
==
0
){
alert
(
'请选择楼盘图片'
);
alert
(
'请选择楼盘图片'
);
return
;
return
;
}
if
(
detailArr
[
0
].
stations_id
==
''
){
alert
(
'请选择交通信息'
);
return
;
}
}
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
...
@@ -760,10 +813,10 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -760,10 +813,10 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
html
(
''
);
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
html
(
''
);
business
.
addStr
=
_str
;
business
.
addStr
=
_str
;
if
(
business
.
buildingStations
.
length
==
0
){
if
(
business
.
buildingStations
.
length
==
0
){
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
business
.
addStr
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入
"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
business
.
addStr
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入" disabled="disabled
"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
}
else
{
}
else
{
$
.
each
(
business
.
buildingStations
,
function
(
i
,
v
)
{
$
.
each
(
business
.
buildingStations
,
function
(
i
,
v
)
{
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
append
(
'<div data-id="'
+
v
.
id
+
'" class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
_str
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入" value="{2}
"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
append
(
'<div data-id="'
+
v
.
id
+
'" class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
_str
+
'</select><select class="form-control btn2-city shop_area_id_line"
><option value="" selected="selected">区域</option></select><input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入" value="'
+
v
.
distance
+
'" disabled="disabled
"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
var
name_
=
v
.
line_name_simple
;
var
name_
=
v
.
line_name_simple
;
$
(
".shop_city_choose_site_list_line"
).
eq
(
i
).
val
(
name_
);
$
(
".shop_city_choose_site_list_line"
).
eq
(
i
).
val
(
name_
);
...
@@ -793,7 +846,6 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -793,7 +846,6 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
_latitudeObj
.
val
(
data
.
data
.
latitude
),
_latitudeObj
.
val
(
data
.
data
.
latitude
),
$
(
'.louceng_num'
).
html
(
data
.
data
.
id
);
$
(
'.louceng_num'
).
html
(
data
.
data
.
id
);
business
.
businessDistrictId
=
data
.
data
.
business_district_id
;
business
.
businessDistrictId
=
data
.
data
.
business_district_id
;
66666
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/getBusinessAll'
,
url
:
'/index/getBusinessAll'
,
...
...
public/resource/js/financial_manager_daily_list.js
View file @
e0f077f5
...
@@ -1504,7 +1504,7 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
...
@@ -1504,7 +1504,7 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
if
(
bargain
.
isOffice
==
1
){
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/delAdjustment'
;
//商铺
bargain
.
isOfficeUrl
=
'/index/delAdjustment'
;
//商铺
}
else
{
}
else
{
bargain
.
isOfficeUrl
=
'/office/delAdjustment'
;
//办公楼
bargain
.
isOfficeUrl
=
'/office
_index
/delAdjustment'
;
//办公楼
};
};
$
.
post
(
bargain
.
isOfficeUrl
,
params
,
function
(
data
){
$
.
post
(
bargain
.
isOfficeUrl
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment