<script type="text/javascript" src="/assets/plugin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/assets/plugin/ueditor/ueditor.all.js"></script>
<script>
var _editor;
_editor = UE.getEditor('upload_ue');
_editor.ready(function () {
_editor.setDisabled();
_editor.hide();
_editor.addListener('beforeInsertImage', function (t, arg) {
console.log(arg)
$('.webupload_current').val(arg[0].src);
$(".webupload_current").removeClass("webupload_current");
});
});
function selectpic(id) {
$("#"+id).addClass("webupload_current");
var myImage = _editor.getDialog("insertimage");
myImage.open();
}
</script>
<div class="form-group form-inline">
<label class="col-md-3 col-form-label" for="wapsite_url">手机网站网址</label>
<div class="col-md-9 p-0">
<input class="form-control input-full" name="wapsite_url" type="text" placeholder="" value="<?=$m['wapsite_url']?>">
</div>
</div>
<div class="form-group form-inline">
<label class="col-md-3 col-form-label" for="wapsite_logo">手机网站Logo</label>
<div class="col-md-9 p-0">
<input type="text" class="form-control file-upload-info" name="wapsite_logo" id="wapsite_logo" value="<?=$m['wapsite_logo']?>">
<a href="#" class="btn btn-danger plupload" onclick="selectpic('wapsite_logo')">选择文件</a>
</div>
</div>