This commit is contained in:
zongzhimin
2018-04-12 14:03:37 +08:00
parent 87174fbf44
commit 719c9653ec
2 changed files with 156 additions and 142 deletions
+17 -1
View File
@@ -1544,7 +1544,8 @@
"views/news/newsDetail.html", "views/news/newsDetail.html",
"error.html", "error.html",
"views/rent/rent.html", "views/rent/rent.html",
"views/district/detail.html" "views/district/detail.html",
"views/house/houseList.html"
], ],
"priority": 0 "priority": 0
}, },
@@ -1646,6 +1647,21 @@
"views/user/codeSms.html" "views/user/codeSms.html"
], ],
"priority": 0 "priority": 0
},
"views/house/houseList.html": {
"resources": [],
"refer": [
"views/house/add.html",
"views/house/detail.html"
],
"priority": 0
},
"views/house/add.html": {
"resources": [],
"refer": [
"views/evaluate/evaluateReport.html"
],
"priority": 0
} }
}, },
"idle": { "idle": {
+66 -68
View File
@@ -123,71 +123,10 @@ $.config = {router: false}
<script type="text/javascript" src="../../js/axiosPlugin.js"></script> <script type="text/javascript" src="../../js/axiosPlugin.js"></script>
<script type="text/javascript" src="../../js/log/log_stat.js" ></script> <script type="text/javascript" src="../../js/log/log_stat.js" ></script>
<script> <script>
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
// 获取周期 1-30 id = self.id
function getnumber(){
var data = new Array();
for(var i=1;i<31;i++){
data.push(i);
}
return data;
};
///* 错误提示 */
//$("#confirm_btn").on("click", function () {
// var a = $("#input_time01").val();
// var b = $("#input_time02").val();
// var c = $("#input_rent01").val();
// var d = $("#input_time03").val();
// if(a == ""){
// $.toast("请选择起租日期");
// return false;
// }
// else if(b == ""){
// $.toast("请选择到期日期");
// return false;
// }
// else if(c == ""){
// $.toast("请输入每期租金");
// return false;
// }
// else if(d == ""){
// $.toast("请选择下次收租日期");
// return false;
// }
//});
</script>
<script>
var edit = new Vue({
el:"#edit",
data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""}
});
function getNowFormatDate(time) {
if(typeof(time)=="undefined"||time==null){
return ""
}
var date = new Date(time)
var seperator1 = "-";
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = year + seperator1 + month + seperator1 + strDate;
return currentdate;
}
var id="165878889770385408"
$(function (){
//var self = plus.webview.currentWebview();
// id = self.newsId;
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){ axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
var data = response.data.data.houses; var data = response.data.data.houses;
$.each(data,function(i){ $.each(data,function(i){
@@ -262,7 +201,8 @@ $("#input_cycle").picker({
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
}); });
})
//var id="165878889770385408"
/* 编辑状态-确定 */ /* 编辑状态-确定 */
$(document).on('click','#confirm_btn', function () { $(document).on('click','#confirm_btn', function () {
@@ -341,12 +281,70 @@ $("#input_cycle").picker({
} }
axios.post("/rest/rent/changeStatus",d).then(function(response){ axios.post("/rest/rent/changeStatus",d).then(function(response){
//$.toast(response.data.data); back(),plus.nativeUI.closeWaiting();
console.log(1);
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
}); });
}); });
}
// 获取周期 1-30
function getnumber(){
var data = new Array();
for(var i=1;i<31;i++){
data.push(i);
}
return data;
};
///* 错误提示 */
//$("#confirm_btn").on("click", function () {
// var a = $("#input_time01").val();
// var b = $("#input_time02").val();
// var c = $("#input_rent01").val();
// var d = $("#input_time03").val();
// if(a == ""){
// $.toast("请选择起租日期");
// return false;
// }
// else if(b == ""){
// $.toast("请选择到期日期");
// return false;
// }
// else if(c == ""){
// $.toast("请输入每期租金");
// return false;
// }
// else if(d == ""){
// $.toast("请选择下次收租日期");
// return false;
// }
//});
var edit = new Vue({
el:"#edit",
data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""}
});
function getNowFormatDate(time) {
if(typeof(time)=="undefined"||time==null){
return ""
}
var date = new Date(time)
var seperator1 = "-";
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = year + seperator1 + month + seperator1 + strDate;
return currentdate;
}
</script> </script>
</body> </body>
</html> </html>