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
21d1af54
Commit
21d1af54
authored
May 21, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总监周报 城市选择
parent
8f3f1a3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
weekly_my.html
application/app_broker/view/index/weekly_my.html
+1
-1
weekly_my.js
public/app/js/weekly_my.js
+25
-9
No files found.
application/app_broker/view/index/weekly_my.html
View file @
21d1af54
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</header>
</header>
<!--总监周报 加城市选择-->
<!--总监周报 加城市选择-->
<div
class=
"top-city-select-area flex-center"
>
<div
class=
"top-city-select-area flex-center"
>
<select
@
change
City=
"changeCity
"
>
<select
@
change
=
"changeCity($event)
"
>
<option
v-for=
"(item, index) in dataListCity"
:value=
"item.id"
>
{{item.name}}
</option>
<option
v-for=
"(item, index) in dataListCity"
:value=
"item.id"
>
{{item.name}}
</option>
</select>
</select>
</div>
</div>
...
...
public/app/js/weekly_my.js
View file @
21d1af54
...
@@ -7,14 +7,17 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
...
@@ -7,14 +7,17 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
token
:
localStorage
.
getItem
(
'token'
),
token
:
localStorage
.
getItem
(
'token'
),
dataList
:
[],
dataList
:
[],
dataListCity
:[],
dataListCity
:[],
hrefPre
:
'weekly_image?imgsrc='
hrefPre
:
'weekly_image?imgsrc='
,
isShowCity
:
false
,
},
},
created
:
function
()
{
created
:
function
()
{
var
_this
=
this
;
var
_this
=
this
;
document
.
body
.
style
.
display
=
'block'
;
document
.
body
.
style
.
display
=
'block'
;
if
(
localStorage
.
getItem
(
'userlevel'
)
*
1
!=
20
){
//总监周报
if
(
localStorage
.
getItem
(
'userlevel'
)
*
1
!=
20
){
//总监周报
_this
.
getCity
();
_this
.
getCity
();
}
else
{
_this
.
isShowCity
=
true
;
}
else
{
//店长周报
_this
.
isShowCity
=
false
;
_this
.
loadMain
();
_this
.
loadMain
();
}
}
...
@@ -60,24 +63,27 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
...
@@ -60,24 +63,27 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
});
});
},
},
getCity
:
function
(){
//获取总监的城市
loadMainZj
:
function
(
id
){
var
_this
=
this
;
var
_this
=
this
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
ServerHostTempC
+
'/broker/get
AgentDistrictId
'
,
url
:
ServerHostTempC
+
'/broker/get
WeekOrDayV2
'
,
data
:
{
data
:
{
'AuthToken'
:
localStorage
.
getItem
(
'token'
),
'AuthToken'
:
_this
.
token
,
'phone'
:
localStorage
.
getItem
(
'userphone'
)
'type'
:
0
,
'agent_id'
:
id
,
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{
beforeSend
:
function
()
{
document
.
querySelector
(
'#loading_pic'
).
style
.
display
=
'block'
;
document
.
querySelector
(
'#no_more'
).
style
.
display
=
'none'
;
},
},
success
:
function
(
_data
)
{
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
_this
.
dataList
City
=
_data
.
data
;
_this
.
dataList
=
_data
.
data
.
list
;
}
else
{
}
else
{
layerTipsX
(
_data
[
'msg'
]);
layerTipsX
(
_data
[
'msg'
]);
}
}
...
@@ -89,6 +95,8 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
...
@@ -89,6 +95,8 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
layerTipsX
(
'enter error'
);
layerTipsX
(
'enter error'
);
},
},
complete
:
function
(
xhr
,
textStatus
)
{
complete
:
function
(
xhr
,
textStatus
)
{
document
.
querySelector
(
'#loading_pic'
).
style
.
display
=
'none'
;
document
.
querySelector
(
'#no_more'
).
style
.
display
=
'block'
;
if
(
textStatus
===
'timeout'
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
//处理超时的逻辑
layerTipsX
(
'overtime'
);
layerTipsX
(
'overtime'
);
...
@@ -97,7 +105,7 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
...
@@ -97,7 +105,7 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
});
});
},
},
changeCity
:
function
(){
//切换
城市
getCity
:
function
(){
//获取总监的
城市
var
_this
=
this
;
var
_this
=
this
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
...
@@ -115,6 +123,7 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
...
@@ -115,6 +123,7 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
_this
.
dataListCity
=
_data
.
data
;
_this
.
dataListCity
=
_data
.
data
;
_this
.
loadMainZj
(
_data
.
data
[
0
].
id
);
//默认显示第一个城市的总监周报
}
else
{
}
else
{
layerTipsX
(
_data
[
'msg'
]);
layerTipsX
(
_data
[
'msg'
]);
}
}
...
@@ -134,6 +143,12 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
...
@@ -134,6 +143,12 @@ require(['vue', 'css!style/daily_my.css', 'jquery0325', 'common'],function(Vue){
});
});
},
},
changeCity
:
function
(
e
){
//切换城市
var
_this
=
this
;
_this
.
loadMainZj
(
e
.
target
.
value
);
//总监周报 切换城市
},
}
}
});
});
});
});
\ 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