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
48f5c3ed
Commit
48f5c3ed
authored
Sep 04, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商圈
parent
28ad5a71
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
edit.html
application/index/view/houses/edit.html
+6
-0
shop_edit.js
public/resource/js/shop_edit.js
+51
-0
No files found.
application/index/view/houses/edit.html
View file @
48f5c3ed
...
@@ -398,6 +398,12 @@
...
@@ -398,6 +398,12 @@
<label
for=
""
>
纬度
</label>
<label
for=
""
>
纬度
</label>
<input
type=
"text"
class=
"form-control input-100-width address-relate"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"latitude"
name=
"latitude"
data-alert=
"请通过地址定位获取经纬度!"
>
<input
type=
"text"
class=
"form-control input-100-width address-relate"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"latitude"
name=
"latitude"
data-alert=
"请通过地址定位获取经纬度!"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
""
>
商圈
</label>
<select
id=
"business_rong"
class=
"form-control btn4"
>
<option
value=
"-1"
>
请选择商圈
</option>
</select>
</div>
</li>
</li>
<li
class=
"list-group-item show-c-part"
>
<li
class=
"list-group-item show-c-part"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
...
public/resource/js/shop_edit.js
View file @
48f5c3ed
...
@@ -2,6 +2,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -2,6 +2,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
user
=
{
var
user
=
{
del_value_panfang
:
''
,
del_value_panfang
:
''
,
del_value_anchang
:
''
,
del_value_anchang
:
''
,
initShopRong
:
false
,
//判断是否是需要加载商圈
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
user
.
event
();
user
.
event
();
...
@@ -365,6 +366,50 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -365,6 +366,50 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
};
});
});
$
(
'#disc_internal'
).
click
(
function
(){
user
.
initShopRong
=
true
;
});
$
(
'.bs-example-modal-lg'
).
on
(
'hidden.bs.modal'
,
function
(){
if
(
user
.
initShopRong
){
if
(
$
(
'#disc_internal'
).
val
()
){
$
.
ajax
({
type
:
'GET'
,
url
:
'getBusinessAll'
,
data
:
{
"disc"
:
$
(
'#disc_internal'
).
val
()},
timeout
:
30000
,
// traditional: true,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
tag
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
target
){
tag
+=
'<option value="'
+
target
.
id
+
'">'
+
target
.
name
+
'</option>'
});
$
(
'#business_rong'
).
append
(
tag
);
user
.
initShopRong
=
false
;
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
_loadMainItem
.
hide
();
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
}
}
});
//图片上传,附件上传处理事件
//图片上传,附件上传处理事件
$
(
".upload-image-btn"
).
click
(
function
()
{
$
(
".upload-image-btn"
).
click
(
function
()
{
var
_this
=
$
(
this
),
var
_this
=
$
(
this
),
...
@@ -1086,6 +1131,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1086,6 +1131,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
return
false
;
return
false
;
};
};
if
(
$
(
'#business_rong'
).
val
()
==
-
1
){
alert
(
"请选择商圈"
);
return
false
;
}
if
(
_idRunRoundObj
.
val
().
length
>
20
){
if
(
_idRunRoundObj
.
val
().
length
>
20
){
alert
(
"目前证照经营范围不得超过20个字符"
);
alert
(
"目前证照经营范围不得超过20个字符"
);
return
false
;
return
false
;
...
@@ -1178,6 +1228,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1178,6 +1228,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
'business_scope'
:
_idRunRoundObj
.
val
(),
'business_scope'
:
_idRunRoundObj
.
val
(),
'source'
:
_laiyuanObj
.
val
(),
'source'
:
_laiyuanObj
.
val
(),
'del_agent_data'
:
user
.
del_value_anchang
.
substr
(
0
,
user
.
del_value_anchang
.
length
-
1
),
'del_agent_data'
:
user
.
del_value_anchang
.
substr
(
0
,
user
.
del_value_anchang
.
length
-
1
),
'business_district_id'
:
$
(
'#business_rong'
).
val
()
//'del_agent_dish' : user.del_value_panfang.substr(0 ,user.del_value_panfang.length-1)
//'del_agent_dish' : user.del_value_panfang.substr(0 ,user.del_value_panfang.length-1)
};
};
...
...
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