提交 2d0c31ed authored 作者: 游宗学's avatar 游宗学

修改!

上级 66636666
...@@ -50,8 +50,12 @@ class CustomTemplateController extends BaseBookingWapController ...@@ -50,8 +50,12 @@ class CustomTemplateController extends BaseBookingWapController
$this->ajaxReturn($parameter); $this->ajaxReturn($parameter);
} }
$this->assign('parameter', $parameter['data']['parameter']); $this->assign('parameter', $parameter['data']['parameter']);
$template_name = $parameter['data']['template_name']?$parameter['data']['template_name']:'preordainTemplate'; $template_html = $this->fetch($parameter['data']['template_name']);
$this->display($parameter['data']['template_name']);
$this->assign('contract_id', $data['contract_id']);
$this->assign('template_html', $template_html);
$this->display("preordainTemplate");
} }
/** /**
* @version 2018年05月16日09:22:23 * @version 2018年05月16日09:22:23
...@@ -97,7 +101,11 @@ class CustomTemplateController extends BaseBookingWapController ...@@ -97,7 +101,11 @@ class CustomTemplateController extends BaseBookingWapController
die('<h1>'.$parameter['message'].'</h1>'); die('<h1>'.$parameter['message'].'</h1>');
} }
$this->assign('parameter', $parameter['data']['parameter']); $this->assign('parameter', $parameter['data']['parameter']);
$this->display($parameter['data']['template_name']); $template_html = $this->fetch($parameter['data']['template_name']);
$this->assign('contract_id', $data['contract_id']);
$this->assign('template_html', $template_html);
$this->display("entrustAgreement");
} }
/** /**
......
<link rel="apple-touch-icon" href="__CDN_WEIXIN__lefull-wap/build/component/common/images/favicon.ico">
<link rel="Shortcut Icon" href="__CDN_WEIXIN__lefull-wap/build/component/common/images/favicon.ico" type="image/x-icon">
<script type="text/ecmascript" src="__CDN_WEIXIN__lefull-wap/build/lib/flexible/flexible_css.js"></script>
<script type="text/ecmascript" src="__CDN_WEIXIN__lefull-wap/build/lib/flexible/flexible.js"></script>
<link rel="stylesheet" href="__CDN_WEIXIN__lefull-wap/build/component/common/fonts/iconfont.css" />
<link rel="stylesheet" href="__CDN_WEIXIN__lefull-wap/build/component/common/css/common.css" />
<link rel="stylesheet" href="__CDN_WEIXIN__lefull-wap/build/component/business/css/agreementCommon.css"/>
<style>
body{
padding-top:0;
background: #ffffff;
}
.conditions{
padding-bottom:0;
height:auto;
}
.conditions div{
height:auto;
}
</style>
<section class="wraper">
<section>
<!--协议-->
<div class="conditions">
<div>{{$template_html}}</div>
</div>
</section>
</section>
<input type="hidden" name="contract_id" id="contract_id" value="{{$contract_id}}"/>
<div class="md-overlay"></div>
<script src="__CDN_WEIXIN__lefull-wap/build/lib/jquery/jquery-3.2.1.min.js" type="text/javascript" rel="preload" as="script"></script>
<script src="__CDN_WEIXIN__lefull-wap/build/component/common/js/common.js" type="text/javascript" rel="preload" as="script"></script>
<script src="__CDN_WEIXIN__lefull-wap/build/lib/swiper/swiper.min.js" type="text/javascript" rel="preload" as="script"></script>
<script src="__CDN_WEIXIN__lefull-wap/build/component/index/js/index.js" type="text/javascript" rel="preload" as="script"></script>
<script type="text/javascript" rel="preload" as="script">
$(function () {
var sta = "<?php echo $parameter['is_sign'];?>";
var flag = window.location.href.split('flag=')[1];
if (flag == 'renter' && sta == 0) {
$('.ui-fixed-b').show();
$('.ui-btn-green').show();
$('.ui-bg-gray').hide();
} else if (sta == 1) {
$('.ui-fixed-b').show();
$('.ui-btn-green').hide();
$('.ui-bg-gray').show();
} else {
$('.ui-fixed-b').hide();
$('body').css('padding-bottom',0);
}
$('.ui-btn-green').on('click', function () {
if ($(this).hasClass('loading')) return;
$(this).addClass('loading');
$(this).text('签约中');
console.log(1)
$.ajax({
url: '/Business/ajaxContract',
data: {
contract_id: $('#contract_id').val(),
},
type: 'post',
success: function (json) {
if (json.status == 1) {
$('.ui-btn-green').hide();
$('.ui-bg-gray').show();
$('.ui-error').hide();
} else {
$('.ui-error').show();
}
},
error: function (json) {
$('.ui-error').show();
}
})
})
})
</script>
<html> <link rel="apple-touch-icon" href="__CDN_WEIXIN__lefull-wap/build/component/common/images/favicon.ico">
<head></head> <link rel="Shortcut Icon" href="__CDN_WEIXIN__lefull-wap/build/component/common/images/favicon.ico" type="image/x-icon">
<body>
<p style="margin-bottom:10px;text-align:center;background:white"><strong><span style="font-size: 0.4rem;font-family:'微软雅黑',sans-serif;color:#333333;background:white">定金协议</span></strong></p> <script type="text/ecmascript" src="__CDN_WEIXIN__lefull-wap/build/lib/flexible/flexible_css.js"></script>
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">请您先仔细阅读本协议内容,尤其是字体加粗部分。如您对本协议内容有疑问,请勿进行下一步操作。您可通过门店管家或热线电话4001101165进行咨询,以便我们为您解释和说明。您通过页面点击或其他方式确认即表示您已同意本协议。</span></p> <script type="text/ecmascript" src="__CDN_WEIXIN__lefull-wap/build/lib/flexible/flexible.js"></script>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;</span></p>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">甲方(出租方):</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.jf_bot}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span></p> <link rel="stylesheet" href="__CDN_WEIXIN__lefull-wap/build/component/common/fonts/iconfont.css" />
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p> <link rel="stylesheet" href="__CDN_WEIXIN__lefull-wap/build/component/common/css/common.css" />
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">乙方(承租方):<span style="color: #000000">{{$parameter.tenant_name}}</span></span></p> <link rel="stylesheet" href="__CDN_WEIXIN__lefull-wap/build/component/business/css/agreementCommon.css"/>
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:black">身份证号:</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.tenant_idcard}}</span><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span></p> <style>
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">甲乙双方遵循平等自愿和诚实信用的原则,经协商一致,就乙方(承租方)向甲方(出租方)预定房屋进行租赁事宜,特订立本协议,供双方共同遵守。</span></p> body{
<p style="margin-bottom:10px;line-height:150%;background:white"><strong><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span></strong></p> padding-top:0;
<p style="margin-bottom:10px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">第一条&nbsp; 预定房间情况</span></strong></p> background: #ffffff;
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:#333333">1、</span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">预定房屋坐落于</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="color: #000000">{{$parameter.project_address}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">项目</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="color: #000000">{{$parameter.building}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white"></span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="color: #000000">{{$parameter.floor}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white"></span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="color: #000000">{{$parameter.room_number}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">房间。</span></p> }
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:#333333">2、</span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">建筑面积为</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="color: #000000">{{$parameter.area}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">平方米。</span></p> .conditions{
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:#333333">3、</span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">租金标准:租金为¥</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="color: #000000">{{$parameter.rental}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">元(大写:人民币</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="color: #000000">{{$parameter.rental_dx}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000;background:white"></span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">元整)/月</span></p> padding-bottom:0;
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:#333333">4、</span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">乙方同意签订本协议,<strong>并支付所定房间一个月的租金为定金</strong>作为甲乙方双方签订该房间租赁合同的担保,签订房屋租赁合同后,乙方支付的定金将转为该房间押金。</span></p> height:auto;
<p style="margin-top:0;margin-right:0;margin-bottom:10px;line-height:150%;background:white"><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span></p> }
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">第二条&nbsp; 乙方保证和承诺</span></strong></p> .conditions div{
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">1.</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">乙方应按照预定房间约定的租赁期限,签订租赁合同,如超过预定期,乙方未与甲方协商签订租赁合同的,甲方有权解</span></strong></p> height:auto;
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">除本协议,且定金不予返还。</span></strong></p> }
<p style="margin-bottom:10px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">2.</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">乙方认同该房间的设施设备、收费标准、优惠措施、以及门店《入住须知》。</span></strong></p> </style>
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">3.</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">为了创造良好的社区环境,乙方签订本协议后即表示认同《房屋租赁合同》,签订租赁合同时须出示入住人的身份证原</span></strong></p> <section class="wraper">
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">件。</span></strong></p>
<p style="margin-bottom:10px;line-height:150%;background:white"><strong><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">第三条&nbsp; 违约责任</span></strong></p> <section>
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">1.</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">乙方如未履行第二条中任意一项即视为违约,甲方有权终止协议,乙方已缴纳的定金不予退还。</span></strong></p> <!--协议-->
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">2.</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">为减少乙方损失,若因乙方原因无法按照约定时间签约入住,可向甲方申请对当前预定房间进行转租;转租成功后乙方</span></strong></p> <div class="conditions">
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">需最晚于约定签约当日将押金的一半作为转租服务费支付给甲方,乙方逾期不予支付的,视为乙方违约默认放弃转租业务</span></strong></p> <div>{{$template_html}}</div>
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">申请,定金不予退还且不再留房。</span></strong></p> </div>
<p style="margin-bottom:10px;line-height:150%;background:white"><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">3.</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">甲方单方解除本协议的应全额将定金退还乙方。</span></strong></p>
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">第四条&nbsp; 免责条款</span></strong></p> </section>
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">1.</span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">如因不可抗力导致协议不能履行的,双方均不承担责任。</span></p> </section>
<p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:16px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">2.</span><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">预定期限内,若租赁物被征收或征占,本协议不再履行,甲乙双方互不承担违约责任。</span></p>
<p style="margin-bottom:10px;line-height:150%;background:white"><strong><span style="font-family: '微软雅黑',sans-serif;color:#333333;background:white">&nbsp;</span></strong><strong><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">第五条&nbsp; 协议争议的解决办法</span></strong></p>
<p style="margin-bottom:10px;line-height:150%;background:white"><span style="font-family:'微软雅黑',sans-serif;color:#333333;background:white">本协议履行期间如发生争议,由双方友好协商解决;若协商不成,依法向合同履行地(承租房屋所在地)有管辖权的人民法院起诉。</span></p> <input type="hidden" name="contract_id" id="contract_id" value="{{$contract_id}}"/>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;</span></p>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">出租人(甲方)签字:</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.jf_bot}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="font-family: '微软雅黑',sans-serif;color:black">  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p> <div class="md-overlay"></div>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">联系电话:</span><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></p>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.now_year}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="font-family: '微软雅黑',sans-serif;color:black">&nbsp;</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.now_month}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;</span><span style="font-family:'微软雅黑',sans-serif;color:black"></span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.now_day}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;</span><span style="font-family:'微软雅黑',sans-serif;color:black"></span></p> <script src="__CDN_WEIXIN__lefull-wap/build/lib/jquery/jquery-3.2.1.min.js" type="text/javascript" rel="preload" as="script"></script>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;</span></p> <script src="__CDN_WEIXIN__lefull-wap/build/component/common/js/common.js" type="text/javascript" rel="preload" as="script"></script>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">承租人(乙方)签字:</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.tenant_name}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span></p> <script src="__CDN_WEIXIN__lefull-wap/build/lib/swiper/swiper.min.js" type="text/javascript" rel="preload" as="script"></script>
<p style="margin-top:5px;margin-right:0;margin-bottom:5px;margin-left: 0;line-height:150%"><span style="font-family:'微软雅黑',sans-serif;color:black">联系电话:</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000">{{$parameter.tenant_phone}}</span><span style="font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="font-family:'微软雅黑',sans-serif;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p> <script src="__CDN_WEIXIN__lefull-wap/build/component/index/js/index.js" type="text/javascript" rel="preload" as="script"></script>
<p><span style="font-size: 0.4rem;font-family:'微软雅黑',sans-serif;color: #000000"></span><span style="color: #000000;">{{$parameter.now_year}}</span><span style="font-family: 微软雅黑, sans-serif; color: #000000;"></span><span style="font-family: 微软雅黑, sans-serif;">&nbsp;</span><span style="font-family: 微软雅黑, sans-serif; color: #000000;"></span><span style="color: #000000;">{{$parameter.now_month}}</span><span style="font-family: 微软雅黑, sans-serif; color: #000000;"></span><span style="font-family: 微软雅黑, sans-serif;">&nbsp;</span><span style="font-family: 微软雅黑, sans-serif;"></span><span style="font-family: 微软雅黑, sans-serif; color: #000000;"></span><span style="color: #000000;">{{$parameter.now_day}}</span><span style="font-family: 微软雅黑, sans-serif; color: #000000;"></span><span style="font-family: 微软雅黑, sans-serif;">&nbsp;</span><span style="font-family: 微软雅黑, sans-serif;"></span><span style="font-size: 0.4rem;font-family:'微软雅黑',sans-serif;color:black">&nbsp;</span></p>
<p><br /></p>
</body>
</html> <script type="text/javascript" rel="preload" as="script">
\ No newline at end of file $(function () {
var sta = "<?php echo $parameter['is_sign'];?>";
var flag = window.location.href.split('flag=')[1];
if (flag == 'renter' && sta == 0) {
$('.ui-fixed-b').show();
$('.ui-btn-green').show();
$('.ui-bg-gray').hide();
} else if (sta == 1) {
$('.ui-fixed-b').show();
$('.ui-btn-green').hide();
$('.ui-bg-gray').show();
} else {
$('.ui-fixed-b').hide();
$('body').css('padding-bottom',0);
}
$('.ui-btn-green').on('click', function () {
if ($(this).hasClass('loading')) return;
$(this).addClass('loading');
$(this).text('签约中');
console.log(1)
$.ajax({
url: '/Business/ajaxContract',
data: {
contract_id: $('#contract_id').val(),
},
type: 'post',
success: function (json) {
if (json.status == 1) {
$('.ui-btn-green').hide();
$('.ui-bg-gray').show();
$('.ui-error').hide();
} else {
$('.ui-error').show();
}
},
error: function (json) {
$('.ui-error').show();
}
})
})
})
</script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论