From c27ebf9beddab80b4528271778ea9c8872038deb Mon Sep 17 00:00:00 2001 From: Apple <> Date: Mon, 19 Sep 2022 14:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BC=98=E6=83=A0=E5=88=B8/?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E7=99=BD=E5=90=8D=E5=8D=95Tab?= =?UTF-8?q?=E5=88=87=E6=8D=A2=EF=BC=8C=E8=BE=93=E5=85=A5=E6=A1=86=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=B8=8E=E4=B8=8A=E4=BC=A0=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=EF=BC=8C=E7=BB=84=E4=BB=B6=E6=9C=AA=E5=8F=8A=E6=97=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../couponTemplate/landingPage/config/main.js | 13 +++----- src/pages/exchangepage/edittemplate/main.js | 33 ++++--------------- 2 files changed, 11 insertions(+), 35 deletions(-) diff --git a/src/pages/exchangepage/couponTemplate/landingPage/config/main.js b/src/pages/exchangepage/couponTemplate/landingPage/config/main.js index 0b128e3e..15a11122 100644 --- a/src/pages/exchangepage/couponTemplate/landingPage/config/main.js +++ b/src/pages/exchangepage/couponTemplate/landingPage/config/main.js @@ -265,9 +265,6 @@ export default class edittemplate extends React.Component { - { - this.props.couponType==4?
123
:
456
- }
基础图层
{ - this.props.couponType==4? + this.props.couponType==4? { this.onUploadChange1(e,'middle_image') }} - defaultFileList={[{ 'src': this.state.model.middle_image }] } + defaultFileList={this.state.model.middle_image ? [{ 'src': this.state.model.middle_image }] : null} onUpload={this.onUpload} onError={this.onUploadError} /> : - + { this.onUploadChange1(e,'white_image') }} defaultFileList={this.state.model.white_image ? [{ 'src': this.state.model.white_image }] : null} onUpload={this.onUpload} @@ -313,8 +310,6 @@ export default class edittemplate extends React.Component { /> } - {this.state.model.white_image} - { this.onactivityChange(e) }} value={this.state.model.describe.type}> this.hasItemFn(1)}>图片 diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index a30a45df..64468997 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -17,8 +17,7 @@ import Whitegoods from './whitegoods' //白名单商品页面 import Whitedetails from './whitedetails' //白名单详情页 import Reduce from './reduce' //商品详情页立减金 import ReduceConfig from './reduceConfig' //商品详情立减金页面 -import SearchBarView from './couponConfig/searchBar' -import BottomBarView from './couponConfig/bottomBar' + // 优惠券 import CouponLandingForm from '../couponTemplate/landingPage/config/main' //优惠券落地页表单 import CouponGoodsListForm from '../couponTemplate/goodsPage/config/main' //优惠券商品列表页 @@ -889,16 +888,7 @@ export default class edittemplate extends React.Component { )}
- {!this.state.model.middle_image ? ( - - ) : ( - - )} + {[1,4].includes(this.state.showType)? (
- {!this.state.model.middle_image ? ( - - ) : ( - - )} + {[1,4].includes(this.state.showType) ? (