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
6ff3dca2
Commit
6ff3dca2
authored
Dec 23, 2019
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开通放心看
parent
983cbc4b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
148 additions
and
52 deletions
+148
-52
deployment.xml
.idea/deployment.xml
+1
-1
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+1
-0
realHouse.php
new_admincp/applications/zsb/controllers/realHouse.php
+13
-1
MY_Controller.php
new_admincp/applications/zsb/core/MY_Controller.php
+18
-0
realHouse_marginAccount.php
...ncp/applications/zsb/views/nj/realHouse_marginAccount.php
+61
-45
index.js
new_admincp/source/zsb/js/v1.0/real/index.js
+54
-5
No files found.
.idea/deployment.xml
View file @
6ff3dca2
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"PublishConfigData"
>
<component
name=
"PublishConfigData"
persistUploadOnCheckin=
"false"
>
<serverData>
<serverData>
<paths
name=
"192.168.105.106"
>
<paths
name=
"192.168.105.106"
>
<serverdata>
<serverdata>
...
...
new_admincp/applications/models/zsb_api_model.php
View file @
6ff3dca2
...
@@ -12,6 +12,7 @@ class zsb_api_model extends MY_Model{
...
@@ -12,6 +12,7 @@ class zsb_api_model extends MY_Model{
private
$apiUrl
=
array
(
private
$apiUrl
=
array
(
'getToken'
=>
'/api/zsb-app/api-token'
,
//获取令牌
'getToken'
=>
'/api/zsb-app/api-token'
,
//获取令牌
'openReal'
=>
'/zsbapi/real-manage/open-real'
,
//开通放心看
'openReal'
=>
'/zsbapi/real-manage/open-real'
,
//开通放心看
'realCheckPay'
=>
'/zsbapi/real-manage/real-check-pay'
,
//支付检查
);
);
...
...
new_admincp/applications/zsb/controllers/realHouse.php
View file @
6ff3dca2
...
@@ -871,7 +871,19 @@ class realHouse extends MY_Controller {
...
@@ -871,7 +871,19 @@ class realHouse extends MY_Controller {
* 开通放心看
* 开通放心看
*/
*/
public
function
openReal
(){
public
function
openReal
(){
$this
->
load
->
model
(
'zsb_api_model'
);
$re
=
$this
->
zsb_api_model
->
getRequrstData
(
'openReal'
);
//$data = $this->array_iconv($re,'utf-8','gbk');
echo
json_encode
(
$re
);
die
;
}
}
/*
* 放心看开通的检查
*/
public
function
realCheckPay
(){
$post
=
$this
->
input
->
post
();
$this
->
load
->
model
(
'zsb_api_model'
);
$re
=
$this
->
zsb_api_model
->
getRequrstData
(
'realCheckPay'
,
$post
);
echo
json_encode
(
$re
);
die
;
}
}
}
new_admincp/applications/zsb/core/MY_Controller.php
View file @
6ff3dca2
...
@@ -373,6 +373,23 @@ class MY_Controller extends CI_Controller
...
@@ -373,6 +373,23 @@ class MY_Controller extends CI_Controller
$this
->
mc
->
close
();
$this
->
mc
->
close
();
}
}
}
}
/*
* 数组编码转换
*/
public
function
array_iconv
(
$arr
,
$in_charset
=
'gbk'
,
$out_charset
=
'utf-8'
)
{
foreach
(
$arr
as
$k
=>
$v
)
{
if
(
is_array
(
$v
))
{
$arr
[
$k
]
=
$this
->
array_iconv
(
$v
,
$in_charset
,
$out_charset
);
}
else
{
$v
=
iconv
(
$in_charset
,
$out_charset
,
$v
);
$arr
[
$k
]
=
$v
;
}
}
return
$arr
;
}
}
}
/* End of file MY_Controller.php */
/* End of file MY_Controller.php */
/* Location: ./applications/core/MY_Controller.php */
/* Location: ./applications/core/MY_Controller.php */
\ No newline at end of file
new_admincp/applications/zsb/views/nj/realHouse_marginAccount.php
View file @
6ff3dca2
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<!--ka用户都没有提现和缴纳按钮-->
<!--ka用户都没有提现和缴纳按钮-->
<?php
if
(
$real_status
<=
0
){
?>
<?php
if
(
$real_status
<=
0
){
?>
<a
class=
"btnB btnSubmit radius5"
href=
"javascript:void(0)"
ms-click=
"@o
penReal()"
>
开通
</a>
<a
class=
"btnB btnSubmit radius5"
ms-if=
"@formData.step == 1"
href=
"javascript:void(0)"
ms-click=
"@isO
penReal()"
>
开通
</a>
<?php
}
else
{
?>
<?php
}
else
{
?>
<?php
if
(
$is_applay
){
?>
<?php
if
(
$is_applay
){
?>
...
@@ -38,59 +38,75 @@
...
@@ -38,59 +38,75 @@
<?php
}
?>
<?php
}
?>
</div>
</div>
</div>
</div>
<div
class=
"personal_title"
><strong
class=
"title"
>
保证金变动明细
</strong></div>
<div
ms-if=
"@formData.step == 1"
>
<div
class=
"personal_title"
><strong
class=
"title"
>
保证金变动明细
</strong></div>
<div
class=
"branchCommon branchCommon_pay radius5 "
>
<div
class=
"branchCommon branchCommon_pay radius5 "
>
<div
class=
"hd"
>
<div
class=
"hd"
>
<table
class=
"tableExpert"
>
<table
class=
"tableExpert"
>
<tr>
<td
class=
"td f w160"
>
<div
class=
""
>
时间
</div>
</td>
<td
class=
"td w110"
>
<div
class=
""
>
操作
</div>
</td>
<td
class=
"td w160"
>
<div
class=
""
>
原因说明
</div>
</td>
<td
class=
"td w70"
>
<div
class=
""
>
状态
</div>
</td>
</tr>
</table>
</div>
<div
class=
"mod"
>
<table
class=
"tableExpert tableExpert_no"
>
<!--无记录-->
<?php
if
(
empty
(
$brokerLog
))
{
?>
<tr>
<tr>
<td
colspan=
"4"
>
<td
class=
"td f w160"
>
<div
class=
"ptb30 acenter"
>
暂无账单记录
</div>
<div
class=
""
>
时间
</div>
</td>
<td
class=
"td w110"
>
<div
class=
""
>
操作
</div>
</td>
<td
class=
"td w160"
>
<div
class=
""
>
原因说明
</div>
</td>
<td
class=
"td w70"
>
<div
class=
""
>
状态
</div>
</td>
</td>
</tr>
</tr>
<?php
}
else
{
?>
</table>
<?php
foreach
(
$brokerLog
as
$item
)
{
?>
</div>
<div
class=
"mod"
>
<table
class=
"tableExpert tableExpert_no"
>
<!--无记录-->
<?php
if
(
empty
(
$brokerLog
))
{
?>
<tr>
<tr>
<td
class=
"td f w160"
>
<td
colspan=
"4"
>
<div
class=
""
>
<?=
date
(
'Y-m-d H:i:s'
,
$item
[
'create_time'
])
?>
</div>
<div
class=
"ptb30 acenter"
>
暂无账单记录
</div>
</td>
<td
class=
"td w110"
>
<div
class=
""
>
<span
style=
"color:
<?=
$item
[
'money'
]
>
0
?
'red'
:
'green'
;
?>
;"
>
<?=
$item
[
'money'
]
>
0
?
'+'
.
$item
[
'money'
]
:
$item
[
'money'
];
?>
</span>
</div>
</td>
<td
class=
"td w160"
>
<div
class=
""
>
<?=
$item
[
'reason'
]
?>
</div>
</td>
<td
class=
"td w70"
>
<div
class=
""
>
<?=
$statusList
[
$item
[
'status'
]]
?>
</div>
</td>
</td>
</tr>
</tr>
<?php
}
?>
<?php
}
else
{
?>
<?php
}
?>
<?php
foreach
(
$brokerLog
as
$item
)
{
?>
</table>
<tr>
<td
class=
"td f w160"
>
<div
class=
""
>
<?=
date
(
'Y-m-d H:i:s'
,
$item
[
'create_time'
])
?>
</div>
</td>
<td
class=
"td w110"
>
<div
class=
""
>
<span
style=
"color:
<?=
$item
[
'money'
]
>
0
?
'red'
:
'green'
;
?>
;"
>
<?=
$item
[
'money'
]
>
0
?
'+'
.
$item
[
'money'
]
:
$item
[
'money'
];
?>
</span>
</div>
</td>
<td
class=
"td w160"
>
<div
class=
""
>
<?=
$item
[
'reason'
]
?>
</div>
</td>
<td
class=
"td w70"
>
<div
class=
""
>
<?=
$statusList
[
$item
[
'status'
]]
?>
</div>
</td>
</tr>
<?php
}
?>
<?php
}
?>
</table>
</div>
</div>
</div>
</div>
</div>
<div
ms-if=
"@formData.step == 2"
class=
"show-wx"
>
<div
class=
"paytit"
>
<p
class=
"f16 c3 bold"
>
微信支付
</p>
<div>
<input
type=
"hidden"
name=
"out_trade_no"
id=
"out_trade_no"
value=
"1569400542003996"
>
<span
class=
"f16 c6 bold"
>
支付金额:
</span><span
class=
"f18 red bold"
>
{{@formData.pay_money}}
</span>
<span
class=
"f16 c6 bold"
>
元
</span>
</div>
<div
style=
"padding-bottom:50px;padding-top: 50px;"
>
<img
ms-attr=
"{src:@formData.wximag}"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
new_admincp/source/zsb/js/v1.0/real/index.js
View file @
6ff3dca2
var
avaVm
=
avalon
.
define
({
var
avaVm
=
avalon
.
define
({
$id
:
"real-manage"
,
$id
:
"real-manage"
,
formData
:
{
step
:
1
,
wximag
:
''
,
pay_money
:
0
,
transaction_id
:
''
,
},
isOpenReal
:
function
()
{
var
_this
=
this
;
layer
.
confirm
(
'确认开通放心看?'
,
{
btn
:
[
'开通'
,
'取消'
]
//按钮
},
function
(){
_this
.
openReal
();
});
},
openReal
:
function
()
{
openReal
:
function
()
{
var
_this
=
this
;
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
''
,
url
:
'
/realHouse/openReal
'
,
data
:
{
'secret_key'
:
secret_key
,
'rowid'
:
rowid
,
'reason'
:
reason
,
'p_filenames'
:
p_filenames_img
},
data
:
{},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
re
)
{
if
(
re
.
result
!=
1
){
_this
.
waringOpen
(
re
.
msg
);
return
false
;
}
var
data
=
re
.
data
;
_this
.
formData
.
wximag
=
data
.
pay_url
;
_this
.
formData
.
step
=
2
;
_this
.
formData
.
pay_money
=
data
.
money
;
_this
.
formData
.
transaction_id
=
data
.
transaction_id
;
//启动轮询
_this
.
setInOrder
();
}
}
});
});
}
},
waringOpen
:
function
(
msg
)
{
layer
.
alert
(
msg
,
{
title
:
'放心看'
,
icon
:
0
,
skin
:
'layer-skin-yellow'
//该皮肤由layer.seaning.com友情扩展。关于皮肤的扩展规则,去这里查阅
})
},
checkOrder
:
function
()
{
var
_this
=
this
$
.
post
(
'/realHouse/realCheckPay'
,{
transaction_id
:
_this
.
formData
.
transaction_id
},
function
(
re
)
{
if
(
re
.
code
==
1
){
layer
.
msg
(
'支付成功,房豆已到账,正在跳转'
);
setTimeout
(
function
()
{
window
.
location
.
href
=
'http://nj.zsb.house365.com/payment'
;
},
1000
);
}
},
'json'
)
},
setInOrder
:
function
()
{
var
_this
=
this
setInterval
(
function
(){
_this
.
checkOrder
()
},
2000
);
},
});
});
$
(
function
(){
$
(
function
(){
...
...
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