refactor(febs): 修改轮播图分类选择器的类名- 在 platformBanner.html 中将 "banner-type" 类名改为 "bannerList-type"
- 在 platformBannerAdd.html 中将 "banner-type" 类名改为 "bannerAdd-type"
- 相应地修改了 JavaScript代码中的选择器类名引用
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label layui-form-label-sm">分类</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="type" class="banner-type"> |
| | | <select name="type" class="bannerList-type"> |
| | | <option value="0">请选择</option> |
| | | </select> |
| | | </div> |
| | |
| | | var data = res.data; |
| | | for (let k in data) |
| | | { |
| | | $(".banner-type").append("<option value='" + data[k].type + "'>" + data[k].code + "</option>"); |
| | | $(".bannerList-type").append("<option value='" + data[k].type + "'>" + data[k].code + "</option>"); |
| | | } |
| | | layui.use('form', function () { |
| | | var form = layui.form; |
| | |
| | | <div class="layui-col-lg6"> |
| | | <label class="layui-form-label febs-form-item-require">类别:</label> |
| | | <div class="layui-input-block"> |
| | | <select name="type" class="banner-type"> |
| | | <select name="type" class="bannerAdd-type"> |
| | | <option value="">请选择</option> |
| | | </select> |
| | | </div> |
| | |
| | | var data = res.data; |
| | | for (let k in data) |
| | | { |
| | | $(".banner-type").append("<option value='" + data[k].type + "'>" + data[k].code + "</option>"); |
| | | $(".bannerAdd-type").append("<option value='" + data[k].type + "'>" + data[k].code + "</option>"); |
| | | } |
| | | layui.use('form', function () { |
| | | var form = layui.form; |