添加授信额度
This commit is contained in:
parent
eb56044ca2
commit
b8dee46493
@ -168,6 +168,9 @@ class MenuDecorateLogic extends Logic {
|
||||
ConfigServer::set('decoration_center','my_promotion_image',UrlServer::setFileUrl($post['my_promotion_image'] ?? ''));
|
||||
ConfigServer::set('decoration_center','my_promotion_name',$post['my_promotion_name']);
|
||||
ConfigServer::set('decoration_center','show_my_promotion',$post['show_my_promotion']);
|
||||
ConfigServer::set('decoration_center','quota_image',UrlServer::setFileUrl($post['quota_image'] ?? ''));
|
||||
ConfigServer::set('decoration_center','quota_name',$post['quota_name']);
|
||||
ConfigServer::set('decoration_center','show_quota',$post['show_quota']);
|
||||
}
|
||||
return true;
|
||||
|
||||
@ -207,9 +210,16 @@ class MenuDecorateLogic extends Logic {
|
||||
$data['my_promotion_name'] = ConfigServer::get('decoration_center','my_promotion_name','');
|
||||
$data['show_my_promotion'] = ConfigServer::get('decoration_center','show_my_promotion','');
|
||||
|
||||
//授信额度
|
||||
$quota_image = ConfigServer::get('decoration_center','quota_image','');
|
||||
$quota_image && $quota_image = UrlServer::getFileUrl($quota_image);
|
||||
$data['quota_name'] = ConfigServer::get('decoration_center','quota_name','');
|
||||
$data['show_quota'] = ConfigServer::get('decoration_center','show_quota','');
|
||||
|
||||
$data['background_image'] = $background_image;
|
||||
$data['my_refund_image'] = $my_refund_image;
|
||||
$data['my_promotion_image'] = $my_promotion_image;
|
||||
$data['quota_image'] = $quota_image;
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
||||
@ -209,6 +209,29 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$other_set.quota_name}:</label>
|
||||
<div class="layui-input-block">
|
||||
{if $other_set.quota_image}
|
||||
<div class="upload-image-div">
|
||||
<img src="{$other_set.quota_image}" alt="img">
|
||||
<input type="hidden" name="quota_image" value="{$other_set.quota_image}">
|
||||
<div class="del-upload-btn">x</div>
|
||||
</div>
|
||||
<div class="upload-image-elem" style="display:none;"><a class="add-upload-image add-quota-image"> +
|
||||
添加图片</a></div>
|
||||
{else}
|
||||
<div class="upload-image-elem"><a class="add-upload-image add-quota-image"> + 添加图片</a></div>
|
||||
{/if}
|
||||
<div>
|
||||
<input type="text" name="quota_name" value="{$other_set.quota_name}" lay-verify="required" lay-verType="tips" placeholder="菜单名称" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="show_quota" {if($other_set.show_quota == 1)} checked {/if} value="1" title="开启">
|
||||
<input type="radio" name="show_quota" {if($other_set.show_quota == 0)} checked {/if} value="0" title="关闭">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn {$view_theme_color}" lay-submit lay-filter="submit">确定</button>
|
||||
@ -529,6 +552,15 @@
|
||||
});
|
||||
})
|
||||
|
||||
// 授信额度上传
|
||||
$(document).on("click", ".add-quota-image", function () {
|
||||
like.imageUpload({
|
||||
limit: 1,
|
||||
field: "quota_image",
|
||||
that: $(this)
|
||||
});
|
||||
})
|
||||
|
||||
// 提交表单
|
||||
form.on('submit(submit)', function (data) {
|
||||
var data = data.field;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user