|
|
@ -98,7 +98,13 @@ |
|
|
<input id="file-home-bottom-left" onchange="showImg(this,'home-bottom-left')" name="file" type="file" multiple> |
|
|
<input id="file-home-bottom-left" onchange="showImg(this,'home-bottom-left')" name="file" type="file" multiple> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-sm-5"> |
|
|
<div class="col-sm-5"> |
|
|
<input class="form-control" type="text" name="title" id="title" placeholder="场景"> |
|
|
<label class="col-sm-4 control-label is-required">状态:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<select onchange="updateStatue('home-bottom-left')" name="status-title-home-bottom-left" id="status-home-bottom-left" class="form-control m-b"> |
|
|
|
|
|
<option value="0">普通</option> |
|
|
|
|
|
<option value="1">定制</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
@ -117,7 +123,13 @@ |
|
|
<input id="file-home-bottom-right-top" onchange="showImg(this,'home-bottom-right-top')" name="file" type="file" multiple> |
|
|
<input id="file-home-bottom-right-top" onchange="showImg(this,'home-bottom-right-top')" name="file" type="file" multiple> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-sm-5"> |
|
|
<div class="col-sm-5"> |
|
|
<input class="form-control" type="text" name="title" id="title" placeholder="场景"> |
|
|
<label class="col-sm-4 control-label is-required">状态:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<select onchange="updateStatue('home-bottom-right-top')" name="status-home-bottom-right-top" id="status-home-bottom-right-top" class="form-control m-b"> |
|
|
|
|
|
<option value="0">普通</option> |
|
|
|
|
|
<option value="1">定制</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
@ -401,6 +413,20 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 更新状态 */ |
|
|
|
|
|
function updateStatue(key) { |
|
|
|
|
|
var val = $("#status-"+key+" option:selected").val(); |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: prefix+'/editStatus/'+key+"/"+val, //后台url |
|
|
|
|
|
type: "GET", |
|
|
|
|
|
dataType: 'json', //数据返回类型,可以是xml、json等 |
|
|
|
|
|
success: function (data) { //成功,回调函数 |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (er) { //失败,回调函数 |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |