更新商品

This commit is contained in:
姜棚 2022-01-25 19:21:41 +08:00
parent 14aa52b7d1
commit b9c3e48ec6
11 changed files with 37 additions and 40 deletions

View File

@ -191,6 +191,3 @@ resize: none;
z-index: 6;
}
.zent-image-upload-list{
width: 300px !important;
}

View File

@ -95,20 +95,20 @@ const menu={
}
},
//落地页
pageTypeStatus(params) {
switch(params){
case 3:return '兑换码';break;
case 1:return '白名单';break;
case 2:return '立减金';break;
}
},
pageTypeStatusBg(params) {
switch(params){
case 1:return '#ffaa00';break;
case 2:return '#e64c00';break;
case 3:return '#55aaff';break;
}
},
pageTypeStatus(params) {
switch(params){
case 3:return '兑换码';break;
case 1:return '白名单';break;
case 2:return '立减金';break;
}
},
pageTypeStatusBg(params) {
switch(params){
case 1:return '#ffaa00';break;
case 2:return '#e64c00';break;
case 3:return '#55aaff';break;
}
},
keysStatus(params) {
switch(params){
case 1:return '创建中';break;

View File

@ -532,6 +532,9 @@ componentDidMount() {
}
}
render(){
@ -662,7 +665,7 @@ componentDidMount() {
{
this.state.loadshow? <FormItem prop="describe_url" labelname="商品图" id="describe_url" >
<ImageUpload
className="zent-image-upload-demo"
className="good-image-upload-demo"
maxSize={2 * 1024 * 1024}
tips="图片不超过 2M"
maxAmount={9}

View File

@ -54,3 +54,7 @@
.swiper-mobile-simple{
height: 100% !important;
}
.good-image-upload-demo{
width: 300px !important;
}

View File

@ -558,7 +558,7 @@ export default class adduserinfo extends React.Component{
</FormItem>
<FormItem prop="describe_url" labelname="商品图" id="describe_url" >
<ImageUpload
className="zent-image-upload-demo"
className="good-image-upload-demo"
maxSize={2 * 1024 * 1024}
tips="图片不超过 2M"
maxAmount={9}

View File

@ -60,3 +60,6 @@
.swiper-mobile-simple{
height: 100% !important;
}
.good-image-upload-demo{
width: 300px !important;
}

View File

@ -92,9 +92,6 @@ export default class acclist extends React.Component{
})
})
getKeyBatchDetail(batch_id).then((res)=>{
handelResponse(res,(req,msg)=>{
if(req.status == 7)
@ -102,8 +99,6 @@ export default class acclist extends React.Component{
this.setState({isCancel:true})
}
console.log("key的状态",req.status)
if(req.status == 1)
{
this.setState({isEdit:false})
@ -138,6 +133,8 @@ export default class acclist extends React.Component{
getApprovalsInfo(approval_id).then((res)=>{
handelResponse(res,(req,msg)=>{
console.log("审批数据666",req)
for(let i = 0;i < req.code_batch.length;i++)
{
@ -301,24 +298,15 @@ export default class acclist extends React.Component{
this.setState({productData:null})
}
async productSubmit(){
let visible = await this.refs.product.submit()
if(visible)
{
Notify.success("保存成功")
this.setState({drawerVisible2:false})
setTimeout(()=>{
let data = JSON.parse(sessionStorage.getItem("productData"));
let temp = _.map(data,(item)=>{
let index = this.state.tempdata.findIndex((o)=>{return o.product_id == item.product_id})
if(index > -1)
{
item.checked = this.state.tempdata[index].checked
@ -326,9 +314,6 @@ export default class acclist extends React.Component{
return item
})
this.setState({tempdata:temp })
let arr = [];
@ -342,8 +327,6 @@ export default class acclist extends React.Component{
this.setState({rankoptions:arr})
},500)
}
}
onChangeCombinedDate(e){

View File

@ -324,7 +324,7 @@ export default class adduserinfo extends React.Component{
</FormItem>
<FormItem prop="describe_url" labelname="商品图" id="describe_url" >
<ImageUpload
className="zent-image-upload-demo"
className="good-image-upload-demo"
maxSize={2 * 1024* 1024}
tips="图片不超过 2M"
maxAmount={1}

View File

@ -4,3 +4,7 @@
height: 36px;
border-bottom: 1px solid #e0e0e0;
}
.good-image-upload-demo{
width: 300px !important;
}

View File

@ -599,7 +599,7 @@ export default class adduserinfo extends React.Component{
<FormItem prop="describe_url" labelname="商品图" id="describe_url" >
<ImageUpload
className="zent-image-upload-demo"
className="good-image-upload-demo"
maxSize={2 * 1024 * 1024}
tips="图片不超过 2M"
maxAmount={9}

View File

@ -4,3 +4,6 @@
height: 36px;
border-bottom: 1px solid #e0e0e0;
}
.good-image-upload-demo{
width: 300px !important;
}