mirror of
https://github.com/CoreUnion/CoreShop.git
synced 2026-10-17 05:12:39 +08:00
【优化】取消推荐商品1小时缓存功能。
【修复】修复评价回复,显示图片异常导致模板报错问题。#I4IZ25 【修复】修复全局促销添加商品界面高度不够,及删减商品选项问题。#I4ISGE 【修复】修复后台控制台面板,展示【待支付】【待发布】【待售后】统计问题。#I4G796 【调整】SqlServer数据库SysLoginRecord表os字段修改长度为400,防止linux系统下获取操作系统数据长度不够的问题。#I4FO90
This commit is contained in:
@@ -874,7 +874,6 @@ namespace CoreCms.Net.Repository
|
||||
})
|
||||
.MergeTable()
|
||||
.OrderBy(p => p.createTime, OrderByType.Desc)
|
||||
.WithCache(60 * 60)
|
||||
.ToListAsync();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1799,16 +1799,13 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
{
|
||||
var jm = new AdminUiCallBack();
|
||||
//待支付
|
||||
var unpaidCount = await _orderServices.GetCountAsync(p =>
|
||||
p.status == (int)GlobalEnumVars.OrderStatus.Normal &&
|
||||
p.payStatus == (int)GlobalEnumVars.OrderPayStatus.No &&
|
||||
p.shipStatus == (int)GlobalEnumVars.ShipStatus.Yes);
|
||||
var paymentWhere = _orderServices.GetReverseStatus((int)GlobalEnumVars.OrderAllStatusType.ALL_PENDING_PAYMENT);
|
||||
var unpaidCount = await _orderServices.GetCountAsync(paymentWhere);
|
||||
|
||||
|
||||
//待发货
|
||||
var unshipCount = await _orderServices.GetCountAsync(p =>
|
||||
p.status == (int)GlobalEnumVars.OrderStatus.Normal &&
|
||||
p.payStatus == (int)GlobalEnumVars.OrderPayStatus.No &&
|
||||
(p.shipStatus == (int)GlobalEnumVars.ShipStatus.Yes || p.shipStatus == (int)GlobalEnumVars.ShipStatus.No));
|
||||
var deliveredWhere = _orderServices.GetReverseStatus((int)GlobalEnumVars.OrderAllStatusType.ALL_PENDING_DELIVERY);
|
||||
var unshipCount = await _orderServices.GetCountAsync(deliveredWhere);
|
||||
|
||||
//待售后
|
||||
var aftersalesCount = await _aftersalesServices.GetCountAsync(p => p.status == (int)GlobalEnumVars.BillAftersalesStatus.WaitAudit);
|
||||
@@ -1830,8 +1827,6 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
goodsStaticsTotalWarn
|
||||
};
|
||||
|
||||
|
||||
|
||||
return jm;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<label for="commentId">评价用户</label>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" onclick="layui.coreHelper.viewImage('{{ d.params.data.avatarImage || setter.noImagePicUrl }}')"><image style="max-width:60px;max-height:60px;border-radius: 30px;" src="{{d.params.data.avatarImage || setter.noImagePicUrl }}" /></a> {{ d.params.data.nickName || '' }} 【{{ d.params.data.mobile || '' }}】
|
||||
<a href="javascript:void(0);" onclick="layui.coreHelper.viewImage('{{ d.params.data.avatarImage || layui.setter.noImagePicUrl }}')"><image style="max-width:60px;max-height:60px;border-radius: 30px;" src="{{d.params.data.avatarImage || layui.setter.noImagePicUrl }}" /></a> {{ d.params.data.nickName || '' }} 【{{ d.params.data.mobile || '' }}】
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -150,7 +150,6 @@
|
||||
|
||||
<script>
|
||||
var debug = layui.setter.debug;
|
||||
var objData = {};
|
||||
layui.data.done = function (d) {
|
||||
//开启调试情况下获取接口赋值数据
|
||||
if (debug) { console.log(d.params.data); }
|
||||
@@ -213,7 +212,7 @@
|
||||
area: ['750px', '90%'],
|
||||
id: 'LAY-app-CoreCmsPinTuanRule-createForm-GetGoodsList',
|
||||
success: function (layero, index) {
|
||||
view(this.id).render('common/getGoodIds', { data: objData }).done(function () {
|
||||
view(this.id).render('common/getGoodIds', null).done(function () {
|
||||
form.render();
|
||||
//监听商品列表页工具条
|
||||
|
||||
@@ -238,9 +237,6 @@
|
||||
layer.msg("最多只能选择" + 10 + "个");
|
||||
return false;
|
||||
}
|
||||
|
||||
objData = ids;
|
||||
|
||||
$("#goods_list").empty();
|
||||
var the_val = "";
|
||||
for (var key in ids) {
|
||||
@@ -255,7 +251,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
goods_delete: function () {
|
||||
goodsDelete: function () {
|
||||
var ids_array = $("#goods").val().split(",");
|
||||
for (var i = 0; i < ids_array.length; i++) {
|
||||
if (ids_array[i] == $(this).attr("id")) {
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
admin.popup({
|
||||
shadeClose: false,
|
||||
title: '创建数据',
|
||||
area: ['600px', '400px'],
|
||||
area: ['600px', '80%'],
|
||||
id: 'LAY-popup-CoreCmsPromotionCondition-GetConditionCreate',
|
||||
success: function (layero, index) {
|
||||
view(this.id).render('promotion/promotion/conditioncreate', { data: e.data }).done(function () {
|
||||
@@ -233,7 +233,7 @@
|
||||
|
||||
});
|
||||
// 禁止弹窗出现滚动条
|
||||
$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
||||
//$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
||||
}
|
||||
, btn: ['确定', '取消']
|
||||
, yes: function (index, layero) {
|
||||
@@ -253,7 +253,7 @@
|
||||
admin.popup({
|
||||
shadeClose: false,
|
||||
title: '编辑数据',
|
||||
area: ['600px', '400px'],
|
||||
area: ['600px', '80%'],
|
||||
id: 'LAY-popup-CoreCmsPromotionCondition-GetConditionEdit',
|
||||
success: function (layero, index) {
|
||||
view(this.id).render('promotion/promotion/conditionedit', { data: e.data }).done(function () {
|
||||
@@ -326,7 +326,7 @@
|
||||
});
|
||||
})
|
||||
// 禁止弹窗出现滚动条
|
||||
$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
||||
//$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
||||
}
|
||||
, btn: ['确定', '取消']
|
||||
, yes: function (index, layero) {
|
||||
|
||||
@@ -215,7 +215,7 @@ https://api.demo.coreshop.cn/job
|
||||
- 允许个人学习研究使用,支持二次开发。
|
||||
- 允许商业用途,商用免费,但仅限自运营;如果商用必须保留版权信息,望自觉遵守。
|
||||
- 不允许对程序代码以任何形式、任何目的的再发行或出售,否则将追究侵权者法律责任。
|
||||
- 软件受国家计算机软件著作权保护(登记号:2020SR1224749)。
|
||||
- 软件受国家计算机软件著作权保护(登记号:2020SR1224749,2021SR1661132)。
|
||||
- 我们的团队水平有限,也是在探索中学习、改进。开源,是为了让认可我们的用户能自由的使用、学习软件的内部架构,让更多的人有机会阅读并发现Bug、对软件项目提出改进意见。
|
||||
|
||||
|
||||
@@ -270,7 +270,6 @@ https://api.demo.coreshop.cn/job
|
||||
|
||||
- 
|
||||
|
||||
|
||||
### 🎉 鸣谢
|
||||
感谢以下项目给我们提供了学习和思考的方向:
|
||||
- LayUI(贤心)
|
||||
|
||||
Binary file not shown.
@@ -1,3 +1,6 @@
|
||||
2021-11-19
|
||||
1、【调整】SysLoginRecord表os字段修改长度为max,防止linux系统下长度不够的问题。
|
||||
|
||||
2021-10-25
|
||||
1、【新增】数据库CoreCmsCart表增加objectId字段用于区分来源对象,CoreCmsOrder增加objectId字段,用于区域订单来源关联。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user