更新兑换码使用说明商品描述设置为非必填

This commit is contained in:
姜棚 2021-12-16 11:42:54 +08:00
parent c6b042c732
commit c23716dee1
8 changed files with 7 additions and 32 deletions

View File

@ -886,9 +886,7 @@ export default class acclist extends React.Component{
{ type: "required", message: "请输入发放总量"}, { type: "required", message: "请输入发放总量"},
{ type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"}, { type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"},
], ],
describe:[
{ type: "required", message: "请输入使用说明"},
]
} }

View File

@ -308,9 +308,6 @@ export default class adduserinfo extends React.Component{
show_url:[ show_url:[
{ type: "required", message: "请上传商品展示"}, { type: "required", message: "请上传商品展示"},
], ],
describe_url:[
{ type: "required", message: "请上传商品描述"},
]
} }

View File

@ -493,9 +493,7 @@ export default class exchangedit extends React.Component{
], ],
describe:[
{ type: "required", message: "请输入使用说明"},
]
} }

View File

@ -98,11 +98,7 @@ export default class adduserinfo extends React.Component{
Notify.error(`请上传商品展示图`); Notify.error(`请上传商品展示图`);
return return
} }
if(this.state.model.describe_url == "")
{
Notify.error(`请上传商品描述`);
return;
}
let temp = [] let temp = []
if(sessionStorage.getItem("productData")) if(sessionStorage.getItem("productData"))
@ -137,7 +133,7 @@ export default class adduserinfo extends React.Component{
usage:0, usage:0,
product_name:cur_product.title, product_name:cur_product.title,
show_url:picItem ? picItem.pic : "", show_url:picItem ? picItem.pic : "",
describe_url:picItem ? picItem.pic : "", describe_url: "",
account_type:cur_product.account_type account_type:cur_product.account_type
} }
console.log("摩西") console.log("摩西")

View File

@ -691,9 +691,7 @@ export default class acclist extends React.Component{
{ type: "required", message: "请输入发放总量"}, { type: "required", message: "请输入发放总量"},
{ type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"}, { type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"},
], ],
describe:[
{ type: "required", message: "请输入使用说明"},
]
} }
//基本规则 //基本规则

View File

@ -812,9 +812,6 @@ export default class acclist extends React.Component{
{ type: "required", message: "请输入发放总量"}, { type: "required", message: "请输入发放总量"},
{ type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"}, { type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"},
], ],
describe:[
{ type: "required", message: "请输入使用说明"},
]
} }

View File

@ -91,11 +91,7 @@ export default class adduserinfo extends React.Component{
Notify.error(`请上传商品展示图`); Notify.error(`请上传商品展示图`);
return return
} }
if(this.state.model.describe_url == "")
{
Notify.error(`请上传商品描述`);
return;
}
let temp = [] let temp = []
if(sessionStorage.getItem("productData")) if(sessionStorage.getItem("productData"))

View File

@ -94,11 +94,6 @@ export default class adduserinfo extends React.Component{
Notify.error(`请上传商品展示图`); Notify.error(`请上传商品展示图`);
return return
} }
if(this.state.model.describe_url == "")
{
Notify.error(`请上传商品描述`);
return;
}
let temp = [] let temp = []
if(sessionStorage.getItem("productData")) if(sessionStorage.getItem("productData"))
@ -134,7 +129,7 @@ export default class adduserinfo extends React.Component{
model2.product_name=cur_product.title; model2.product_name=cur_product.title;
model2.account_type=cur_product.account_type; model2.account_type=cur_product.account_type;
model2.show_url=picItem ? picItem.pic : ""; model2.show_url=picItem ? picItem.pic : "";
model2.describe_url=picItem ? picItem.pic : ""; model2.describe_url= "";
// let model2 = { // let model2 = {