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
571084c1
Commit
571084c1
authored
Sep 19, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台优化
parent
f965cf59
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
196 additions
and
43 deletions
+196
-43
shop_detail_pc.html
application/app_broker/view/index/shop_detail_pc.html
+21
-0
houseList.html
application/index/view/houses/houseList.html
+3
-3
index.html
application/index/view/store/index.html
+1
-1
shop_detail_pc.css
public/app/css/shop_detail_pc.css
+57
-1
common.js
public/app/js/common.js
+19
-2
shop_detail_pc.js
public/app/js/shop_detail_pc.js
+89
-35
houseList.js
public/resource/js/houseList.js
+2
-1
storeList.js
public/resource/js/storeList.js
+4
-0
No files found.
application/app_broker/view/index/shop_detail_pc.html
View file @
571084c1
...
...
@@ -152,6 +152,11 @@
<td
v-if=
"(d.is_exclusive_type==1)"
>
独家有效期:{{d.agent_start_time+'至'+d.agent_end_time}}
</td>
<td
v-if=
"(d.is_exclusive_type==1)"
>
<!--独家方:{{d.exclusive_name}}-->
</td>
</tr>
<tr
v-show=
'clickPublicUser("index/isShow")'
>
<td
colspan=
"4"
align=
"center"
>
<a
href=
"javascript:;"
class=
"is-public-user"
@
click=
"isPublicUser()"
>
C端公开
</a>
</td>
</tr>
</tbody>
</table>
</section>
...
...
@@ -188,6 +193,22 @@
<p><a
href=
"javascript:;"
@
click=
"saveGenjin"
>
保存
</a></p>
</div>
</div>
<!--c端公开-->
<div
class=
"modal-area"
v-show=
"modalShow3"
>
<div
class=
"public-hide-area"
>
<span
class=
"is-public-show"
>
是否对客户展示:
</span>
<select
name=
""
class=
"choose-public-user"
v-model
.
trim=
"select_public"
>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
<span
class=
"color-biaoshi"
>
(请点击进行选择)
</span>
<p>
<a
href=
"javascript:;"
@
click=
"savePublicUser()"
class=
"save-is-public"
>
保存
</a>
<a
href=
"javascript:;"
@
click=
"hidePublicUser()"
class=
"cancel-is-public"
>
取消
</a>
</p>
</div>
</div>
</div>
<script
src=
"/app/js/libs/require.min.js"
data-js=
"/app/js/shop_detail_pc.js"
data-main=
"/app/js/main"
data-norem=
"yes"
defer
async=
"true"
></script>
</body>
...
...
application/index/view/houses/houseList.html
View file @
571084c1
...
...
@@ -205,9 +205,9 @@
<option
value=
"1"
>
街铺
</option>
</select>
<select
class=
"form-control btn2"
id=
"leased"
>
<option
value=
"
-1
"
>
商铺状态
</option>
<option
value=
"1"
selected=
"selected"
>
待租
</option>
<option
value=
"
0"
>
已租
</option>
<option
value=
""
>
商铺状态
</option>
<option
value=
"1"
selected=
"selected"
>
上架
</option>
<option
value=
"
2"
>
下架
</option>
</select>
<select
class=
"form-control btn2"
id=
"rent_price"
>
<option
value=
"-1"
>
月租金
</option>
...
...
application/index/view/store/index.html
View file @
571084c1
...
...
@@ -305,7 +305,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
data-dismiss=
"modal"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
提交
</button>
</div>
...
...
public/app/css/shop_detail_pc.css
View file @
571084c1
...
...
@@ -232,4 +232,60 @@ html{
color
:
white
;
margin-left
:
.3rem
;
}
/*c端公开样式*/
.is-public-user
{
display
:
inline-block
;
background-color
:
#286090
;
color
:
white
;
padding
:
0
3px
;
border-radius
:
6px
;
width
:
83px
;
height
:
34px
;
line-height
:
34px
;
font-size
:
15px
;
}
.public-hide-area
{
width
:
440px
;
background-color
:
white
;
padding
:
20px
;
padding-top
:
69px
;
height
:
260px
;
box-sizing
:
border-box
;
border-radius
:
3px
;
}
.choose-public-user
{
width
:
138px
;
align-items
:
center
;
text-rendering
:
auto
;
border
:
1px
solid
#ccc
;
text-indent
:
6px
;
height
:
36px
;
border-radius
:
5px
;
font-size
:
15px
;
border-image
:
initial
;
}
.is-public-show
{
font-size
:
17px
;
}
.save-is-public
,
.cancel-is-public
{
text-align
:
center
;
float
:
right
;
width
:
58px
;
height
:
34px
;
line-height
:
34px
;
border-radius
:
5px
;
margin-top
:
100px
;
margin-left
:
10px
;
font-size
:
15px
;
}
.cancel-is-public
{
color
:
#000
;
background
:
rgba
(
204
,
204
,
204
,
.9
);
}
.save-is-public
{
color
:
#fff
;
background
:
#337ab7
;
}
.color-biaoshi
{
color
:
#337ab7
;
}
public/app/js/common.js
View file @
571084c1
...
...
@@ -272,4 +272,21 @@ function loginCs(phone, pwd){
complete
:
function
(
xhr
,
textStatus
)
{
}
});
};
\ No newline at end of file
};
//判断权限
function
check_auth
(
auth_rule
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
result
=
false
;
if
(
user_info_obj
.
id
!=
1
)
{
$
.
each
(
user_info_obj
.
auth
,
function
(
i
,
val
)
{
if
(
val
[
'name'
]
==
auth_rule
)
{
result
=
true
;
}
});
}
else
{
result
=
true
;
}
return
result
;
}
\ No newline at end of file
public/app/js/shop_detail_pc.js
View file @
571084c1
...
...
@@ -10,6 +10,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
dataCode
:
''
,
modalShow2
:
false
,
//第二个弹出框是否显示
modalShow1
:
false
,
//第一个弹出框是否显示
modalShow3
:
false
,
//点击 C端公开 出现弹窗
isCallFlag
:
false
,
//是否正在拨打
isGenjinSave
:
false
,
//是否正在保存跟进
selectPhone
:
''
,
//所选中的号码
...
...
@@ -17,44 +18,12 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
tempFollowId
:
''
,
//临时的跟进id
activeLandlord
:
''
,
//当前点击的房东
content
:
''
,
//跟进的内容,填写
select_public
:
''
,
//c端公开选择
d
:
{}
},
created
:
function
()
{
var
_this
=
this
;
$
.
ajax
({
type
:
'get'
,
url
:
'/broker/getShopDetail'
,
data
:
{
'id'
:
shop_id
,
'site_area'
:
4
,
//pc后台固定传4
'AuthToken'
:
_this
.
user_info_obj
.
AuthToken
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
document
.
body
.
style
.
display
=
'block'
;
if
(
typeof
_data
===
'object'
)
{
_this
.
dataCode
=
_data
[
'code'
];
if
(
_data
[
'code'
]
==
'200'
)
{
_this
.
d
=
_data
.
data
;
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
_this
.
refreshHouseDetails
();
},
mounted
:
function
()
{
...
...
@@ -194,7 +163,92 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
_this
.
activeLandlord
=
t
;
_this
.
modalShow1
=
true
;
},
isPublicUser
(){
//点击c端公开
let
_this
=
this
;
_this
.
modalShow3
=
true
;
},
hidePublicUser
(){
//取消c端公开
let
_this
=
this
;
_this
.
modalShow3
=
false
;
},
savePublicUser
(){
var
_this
=
this
;
$
.
ajax
({
type
:
'post'
,
url
:
'/index/isShow'
,
data
:
{
'id'
:
shop_id
,
'is_show'
:
_this
.
select_public
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
_this
.
dataCode
=
_data
[
'code'
];
if
(
_data
[
'code'
]
==
'200'
)
{
layerTipsX
(
'修改成功'
);
_this
.
modalShow3
=
false
;
_this
.
refreshHouseDetails
();
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
refreshHouseDetails
(){
//是否对客户公开 保存后 刷新商铺详情页面
var
_this
=
this
;
$
.
ajax
({
type
:
'get'
,
url
:
'/broker/getShopDetail'
,
data
:
{
'id'
:
shop_id
,
'site_area'
:
4
,
//pc后台固定传4
'AuthToken'
:
_this
.
user_info_obj
.
AuthToken
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
document
.
body
.
style
.
display
=
'block'
;
if
(
typeof
_data
===
'object'
)
{
_this
.
dataCode
=
_data
[
'code'
];
if
(
_data
[
'code'
]
==
'200'
)
{
_this
.
select_public
=
_data
.
data
.
is_show
;
_this
.
d
=
_data
.
data
;
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
clickPublicUser
(
t
){
//判断有权限的人 才能点击 c端公开
return
check_auth
(
t
);
},
switchSource
(
t
){
switch
(
Number
(
t
)){
case
0
:
return
"无"
;
...
...
public/resource/js/houseList.js
View file @
571084c1
...
...
@@ -1136,7 +1136,8 @@ if(data.code == 200) {
params
.
is_carefully_chosen
=
$
(
'#is_carefully_chosen option:selected'
).
val
();
//首页显示
params
.
is_show
=
$
(
'#is_show option:selected'
).
val
();
//c端显示
params
.
shop_type
=
$
(
'#shop_type option:selected'
).
val
();
//商铺类型
params
.
leased
=
$
(
'#leased option:selected'
).
val
();
//商铺状态
// params.leased = $('#leased option:selected').val(); 商铺状态
params
.
status
=
$
(
'#leased option:selected'
).
val
();
//商铺状态 上架 下架
params
.
rent_price
=
$
(
'#rent_price option:selected'
).
val
();
//月租金
params
.
is_exclusive_type
=
$
(
'#is_exclusive_type option:selected'
).
val
();
//是否独家
params
.
id
=
$
(
'#id'
).
val
();
//商铺编号
...
...
public/resource/js/storeList.js
View file @
571084c1
...
...
@@ -256,6 +256,10 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
par
.
store_name
=
$
(
"input[name =name]"
).
val
();
//门店名
par
.
scale
=
$
(
"#pid-select option:selected"
).
val
();
//规模
par
.
district_id
=
$
(
"#ss-store option:selected"
).
val
();
//部门id
if
(
!
(
par
.
agents_id
&&
par
.
province
&&
par
.
city
&&
par
.
district
&&
par
.
address
&&
par
.
longitude
&&
par
.
latitude
&&
par
.
store_name
&&
par
.
scale
&&
par
.
district_id
)){
alert
(
'请将内容填写完整'
);
return
;
}
console
.
log
(
par
);
$
.
ajax
({
'type'
:
'POST'
,
...
...
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