【修复】修复服务商品后台手动核销后,前端状态仍然显示正常的问题。

【修复】修复微信同步头像及昵称数据,只更新用户表,未更新微信来源表的问题。
This commit is contained in:
大灰灰
2022-08-01 01:47:45 +08:00
parent 7857b9f8cb
commit 4c6ad4c0dc
5 changed files with 31 additions and 15 deletions

View File

@@ -951,6 +951,16 @@ namespace CoreCms.Net.Web.Admin.Controllers
return jm;
}
oldModel.isVerification = (bool)entity.data;
if (oldModel.isVerification)
{
oldModel.status = (int)GlobalEnumVars.ServicesTicketStatus.;
oldModel.verificationTime = DateTime.Now;
}
else
{
oldModel.status = (int)GlobalEnumVars.ServicesTicketStatus.;
oldModel.verificationTime = null;
}
var bl = await _coreCmsUserServicesTicketServices.UpdateAsync(oldModel);
jm.code = bl ? 0 : 1;

View File

@@ -111,7 +111,7 @@
pagebar: '#LAY-app-CoreCmsUserServicesTicket-pagebar',
className: 'pagebarbox',
defaultToolbar: ['filter', 'print', 'exports'],
height: 'full-227',//面包屑142px,搜索框4行172,3行137,2行102,1行67
height: 'full-230',//面包屑142px,搜索框4行172,3行137,2行102,1行67
page: true,
limit: 30,
limits: [10, 15, 20, 25, 30, 50, 100, 200],
@@ -126,7 +126,7 @@
//{ field: 'serviceId', title: '关联服务项目id', sort: false, width: 105 },
//{ field: 'userId', title: '关联用户id', sort: false, width: 105 },
{
field: 'status', title: '状态', sort: false, width: 70, templet: function (data) {
field: 'status', title: '状态', sort: false, width: 60, templet: function (data) {
for (var i = 0; i < d.params.data.servicesTicketStatus.length; i++) {
if (data.status == d.params.data.servicesTicketStatus[i].value) {
return d.params.data.servicesTicketStatus[i].description;
@@ -150,7 +150,7 @@
{ field: 'validityStartTime', title: '核销开始时间', width: 130, sort: false },
{ field: 'validityEndTime', title: '核销结束时间', width: 130, sort: false },
{ field: 'createTime', title: '创建时间', width: 130, sort: false },
{ field: 'isVerification', title: '是否核销', width: 65, templet: '#switch_isVerification', sort: false, unresize: true },
{ field: 'isVerification', title: '是否核销', width: 75, templet: '#switch_isVerification', sort: false, unresize: true },
{ field: 'verificationTime', title: '核销时间', width: 130, sort: false },
{ width: 60, align: 'center', title: '操作', fixed: 'right', toolbar: '#LAY-app-CoreCmsUserServicesTicket-tableBox-bar' }
]
@@ -254,7 +254,7 @@
layui.form.on('switch(switch_isVerification)', function (obj) {
coreHelper.Post("Api/CoreCmsUserServicesOrder/DoSetisVerification", { id: this.value, data: obj.elem.checked }, function (e) {
if (debug) { console.log(e); } //开启调试返回数据
//table.reloadData('LAY-app-CoreCmsUserServicesTicket-tableBox');
table.reloadData('LAY-app-CoreCmsUserServicesTicket-tableBox');
layer.msg(e.msg);
});
});

View File

@@ -132,7 +132,7 @@
{
field: 'avatar', title: '头像', sort: false,
templet: function (d) {
if (d.avatarImage) {
if (d.avatar) {
return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + d.avatar + '")><image style="max-width:28px;max-height:28px;" src="' + d.avatar + '" /></a>';
} else {
return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px;" src="' + setter.noImagePicUrl + '" /></a>';