Browse Source

fix: 优惠券 问题单处理

tags/PMS_Frontend_v1.0.6-develop
chenglb 1 year ago
parent
commit
6d65bc7101
  1. 4
      src/config/utils.js
  2. 6
      src/pages/OperationCenter/OperationSales/CouponMgm/ActivitySpecificTopic/TemplateConfig.jsx

4
src/config/utils.js

@ -384,9 +384,9 @@ const utils = {
let str = date.getFullYear()+"-" + ('0' + (date.getMonth() + 1)).slice(-2) +"-"+ ("0"+ date.getDate()).slice(-2),
strBefore = dateBefore.getFullYear() +"-"+ ('0' + (dateBefore.getMonth() + 1)).slice(-2) +"-"+ ("0"+ dateBefore.getDate()).slice(-2);
if(limit > 0){
return strBefore + ',' + str
return strBefore + ' 00:00:00' + ',' + str + ' 23:59:59'
}
return str + ',' + strBefore
return str + ' 00:00:00' + ',' + strBefore+ ' 23:59:59'
},
createTimeStr: (minusOrAdd)=>{
let num = Number.isInteger(minusOrAdd) ? minusOrAdd : 0;

6
src/pages/OperationCenter/OperationSales/CouponMgm/ActivitySpecificTopic/TemplateConfig.jsx

@ -131,7 +131,7 @@ function TemplateConfig(props) {
<div className="form-row">
<div className="title">活动说明</div>
<div style={{width: "300px"}}>
<Input.TextArea rows={4} showCount={true} maxLength={200} style={{width: '100%'}} value={formData.description} onChange={(e)=>{setFormData({...formData, description: e.target.value})}} />
<Input.TextArea placeholder="请输入长度不超过200的字符串" rows={4} showCount={true} maxLength={200} style={{width: '100%'}} value={formData.description} onChange={(e)=>{setFormData({...formData, description: e.target.value})}} />
</div>
</div>
<div className="form-row">
@ -146,12 +146,12 @@ function TemplateConfig(props) {
<div className="big-title" style={{marginTop: '20px'}}>分享配置</div>
<div className="form-row">
<div className="title">分享标题</div>
<div style={{width: "300px"}}><Input placeholder="请输入长度不超过30的字符串" style={{width: '100%'}} value={formData.title} onChange={(e)=>{setFormData({...formData, title: e.target.value})}} /></div>
<div style={{width: "300px"}}><Input showCount={true} maxLength={30} placeholder="请输入长度不超过30的字符串" style={{width: '100%'}} value={formData.title} onChange={(e)=>{setFormData({...formData, title: e.target.value})}} /></div>
</div>
<div className="form-row">
<div className="title">分享文案</div>
<div style={{width: "300px"}}>
<Input.TextArea placeholder="请输入长度不超过50的字符串" style={{width: '100%'}} value={formData.copywriting} onChange={(e)=>{setFormData({...formData, copywriting: e.target.value})}} />
<Input.TextArea rows={4} showCount={true} maxLength={50} placeholder="请输入长度不超过50的字符串" style={{width: '100%'}} value={formData.copywriting} onChange={(e)=>{setFormData({...formData, copywriting: e.target.value})}} />
</div>
</div>
<div className="form-row">

Loading…
Cancel
Save