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
a9388187
Commit
a9388187
authored
Aug 22, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家权限修改
parent
05a9ef25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
houseList.html
application/index/view/houses/houseList.html
+3
-3
houseList.js
public/resource/js/houseList.js
+27
-1
No files found.
application/index/view/houses/houseList.html
View file @
a9388187
...
@@ -308,21 +308,21 @@
...
@@ -308,21 +308,21 @@
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
</select>
</select>
</div>
</div>
<div
class=
"form-group
"
>
<div
class=
"form-group
is_dujia"
>
<label
class=
"col-sm-3 control-label"
>
独家合同上传(小于10张):
</label>
<label
class=
"col-sm-3 control-label"
>
独家合同上传(小于10张):
</label>
<span
id=
"liudan_pic_pre"
></span>
<span
id=
"liudan_pic_pre"
></span>
<input
readonly=
"readonly"
type=
"hidden"
name=
"liudan_pic_pre"
class=
"form-control btn6"
placeholder=
"请选择图片"
>
<input
readonly=
"readonly"
type=
"hidden"
name=
"liudan_pic_pre"
class=
"form-control btn6"
placeholder=
"请选择图片"
>
<button
class=
"btn btn-default liudan_pic_btn"
id=
"liudan_pic_btn"
type=
"button"
>
选择图片
</button>
<button
class=
"btn btn-default liudan_pic_btn"
id=
"liudan_pic_btn"
type=
"button"
>
选择图片
</button>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group
is_dujia
"
>
<label
class=
"col-sm-3 control-label"
>
独家代理有效期:
</label>
<label
class=
"col-sm-3 control-label"
>
独家代理有效期:
</label>
<input
class=
"form-control btn5 "
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date_dujia"
name=
"start_date_dujia"
type=
"date"
>
<input
class=
"form-control btn5 "
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date_dujia"
name=
"start_date_dujia"
type=
"date"
>
<span
class=
"fore-span"
>
-
</span>
<span
class=
"fore-span"
>
-
</span>
<input
class=
"form-control btn5 "
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date_dujia"
name=
"end_date_dujia"
type=
"date"
>
<input
class=
"form-control btn5 "
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date_dujia"
name=
"end_date_dujia"
type=
"date"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group
is_dujia
"
>
<label
class=
"col-sm-3 control-label"
>
独家方:
</label>
<label
class=
"col-sm-3 control-label"
>
独家方:
</label>
<input
class=
"form-control btn7 phone_jia"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"exclusive"
placeholder=
"请输入姓名或手机号码"
type=
"text"
value=
""
id=
"exclusive"
>
<input
class=
"form-control btn7 phone_jia"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"exclusive"
placeholder=
"请输入姓名或手机号码"
type=
"text"
value=
""
id=
"exclusive"
>
<ul
class=
"phone_list"
></ul>
<ul
class=
"phone_list"
></ul>
...
...
public/resource/js/houseList.js
View file @
a9388187
...
@@ -102,6 +102,15 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -102,6 +102,15 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
});
});
$
(
'#modal-dujia'
).
on
(
'show.bs.modal'
,
function
()
{
business
.
showOrHideDujia
();
});
$
(
'#sel_dujia'
).
change
(
function
(){
business
.
showOrHideDujia
();
});
console
.
log
(
user_info_obj
);
$
(
'#persional_shop'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
$
(
'#persional_shop'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
if
(
business
.
all_shop
){
if
(
business
.
all_shop
){
$
(
'#persional_shop'
).
html
(
"个人商铺"
);
$
(
'#persional_shop'
).
html
(
"个人商铺"
);
...
@@ -447,6 +456,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -447,6 +456,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
if
(
data
.
data
)
{
$
(
"#sel_dujia"
).
val
(
data
.
data
.
is_exclusive_type
);
//是否独家
$
(
"#sel_dujia"
).
val
(
data
.
data
.
is_exclusive_type
);
//是否独家
business
.
showOrHideDujia
();
$
(
"#start_date_dujia"
).
val
(
data
.
data
.
agent_start_time
);
//上传时间
$
(
"#start_date_dujia"
).
val
(
data
.
data
.
agent_start_time
);
//上传时间
$
(
"#end_date_dujia"
).
val
(
data
.
data
.
agent_end_time
);
$
(
"#end_date_dujia"
).
val
(
data
.
data
.
agent_end_time
);
$
(
"#exclusive"
).
val
(
data
.
data
.
name
);
$
(
"#exclusive"
).
val
(
data
.
data
.
name
);
...
@@ -458,7 +468,13 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -458,7 +468,13 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
});
});
$
(
"#liudan_pic_pre"
).
html
(
img_url
);
$
(
"#liudan_pic_pre"
).
html
(
img_url
);
$
(
'.J_preview'
).
preview
();
//放大图片
$
(
'.J_preview'
).
preview
();
//放大图片
if
(
check_auth
(
'index/editExclusive'
))
{
$
(
'.is_dujia'
).
find
(
'input'
).
removeAttr
(
"readonly"
);
}
else
if
(
(
business
.
name
+
'-'
+
business
.
phone
)
===
data
.
data
.
name
)
{
(
'.is_dujia'
).
find
(
'input'
).
removeAttr
(
"readonly"
);
}
else
{
$
(
'input'
).
attr
(
"readonly"
,
"readonly"
)
}
}
}
}
else
{
}
else
{
alert
(
'获取失败!'
);
alert
(
'获取失败!'
);
...
@@ -518,6 +534,16 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -518,6 +534,16 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
}
});
});
},
},
showOrHideDujia
:
function
(){
var
_this
=
this
;
if
(
$
(
'#sel_dujia'
).
val
()
==
0
)
{
$
(
'.is_dujia'
).
hide
();
}
else
{
$
(
'.is_dujia'
).
show
();
}
},
Caozuo
:
function
()
{
//获取独家的信息
Caozuo
:
function
()
{
//获取独家的信息
var
caozuo_table
=
""
;
var
caozuo_table
=
""
;
$
.
ajax
({
$
.
ajax
({
...
...
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