|
@@ -10,17 +10,23 @@
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
|
|
|
<meta http-equiv="Pragma" content="no-cache">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
-
|
|
|
-
|
|
|
+ <!--引入css文件-->
|
|
|
+ <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/webapp/o2o/dist/css/main.css?v=2016032401">
|
|
|
+ <link rel="stylesheet" href=" <?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-3.3.7.min.css">
|
|
|
+ <!--引入js文件-->
|
|
|
+ <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-3.1.1.min.js"></script>
|
|
|
+ <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap-3.3.7.min.js"></script>
|
|
|
+ <!--修改title-->
|
|
|
+ <script>
|
|
|
+ $(function () {
|
|
|
+ document.title = "壹管家";
|
|
|
+ })
|
|
|
+ </script>
|
|
|
</head>
|
|
|
<body ng-controller="myctrl">
|
|
|
<div class="">
|
|
|
- <!-- <img style="width: 100%"-->
|
|
|
- <!-- src="http://odulvej8l.bkt.clouddn.com/%E6%B0%91%E5%AE%BF%E4%BF%9D%E6%B4%81%E8%AF%A6%E6%83%85%E9%A1%B5.jpg"-->
|
|
|
- <!-- alt="">-->
|
|
|
- <h1></h1>
|
|
|
- <form action="index.php?r=o2o/Advisory/SaveAdvisory" method='post'
|
|
|
- class="container form-horizontal ng-valid ng-dirty ng-valid-parse" style="margin-bottom: 15%; ">
|
|
|
+ <form id="Enterprise" onsubmit="AddHandlingFeeToRefund()"
|
|
|
+ class="container form-horizontal" style="margin-bottom: 15%; ">
|
|
|
<div class="container">
|
|
|
<!--姓名-->
|
|
|
<div class="form-group">
|
|
@@ -38,26 +44,18 @@
|
|
|
<!--房型-->
|
|
|
<div class="form-group">
|
|
|
<label>选择房型:</label>
|
|
|
- <select name="type" class="form-control" ng-model="Type" ng-init="Type=TypeList[0].id"
|
|
|
- ng-options="type.id as type.name for type in TypeList" id="">
|
|
|
- <option value="">--请选择--</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <!--房源套数-->
|
|
|
- <div class="form-group">
|
|
|
- <label>选择房源套数:</label>
|
|
|
- <select name="num" class="form-control" ng-model="Num" ng-init="Num=NumList[0].id"
|
|
|
- ng-options="num.id as num.name for num in NumList" id="">
|
|
|
+ <select name="tech_content" class="form-control" ng-model="AechContent" ng-init="AechContent=AechContentList[0].id"
|
|
|
+ ng-options="type.id as type.name for type in AechContentList" id="">
|
|
|
<option value="">--请选择--</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
+
|
|
|
<!--手机号码-->
|
|
|
<div class="form-group">
|
|
|
<label>手机号码:</label>
|
|
|
<input type="text" name="phone" class="form-control"
|
|
|
placeholder="请输入您的手机号码" ng-model="phone"/>
|
|
|
</div>
|
|
|
- <h2 style="text-align: center">你好</h2>
|
|
|
<!--性别-->
|
|
|
<div class="form-group">
|
|
|
<div style="display: inline-block;max-width: 100%;margin-bottom: 5px;font-weight: 700;">性别:</div>
|
|
@@ -75,10 +73,10 @@
|
|
|
<button
|
|
|
style="background: rgb(42,36,0);color:rgb(178,143,0);border: 0"
|
|
|
class="btn btn-success col-xs-12"
|
|
|
- data-container="body"
|
|
|
- data-toggle="popover"
|
|
|
- data-placement="top"
|
|
|
- data-content="{{btnContent}}">
|
|
|
+<!-- data-container="body"-->
|
|
|
+<!-- data-toggle="popover"-->
|
|
|
+<!-- data-placement="top"-->
|
|
|
+<!-- data-content="{{btnContent}}">-->
|
|
|
提交
|
|
|
</button>
|
|
|
</div>
|
|
@@ -90,8 +88,8 @@
|
|
|
<!--首页-->
|
|
|
<div class="width-percent-33">
|
|
|
<div class="title-container-square">
|
|
|
- <a class="btn-home-action btn-action-my-order" href="/index.php?r=o2o/web/index#">
|
|
|
- <div class="logo logo-my-order"></div>
|
|
|
+ <a class="btn-home-action btn-action-my-order" href="/index.php?r=o2o/web/index">
|
|
|
+ <div class="logo logo-my-order" style="margin-bottom: 0.5rem;"></div>
|
|
|
<div class="name">首页</div>
|
|
|
</a>
|
|
|
</div>
|
|
@@ -108,7 +106,7 @@
|
|
|
<div class="width-percent-33">
|
|
|
<div class="title-container-square">
|
|
|
<a class="btn-home-action btn-action-coupon">
|
|
|
- <div class="logo logo-coupon"></div>
|
|
|
+ <div class="logo logo-coupon"style="margin-bottom: 0.5rem;"></div>
|
|
|
<div class="name">我的</div>
|
|
|
</a>
|
|
|
</div>
|
|
@@ -128,15 +126,21 @@
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|
|
|
+<script src="//cdn.bootcss.com/angular.js/1.4.3/angular.min.js"></script>
|
|
|
<script>
|
|
|
var myapp = angular.module('myapp', []);
|
|
|
myapp.controller('myctrl', ['$scope', function ($scope) {
|
|
|
+
|
|
|
+ /*点击关闭模态框*/
|
|
|
$('.model-content').on('click', function () {
|
|
|
$('.model').css('height', '0');
|
|
|
$('.model-box').css('display', 'none');
|
|
|
});
|
|
|
/*表单提交进行判断*/
|
|
|
$('button').on('click', function () {
|
|
|
+ console.log('input[name="name"]');
|
|
|
+// alert($('#formAddHandlingFee').serialize());
|
|
|
+ return false;
|
|
|
/*姓名是否为空*/
|
|
|
if ($scope.username == undefined) {
|
|
|
model('请重填', '确认您的姓名');
|
|
@@ -152,6 +156,21 @@
|
|
|
model('请重新选择', '确认');
|
|
|
return false;
|
|
|
}
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "GET",
|
|
|
+ url:"<?php echo Yii::app()->request->baseUrl; ?>index.php?r=o2o/Advisory/SaveAdvisory",
|
|
|
+ data:$('#Enterprise').serialize(),
|
|
|
+ async: false,
|
|
|
+ error: function(request) {
|
|
|
+ console.log("Connection error")
|
|
|
+ },
|
|
|
+ success: function(data) {
|
|
|
+ model('您的咨询已发送成,请等待我们的企业管家与您联系','温馨提示,一般是一个工作日内,日间致电给您,请留意。')
|
|
|
+ console.log(data)
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
/*model*/
|
|
|
function model(title, content) {
|
|
|
$('.model-box').css('display', 'inline');
|
|
@@ -159,6 +178,7 @@
|
|
|
$('.model-title').html(title);
|
|
|
$('.model-content').html(content);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
);
|
|
|
|
|
@@ -180,17 +200,21 @@
|
|
|
{'id': 15, 'name': '青浦区', 'parent': 1, type: '2'},
|
|
|
{'id': 16, 'name': '奉贤区', 'parent': 1, type: '2'}
|
|
|
];
|
|
|
- $scope.TypeList=[
|
|
|
- {'id': 1, 'name': '一户室', 'parent': 1, type: '3'},
|
|
|
- {'id': 2, 'name': '两户室', 'parent': 1, type: '3'},
|
|
|
- {'id': 3, 'name': '三户及以上', 'parent': 1, type: '3'},
|
|
|
- {'id': 4, 'name': '单间', 'parent': 1, type: '3'},
|
|
|
- {'id': 5, 'name': '多套多房型', 'parent': 1, type: '3'},
|
|
|
+ $scope.AechContentList=[
|
|
|
+ {'id': 1, 'name': '写字楼日常保洁', 'parent': 1, type: '3'},
|
|
|
+ {'id': 2, 'name': '展会日常保洁', 'parent': 1, type: '3'},
|
|
|
+ {'id': 3, 'name': '开荒保洁', 'parent': 1, type: '3'},
|
|
|
+ {'id': 4, 'name': '地毯清洁', 'parent': 1, type: '3'},
|
|
|
+ {'id': 5, 'name': '地板打蜡', 'parent': 1, type: '3'},
|
|
|
+ {'id': 6, 'name': '沙发清洗', 'parent': 1, type: '3'},
|
|
|
+ {'id': 7, 'name': '电器清洗', 'parent': 1, type: '3'},
|
|
|
+ {'id': 8, 'name': '玻璃清洗', 'parent': 1, type: '3'},
|
|
|
+ {'id': 9, 'name': '整体消毒', 'parent': 1, type: '3'},
|
|
|
+ {'id': 10, 'name': '电器消毒', 'parent': 1, type: '3'},
|
|
|
+ {'id': 11, 'name': '除尘除螨', 'parent': 1, type: '3'}
|
|
|
];
|
|
|
- $scope.NumList=[
|
|
|
- {'id': 1, 'name': '整房三套以下', 'parent': 1, type: '4'},
|
|
|
- {'id': 2, 'name': '整房三套以上', 'parent': 1, type: '4'},
|
|
|
- {'id': 3, 'name': '多套单间', 'parent': 1, type: '4'}
|
|
|
- ]
|
|
|
+
|
|
|
}])
|
|
|
+
|
|
|
+
|
|
|
</script>
|