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
7e822032
Commit
7e822032
authored
Jul 17, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
7ce0c3b9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
154 additions
and
28 deletions
+154
-28
agent.html
application/index/view/agent/agent.html
+38
-4
feeds.vue
public/appnew/src/components/feed/feeds.vue
+22
-15
chengjiaojiandan_pic.png
...ppnew/src/components/feed/images/chengjiaojiandan_pic.png
+0
-0
agent.js
public/resource/js/agent.js
+67
-9
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+2
-0
pcBinding_template_tpl.html
public/resource/template/pcBinding_template_tpl.html
+25
-0
No files found.
application/index/view/agent/agent.html
View file @
7e822032
...
...
@@ -255,11 +255,45 @@
</form>
</div>
<div
class=
"modal-footer"
>
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--绑定电脑-->
<div
class=
"modal fade"
id=
"modal-pcbundling"
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>
<button type="button" class="btn btn-primary submit_user" data-dismiss="modal">
提交
</button>-->
<h4
class=
"modal-title"
>
绑定电脑
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th>
绑定电脑
</th>
<th>
请求时间
</th>
<th>
电脑绑定状态
</th>
</tr>
</thead>
<tbody
id=
'agent_pc_binding'
>
</tbody>
</table>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
</div>
</div>
<!-- /.modal-content -->
...
...
public/appnew/src/components/feed/feeds.vue
View file @
7e822032
...
...
@@ -16,10 +16,13 @@
<span>
[
</span>
<span
class=
"story_font_span2"
>
{{
deal_time
}}
</span>
<span>
]
</span>
<span
class=
"story_font_span2"
>
成功下定
</span>
</div>
<div
class=
"story_font2"
>
<span
class=
"story_font_span3"
>
{{
deal_type
}}
</span>
<div
class=
"story_font2 story_font2_width"
>
<!--
<span
class=
"story_font_span3"
>
{{
deal_type
}}
</span>
-->
<!--
<span
class=
"story_font_span3"
>
成功下定
</span>
-->
<span
class=
"story_font_span4"
>
{{
deal_shop
}}
</span>
<span
class=
"story_font_span5"
>
商铺一套!
</span>
</div>
...
...
@@ -136,6 +139,8 @@
responseType
:
'json'
,
data
:
{
'id'
:
_this
.
feed_id
,
'type'
:
1
}
})
.
then
(
function
(
response
)
{
...
...
@@ -240,11 +245,10 @@
}
.chengjiaojiandan_pic
{
width
:
4.7rem
;
height
:
0.5rem
;
width
:
5.2rem
;
display
:
block
;
margin
:
0
auto
;
margin-top
:
0.
46
rem
;
margin-top
:
0.
80
rem
;
}
.story_font
{
...
...
@@ -263,7 +267,7 @@
}
.story_font_span2
{
font-style
:
oblique
;
/*font-style: oblique;*/
}
.story_font_span3
{
...
...
@@ -273,36 +277,38 @@
}
.story_font_span5
{
float
:
left
;
/*float: left;*/
line-height
:
0.88rem
;
}
.story_font_span4
{
float
:
left
;
height
:
0.6rem
;
border-radius
:
0.3rem
;
border
:
1.5px
solid
#ec4804
;
margin-left
:
0.1rem
;
margin-right
:
0.1rem
;
font-weight
:
9
00
;
font-size
:
0.
3
rem
;
font-weight
:
8
00
;
font-size
:
0.
26
rem
;
text-align
:
center
;
margin-top
:
0.1rem
;
width
:
2
.4
rem
;
width
:
2rem
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#ec4804
;
}
.story_font2
{
width
:
100%
;
/*width: 4rem;*/
text-align
:
center
;
margin
:
0
auto
;
overflow
:
hidden
;
}
.story_font2_width
{
width
:
3.6rem
;
}
.story_font3
{
width
:
100%
;
margin-top
:
0.
2
rem
;
margin-top
:
0.
3
rem
;
float
:
left
;
}
...
...
@@ -311,6 +317,7 @@
height
:
0.26rem
;
float
:
left
;
margin-left
:
1.3rem
;
margin-top
:
0.05rem
;
}
.ic_star_span
{
...
...
public/appnew/src/components/feed/images/chengjiaojiandan_pic.png
View replaced file @
7ce0c3b9
View file @
7e822032
6.41 KB
|
W:
|
H:
6.29 KB
|
W:
|
H:
2-up
Swipe
Onion skin
public/resource/js/agent.js
View file @
7e822032
define
([
'doT'
,
'text!temp/agent_template_tpl.html'
,
'text!temp/phoneBinding_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
,
'ckfinder'
,
'ckfinderStart'
,
'blow-up'
],
function
(
doT
,
template
,
template_binding
)
{
define
([
'doT'
,
'text!temp/agent_template_tpl.html'
,
'text!temp/phoneBinding_template_tpl.html'
,
'text!temp/pcBinding_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
,
'ckfinder'
,
'ckfinderStart'
,
'blow-up'
],
function
(
doT
,
template
,
template_binding
,
pc
template_binding
)
{
var
agent
=
{
pageNo
:
1
,
pageSize
:
15
,
...
...
@@ -6,7 +6,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
idArray
:
''
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
+
template_binding
);
$
(
"body"
).
append
(
template
+
template_binding
+
pctemplate_binding
);
agent
.
getList
();
agent
.
event
();
},
...
...
@@ -84,10 +84,14 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
$
(
this
).
val
(
''
).
attr
(
'type'
,
'password'
);
});
$
(
document
).
on
(
"click"
,
".phone-bundling"
,
function
()
{
$
(
document
).
on
(
"click"
,
".phone-bundling"
,
function
()
{
//点击绑定手机
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
getPhoneBindingList
();
});
$
(
document
).
on
(
"click"
,
".pc-bundling"
,
function
()
{
//点击绑定电脑
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
getPcBindingList
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交编辑
e
.
preventDefault
();
e
.
stopPropagation
();
...
...
@@ -172,13 +176,46 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
"operator_id"
:
user_info_obj
.
id
,
"is_forbidden"
:
params
.
type
},
/* $params = array(
"agent_id" => 1,//解绑或者绑定的经纪人id
"id" => 1, //关系id
"operator_id" => 12,//操作人id 登陆后台的经纪人id
"is_forbidden" => 0,//0正常 1禁止
);*/
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
"禁用失败!"
)
}
}
});
});
//电脑绑定状态切换
$
(
document
).
delegate
(
".is_showpc"
,
"click"
,
function
()
{
//点击禁用
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
agent
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
// console.log(user_info_obj);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
===
"允许"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-default is_showpc'
);
params
.
type
=
0
;
$
(
this
).
html
(
'解绑'
);
}
else
if
(
str
===
"解绑"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-info is_showpc'
);
params
.
type
=
1
;
$
(
this
).
html
(
'允许'
);
};
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'url'
:
'/index/updateDevice'
,
data
:
{
"agent_id"
:
agent
.
agent_id
,
"id"
:
params
.
id
,
"operator_id"
:
user_info_obj
.
id
,
"is_forbidden"
:
params
.
type
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
...
...
@@ -378,6 +415,27 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}
})
},
//电脑绑定权限
getPcBindingList
:
function
(
pageNo
)
{
var
params
=
{};
params
.
agent_id
=
agent
.
agent_id
;
console
.
log
(
agent
.
agent_id
);
$
.
ajax
({
url
:
'/index/deviceList'
,
//电脑绑定权限
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'pc_binding_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#agent_pc_binding"
).
html
(
doTempl
(
data
.
data
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
$
(
'.J_preview'
).
preview
();
}
})
},
getRole
:
function
(
tempval
)
{
$
.
ajax
({
...
...
public/resource/template/agent_template_tpl.html
View file @
7e822032
...
...
@@ -33,6 +33,8 @@
<
a
class
=
"btn1 btn-success phone-bundling"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
<
/a
>
[
%
}
%
]
<
a
class
=
"btn1 btn-success pc-bundling"
href
=
"#modal-pcbundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定电脑
<
/a
>
<
/td
>
...
...
public/resource/template/pcBinding_template_tpl.html
0 → 100644
View file @
7e822032
<script
id=
"pc_binding_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
"model"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_forbidden"
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-default is_showpc"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
解绑
<
/a
>
[
%
}
else
if
(
it
[
item
][
"is_forbidden"
]
==
1
)
{
%
]
<
a
class
=
"btn1 btn-info is_showpc"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
允许
<
/a
>
[
%
}
else
{
%
]
<
a
class
=
"btn1 btn-default"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
离职
<
/a
>
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-info review-images"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["scene_photo"] %]'
>
允许
<
/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