mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-06-10 12:27:51 +08:00
# 2022-01-24
### 开源社区版(会员专业版同步修改): 【完善】实现营销结果【GOODS_HALF_PRICE】指定商品每第几件减指定金额。 ### 0.1.2 会员专业版: 【新增】微信直播带货组件添加支持base64上传到微信侧功能。 【优化】定时任务调整工作线程数及日志数量。 【优化】定时任务执行时间基准调整为本地loacl时间。
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
<div class="imgdiv">
|
||||
<img src="{{ item }}" class="layui-upload-img" onclick='layui.coreHelper.viewImage("{{ item }}")' style="width: 100px;height:100px;">
|
||||
<div id="operate">
|
||||
<div><a class="del" onclick="delImg(this,'{{ item }}')">删除</a>|<a class="setmain" onclick="setDefault(this,'{{ item }}')">设为主图</a></div>
|
||||
<div><a class="del" onclick="delImg(this,'{{ item }}')">删除</a>|<a class="setmain" onclick="setDefault(this,'{{ item }}')">设为主图</a>|<a class="setmain" onclick="upLoadImage(this,'{{ item }}')">图片上传</a></div>
|
||||
</div>
|
||||
</div>
|
||||
{{# }); }}
|
||||
@@ -163,7 +163,8 @@
|
||||
<div class="spec_image_item">
|
||||
<img src="{{ item.images && item.images !='null'? item.images : layui.setter.noImagePicUrl }}" id="productImagesSrc" style="width:60px;height:60px">
|
||||
</div>
|
||||
<input type="hidden" id="productImagesInput" name="product[thumbImg][]" value="{{ item.images && item.images !='null'? item.images : layui.setter.noImagePicUrl }}">
|
||||
<!--<input type="hidden" id="productImagesInput" name="product[thumbImg][]" value="{{ item.images && item.images !='null'? item.images : layui.setter.noImagePicUrl }}">-->
|
||||
<input type="hidden" id="productImagesInput" name="product[thumbImg][]" value="{{layui.setter.noImagePicUrl}}">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
@@ -217,8 +218,6 @@
|
||||
, coreHelper = layui.coreHelper;
|
||||
|
||||
//加载编辑器
|
||||
var Authorization = layui.data(layui.setter.tableName)[layui.setter.request.tokenName];
|
||||
|
||||
var Authorization = layui.data(layui.setter.tableName)[layui.setter.request.tokenName];
|
||||
//重点代码 适配器
|
||||
class UploadAdapter {
|
||||
@@ -304,14 +303,14 @@
|
||||
window.editor.setData(ids.intro);
|
||||
|
||||
|
||||
if (ids.images) {
|
||||
imgs = ids.images.split(',');
|
||||
$('#headImg').val(imgs);
|
||||
var getTpl = image_tpl.innerHTML, viewBox = document.getElementById('upload-more-list');
|
||||
laytpl(getTpl).render(imgs, function (html) {
|
||||
viewBox.innerHTML = html;
|
||||
});
|
||||
}
|
||||
//if (ids.images) {
|
||||
// imgs = ids.images.split(',');
|
||||
// $('#headImg').val(imgs);
|
||||
// var getTpl = image_tpl.innerHTML, viewBox = document.getElementById('upload-more-list');
|
||||
// laytpl(getTpl).render(imgs, function (html) {
|
||||
// viewBox.innerHTML = html;
|
||||
// });
|
||||
//}
|
||||
|
||||
$('#skuCount').val(ids.sku.length);
|
||||
|
||||
@@ -365,7 +364,7 @@
|
||||
aspectRatio: 1 / 1,
|
||||
onCrop: function (data) {
|
||||
var loadIndex = layer.load(2);
|
||||
coreHelper.Post("api/Tools/UploadFilesFByBase64", { base64: data }, function (res) {
|
||||
coreHelper.Post("api/Tools/MiNiShopOpenComponent2_UploadImgByBase64", { base64: data }, function (res) {
|
||||
if (0 === res.code) {
|
||||
imgs.push(res.data.fileUrl);
|
||||
$('#headImg').val(imgs);
|
||||
@@ -385,6 +384,9 @@
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
form.verify({
|
||||
|
||||
verifyoutProductId: [/^.{0,50}$/, '商品序列最大只允许输入50位字符'],
|
||||
|
||||
Reference in New Issue
Block a user