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
454782b9
Commit
454782b9
authored
Apr 19, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
49c6efe9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
190 additions
and
8 deletions
+190
-8
UserEntrusted.php
application/index/controller/UserEntrusted.php
+22
-0
getCollection.html
application/index/view/finance/getCollection.html
+6
-5
userEntrusted.html
application/index/view/report/userEntrusted.html
+0
-0
route.php
application/route.php
+1
-0
getCollection.js
public/resource/js/getCollection.js
+6
-3
userEntrusted.js
public/resource/js/userEntrusted.js
+131
-0
userEntrusted_list_template_tpl.html
...ic/resource/template/userEntrusted_list_template_tpl.html
+24
-0
No files found.
application/index/controller/UserEntrusted.php
0 → 100644
View file @
454782b9
<?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
UserEntrusted
extends
Basic
{
public
function
userEntrustedList
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'report/userEntrusted'
);
}
}
}
application/index/view/finance/getCollection.html
View file @
454782b9
...
...
@@ -888,11 +888,12 @@
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否开业:
</span></strong>
<!--<div class="col-xs-6">-->
<span
id=
"running"
class=
"col-xs-6 ld-Marheight"
></span>
<!--<select class="form-control" id="running">
<option value="0">是</option>
<option value="1">否</option>
</select>-->
<!--<span id="running" class="col-xs-6 ld-Marheight"></span>-->
<select
class=
"form-control"
id=
"running"
>
<option
value=
"3"
>
请选择
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
<!--</div>-->
</div>
</div>
...
...
application/index/view/report/userEntrusted.html
0 → 100644
View file @
454782b9
This diff is collapsed.
Click to expand it.
application/route.php
View file @
454782b9
...
...
@@ -333,6 +333,7 @@ Route::group('index', [
'uploadImg'
=>
[
'index/UploadImg/uploadImg'
,
[
'method'
=>
'POST'
]
],
//全局图片上传
'uploadEditor'
=>
[
'index/UploadImg/uploadEditor'
,
[
'method'
=>
'POST'
]
],
//全局图片上传
'followUpList'
=>
[
'index/HouseFollowUp/followUpList'
,
[
'method'
=>
'GET'
]
],
//商铺跟进liu
'userEntrustedList'
=>
[
'index/UserEntrusted/userEntrustedList'
,
[
'method'
=>
'GET'
]
],
//客户委托找铺liu
'userModalList'
=>
[
'index/Member/userDetail'
,
[
'method'
=>
'GET'
]
],
//客户跟进模态框,公用
'inspectionRecordList'
=>
[
'index/InspectionRecord/inspectionRecordList'
,
[
'method'
=>
'GET'
]
],
//约带看记录liu
'realtimePerformance'
=>
[
'index/RealTimePerformance/realtimePerformanceList'
,
[
'method'
=>
'GET'
]
],
//实时业绩liu
...
...
public/resource/js/getCollection.js
View file @
454782b9
...
...
@@ -1186,9 +1186,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
if
(
$
(
'#payNo'
).
val
()){
//支付户名
params
.
transfer_name
=
$
(
'#payNo'
).
val
()
};
if
(
$
(
'#running'
).
val
()){
//是否开业 1是 0否
if
(
$
(
'#running'
).
val
()
==
3
){
//是否开业 1是 0否
alert
(
"请选择是否开业"
);
return
;
}
else
{
params
.
is_open
=
$
(
'#running'
).
val
()
};
};
if
(
$
(
'#fenhong'
).
val
()){
//分红
params
.
is_dividend
=
$
(
'#fenhong'
).
val
()
};
...
...
@@ -1526,7 +1529,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
"#belongT"
).
text
(
data
.
store_name
);
doc
.
find
(
"#payType"
).
val
(
data
.
pay_type
);
doc
.
find
(
"#payNo"
).
val
(
data
.
transfer_name
);
doc
.
find
(
"#running"
).
text
(
data
.
is_open
==
1
?
"是"
:
"否"
);
// doc.find("#running").text(data.is_open == 1 ? "是":"否");//收款页面 是否开业变成可编辑的
doc
.
find
(
"#fenhong"
).
val
(
data
.
is_dividend
);
doc
.
find
(
'#pinpai'
).
text
(
data
.
industry_type
);
var
source_id
=
data
.
source_id
;
...
...
public/resource/js/userEntrusted.js
0 → 100644
View file @
454782b9
define
([
'doT'
,
'text!temp/userEntrusted_list_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
record
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
record_id
:
''
,
type
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
boxphoto
:
''
,
mainTabIndex
:
0
,
url
:
'/broker/reportListForPc'
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
record
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
record
.
getList
(
1
);
_doc
.
on
(
'click'
,
'a[href="#modal-time"]'
,
function
(
e
)
{
//获取时间轴
record
.
record_id
=
$
(
this
).
attr
(
"data-id"
);
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
record
.
record_id
);
});
$
(
"#search"
).
click
(
function
()
{
//搜索
record
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
});
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
record
.
mainTabIndex
=
_this
.
index
();
record
.
getList
(
1
);
});
if
(
!
check_auth
(
'index/inspectionRecordStore/1'
))
{
$
(
"#is_show_store"
).
hide
();
}
if
(
!
check_auth
(
'index/inspectionRecordDistrict/2'
))
{
$
(
"#is_show_district"
).
hide
();
}
if
(
!
check_auth
(
'index/inspectionRecordAll/3'
))
{
$
(
"#is_show_all"
).
hide
();
}
$
(
"#our"
).
click
(
function
()
{
record
.
url
=
"/broker/reportListForPc"
;
});
$
(
"#is_show_store"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordStore/1"
;
});
$
(
"#is_show_district"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordDistrict/2"
;
});
$
(
"#is_show_all"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordAll/3"
;
});
},
getList
:
function
(
pageNo
)
{
//获取约带看记录列表
record
.
pageNo
=
pageNo
;
//接收参数
var
params
=
{};
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
params
.
start_time
=
$
(
'#create_time_start'
).
val
();
params
.
end_time
=
$
(
'#create_time_end'
).
val
();
params
.
report_agent_name
=
$
(
'#user_name'
).
val
();
params
.
report_agent_phone
=
$
(
'#user_phone'
).
val
();
params
.
internal_title
=
$
(
'#house_title'
).
val
();
params
.
user_phone
=
$
(
'#report_agent_phone'
).
val
();
params
.
order_id
=
$
(
'#report_id'
).
val
();
//全部约带看记录 订单id搜索
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
type
=
1
;
params
.
agent_id
=
user_info_obj
.
id
;
//新加城市相关 筛选
params
.
city
=
$
(
'#city-choose'
).
val
();
params
.
shop_id
=
$
(
'#shop_id'
).
val
();
params
.
internal_address
=
$
(
'#shop_address'
).
val
();
params
.
user_id
=
$
(
'#user_id'
).
val
();
params
.
pageNo
=
record
.
pageNo
;
params
.
pageSize
=
record
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
record
.
url
,
//约带看记录 对接接口(2.9.6 有权限的人 才能看到)
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'userEntrusted_list_tpl'
).
innerHTML
);
if
(
data
.
data
.
list
)
{
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
}
else
{
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
));
}
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
record
.
pageSize
,
record
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
};
return
record
;
});
\ No newline at end of file
public/resource/template/userEntrusted_list_template_tpl.html
0 → 100644
View file @
454782b9
<script
id=
"userEntrusted_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
data
-
data
=
"[%= encodeURIComponent(JSON.stringify(it[item])) %]"
>
<!--
对接接口
-->
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
客户
/
跟进
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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