| | |
| | | /// <summary> |
| | | /// 店招图片地址 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "店招图片地址")] |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "店招图片地址",Length =65535)] |
| | | public string StoreLogoUrl { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | oldmod.Oders = entity.Oders; |
| | | |
| | | foreach (var meetin in entity.meetings) |
| | | foreach (OfflineDistributorMeeting meetin in entity.meetings) |
| | | { |
| | | if (meetin.id == 9999999) |
| | | { |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" for="storeLogoUrl">店招</label> |
| | | <div class="layui-input-inline layui-inline-6"> |
| | | <input name="storeLogoUrl1" id="storeLogoUrlc1" size="15" autocomplete="off" class="layui-input" lay-reqText="请输入【缩略图】" /> |
| | | <input name="storeLogoUrl2" id="storeLogoUrlc2" size="15" autocomplete="off" class="layui-input" lay-reqText="请输入【缩略图】" /> |
| | | <input name="storeLogoUrl1" type="hidden" id="storeLogoUrlc1" size="15" autocomplete="off" class="layui-input" lay-reqText="请输入【缩略图】" /> |
| | | <input name="storeLogoUrl2" type="hidden" id="storeLogoUrlc2" size="15" autocomplete="off" class="layui-input" lay-reqText="请输入【缩略图】" /> |
| | | </div> |
| | | <div class="layui-input-inline"> |
| | | <button type="button" class="layui-btn" id="upBtnOriginalCreat1">上传图像</button> |
| | |
| | | class="layui-input" |
| | | placeholder="请输入店招图片地址" |
| | | lay-reqText="请输入店招图片地址" |
| | | value="{{d.params.data.storeLogoUrl || '' }}" |
| | | value="{{d.params.data.storeLogoUrl1 || '' }}" |
| | | id="viewTextBoxEdittext" |
| | | type="hidden" |
| | | /> |
| | |
| | | class="layui-input" |
| | | placeholder="请输入店招图片地址" |
| | | lay-reqText="请输入店招图片地址" |
| | | value="{{d.params.data.storeLogoUrl || '' }}" |
| | | value="{{d.params.data.storeLogoUrl2 || '' }}" |
| | | id="viewTextBoxEdittext2" |
| | | type="hidden" |
| | | /> |
| | |
| | | <img |
| | | class="layui-upload-img" |
| | | id="viewImgBoxEdit" |
| | | src="{{ d.params.data.storeLogoUrl1 || layui.setter.noImagePicUrl ||''}}" |
| | | src="{{ d.params.data.storeLogoUrl1|| ''}}" |
| | | /> |
| | | <div class="layui-input-inline"> |
| | | <div id="viewTextBoxEdit"></div> |
| | |
| | | <img |
| | | class="layui-upload-img" |
| | | id="viewImgBoxEdit2" |
| | | src="{{ d.params.data.storeLogoUrl2 || layui.setter.noImagePicUrl ||''}}" |
| | | src="{{ d.params.data.storeLogoUrl2 ||''}}" |
| | | /> |
| | | <div class="layui-input-inline"> |
| | | <div id="viewTextBoxEdit2"></div> |
| | |
| | | // 拆分storeLogoUrl |
| | | var storeLogoUrl=d.params.data.storeLogoUrl.split(","); |
| | | for (let index = 0; index < storeLogoUrl.length; index++) { |
| | | |
| | | if(index>1) |
| | | break; |
| | | if(index==0) |
| | | {d.params.data.storeLogoUrl1 = storeLogoUrl[index]; |
| | | $("#viewImgBoxEdit").attr("src", d.params.data.storeLogoUrl1); |
| | | $("#viewTextBoxEdittext").val(d.params.data.storeLogoUrl1); |
| | | } |
| | | else |
| | | { d.params.data.storeLogoUrl2 = storeLogoUrl[index]; |
| | | $("#viewImgBoxEdit2").attr("src", d.params.data.storeLogoUrl2); |
| | | $("#viewTextBoxEdittext2").val(d.params.data.storeLogoUrl2); |
| | | } |
| | | |
| | | |
| | |
| | | "submit(LAY-app-OfflineDistributor-editForm-submit)", |
| | | function (data) { |
| | | var field = data.field; //获取提交的字段 |
| | | |
| | | debugger |
| | | field.storeLogoUrl=""; |
| | | if((!!field.storeLogoUrl1)&&(!!field.storeLogoUrl2)) |
| | | { |
| | |
| | | <div class="layui-form-item"> |
| | | <label for="PromoteMoney" class="layui-form-label layui-form-required">推广费用</label> |
| | | <div class="layui-input-inline"> |
| | | <input name="PromoteMoney" disabled lay-verType="tips" lay-verify="required|number" class="layui-input" placeholder="请输入推广费用" lay-reqText="请输入推广费用" value="{{d.params.data.promoteMoney || '' }}" /> |
| | | <input name="promoteMoney" disabled lay-verType="tips" lay-verify="required|number" class="layui-input" placeholder="请输入推广费用" lay-reqText="请输入推广费用" value="{{d.params.data.promoteMoney || '' }}" /> |
| | | |
| | | </div> |
| | | <span class="layui-form-mid layui-word-aux">元</span> |
| | |
| | | }, |
| | | { field: "platforms", title: "入住平台", sort: false, with: 300 }, |
| | | { field: "areaCodeName", title: "区域", sort: false, with: 300 }, |
| | | { field: "promoteMoney", title: "推广费用", sort: false, with: 300 }, |
| | | { field: "createBy", title: "信息录入", sort: false, width: 100 }, |
| | | { |
| | | field: "mangerName", |
| | |
| | | * @Author: 小飞侠 |
| | | * @Date: 2024-03-01 09:11:24 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2024-04-01 12:39:54 |
| | | * @LastEditTime: 2024-04-10 13:37:35 |
| | | * Copyright: 2024 MinTinge CO.,LTD. All Rights Reserved. |
| | | * @Descripttion: 写入你的描述 |
| | | */ |
| | |
| | | */ |
| | | function formatAreaInPut(coreHelper, idname, areaid = "") { |
| | | let area = 0; |
| | | |
| | | if ((areaid !== "")&&(areaid!==null) &&(areaid!==0)) |
| | | area = areaid.split(",").reverse()[0]; |
| | | |
| | |
| | | $.each(data, function (i, n) { |
| | | str += `<select lay-ignore name='${idname}_` + (i + 1) + "' dep='" + (i + 1) + "' class='select-address'>"; |
| | | str += "<option value='' >请选择</option>"; |
| | | $.each(n.list, function (h, z) { |
| | | |
| | | if(n?.list?.length>0) |
| | | { |
| | | $.each(n.list, function (h, z) { |
| | | if (n.hasOwnProperty('info') && n.info?.id == z.id) { |
| | | str += "<option value='" + z.id + "' selected='selected'>" + z.name + "</option>"; |
| | | } else { |
| | | str += "<option value='" + z.id + "' >" + z.name + "</option>"; |
| | | } |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | $.each(n.thisList, function (h, z) { |
| | | if (n.hasOwnProperty('info') && n.info?.id == z.id) { |
| | | str += "<option value='" + z.id + "' selected='selected'>" + z.name + "</option>"; |
| | | } else { |
| | | str += "<option value='" + z.id + "' >" + z.name + "</option>"; |
| | | } |
| | | }); |
| | | } |
| | | str += "</select>"; |
| | | }); |
| | | $(`input[name='${idname}']`).after(str); |
| | | //以上数据输出完,以下绑定事件 |
| | | $.each(data, function (i, n) { |
| | | if (i < (data.length)) { |
| | | $(`select[name='${idname}_` + (i + 1) + "']").change(function () { |
| | | // $(`select[name='${idname}_` + (i + 1) + "']").change(function () { |
| | | // changeareaIdArea(i + 1, data.length, idname); |
| | | // }); |
| | | $(`select[name='${idname}_` + (i + 1) + "']").click(function () { |
| | | changeareaIdArea(i + 1, data.length, idname); |
| | | }); |
| | | } |