♻️ refactor: 替换banner外链 字段

This commit is contained in:
wangsongsole 2023-08-30 16:32:07 +08:00
parent f88bbca577
commit 0299306262
3 changed files with 11 additions and 11 deletions

View File

@ -137,7 +137,7 @@ export default class couponGoodConfig extends React.Component {
}
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem("editorConfig"))
let { top_image, list, font_color, button_color, describe, url } = this.state.model
let { top_image, list, font_color, button_color, describe, bannerUrl } = this.state.model
let coupon = oldobj.coupon
coupon.product_list = assign(coupon.product_list, {
top_image,
@ -145,7 +145,7 @@ export default class couponGoodConfig extends React.Component {
font_color,
button_color,
describe,
url
bannerUrl
})
oldobj.coupon = coupon
sessionStorage.setItem("editorConfig", JSON.stringify(oldobj))
@ -171,12 +171,12 @@ export default class couponGoodConfig extends React.Component {
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
<Ipt
onChange={(e) => {
this.configChange("url", e)
this.configChange("bannerUrl", e)
}}
onClearItem={() => {
this.configChange("url", "")
this.configChange("bannerUrl", "")
}}
value={this.state.model.url}
value={this.state.model.bannerUrl}
placeholder={"请输入"}
labelWidth={"0px"}
height={"36px"}

View File

@ -157,12 +157,12 @@ export default class editTemplate extends React.Component {
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
<Ipt
onChange={(e) => {
this.configChange("url", e)
this.configChange("bannerUrl", e)
}}
onClearItem={() => {
this.configChange("url", "")
this.configChange("bannerUrl", "")
}}
value={this.state.model.url}
value={this.state.model.bannerUrl}
placeholder={"请输入"}
labelWidth={"0px"}
height={"36px"}

View File

@ -160,12 +160,12 @@ export default class editTemplate extends React.Component {
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
<Ipt
onChange={(e) => {
this.configChange("url", e)
this.configChange("bannerUrl", e)
}}
onClearItem={() => {
this.configChange("url", "")
this.configChange("bannerUrl", "")
}}
value={this.state.model.url}
value={this.state.model.bannerUrl}
placeholder={"请输入"}
labelWidth={"0px"}
height={"36px"}