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
910081be
Commit
910081be
authored
Aug 31, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6fbdfc73
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
242 additions
and
43 deletions
+242
-43
houseList.html
application/index/view/houses/houseList.html
+70
-7
users_list.html
application/index/view/member/users_list.html
+23
-12
myCollectionUserList.html
...ion/index/view/myCollectionUser/myCollectionUserList.html
+19
-11
new_text.html
application/index/view/news/new_text.html
+0
-3
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+19
-8
houseList.js
public/resource/js/houseList.js
+111
-2
No files found.
application/index/view/houses/houseList.html
View file @
910081be
...
...
@@ -86,6 +86,56 @@
width
:
8%
!important
;
}
}
/*上传附件 的 样式*/
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.img-pre-ul
>
li
.pdf-pre-li
{
height
:
70px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
object-fit
:
contain
;
cursor
:
pointer
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
text-align
:
center
;
line-height
:
30px
;
}
.img-pre-ul
>
li
>
a
.pdf-pre-a
{
line-height
:
20px
;
word-break
:
break-all
;
}
.delet-pic-btn
{
color
:
red
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
}
.modal-dialog-dujia
{
width
:
856px
;
}
.phone_list_dujia
{
margin-top
:
34px
;
width
:
257px
;
margin-left
:
-256px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -310,7 +360,7 @@
</div>
<!--是否独家-->
<div
class=
"modal fade"
id=
"modal-dujia"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-dialog
modal-dialog-dujia
"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
...
...
@@ -323,7 +373,7 @@
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group is_dujia_select"
>
<label
class=
"col-sm-
3
control-label"
>
是否独家:
</label>
<label
class=
"col-sm-
2
control-label"
>
是否独家:
</label>
<select
class=
"form-control btn6"
id=
"sel_dujia"
disabled
>
<option
value=
"null"
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
...
...
@@ -331,25 +381,38 @@
</select>
</div>
<div
class=
"form-group is_dujia"
>
<label
class=
"col-sm-
3
control-label"
>
独家合同上传(小于10张):
</label>
<label
class=
"col-sm-
2
control-label"
>
独家合同上传(小于10张):
</label>
<span
id=
"liudan_pic_pre"
></span>
<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>
</div>
<div
class=
"form-group is_dujia"
>
<label
class=
"col-sm-
3
control-label"
>
独家代理有效期:
</label>
<label
class=
"col-sm-
2
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"
>
<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"
>
</div>
<div
class=
"form-group is_dujia"
>
<label
class=
"col-sm-
3
control-label"
>
独家方:
</label>
<label
class=
"col-sm-
2
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"
>
<ul
class=
"phone_list"
></ul>
<ul
class=
"phone_list
phone_list_dujia
"
></ul>
</div>
<!--上传PDF-->
<div
class=
"form-group is_dujia"
>
<label
class=
"col-sm-2 control-label"
>
附件(格式为pdf,选填,上限为3个):
</label>
<div
class=
"col-sm-9"
>
<div
class=
"file-upload-area"
style=
"padding-left:15px!important"
>
<div
class=
"btn-area"
>
<input
type=
"file"
id=
"file_input"
class=
""
data-limittop=
"3"
/>
<!--修改上传文件的最大数字-->
<button
class=
"btn btn-default"
>
选择附件
</button>
</div>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<p><b>
点击文件名称即可下载
</b></p>
</div>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
...
...
application/index/view/member/users_list.html
View file @
910081be
...
...
@@ -181,10 +181,12 @@
}
#bargaininfo_commission_add_btn
{
width
:
10
0%
;
width
:
7
0%
;
margin-bottom
:
20px
;
}
#note_look
{
margin-left
:
67px
;
}
#bargaininfo_commission_add_btn
>
img
{
display
:
block
;
margin
:
0
auto
;
...
...
@@ -328,6 +330,12 @@
width
:
8%
!important
;
}
}
.btn6-yuedaikan
{
width
:
46%
!important
;
}
.btn-guanbi
{
margin-left
:
20px
;
}
</style>
<!--导航star-->
...
...
@@ -657,7 +665,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
id=
"close"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"add_user"
>
<button
type=
"button"
class=
"btn btn-primary
btn-guanbi
"
id=
"add_user"
>
提交
</button>
</div>
...
...
@@ -842,7 +850,7 @@
<!--跟进保存-->
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary right-btn"
id=
"edit_add"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-default
btn-guanbi
"
data-dismiss=
"modal"
>
关闭
</button>
</div>
...
...
@@ -887,9 +895,9 @@
</div>
</div>
<div
class=
"clear"
></div>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间
:
</span>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间
:
</span>
<!--bootstrap 时间控件-->
<input
type=
"text"
value=
" "
class=
"form_datetime form-control btn6 ld-Marheight"
id=
"look_shop_date"
readonly=
"readonly"
>
<input
type=
"text"
value=
" "
class=
"form_datetime form-control btn6
-yuedaikan
ld-Marheight"
id=
"look_shop_date"
readonly=
"readonly"
>
<div
class=
"clear"
></div>
<div
class=
"textarea-con ld-Marheight"
>
...
...
@@ -903,8 +911,11 @@
<tbody
class=
"text-center"
id=
"caozuo_table"
>
</table>
<button
type=
"button"
class=
"btn btn-primary save-look"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary save-look"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default btn-guanbi"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
...
...
@@ -936,7 +947,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
>
<button
type=
"button"
class=
"btn btn-primary
btn-guanbi
"
id=
"confirm_delete"
>
删除
</button>
</div>
...
...
@@ -1020,7 +1031,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"modify_add"
data-dismiss=
"modal"
>
<button
type=
"button"
class=
"btn btn-primary
btn-guanbi
"
id=
"modify_add"
data-dismiss=
"modal"
>
提交
</button>
</div>
...
...
@@ -1348,7 +1359,7 @@
<!--客户详情保存-->
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-default
btn-guanbi
"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
...
...
@@ -1385,7 +1396,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
>
<button
type=
"button"
class=
"btn btn-primary
btn-guanbi
"
id=
"confirm_delete"
>
删除
</button>
</div>
...
...
application/index/view/myCollectionUser/myCollectionUserList.html
View file @
910081be
...
...
@@ -189,12 +189,13 @@
float
:
left
;
width
:
20px
;
}
#bargaininfo_commission_add_btn
{
width
:
10
0%
;
width
:
7
0%
;
margin-bottom
:
20px
;
}
#note_look
{
margin-left
:
67px
;
}
#bargaininfo_commission_add_btn
>
img
{
display
:
block
;
margin
:
0
auto
;
...
...
@@ -290,6 +291,12 @@
font-size
:
20px
;
font-weight
:
700
;
}
.btn6-yuedaikan
{
width
:
46%
!important
;
}
.btn-guanbi
{
margin-left
:
20px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -562,14 +569,14 @@
</div>
</div>
<div
class=
"clear"
></div>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间
:
</span>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间
:
</span>
<!--bootstrap 时间控件-->
<input
type=
"text"
value=
" "
class=
"form_datetime form-control btn6 ld-Marheight"
id=
"look_shop_date"
readonly=
"readonly"
>
<div
class=
"clear"
></div>
<div
class=
"textarea-con ld-Marheight"
>
<span
class=
"fore-span"
>
备注:
</span>
<textarea
name=
" "
rows=
"5"
cols=
"
50
"
id=
"note_look"
></textarea>
<textarea
name=
" "
rows=
"5"
cols=
"
43
"
id=
"note_look"
></textarea>
</div>
</form>
</td>
...
...
@@ -578,9 +585,10 @@
<tbody
class=
"text-center"
id=
"caozuo_table"
>
</table>
<button
type=
"button"
class=
"btn btn-primary save-look"
>
保存
</button>
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary save-look"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default btn-guanbi"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
</div>
...
...
@@ -610,7 +618,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
>
<button
type=
"button"
class=
"btn btn-primary
btn-guanbi
"
id=
"confirm_delete"
>
删除
</button>
</div>
...
...
@@ -694,7 +702,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"modify_add"
data-dismiss=
"modal"
>
<button
type=
"button"
class=
"btn btn-primary
btn-guanbi
"
id=
"modify_add"
data-dismiss=
"modal"
>
提交
</button>
</div>
...
...
@@ -1061,7 +1069,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
>
<button
type=
"button"
class=
"btn btn-primary
btn-guanbi
"
id=
"confirm_delete"
>
删除
</button>
</div>
...
...
application/index/view/news/new_text.html
View file @
910081be
...
...
@@ -281,7 +281,6 @@
<li
class=
"list-group-item"
>
<!--封面图 一张-->
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--<label for="">列表页封面图(1张)</label>-->
<input
readonly=
"readonly"
type=
"text"
name=
"liebiao_pic_input"
class=
"form-control"
style=
"width: 150px !important;display:none"
id=
"liebiao_pic_input"
placeholder=
"请选择图片"
>
<button
class=
"btn btn-default upload-image-btn"
id=
"liebiao_pic_btn"
type=
"button"
data-limittop=
"1"
>
选择图片
</button>
<span
class=
"tip"
></span>
...
...
@@ -295,9 +294,7 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
内容:
</label>
<div
class=
"col-sm-9"
>
<!--<div class="form-group" style="width: 100%;">-->
<div
class=
""
style=
"width: 100%;"
>
<!--<label for="" style="width: 100%;">内容</label>-->
<div
class=
"input-group"
style=
"width: 100%;"
id=
"dajiangtang"
>
<?php
create_editor('goods_sup_id','');
...
...
application/index/view/remark/remark_follow_index.html
View file @
910081be
...
...
@@ -178,10 +178,13 @@
width
:
20px
;
}
#bargaininfo_commission_add_btn
{
width
:
10
0%
;
#bargaininfo_commission_add_btn
{
width
:
7
0%
;
margin-bottom
:
20px
;
}
#note_look
{
margin-left
:
67px
;
}
#bargaininfo_commission_add_btn
>
img
{
display
:
block
;
...
...
@@ -304,6 +307,12 @@
.form-control
[
disabled
]
{
background-color
:
#fff
;
}
.btn6-yuedaikan
{
width
:
46%
!important
;
}
.btn-guanbi
{
margin-left
:
20px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -537,7 +546,7 @@
<!--跟进保存-->
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary right-btn"
id=
"edit_add"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-default
btn-guanbi
"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
...
...
@@ -581,9 +590,9 @@
</div>
</div>
<div
class=
"clear"
></div>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间
:
</span>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间
:
</span>
<!--bootstrap 时间控件-->
<input
type=
"text"
value=
" "
class=
"form_datetime form-control btn6 ld-Marheight"
id=
"look_shop_date"
readonly=
"readonly"
>
<input
type=
"text"
value=
" "
class=
"form_datetime form-control btn6
-yuedaikan
ld-Marheight"
id=
"look_shop_date"
readonly=
"readonly"
>
<div
class=
"clear"
></div>
<div
class=
"textarea-con ld-Marheight"
>
...
...
@@ -597,8 +606,10 @@
<tbody
class=
"text-center"
id=
"caozuo_table"
>
</table>
<button
type=
"button"
class=
"btn btn-primary save-look"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary save-look"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default btn-guanbi"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
...
...
@@ -859,7 +870,7 @@
<!--客户详情保存-->
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-default
btn-guanbi
"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
...
...
public/resource/js/houseList.js
View file @
910081be
...
...
@@ -3,6 +3,15 @@
*/
define
([
'doT'
,
'text!temp/house_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
//处理文件名,长度过长时处理
function
dealFileName
(
str
)
{
//如果文件超过30的长度,则用*代替
if
(
str
.
length
>
26
)
{
return
str
.
slice
(
0
,
23
)
+
'***'
+
str
.
slice
(
-
4
);
}
else
{
return
str
;
};
};
business
=
{
pageNo
:
1
,
/*第几页*/
...
...
@@ -454,6 +463,68 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
business
.
getFollowupList
();
// $('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+_id);
});
//是否独家 下载附件 附件上传处理事件
$
(
"#file_input"
).
change
(
function
()
{
var
_this
=
$
(
this
),
_spFile
=
_this
.
data
(
'spfile'
),
_limitTop
=
_this
.
data
(
'limittop'
),
_fileNum
=
_this
.
parent
().
next
().
find
(
'.delet-pic-btn'
).
length
;
//根据删除按钮的个数,确定文件的个数
if
(
_limitTop
&&
(
_fileNum
<
_limitTop
))
{
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'business_school_file'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
console
.
log
(
formData
);
$
.
ajax
({
type
:
'post'
,
url
:
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
var
_url
=
_data
.
data
.
internet_img_name
;
_this
.
parent
().
next
().
prepend
(
'<li class="pdf-pre-li"><a data-filename="{3}" class="pdf-pre-a" href="javascript:;" title="保存之后才可以点击下载">{2}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
_url
,
'1'
:
decodeURI
(
_url
.
slice
(
_url
.
lastIndexOf
(
'/'
)
+
1
)),
'2'
:
dealFileName
(
decodeURI
(
_url
.
slice
(
_url
.
lastIndexOf
(
'/'
)
+
1
))),
//dealFileName不要忘记
'3'
:
_data
.
data
.
img_path
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
}
else
{
alert
(
'上传上限为 '
+
_limitTop
);
return
false
;
};
});
//附件上传删除键事件
_doc
.
on
(
'click'
,
'.delet-pic-btn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确定删除该文件吗?'
))
{
var
_imgId
=
_this
.
parent
().
attr
(
'data-imgid'
);
var
file_id
=
$
(
this
).
parent
(
'li'
).
attr
(
'id'
)
-
0
;
_this
.
parent
().
remove
();
business
.
addDeleteNewsEvent
(
file_id
);
};
});
},
// 获取信息 手机号 名字
...
...
@@ -523,7 +594,20 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
$
(
'.is_dujia_select'
).
find
(
'select'
).
removeAttr
(
"disabled"
);
$
(
'.is_dujia'
).
find
(
'input'
).
removeAttr
(
"readonly"
);
}
}
};
var
_data
=
{};
//获取附件 对接口
var
file_paths
=
_data
[
'file'
];
if
(
file_paths
){
for
(
var
i
=
0
;
i
<
file_paths
.
length
;
i
++
){
console
.
log
(
file_paths
[
i
][
'file_name'
])
var
_tempArr
=
file_paths
[
i
][
'file_name'
].
split
(
'/'
);
file_paths
[
i
][
'file_name'
]
&&
$
(
'#fujian_ul'
).
append
(
'<li class="pdf-pre-li" id='
+
file_paths
[
i
][
'file_id'
]
+
'><a class="pdf-pre-a" download="{1}" href="{0}" title="点击可下载">{1}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
'/'
+
file_paths
[
i
][
'show_file'
],
'1'
:
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
]))
}));
};
}
}
}
else
{
alert
(
'获取失败!'
);
...
...
@@ -531,12 +615,35 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
});
},
addDeleteNewsEvent
:
function
(
id
){
//删除独家 附件
$
.
ajax
({
url
:
'/index/delNewsFile'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'file_id'
:
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'文件删除成功'
);
}
}
});
},
Dujianew
:
function
()
{
//提交独家的信息
var
images
=
[];
//图片
var
imgs
=
$
(
".jai_dujia"
);
for
(
var
j
=
0
;
j
<
imgs
.
length
;
j
++
)
{
images
.
push
(
imgs
[
j
].
getAttribute
(
"data-img"
))
};
//附件相关
var
_data
=
{};
var
_fujianObj
=
$
(
'#fujian_ul'
).
find
(
'li>a.pdf-pre-a'
);
//附件看的是删除按钮的个数
if
(
_fujianObj
.
length
>
0
){
//判断附件存在,同时,附件可能存在0到5个
for
(
var
i
=
0
;
i
<
_fujianObj
.
length
;
i
++
){
var
one_name
=
_fujianObj
[
i
].
getAttribute
(
'data-filename'
);
//附件取得是data-filename
_data
[
'annex_file_name['
+
i
+
']'
]
=
one_name
;
}
}
console
.
log
(
$
(
"#sel_dujia"
).
val
());
if
(
$
(
"#sel_dujia"
).
val
()
==
null
)
{
alert
(
"请选择是否独家"
);
...
...
@@ -582,7 +689,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
"exclusive_id"
:
business
.
exclusive_id
,
//经纪人id
"agent_start_time"
:
$
(
"#start_date_dujia"
).
val
(),
//开始时间
"agent_end_time"
:
$
(
"#end_date_dujia"
).
val
(),
//结束时间
"exclusive_img"
:
images
//图片
"exclusive_img"
:
images
,
//图片
"exclusive_file"
:
_data
//附件
},
dataType
:
"json"
,
success
:
function
(
data
)
{
...
...
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