86 lines
2.9 KiB
HTML
86 lines
2.9 KiB
HTML
|
{layout name="layout2" /}
|
||
|
<style>
|
||
|
.layui-form-item .layui-input-inline { width: 340px; }
|
||
|
</style>
|
||
|
|
||
|
<div class="layui-card layui-form" style="box-shadow:none;">
|
||
|
<div class="layui-card-body">
|
||
|
<div class="layui-form-item">
|
||
|
<label class="layui-form-label">姓名:</label>
|
||
|
<div class="layui-input-block">
|
||
|
<input type="text" readonly value="{$detail.name}" autocomplete="off" class="layui-input">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="layui-form-item">
|
||
|
<label class="layui-form-label">电话:</label>
|
||
|
<div class="layui-input-block">
|
||
|
<input type="text" readonly value="{$detail.phone}" autocomplete="off" class="layui-input">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="layui-form-item">
|
||
|
<label class="layui-form-label">公司:</label>
|
||
|
<div class="layui-input-block">
|
||
|
<input type="text" readonly value="{$detail.company}" autocomplete="off" class="layui-input">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="layui-form-item">
|
||
|
<label class="layui-form-label">价格:</label>
|
||
|
<div class="layui-input-block">
|
||
|
<input type="text" readonly value="{$detail.price}" autocomplete="off" class="layui-input">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="layui-form-item">
|
||
|
<label class="layui-form-label">状态:</label>
|
||
|
<div class="layui-input-block">
|
||
|
<input type="radio" name="status" value="0" title="待处理" {if $detail.status == 0} checked {/if}>
|
||
|
<input type="radio" name="status" value="1" title="已处理" {if $detail.status == 1} checked {/if}>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="layui-form-item">
|
||
|
<label class="layui-form-label">备注:</label>
|
||
|
<div class="layui-input-block">
|
||
|
<textarea class="layui-textarea" name="remarks" lay-verify="content">{$detail.remarks}</textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="layui-form-item layui-hide">
|
||
|
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<script>
|
||
|
layui.config({
|
||
|
base: "/static/lib/"
|
||
|
}).extend({
|
||
|
likeedit: "likeedit/likeedit"
|
||
|
}).use(["likeedit", "form"], function(){
|
||
|
var form = layui.form;
|
||
|
var likeedit = layui.likeedit;
|
||
|
var content = likeedit.build("content", {
|
||
|
uploadImage: {
|
||
|
url: '{:url("file/lists")}?type=10'
|
||
|
}
|
||
|
});
|
||
|
|
||
|
form.verify({
|
||
|
content: function() {
|
||
|
likeedit.sync(content)
|
||
|
}
|
||
|
});
|
||
|
|
||
|
like.delUpload();
|
||
|
$(document).on("click", ".add-upload-image", function () {
|
||
|
like.imageUpload({
|
||
|
limit: 1,
|
||
|
field: "image",
|
||
|
that: $(this)
|
||
|
});
|
||
|
});
|
||
|
})
|
||
|
</script>
|