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
e9a04c7f
Commit
e9a04c7f
authored
Mar 27, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺审核
parent
375c16fe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
25 deletions
+62
-25
video_check_list.html
application/index/view/video_check/video_check_list.html
+4
-2
inspectionRecordAll.js
public/resource/js/inspectionRecordAll.js
+1
-1
reportList.js
public/resource/js/reportList.js
+2
-1
videoCheckList.js
public/resource/js/videoCheckList.js
+31
-21
video_check_list_template_tpl.html
public/resource/template/video_check_list_template_tpl.html
+24
-0
No files found.
application/index/view/video_check/video_check_list.html
View file @
e9a04c7f
video_check_list
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"videoCheckList"
/>
<style>
video
{
...
...
@@ -163,7 +163,9 @@ video_check_list{layout name="global/frame_two_tpl" /}
<div
class=
"modal-body modal-body-one"
>
<div
class=
"detail-modal-body-sec"
>
视频
<table>
<tbody
class=
"text-center"
id=
"shop-details-video"
>
</table>
</div>
<div
class=
"detail-modal-body-sec"
>
<iframe
class=
"iframe-shop-detail"
></iframe>
...
...
public/resource/js/inspectionRecordAll.js
View file @
e9a04c7f
...
...
@@ -371,7 +371,7 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
};
if
(
imgname
.
join
(
','
))
{
// params.transfer_img = imgname.join(',');
params
.
transfer_img
=
imgname
;
params
.
transfer_img
=
JSON
.
stringify
(
imgname
)
;
}
else
{
return
...
...
public/resource/js/reportList.js
View file @
e9a04c7f
...
...
@@ -934,7 +934,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
imgname
[
i
]
=
$
(
'.result-du-liu>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
if
(
imgname
.
join
(
','
))
{
params
.
transfer_img
=
imgname
.
join
(
','
);
// params.transfer_img = imgname.join(',');
params
.
transfer_img
=
JSON
.
stringify
(
imgname
);
}
else
{
return
};
...
...
public/resource/js/videoCheckList.js
View file @
e9a04c7f
...
...
@@ -89,8 +89,8 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
if
(
house
.
detailTabIndex
==
1
){
$
(
'.iframe-shop-detail'
).
attr
(
'src'
,
'/app_broker/shop_detail_pc?shop_id='
+
house
.
id
);
}
else
if
(
house
.
detailTabIndex
==
0
){
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
house
.
getFollowupList
();
house
.
shopVideo
();
//商铺视频
}
});
//点击审核视频 按钮
...
...
@@ -127,20 +127,7 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
var
_this
=
$
(
this
);
house
.
checkVideo
();
});
//点击查看,触发定位事件
_doc
.
on
(
'click'
,
'[href="#modal_detail"]'
,
function
(){
var
_this
=
$
(
this
);
if
(
_this
.
hasClass
(
'btn-success'
)){
_this
.
removeClass
(
'btn-success'
).
addClass
(
'btn-warning'
);
};
});
//点击跟进,获取商铺跟进动态的接口
_doc
.
on
(
'click'
,
'[href="#modal_followup"]'
,
function
(){
house
.
id
=
$
(
this
).
attr
(
"data-id"
);
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
house
.
getFollowupList
();
});
//跟进姓名 下拉式搜索
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
...
...
@@ -163,13 +150,11 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
_this
.
removeClass
(
'btn-success'
).
addClass
(
'btn-warning'
);
var
_id
=
_this
.
attr
(
'data-id'
);
house
.
id
=
_id
;
console
.
log
(
_id
);
$
(
'.detail-modal-header-tab>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
house
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
house
.
getFollowupList
();
// $('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+_id);
house
.
shopVideo
();
//商铺视频
});
},
getList
:
function
(
pageNo
)
{
//商铺视频列表
...
...
@@ -229,7 +214,32 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
}
});
},
// 获取视频
shopVideo
:
function
()
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
var
params
=
{};
params
.
id
=
house
.
id
;
params
.
site_area
=
4
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
$
.
ajax
({
url
:
'/broker/getShopDetail'
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
beforeSend
:
function
()
{
},
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'shop_video_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#shop-details-video"
).
html
(
doTtmpl
(
data
.
data
.
shop_videos
));
},
complete
:
function
(){
}
});
},
//调用部门 和 门店的接口
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
...
...
public/resource/template/video_check_list_template_tpl.html
View file @
e9a04c7f
...
...
@@ -31,5 +31,29 @@
[
%
}
%
]
</script>
<!--商铺视频-->
<script
id=
"shop_video_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-left"
style
=
"width: 262px;float: left;"
>
<
td
style
=
"margin-right: 10px;"
>
<
video
src
=
"[%= it[item]['video_path'] %]"
controls
=
"controls"
preload
=
"none"
muted
type
=
"video/mp4"
id
=
"video-check"
style
=
"width: 230px;height: 246px;margin-right: 10px;"
poster
=
"[%= it[item]['video_image'] %]"
><
/video
>
<
br
/>
上传人
:[
%=
it
[
item
][
'upload_name'
]
%
]
<
br
/>
上传时间
:[
%=
it
[
item
][
'create_time'
]
%
]
<
br
/>
审核人
:[
%=
it
[
item
][
'check_name'
]
%
]
<
br
/>
审核时间
:[
%=
it
[
item
][
'check_time'
]
%
]
<
/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