Commit d2356439 by wufan

feat:banner提示5条上线

parent c034db0a
...@@ -548,6 +548,7 @@ class SelectPrepareFileModal extends React.Component { ...@@ -548,6 +548,7 @@ class SelectPrepareFileModal extends React.Component {
visible={isOpen} visible={isOpen}
title={title} title={title}
footer={footer} footer={footer}
maskClosable={false}
width={560} width={560}
onCancel={this.handleClose} onCancel={this.handleClose}
className="select-prepare-file-modal" className="select-prepare-file-modal"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-22 20:32:53 * @LastEditTime: 2020-12-22 21:13:26
* @Description: web店铺banner页面 * @Description: web店铺banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -126,6 +126,11 @@ class StoreWebDecoration extends React.Component { ...@@ -126,6 +126,11 @@ class StoreWebDecoration extends React.Component {
}; };
handleToAddStoreDecoration = () => { handleToAddStoreDecoration = () => {
if(this.state.storeDecorationlist.length >=5){
message.info("最多可添加5条");
return;
}
this.setState({ this.setState({
showSelectFileModal: true, showSelectFileModal: true,
}); });
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-22 20:29:02 * @LastEditTime: 2020-12-22 21:12:44
* @Description: web店铺banner页面 * @Description: web店铺banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -126,6 +126,10 @@ class StoreWebDecoration extends React.Component { ...@@ -126,6 +126,10 @@ class StoreWebDecoration extends React.Component {
}; };
handleToAddStoreDecoration = () => { handleToAddStoreDecoration = () => {
if(this.state.storeDecorationlist.length >=5){
message.info("最多可添加5条");
return;
}
this.setState({ this.setState({
showSelectFileModal: true, showSelectFileModal: true,
}); });
...@@ -287,6 +291,9 @@ class StoreWebDecoration extends React.Component { ...@@ -287,6 +291,9 @@ class StoreWebDecoration extends React.Component {
}; };
StoreService.editStoreBanner(params).then((res) => { StoreService.editStoreBanner(params).then((res) => {
message.success("设置成功"); message.success("设置成功");
this.setState({
choosedBannerId:""
})
this.getStoreDecorationList(); this.getStoreDecorationList();
this.state.photoclip.clear(); this.state.photoclip.clear();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment