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
1e34e5fe
Commit
1e34e5fe
authored
Feb 14, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台修改
parent
a8fe6c33
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
440 additions
and
20 deletions
+440
-20
shop_detail_pc.html
application/app_broker/view/index/shop_detail_pc.html
+1
-1
MyTransfer.php
application/index/controller/MyTransfer.php
+22
-0
houseList.html
application/index/view/houses/houseList.html
+29
-6
index.html
application/index/view/transfer/index.html
+9
-0
myTransferList.html
application/index/view/transfer/myTransferList.html
+141
-0
route.php
application/route.php
+1
-0
shop_detail_pc.css
public/app/css/shop_detail_pc.css
+12
-10
houseList.js
public/resource/js/houseList.js
+3
-3
myTransfer.js
public/resource/js/myTransfer.js
+179
-0
house_template_tpl.html
public/resource/template/house_template_tpl.html
+3
-0
my_transfer_template_tpl.html
public/resource/template/my_transfer_template_tpl.html
+40
-0
No files found.
application/app_broker/view/index/shop_detail_pc.html
View file @
1e34e5fe
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</head>
</head>
<body
style=
"display: none;"
>
<body
style=
"display: none;"
>
<div
id=
"app"
>
<div
id=
"app"
style=
"color: #061C43;font-size: 14px;"
>
<main>
<main>
<section
v-show=
"dataCode==200"
>
<section
v-show=
"dataCode==200"
>
<table>
<table>
...
...
application/index/controller/MyTransfer.php
0 → 100644
View file @
1e34e5fe
<?php
namespace
app\index\controller
;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/3/13
* Time: 15:48
*/
use
app\index\extend\Basic
;
class
MyTransfer
extends
Basic
{
public
function
myTransferList
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'transfer/myTransferList'
);
}
}
}
application/index/view/houses/houseList.html
View file @
1e34e5fe
...
@@ -196,6 +196,21 @@
...
@@ -196,6 +196,21 @@
.ld-Marheight
{
.ld-Marheight
{
margin-top
:
5px
;
margin-top
:
5px
;
}
}
/*商铺详情 样式优化*/
.btn-info-liu
{
font-size
:
18px
;
color
:
#FF8018
;
}
.btn-default-liu
{
opacity
:
0.4
;
font-size
:
18px
;
color
:
#1F3865
;
}
.detail-modal-header-tab
span
{
cursor
:
pointer
;
margin-left
:
30px
;
font-weight
:
600
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -240,6 +255,13 @@
...
@@ -240,6 +255,13 @@
<option
value=
"3"
>
无效
</option>
<option
value=
"3"
>
无效
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"lease_state"
>
<option
value=
""
>
出租状态
</option>
<option
value=
"1"
>
求租
</option>
<option
value=
"2"
>
已租
</option>
<option
value=
"3"
>
无效
</option>
</select>
<select
class=
"form-control btn2 "
id=
"yetai_id"
>
<select
class=
"form-control btn2 "
id=
"yetai_id"
>
<option
value=
""
selected=
"selected"
>
业态筛选
</option>
<option
value=
""
selected=
"selected"
>
业态筛选
</option>
</select>
</select>
...
@@ -339,6 +361,7 @@
...
@@ -339,6 +361,7 @@
<th
class=
"text-center"
>
盘方
</th>
<th
class=
"text-center"
>
盘方
</th>
<th
class=
"text-center"
>
创建时间
</th>
<th
class=
"text-center"
>
创建时间
</th>
<th
class=
"text-center"
>
上下架
</th>
<th
class=
"text-center"
>
上下架
</th>
<th
class=
"text-center"
>
出租状态
</th>
<th
class=
"text-center"
>
对客户展示
</th>
<th
class=
"text-center"
>
对客户展示
</th>
<th
class=
"text-center"
>
操作
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</tr>
...
@@ -568,14 +591,14 @@
...
@@ -568,14 +591,14 @@
×
×
</button>
</button>
<h4
class=
"modal-title detail-modal-header-tab"
>
<h4
class=
"modal-title detail-modal-header-tab"
>
<
a
href=
"javascript:;"
class=
"btn btn-info"
>
查看商铺
</a
>
<
span
class=
"btn-info-liu"
>
查看商铺
</span
>
<
a
href=
"javascript:;"
class=
"btn btn-default"
>
商铺跟进
</a
>
<
span
class=
"btn-default-liu"
>
商铺跟进
</span
>
<
a
href=
"javascript:;"
class=
"btn btn-default"
>
盘方记录
</a
>
<
span
class=
"btn-default-liu"
>
盘方记录
</span
>
<
a
href=
"javascript:;"
class=
"btn btn-default"
>
查看日志
</a
>
<
span
class=
"btn-default-liu"
>
查看日志
</span
>
<
a
href=
"javascript:;"
class=
"btn btn-default"
>
编辑日志
</a
>
<
span
class=
"btn-default-liu"
>
编辑日志
</span
>
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body modal-body-one"
>
<div
class=
"modal-body modal-body-one"
style=
"padding-top: 0;"
>
<div
class=
"detail-modal-body-sec"
>
<div
class=
"detail-modal-body-sec"
>
<iframe
class=
"iframe-shop-detail"
></iframe>
<iframe
class=
"iframe-shop-detail"
></iframe>
</div>
</div>
...
...
application/index/view/transfer/index.html
View file @
1e34e5fe
...
@@ -60,6 +60,15 @@
...
@@ -60,6 +60,15 @@
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_name"
placeholder=
"店铺名"
data-rule-required=
"false"
id=
"shop_name"
placeholder=
"店铺名"
type=
"text"
value=
""
>
type=
"text"
value=
""
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"is_guest"
>
<option
value=
""
>
是否有客方
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"2"
>
否
</option>
</select>
<div
class=
"clear"
style=
"clear: both;"
>
</div>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"form_search_reset"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"form_search_reset"
>
重置
</span>
</form>
</form>
...
...
application/index/view/transfer/myTransferList.html
0 → 100644
View file @
1e34e5fe
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"myTransfer"
/>
<!--导航star-->
<!-- Sidebar -->
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
委托转铺列表
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"9"
>
<form
id=
"form_search"
>
<!--<span class="fore-span">提交时间:</span>
<div class="form-group">
<div class="input-group date form_date " data-date=""
data-date-format="yyyy-MM-dd" data-link-field="dtp_input2"
data-link-format="yyyy-mm-dd" style="width: 200px;float: left;">
<input class="form-control" size="16" type="text" value=""
id="start_date"
readonly>
<span class="input-group-addon"><span
class="glyphicon glyphicon-remove"></span></span>
<span class="input-group-addon"><span
class="glyphicon glyphicon-calendar"></span></span>
</div>
<div class="input-group date form_date " data-date=""
data-date-format="yyyy-MM-dd" data-link-field="dtp_input2"
data-link-format="yyyy-mm-dd" style="width: 200px;float: left">
<input class="form-control" size="16" type="text" value=""
id="end_date"
readonly>
<span class="input-group-addon"><span
class="glyphicon glyphicon-remove"></span></span>
<span class="input-group-addon"><span
class="glyphicon glyphicon-calendar"></span></span>
</div>
</div>-->
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"name"
placeholder=
"客户姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"phone"
placeholder=
"手机号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_name"
placeholder=
"店铺名"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"form_search_reset"
>
重置
</span>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
店铺名
</th>
<th
class=
"text-center"
>
称呼
</th>
<th
class=
"text-center"
>
客户电话
</th>
<th
class=
"text-center"
>
经营业态
</th>
<th
class=
"text-center"
>
所在区域
</th>
<th
class=
"text-center"
>
具体地址
</th>
<th
class=
"text-center"
>
期望月租金
</th>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
id=
"sublet_list"
class=
"text-center"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right pageinfo"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /#wrapper -->
<!-- /#跟进模态框 -->
<div
class=
"modal fade"
id=
"modal-process"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
跟进
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"table-responsive table-responsive1"
>
<table
class=
"table table-striped table-bordered table-hover"
>
<thead>
<tr>
<th>
跟进内容
</th>
<th>
跟进人
</th>
<th>
跟进时间
</th>
</tr>
</thead>
<tbody
id=
"list_follow"
>
</tbody>
</table>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
备注
</label>
<div
class=
"controls"
>
<textarea
class=
"form-control"
rows=
"3"
id=
"content"
></textarea>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"submit_follow"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
application/route.php
View file @
1e34e5fe
...
@@ -90,6 +90,7 @@ Route::group('index', [
...
@@ -90,6 +90,7 @@ Route::group('index', [
//transfer转铺列表
//transfer转铺列表
'transfer_list'
=>
[
'index/transfer/index'
,
[
'method'
=>
'get'
]],
'transfer_list'
=>
[
'index/transfer/index'
,
[
'method'
=>
'get'
]],
'my_transfer_list'
=>
[
'index/MyTransfer/myTransferList'
,
[
'method'
=>
'get'
]],
//我的转铺列表
'get_transfer'
=>
[
'index/transfer/getlist'
,
[
'method'
=>
'get'
]],
'get_transfer'
=>
[
'index/transfer/getlist'
,
[
'method'
=>
'get'
]],
'addFollow'
=>
[
'index/transfer/addFollow'
,
[
'method'
=>
'post'
]],
//添加跟进
'addFollow'
=>
[
'index/transfer/addFollow'
,
[
'method'
=>
'post'
]],
//添加跟进
'followList'
=>
[
'index/transfer/followList'
,
[
'method'
=>
'get'
]],
//跟进记录
'followList'
=>
[
'index/transfer/followList'
,
[
'method'
=>
'get'
]],
//跟进记录
...
...
public/app/css/shop_detail_pc.css
View file @
1e34e5fe
...
@@ -18,7 +18,7 @@ table td{
...
@@ -18,7 +18,7 @@ table td{
height
:
20px
;
height
:
20px
;
}
}
tbody
>
tr
.border-bottom
{
tbody
>
tr
.border-bottom
{
border-bottom
:
1px
solid
#999
;
border-bottom
:
1px
solid
rgba
(
206
,
213
,
235
,
.5
)
;
}
}
tbody
>
tr
.tr-bold
{
tbody
>
tr
.tr-bold
{
font-size
:
16px
;
font-size
:
16px
;
...
@@ -27,8 +27,8 @@ tbody>tr.tr-bold{
...
@@ -27,8 +27,8 @@ tbody>tr.tr-bold{
}
}
.img-list
>
li
{
.img-list
>
li
{
width
:
140
px
;
width
:
66
px
;
height
:
140
px
;
height
:
66
px
;
}
}
.img-list
>
li
+
li
{
.img-list
>
li
+
li
{
margin-left
:
20px
;
margin-left
:
20px
;
...
@@ -43,11 +43,12 @@ tbody>tr.tr-bold{
...
@@ -43,11 +43,12 @@ tbody>tr.tr-bold{
background-color
:
#e0e0e0
;
background-color
:
#e0e0e0
;
}
}
.phone-list
>
li
>
a
{
.phone-list
>
li
>
a
{
background-color
:
#286090
;
color
:
#FF750E
;
color
:
white
;
padding
:
0
5px
;
padding
:
0
5px
;
border-radius
:
4px
;
border-radius
:
4px
;
margin-left
:
6px
;
margin-left
:
6px
;
font-weight
:
600
;
font-size
:
15px
;
}
}
.phone-list
>
li
+
li
{
.phone-list
>
li
+
li
{
margin-left
:
20px
;
margin-left
:
20px
;
...
@@ -243,10 +244,11 @@ html{
...
@@ -243,10 +244,11 @@ html{
/*c端公开样式*/
/*c端公开样式*/
.is-public-user
{
.is-public-user
{
display
:
inline-block
;
display
:
inline-block
;
background-color
:
#286090
;
background-image
:
linear-gradient
(
-146deg
,
#FFDC0F
0%
,
#FF750E
91%
);
border-radius
:
3px
;
/*background-color: #FF750E;*/
color
:
white
;
color
:
white
;
padding
:
0
3px
;
padding
:
0
3px
;
border-radius
:
6px
;
width
:
83px
;
width
:
83px
;
height
:
34px
;
height
:
34px
;
line-height
:
34px
;
line-height
:
34px
;
...
...
public/resource/js/houseList.js
View file @
1e34e5fe
...
@@ -477,11 +477,11 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -477,11 +477,11 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
else
{};
}
else
{};
});
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>
a
'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>
span
'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default
'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default
'
);
_this
.
removeClass
(
'btn-default
-liu'
).
addClass
(
'btn-info-liu'
).
siblings
().
removeClass
(
'btn-info-liu'
).
addClass
(
'btn-default-liu
'
);
business
.
detailTabIndex
=
_this
.
index
();
business
.
detailTabIndex
=
_this
.
index
();
$
(
'.detail-modal-body-sec:nth-of-type('
+
(
business
.
detailTabIndex
+
1
)
+
')'
).
show
().
siblings
().
hide
();
$
(
'.detail-modal-body-sec:nth-of-type('
+
(
business
.
detailTabIndex
+
1
)
+
')'
).
show
().
siblings
().
hide
();
if
(
business
.
detailTabIndex
==
0
){
if
(
business
.
detailTabIndex
==
0
){
...
@@ -709,7 +709,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -709,7 +709,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_this
.
removeClass
(
'btn-success'
).
addClass
(
'btn-warning'
);
_this
.
removeClass
(
'btn-success'
).
addClass
(
'btn-warning'
);
var
_id
=
_this
.
attr
(
'data-id'
);
var
_id
=
_this
.
attr
(
'data-id'
);
business
.
id
=
_id
;
business
.
id
=
_id
;
$
(
'.detail-modal-header-tab>
a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default
'
);
$
(
'.detail-modal-header-tab>
span:nth-of-type(1)'
).
removeClass
(
'btn-default-liu'
).
addClass
(
'btn-info-liu'
).
siblings
().
removeClass
(
'btn-info-liu'
).
addClass
(
'btn-default-liu
'
);
business
.
detailTabIndex
=
0
;
business
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
...
...
public/resource/js/myTransfer.js
0 → 100644
View file @
1e34e5fe
define
([
'doT'
,
'text!temp/transfer_template_tpl.html'
,
'css!style/home.css'
,
'paginationStart'
],
function
(
doT
,
template
)
{
user
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
urls
:
''
,
init
:
function
()
{
;(
function
(
$
){
$
.
fn
.
datetimepicker
.
dates
[
'zh-CN'
]
=
{
days
:
[
"星期日"
,
"星期一"
,
"星期二"
,
"星期三"
,
"星期四"
,
"星期五"
,
"星期六"
,
"星期日"
],
daysShort
:
[
"周日"
,
"周一"
,
"周二"
,
"周三"
,
"周四"
,
"周五"
,
"周六"
,
"周日"
],
daysMin
:
[
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
,
"日"
],
months
:
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
],
monthsShort
:
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
],
today
:
"今日"
,
suffix
:
[],
meridiem
:
[
"am"
,
"pm"
],
weekStart
:
1
,
};
}(
jQuery
));
$
(
'.form_datetime'
).
datetimepicker
({
//language: 'fr',
weekStart
:
1
,
todayBtn
:
1
,
autoclose
:
1
,
todayHighlight
:
1
,
startView
:
2
,
forceParse
:
0
,
showMeridian
:
1
});
$
(
'.form_date'
).
datetimepicker
({
language
:
'zh-CN'
,
weekStart
:
1
,
todayBtn
:
1
,
autoclose
:
1
,
todayHighlight
:
1
,
startView
:
2
,
minView
:
2
,
forceParse
:
0
});
$
(
'.form_time'
).
datetimepicker
({
language
:
'zh-CN'
,
weekStart
:
1
,
todayBtn
:
1
,
autoclose
:
1
,
todayHighlight
:
1
,
startView
:
1
,
minView
:
0
,
maxView
:
1
,
forceParse
:
0
});
//初始化dot
$
(
"body"
).
append
(
template
);
user
.
getList
();
user
.
event
();
},
event
:
function
()
{
$
(
"#form_search_reset"
).
click
(
function
()
{
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
"#search"
).
click
(
function
()
{
user
.
getList
(
1
);
});
$
(
"#submit_follow"
).
click
(
function
()
{
user
.
addFollow
();
});
$
(
'#datetimepicker'
).
datetimepicker
({
format
:
'yyyy-MM-dd'
,
language
:
'zh-CN'
,
pickTime
:
false
}).
on
(
'changeDate'
,
function
(){
$
(
this
).
datetimepicker
(
'hide'
);
});
},
getList
:
function
(
pageNo
)
{
user
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
start_date
=
$
(
"#start_date"
).
val
();
params
.
end_date
=
$
(
"#end_date"
).
val
();
params
.
name
=
$
(
"#name"
).
val
();
params
.
phone
=
$
(
"#phone"
).
val
();
params
.
shop_name
=
$
(
"#shop_name"
).
val
();
params
.
pageNo
=
user
.
pageNo
;
params
.
pageSize
=
user
.
pageSize
;
$
.
ajax
({
url
:
'/index/get_transfer'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'transfer_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#sublet_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
user
.
pageSize
,
user
.
getList
);
/* $ ("#pagediv").pagination ({
length: data.data.total,
current: pageNo,
coping:true,
every: user.pageSize,
onClick: function (el) {
user.getList (el.num.current);
}
});*/
/* pagination_pages = Math.ceil(data.data.total/user.pageSize);
pagination_totals = data.data.total;
addpage(user.getList);*/
}
});
},
addFollow
:
function
()
{
var
params
=
{};
params
.
type
=
1
;
params
.
id
=
id
;
params
.
content
=
$
(
"#content"
).
val
();
$
.
ajax
({
url
:
'/index/addFollow'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
$
(
"#modal-process"
).
modal
(
'hide'
);
}
else
{
alert
(
data
.
msg
);
}
}
});
}
};
return
user
;
});
var
id
;
function
alertFollow
(
obj
){
id
=
$
(
obj
).
attr
(
"data-id"
);
$
(
"#content"
).
val
(
''
);
$
.
ajax
({
url
:
'/index/followList'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"id"
:
id
,
"type"
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
str
=
''
;
$
(
"#list_follow"
).
empty
();
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
"<tr><td>"
+
item
[
'content'
]
+
"</td><td>"
+
item
[
'admin_name'
]
+
"</td><td>"
+
item
[
'create_time'
]
+
"</td></tr>"
;
});
if
(
str
){
$
(
"#list_follow"
).
html
(
str
);
}
else
{
$
(
"#list_follow"
).
html
(
'暂无数据'
);
}
}
else
{
alert
(
data
.
msg
);
}
}
});
}
\ No newline at end of file
public/resource/template/house_template_tpl.html
View file @
1e34e5fe
...
@@ -60,6 +60,9 @@
...
@@ -60,6 +60,9 @@
无效
无效
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
求租
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
是
是
...
...
public/resource/template/my_transfer_template_tpl.html
0 → 100644
View file @
1e34e5fe
<script
id=
"transfer_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%=
it
[
item
][
"shop_name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"appellation"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"tel"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"manage_type"
]
%
]
<!--
[
%
if
(
it
[
item
][
'manage_type'
]
==
0
)
{
%
]
餐饮美食
[
%
}
else
if
(
it
[
item
][
'manage_type'
]
==
1
){
%
]
百货零售
[
%
}
else
if
(
it
[
item
][
'manage_type'
]
==
2
){
%
]
休闲娱乐
[
%
}
else
{
%
]
其他
[
%
}
%
]
-->
<
/td
>
<
td
>
[
%=
it
[
item
][
"province"
]
%
]
-
[
%=
it
[
item
][
"city"
]
%
]
-
[
%=
it
[
item
][
"district"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"address_detail"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"expected_rent"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-process"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['id'] %]"
onclick
=
"alertFollow(this)"
>
跟进
<
/a
>
[
%
if
(
it
[
item
][
"status"
]
==
0
){
%
]
<
a
href
=
"/index/houseEdit?source=transfer_list&sublet_id=[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
class
=
"btn1 btn-danger"
>
转为上架商铺
<
/a
>
[
%
}
else
{
%
]
<
a
href
=
"#modal-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['id'] %], [%= it[item]['status'] %]"
class
=
"btn1 btn-info"
>
已转为上架商铺
<
/a
>
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
\ No newline at end of file
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