Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
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
esf
fenzhan_zsb
Commits
75417b7c
Commit
75417b7c
authored
Jun 30, 2020
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VR申请
parent
41b3df8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
16 deletions
+33
-16
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+1
-0
sell.php
new_admincp/applications/zsb/controllers/sell.php
+7
-8
vr_model.php
new_admincp/applications/zsb/models/vr_model.php
+9
-1
sell_manage.php
new_admincp/applications/zsb/views/nj/sell_manage.php
+16
-7
No files found.
new_admincp/applications/models/zsb_api_model.php
View file @
75417b7c
...
@@ -22,6 +22,7 @@ class zsb_api_model extends MY_Model{
...
@@ -22,6 +22,7 @@ class zsb_api_model extends MY_Model{
'realHouseAppeal'
=>
'/zsbapi/house/real-house-appeal'
,
//房源举报申诉
'realHouseAppeal'
=>
'/zsbapi/house/real-house-appeal'
,
//房源举报申诉
'vr_check'
=>
'/zsbapi/broker/vr-add-before'
,
//VR申请校验
'vr_check'
=>
'/zsbapi/broker/vr-add-before'
,
//VR申请校验
'vr_add'
=>
'/zsbapi/broker/vr-add'
,
//VR申请提交
'vr_add'
=>
'/zsbapi/broker/vr-add'
,
//VR申请提交
'vr_cancel'
=>
'/zsbapi/broker/vr-cancel'
,
//VR申请取消
);
);
...
...
new_admincp/applications/zsb/controllers/sell.php
View file @
75417b7c
...
@@ -6872,7 +6872,7 @@ class Sell extends MY_Controller {
...
@@ -6872,7 +6872,7 @@ class Sell extends MY_Controller {
die
;
die
;
}
}
$result
[
'
code
'
]
=
0
;
$result
[
'
result
'
]
=
0
;
$result
[
'msg'
]
=
'参数错误'
;
$result
[
'msg'
]
=
'参数错误'
;
echo
json_encode
(
$result
);
echo
json_encode
(
$result
);
die
;
die
;
...
@@ -6882,17 +6882,16 @@ class Sell extends MY_Controller {
...
@@ -6882,17 +6882,16 @@ class Sell extends MY_Controller {
* 取消vr预约
* 取消vr预约
*/
*/
public
function
cancle_vr
(){
public
function
cancle_vr
(){
$rowid
=
$this
->
input
->
post
(
'rowid'
,
TRUE
);
$rowid
=
$this
->
input
->
post
(
'hid'
,
TRUE
);
$data
=
$this
->
input
->
post
();
if
(
intval
(
$rowid
)
>
0
)
{
if
(
intval
(
$rowid
)
>
0
)
{
//初始化房源操作类
//初始化房源操作类
$this
->
load
->
model
(
'sell_model'
);
$this
->
load
->
model
(
'vr_model'
);
$vra
=
$this
->
sell_model
->
cancle_vr
(
$rowid
);
$vra
=
$this
->
vr_model
->
cancle_vr
(
$data
);
$vra
=
$this
->
gbk2utf8
(
$vra
);
echo
json_encode
(
$vra
);
echo
json_encode
(
$vra
);
die
;
die
;
}
}
$result
[
'
code
'
]
=
0
;
$result
[
'
result
'
]
=
0
;
$result
[
'msg'
]
=
'参数错误'
;
$result
[
'msg'
]
=
'参数错误'
;
$result
=
$this
->
gbk2utf8
(
$result
);
$result
=
$this
->
gbk2utf8
(
$result
);
...
@@ -6913,7 +6912,7 @@ class Sell extends MY_Controller {
...
@@ -6913,7 +6912,7 @@ class Sell extends MY_Controller {
die
;
die
;
}
}
$result
[
'
code
'
]
=
0
;
$result
[
'
result
'
]
=
0
;
$result
[
'msg'
]
=
'参数错误'
;
$result
[
'msg'
]
=
'参数错误'
;
$result
=
$this
->
gbk2utf8
(
$result
);
$result
=
$this
->
gbk2utf8
(
$result
);
...
...
new_admincp/applications/zsb/models/vr_model.php
View file @
75417b7c
...
@@ -22,12 +22,20 @@ class vr_model extends new_base_model
...
@@ -22,12 +22,20 @@ class vr_model extends new_base_model
/*
/*
* VR 申请提交
* VR 申请提交
*/
*/
public
function
vr_applay
(
$param
){
public
function
vr_applay
(
$param
=
array
()
){
$this
->
load
->
model
(
'zsb_api_model'
);
$this
->
load
->
model
(
'zsb_api_model'
);
$res
=
$this
->
zsb_api_model
->
getRequrstData
(
'vr_add'
,
$param
);
$res
=
$this
->
zsb_api_model
->
getRequrstData
(
'vr_add'
,
$param
);
return
$res
;
return
$res
;
}
}
/*
* VR申请取消
*/
public
function
cancle_vr
(
$param
=
array
()){
$this
->
load
->
model
(
'zsb_api_model'
);
$res
=
$this
->
zsb_api_model
->
getRequrstData
(
'vr_cancel'
,
$param
);
return
$res
;
}
...
...
new_admincp/applications/zsb/views/nj/sell_manage.php
View file @
75417b7c
...
@@ -938,17 +938,24 @@ function vr_applay_close(){
...
@@ -938,17 +938,24 @@ function vr_applay_close(){
function
ajax_cancle_vr
()
{
function
ajax_cancle_vr
()
{
var
house_id
=
$
(
'#rowid'
).
val
();
var
house_id
=
$
(
'#rowid'
).
val
();
var
form
=
$
(
"#search_form"
);
var
form
=
$
(
"#search_form"
);
var
index
=
layer
.
load
(
1
,
{
shade
:
[
0.1
,
'#fff'
]
//0.1透明度的白色背景
});
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
'
<?php
echo
GB_WO_URL
;
?>
/sell/cancle_vr/'
,
url
:
'
<?php
echo
GB_WO_URL
;
?>
/sell/cancle_vr/'
,
data
:
{
'
row
id'
:
house_id
},
data
:
{
'
h
id'
:
house_id
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
re
)
success
:
function
(
re
)
{
{
if
(
re
.
code
==
1
){
layer
.
close
(
index
);
if
(
re
.
result
==
1
){
$
(
"#dialogts #dialog_tip"
).
html
(
re
.
msg
);
$
(
"#dialogts #dialog_tip"
).
html
(
re
.
msg
);
openWin
(
'dialogts'
);
openWin
(
'dialogts'
);
form
.
submit
();
setTimeout
(
function
()
{
form
.
submit
();
},
500
)
}
else
{
}
else
{
$
(
"#dialogts #dialog_tip"
).
html
(
re
.
msg
);
$
(
"#dialogts #dialog_tip"
).
html
(
re
.
msg
);
openWin
(
'dialogts'
);
openWin
(
'dialogts'
);
...
@@ -1066,15 +1073,17 @@ $('.btnSubmit_vrbind').click(function () {
...
@@ -1066,15 +1073,17 @@ $('.btnSubmit_vrbind').click(function () {
}
}
var
form
=
$
(
"#search_form"
);
var
form
=
$
(
"#search_form"
);
vr_applay_close
();
vr_applay_close
();
var
index
=
layer
.
load
(
1
,
{
shade
:
[
0.1
,
'#fff'
]
//0.1透明度的白色背景
});
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
'
<?php
echo
GB_WO_URL
;
?>
/sell/
check_bind
/'
,
url
:
'
<?php
echo
GB_WO_URL
;
?>
/sell/
vrapplay
/'
,
data
:
{
'
rowid'
:
house_id
,
'buildingnum'
:
buildingnum
,
'unitnum'
:
unitnum
,
'roomnu
m'
:
roomnum
},
data
:
{
'
hid'
:
house_id
,
'build'
:
buildingnum
,
'unit'
:
unitnum
,
'roo
m'
:
roomnum
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
re
)
success
:
function
(
re
)
{
{
if
(
re
.
code
==
1
){
if
(
re
.
result
==
1
){
$
(
"#dialogts #dialog_tip"
).
html
(
'绑定成功'
);
$
(
"#dialogts #dialog_tip"
).
html
(
'绑定成功'
);
openWin
(
'dialogts'
);
openWin
(
'dialogts'
);
form
.
submit
();
form
.
submit
();
...
...
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