Commit dedbb982 authored by zhangkuanguang's avatar zhangkuanguang

芜湖放心看

parent 8c439449
......@@ -175,6 +175,9 @@ class realHouse extends MY_Controller {
$uid = $info['uid'];
$realHouseMoney = $this->real_house_model->getBrokerRealHouseMoney($uid);
$brokerLog = $this->real_house_model->getBrokerLog($uid);
//放心看的数量
$count = $this->real_house_model->getRealSell($uid);
$this->load->model('zsb_api_model');
$info = $this->zsb_api_model->getRequrstData('realInfo');
......@@ -194,6 +197,7 @@ class realHouse extends MY_Controller {
$money = $data['money'];
$real_house_money = $data['real_house_money'];
$data_page['real_status'] = $real_status;
$data_page['real_count'] = $count;
$data_page['is_applay'] = $is_applay;
$data_page['real_money'] = $money;
$data_page['brokerLog'] = $brokerLog;
......
......@@ -116,7 +116,7 @@
<script src="/source/zsb/js/avalon/avalon_gbk.js"></script>
<script src="/source/zsb/js/layer-v3.1.1/layer/layer_gbk.js"></script>
<script type="application/javascript">
var real_count = <?= $real_count?>;
</script>
<script src="/source/zsb/js/v1.0/real/index.js"></script>
\ No newline at end of file
......@@ -67,22 +67,32 @@ var avaVm = avalon.define({
//提现
remit:function () {
var _this = this;
$.ajax({
type: 'post',
url: '/realHouse/realHouseRemit',
data: {},
dataType: 'json',
success: function (re) {
if(re.result != 1){
_this.waringOpen(re.msg);
return false;
layer.confirm('您的账户中仍有'+real_count+'条"放心房"在线展示,提现后"放心房"标签将被去除哦!', {
btn: ['继续提现','取消'] //按钮
}, function(){
var index = layer.load(2, {shade: false});
$.ajax({
type: 'POST',
url: '/realHouse/realHouseRemit',
data: {},
dataType: 'JSON',
success: function (re) {
if(re.result != 1){
_this.waringOpen(re.msg);
return false;
}
layer.alert('您的提现申请已提交成功,预计15工作日内将保证金原路退回,请您注意余额变动',function () {
window.location.href = '/realHouse/marginAccount/';
});
},
complete:function () {
layer.close(index);
}
lay.msg('已成功申请提现');
setTimeout(function () {
window.location.href = '/realHouse/marginAccount/';
},1000);
}
});
});
}
});
......
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