Commit 8c439449 authored by zhangkuanguang's avatar zhangkuanguang

芜湖

parent bb08685b
......@@ -3,7 +3,7 @@
class zsb_api_model extends MY_Model{
private $host = 'http://newrentt.house365.com';
private $host = 'http://newrent.house365.com';
private $apiSource = 'PC';// 访问API使用的公用source
private $apiVersion = '1.0.0';// 访问API使用的公用版本号
private $token = 'ZSB_API';
......
......@@ -16,6 +16,7 @@ var avaVm = avalon.define({
},
openReal:function () {
var _this = this;
var index = layer.load(2, {shade: false});
$.ajax({
type: 'post',
url: '/realHouse/openReal',
......@@ -33,6 +34,9 @@ var avaVm = avalon.define({
_this.formData.transaction_id = data.transaction_id;
//启动轮询
_this.setInOrder();
},
complete:function () {
layer.closeAll();
}
});
},
......@@ -46,7 +50,7 @@ var avaVm = avalon.define({
checkOrder:function () {
var _this = this
$.post('/realHouse/realCheckPay',{transaction_id:_this.formData.transaction_id},function (re) {
if(re.code == 1){
if(re.result == 1){
layer.msg('放心看已开通,正在跳转');
setTimeout(function () {
window.location.href = '/realHouse/marginAccount/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment