From c23716dee1d18adfd7d537fff5da83062b842786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Thu, 16 Dec 2021 11:42:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=85=91=E6=8D=A2=E7=A0=81?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E=E5=95=86=E5=93=81=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E8=AE=BE=E7=BD=AE=E4=B8=BA=E9=9D=9E=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 4 +--- src/pages/exchangecode/commodity/goodedit.js | 3 --- src/pages/exchangecode/edit/edit.js | 4 +--- src/pages/exchangecode/product/add.js | 8 ++------ src/pages/plan/add/step2.js | 4 +--- src/pages/plan/key/edit.js | 3 --- src/pages/plan/key/product/add.js | 6 +----- src/pages/plan/product/add.js | 7 +------ 8 files changed, 7 insertions(+), 32 deletions(-) diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 4f769c3b..cbe762a3 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -886,9 +886,7 @@ export default class acclist extends React.Component{ { type: "required", message: "请输入发放总量"}, { type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"}, ], - describe:[ - { type: "required", message: "请输入使用说明"}, - ] + } diff --git a/src/pages/exchangecode/commodity/goodedit.js b/src/pages/exchangecode/commodity/goodedit.js index c1923b77..fea0431c 100644 --- a/src/pages/exchangecode/commodity/goodedit.js +++ b/src/pages/exchangecode/commodity/goodedit.js @@ -308,9 +308,6 @@ export default class adduserinfo extends React.Component{ show_url:[ { type: "required", message: "请上传商品展示"}, ], - describe_url:[ - { type: "required", message: "请上传商品描述"}, - ] } diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index aece884a..a3c6063b 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -493,9 +493,7 @@ export default class exchangedit extends React.Component{ ], - describe:[ - { type: "required", message: "请输入使用说明"}, - ] + } diff --git a/src/pages/exchangecode/product/add.js b/src/pages/exchangecode/product/add.js index f6a77181..3d936ffc 100644 --- a/src/pages/exchangecode/product/add.js +++ b/src/pages/exchangecode/product/add.js @@ -98,11 +98,7 @@ export default class adduserinfo extends React.Component{ Notify.error(`请上传商品展示图`); return } - if(this.state.model.describe_url == "") - { - Notify.error(`请上传商品描述`); - return; - } + let temp = [] if(sessionStorage.getItem("productData")) @@ -137,7 +133,7 @@ export default class adduserinfo extends React.Component{ usage:0, product_name:cur_product.title, show_url:picItem ? picItem.pic : "", - describe_url:picItem ? picItem.pic : "", + describe_url: "", account_type:cur_product.account_type } console.log("摩西") diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index c68bac2d..2e97dc75 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -691,9 +691,7 @@ export default class acclist extends React.Component{ { type: "required", message: "请输入发放总量"}, { type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"}, ], - describe:[ - { type: "required", message: "请输入使用说明"}, - ] + } //基本规则 diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 34a9f563..6b766014 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -812,9 +812,6 @@ export default class acclist extends React.Component{ { type: "required", message: "请输入发放总量"}, { type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"}, ], - describe:[ - { type: "required", message: "请输入使用说明"}, - ] } diff --git a/src/pages/plan/key/product/add.js b/src/pages/plan/key/product/add.js index 599afa6d..5484225a 100644 --- a/src/pages/plan/key/product/add.js +++ b/src/pages/plan/key/product/add.js @@ -91,11 +91,7 @@ export default class adduserinfo extends React.Component{ Notify.error(`请上传商品展示图`); return } - if(this.state.model.describe_url == "") - { - Notify.error(`请上传商品描述`); - return; - } + let temp = [] if(sessionStorage.getItem("productData")) diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index b03af31a..7da253b9 100644 --- a/src/pages/plan/product/add.js +++ b/src/pages/plan/product/add.js @@ -94,11 +94,6 @@ export default class adduserinfo extends React.Component{ Notify.error(`请上传商品展示图`); return } - if(this.state.model.describe_url == "") - { - Notify.error(`请上传商品描述`); - return; - } let temp = [] if(sessionStorage.getItem("productData")) @@ -134,7 +129,7 @@ export default class adduserinfo extends React.Component{ model2.product_name=cur_product.title; model2.account_type=cur_product.account_type; model2.show_url=picItem ? picItem.pic : ""; - model2.describe_url=picItem ? picItem.pic : ""; + model2.describe_url= ""; // let model2 = {