mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-24 20:27:21 +08:00
# 2022-02-15
### 1.3.6 开源社区版: 【调整】应广大会员需求,平台设计上传图片从裁剪上传,调整后直接录入图片地址或本地非裁剪上传。 ### 0.1.8 会员专业版: 【调整】平台设计上传图片从裁剪上传,调整后直接录入图片地址或本地非裁剪上传。 【修复】调整下单地址实现2行被遮挡问题。 【修复】修复下单地址未记录街道地址问题,导致订单地址可能出现误差的异常。 【修复】修复核销【提货单】详情图片未限制大小导致容易被撑破的问题。 【修复】修复核销【服务券】详情图片未限制大小导致容易被撑破的问题。 【升级】升级腾讯云COS云存储组件。 【降级】SixLabors.ImageSharp海报组件降级到1.04版本。解决海报生成问题。#I4SWCC 【修复】修复接龙模块列表图片未限制大小导致容易被撑破的问题。
This commit is contained in:
@@ -232,7 +232,7 @@ var allWidget = {
|
||||
"brandId": '', //所选品牌id
|
||||
"limit": 10,
|
||||
"column": 2, //分裂数量
|
||||
"isShow":true,
|
||||
"isShow": true,
|
||||
"list": [
|
||||
{
|
||||
"image": "/static/images/common/empty-banner.png",
|
||||
@@ -538,7 +538,7 @@ Vue.component('upload-img', {
|
||||
props: ['index', "item"],
|
||||
methods: {
|
||||
upload: function () {
|
||||
this.$emit('upload-img')
|
||||
this.$emit('upload-img');
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1032,27 +1032,27 @@ Vue.component('layout-config', {
|
||||
},
|
||||
upImage: function (index, item) {
|
||||
var _that = this;
|
||||
layui.use(['admin', 'coreHelper', 'cropperImg'],
|
||||
function () {
|
||||
var $ = layui.$, coreHelper = layui.coreHelper, cropperImg = layui.cropperImg;
|
||||
cropperImg.cropImg({
|
||||
aspectRatio: 16 / 9,
|
||||
imgSrc: _that.selectWg.value.list[index].image,
|
||||
onCrop: function (data) {
|
||||
var loadIndex = layer.load(2);
|
||||
coreHelper.Post("api/Tools/UploadFilesFByBase64", { base64: data }, function (res) {
|
||||
if (0 === res.code) {
|
||||
_that.$set(_that.selectWg.value.list[index], 'image', res.data.fileUrl)
|
||||
layer.msg(res.msg);
|
||||
layer.close(loadIndex);
|
||||
} else {
|
||||
layer.close(loadIndex);
|
||||
layer.msg(res.msg, { icon: 2, anim: 6 });
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
layui.use(['form', 'table'], function () {
|
||||
layui.admin.popup({
|
||||
title: '图片设置',
|
||||
area: ['800px', '300px'],
|
||||
id: 'LAY-app-CoreCmsCommon-GetNoticeIds',
|
||||
success: function (layero, indexChild) {
|
||||
layui.view(this.id).render('common/getUpLoad', null).done(function () {
|
||||
layui.form.on('submit(LAY-app-getUpLoad-submit)',
|
||||
function (data) {
|
||||
console.log(data);
|
||||
_that.$set(_that.selectWg.value.list[index], 'image', data.field.imagesUrl)
|
||||
layer.close(indexChild);
|
||||
});
|
||||
});
|
||||
}
|
||||
, btn: ['确定', '取消']
|
||||
, yes: function (index, layero) {
|
||||
layero.contents().find("#LAY-app-getUpLoad-submit").click();
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
upTopSlideBgImage: function (index, item) {
|
||||
var _that = this;
|
||||
@@ -1188,7 +1188,6 @@ Vue.component('layout-config', {
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
selectNotice: function () {
|
||||
var that = this;
|
||||
layui.use(['form', 'table'], function () {
|
||||
|
||||
Reference in New Issue
Block a user