♻️ refactor: 替换banner外链 字段
This commit is contained in:
parent
f88bbca577
commit
0299306262
|
@ -137,7 +137,7 @@ export default class couponGoodConfig extends React.Component {
|
||||||
}
|
}
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
let oldobj = JSON.parse(sessionStorage.getItem("editorConfig"))
|
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
|
let coupon = oldobj.coupon
|
||||||
coupon.product_list = assign(coupon.product_list, {
|
coupon.product_list = assign(coupon.product_list, {
|
||||||
top_image,
|
top_image,
|
||||||
|
@ -145,7 +145,7 @@ export default class couponGoodConfig extends React.Component {
|
||||||
font_color,
|
font_color,
|
||||||
button_color,
|
button_color,
|
||||||
describe,
|
describe,
|
||||||
url
|
bannerUrl
|
||||||
})
|
})
|
||||||
oldobj.coupon = coupon
|
oldobj.coupon = coupon
|
||||||
sessionStorage.setItem("editorConfig", JSON.stringify(oldobj))
|
sessionStorage.setItem("editorConfig", JSON.stringify(oldobj))
|
||||||
|
@ -171,12 +171,12 @@ export default class couponGoodConfig extends React.Component {
|
||||||
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
|
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
|
||||||
<Ipt
|
<Ipt
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
this.configChange("url", e)
|
this.configChange("bannerUrl", e)
|
||||||
}}
|
}}
|
||||||
onClearItem={() => {
|
onClearItem={() => {
|
||||||
this.configChange("url", "")
|
this.configChange("bannerUrl", "")
|
||||||
}}
|
}}
|
||||||
value={this.state.model.url}
|
value={this.state.model.bannerUrl}
|
||||||
placeholder={"请输入"}
|
placeholder={"请输入"}
|
||||||
labelWidth={"0px"}
|
labelWidth={"0px"}
|
||||||
height={"36px"}
|
height={"36px"}
|
||||||
|
|
|
@ -157,12 +157,12 @@ export default class editTemplate extends React.Component {
|
||||||
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
|
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
|
||||||
<Ipt
|
<Ipt
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
this.configChange("url", e)
|
this.configChange("bannerUrl", e)
|
||||||
}}
|
}}
|
||||||
onClearItem={() => {
|
onClearItem={() => {
|
||||||
this.configChange("url", "")
|
this.configChange("bannerUrl", "")
|
||||||
}}
|
}}
|
||||||
value={this.state.model.url}
|
value={this.state.model.bannerUrl}
|
||||||
placeholder={"请输入"}
|
placeholder={"请输入"}
|
||||||
labelWidth={"0px"}
|
labelWidth={"0px"}
|
||||||
height={"36px"}
|
height={"36px"}
|
||||||
|
|
|
@ -160,12 +160,12 @@ export default class editTemplate extends React.Component {
|
||||||
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
|
<FormItem labelname="banner外链:" required={false} labelwidth="100px">
|
||||||
<Ipt
|
<Ipt
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
this.configChange("url", e)
|
this.configChange("bannerUrl", e)
|
||||||
}}
|
}}
|
||||||
onClearItem={() => {
|
onClearItem={() => {
|
||||||
this.configChange("url", "")
|
this.configChange("bannerUrl", "")
|
||||||
}}
|
}}
|
||||||
value={this.state.model.url}
|
value={this.state.model.bannerUrl}
|
||||||
placeholder={"请输入"}
|
placeholder={"请输入"}
|
||||||
labelWidth={"0px"}
|
labelWidth={"0px"}
|
||||||
height={"36px"}
|
height={"36px"}
|
||||||
|
|
Loading…
Reference in New Issue