| | |
| | | <input type="text" name="id" |
| | | placeholder="" autoComplete="off" class="layui-input febs-hide"> |
| | | <div class="layui-tab-item layui-show"> |
| | | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label febs-form-item-require">分类:</label> |
| | | <div class="layui-input-block"> |
| | | <select name="productCategoryId" class="news-category" id="news-category" > |
| | | <option value="">请选择</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10 layui-form-item"> |
| | | <div class="layui-col-lg6"> |
| | | <label class="layui-form-label febs-form-item-require">类型:</label> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item febs-hide tc-set"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row layui-col-space10 layui-form-item"> |
| | | <div class="layui-col-lg6"> |
| | | <label class="layui-form-label febs-form-item-require">小图标:</label> |
| | |
| | | |
| | | form.render(); |
| | | |
| | | //(下拉框) |
| | | $.get(ctx + 'admin/productCategory/categoryTree/parent', function (data) { |
| | | for (var k in data) |
| | | { |
| | | $(".news-category").append("<option value='" + data[k].id + "'>" + data[k].name + "</option>"); |
| | | } |
| | | layui.use('form', function () { |
| | | var form = layui.form; |
| | | $("#news-category").val(aiProductPoint.productCategoryId) |
| | | form.render(); |
| | | }); |
| | | }); |
| | | |
| | | const E = window.wangEditor; |
| | | const editor = new E('#product-point-toolbar-container', '#product-point-text-container'); // 传入两个元素 |
| | | editor.config.showLinkImg = false; |
| | |
| | | "title": aiProductPoint.title, |
| | | "isNormal": aiProductPoint.isNormal, |
| | | "finderUserName": aiProductPoint.finderUserName, |
| | | "productCategoryId": aiProductPoint.productCategoryId, |
| | | "feedId": aiProductPoint.feedId, |
| | | }); |
| | | |
| | | |
| | | |
| | | $('#productPointImageUpload').append('<img src="' + aiProductPoint.feedImg + '" alt="" class="layui-upload-img single-image" style="width: 130px">'); |
| | | $("#feedImg").val(aiProductPoint.feedImg); |