This commit is contained in:
xuhe@fangjia.com
2018-04-13 19:02:52 +08:00
parent 5c69f7272a
commit d1a8eea4db
4 changed files with 87 additions and 7 deletions
+2 -1
View File
@@ -126,7 +126,7 @@ $.config = {router: false}
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
id = self.id
id = self.houseId
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
var data = response.data.data.houses;
$.each(data,function(i){
@@ -281,6 +281,7 @@ function onPlusReady() {
}
axios.post("/rest/rent/changeStatus",d).then(function(response){
plus.webview.getWebviewById('views/house/detail.html').reload();
back(),plus.nativeUI.closeWaiting();
}).catch(function(error){
console.log(error)