|
|
|
@ -1,7 +1,8 @@ |
|
|
|
<template> |
|
|
|
<view class="u-wrap"> |
|
|
|
<view style="width: 100%;position: fixed;z-index: 99;"> |
|
|
|
<button size="default" type="default" @tap="inputDialogToggle('attrAdd',categoryId)" hover-class="is-hover">添加分类</button> |
|
|
|
<button size="default" type="default" @tap="inputDialogToggle('attrAdd',categoryId)" |
|
|
|
hover-class="is-hover">添加分类</button> |
|
|
|
</view> |
|
|
|
<view class="card-list"> |
|
|
|
<ul> |
|
|
|
@ -9,13 +10,15 @@ |
|
|
|
<view class="title-fur"> |
|
|
|
<view class="name">{{items.attributeName}}</view> |
|
|
|
<view class="rightBox"> |
|
|
|
<u-icon size="20" name="plus" color="#5fd9ee" @tap="inputDialogToggle('attrValAdd', items.id) "></u-icon> |
|
|
|
<u-icon size="20" name="plus" color="#5fd9ee" |
|
|
|
@tap="inputDialogToggle('attrValAdd', items.id) "></u-icon> |
|
|
|
<!-- <u-icon size="24" name="edit-pen" color="#5fd9ee" @tap="inputDialogToggle('attrEdit', items, item) "></u-icon> --> |
|
|
|
<u-icon size="24" name="trash" color="#f56c6c" @tap="delItem(items, 'attrDel')"></u-icon> |
|
|
|
<u-icon size="24" name="trash" color="#f56c6c" @tap="delItem(items, 'attrDel')"></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content-fur"> |
|
|
|
<view class="content-low" v-for="item in items.attributeValue" :key="item.id" @tap="delItem(item, 'attrNameDel')">{{item.value}}</view> |
|
|
|
<view class="content-low" v-for="item in items.attributeValue" :key="item.id" |
|
|
|
@tap="delItem(item, 'attrNameDel')">{{item.value}}</view> |
|
|
|
</view> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
@ -27,49 +30,40 @@ |
|
|
|
@confirm="dialogInputConfirm" @close="dialogClose"> |
|
|
|
</uni-popup-dialog> |
|
|
|
</uni-popup> |
|
|
|
<uni-popup ref="delDialog" type="dialog"> |
|
|
|
<uni-popup-dialog ref="inputClose" mode="input" :title="dialogTit" :value="inputVal" placeholder="请输入名称" |
|
|
|
cancelText="删除" @confirm="dialogInputConfirm" @close="dialogDel"> |
|
|
|
</uni-popup-dialog> |
|
|
|
</uni-popup> |
|
|
|
<!-- 查看商品库存弹出层 --> |
|
|
|
<uni-popup ref="carPopup" background-color="#fff"> |
|
|
|
<view class="popup-content" style="height:auto !important;"> |
|
|
|
<view style="font-size: 36rpx;font-weight: bold;text-align: center;">提示</view> |
|
|
|
<view v-if="goodsList !=''" |
|
|
|
style="width:100%;font-weight:bold;text-align: center;font-size: 28rpx;margin: 20rpx 0;"> |
|
|
|
{{goodsList[0].productName}}商品有以下库存,确认继续删除吗? |
|
|
|
<!-- 添加分类弹出层 --> |
|
|
|
<uni-popup ref="addTypeDialog" background-color="#fff"> |
|
|
|
<view class="add-popup-content"> |
|
|
|
<view class="add-popup-title"> |
|
|
|
<text>新增分类</text> |
|
|
|
<uni-icons @tap='close' type="closeempty" color='red' size="16" |
|
|
|
style="height:40rpx;line-height: 40rpx;position: absolute !important;bottom:0;right: 30rpx;"></uni-icons> |
|
|
|
</view> |
|
|
|
<view class="tui-order-item boxbg"> |
|
|
|
<view style="display: flex;border-bottom: 1px solid #eee;height: 50rpx;line-height: 50rpx;"> |
|
|
|
<view style="width: 70%;text-align: center;border-right: 1px solid #eee;">商品规格</view> |
|
|
|
<view style="width: 29%;text-align: center;">数量</view> |
|
|
|
<view class="add-popup-container"> |
|
|
|
<view> |
|
|
|
<text style="color:red;font-size:22rpx;">*您可以点击默认项快捷添加分类,如没有想要的快捷项,可以手动输入</text> |
|
|
|
</view> |
|
|
|
<view class="shop-box" v-for="(item,index) in goodsList" :key="index" style="position: relative;"> |
|
|
|
<view style='height: 50rpx;line-height: 50rpx;'> |
|
|
|
<view style="width: 70%;text-align: center;border-right: 1px solid #eee;float: left;height: 50rpx;overflow: hidden;"> |
|
|
|
{{item.attributeList | sliceMsg}} |
|
|
|
<textarea name="" id="" style="width: 100%;border: 1px solid #eee;height: 80rpx;padding: 12px;margin:20rpx 0;" v-model="typeText" |
|
|
|
placeholder="请输入分类名称"></textarea> |
|
|
|
|
|
|
|
<ul> |
|
|
|
<li v-for="(item,index) in defaultList" :key="index"> |
|
|
|
<view class="title-fur"> |
|
|
|
<view class="name">{{item.name}}</view> |
|
|
|
</view> |
|
|
|
<view style="width: 29%;text-align: center;float: left;"> |
|
|
|
{{item.stockCount}} |
|
|
|
<view class="content-fur"> |
|
|
|
<view class="content-low" :class="item1.checked?'checked':''" v-for="(item1,index1) in item.list" :key="index1" |
|
|
|
@tap.stop="addMultipleType(item,item1.type,index1)">{{item1.type}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <u-loadmore :status="status" /> --> |
|
|
|
<view class="popup-bottom"> |
|
|
|
<view class="popup-bottom-left"> |
|
|
|
<view class="bottom-btn" @tap="this.$refs.carPopup.close()" |
|
|
|
style="background: linear-gradient(90deg, #FF9797, #FFC1E0);">再想想</view> |
|
|
|
</view> |
|
|
|
<view class="popup-bottom-right"> |
|
|
|
<view class="bottom-btn" @tap="this.show = true">确认删除</view> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<view class="add-popup-bottom"> |
|
|
|
<view class="add-popup-btn" @tap="dialogInputConfirm(typeText)">确认</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uni-popup> |
|
|
|
<!-- 查看商品库存弹出层 --> |
|
|
|
<uni-popup ref="addPopup" background-color="#fff"> |
|
|
|
<uni-popup ref="carPopup" background-color="#fff"> |
|
|
|
<view class="popup-content" style="height:auto !important;"> |
|
|
|
<view style="font-size: 36rpx;font-weight: bold;text-align: center;">提示</view> |
|
|
|
<view v-if="goodsList !=''" |
|
|
|
@ -83,7 +77,8 @@ |
|
|
|
</view> |
|
|
|
<view class="shop-box" v-for="(item,index) in goodsList" :key="index" style="position: relative;"> |
|
|
|
<view style='height: 50rpx;line-height: 50rpx;'> |
|
|
|
<view style="width: 70%;text-align: center;border-right: 1px solid #eee;float: left;height: 50rpx;overflow: hidden;"> |
|
|
|
<view |
|
|
|
style="width: 70%;text-align: center;border-right: 1px solid #eee;float: left;height: 50rpx;overflow: hidden;"> |
|
|
|
{{item.attributeList | sliceMsg}} |
|
|
|
</view> |
|
|
|
<view style="width: 29%;text-align: center;float: left;"> |
|
|
|
@ -95,7 +90,7 @@ |
|
|
|
<!-- <u-loadmore :status="status" /> --> |
|
|
|
<view class="popup-bottom"> |
|
|
|
<view class="popup-bottom-left"> |
|
|
|
<view class="bottom-btn" @tap="this.$refs.addPopup.close()" |
|
|
|
<view class="bottom-btn" @tap="this.$refs.carPopup.close()" |
|
|
|
style="background: linear-gradient(90deg, #FF9797, #FFC1E0);">再想想</view> |
|
|
|
</view> |
|
|
|
<view class="popup-bottom-right"> |
|
|
|
@ -124,9 +119,141 @@ |
|
|
|
delType: '', |
|
|
|
showList: {}, |
|
|
|
dialogTit: '输入分类名', |
|
|
|
categoryId:'', |
|
|
|
goodsList:[] |
|
|
|
categoryId: '', |
|
|
|
goodsList: [], |
|
|
|
typeText:'', |
|
|
|
// type: 'center', |
|
|
|
defaultList:[{ |
|
|
|
name:'颜色', |
|
|
|
list:[{ |
|
|
|
type:'白色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'黑色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'浅蓝', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'蓝色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'灰色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'咖色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'紫色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'红色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'米色', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'均色', |
|
|
|
checked:false, |
|
|
|
}] |
|
|
|
},{ |
|
|
|
name:'通用尺码', |
|
|
|
list:[{ |
|
|
|
type:'XS', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'S', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'M', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'L', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'XL', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'XXL', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'XXXL', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'XXXXL', |
|
|
|
checked:false, |
|
|
|
},{ |
|
|
|
type:'均码', |
|
|
|
checked:false, |
|
|
|
}] |
|
|
|
},{ |
|
|
|
name:'尺码', |
|
|
|
list:[{ |
|
|
|
type:'25码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'26码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'27码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'28码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'29码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'30码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'31码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'32码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'33码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'34码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'35码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'36码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'37码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'38码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'39码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'40码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'41码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'42码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'43码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'44码', |
|
|
|
checked:false |
|
|
|
},{ |
|
|
|
type:'45码', |
|
|
|
checked:false |
|
|
|
}] |
|
|
|
}], |
|
|
|
multipleList:[] |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -167,17 +294,17 @@ |
|
|
|
if (res2.code == 200) { |
|
|
|
items.attributeValue = res2.result; |
|
|
|
// |
|
|
|
}else{ |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
|
|
|
|
}).catch((res) => {}) |
|
|
|
}) |
|
|
|
} |
|
|
|
setTimeout(() => { |
|
|
|
this.showList = this.attrList; |
|
|
|
},1000) |
|
|
|
}else{ |
|
|
|
}, 1000) |
|
|
|
} else { |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
@ -187,7 +314,7 @@ |
|
|
|
let that = this; |
|
|
|
this.tui.request("/app/stock/getlistByAttributeList", "post", { |
|
|
|
categoryId: this.categoryId, |
|
|
|
attributeList:this.delItems.attributeName || this.delItems.value, |
|
|
|
attributeList: this.delItems.attributeName || this.delItems.value, |
|
|
|
}, false, true).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.result != '') { |
|
|
|
@ -236,18 +363,71 @@ |
|
|
|
if (res.code == 200) { |
|
|
|
items.attributeValue = res.result; |
|
|
|
this.showList = this.attrList |
|
|
|
}else{ |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
//选择多个规格保存 |
|
|
|
addMultipleType(item,item1,index){ |
|
|
|
console.log(item); |
|
|
|
console.log(item1); |
|
|
|
item.list[index].checked = !item.list[index].checked |
|
|
|
var list = [] |
|
|
|
if(this.multipleList == ''){ |
|
|
|
console.log("首次"); |
|
|
|
list.push(item1) |
|
|
|
var data = { |
|
|
|
name:item.name, |
|
|
|
list: list |
|
|
|
} |
|
|
|
this.multipleList.push(data) |
|
|
|
}else{ |
|
|
|
for(var i=0;i<this.multipleList.length;i++){ |
|
|
|
if(this.multipleList[i].name == item.name){ //同种分类 |
|
|
|
|
|
|
|
console.log("同分类"); |
|
|
|
for(var m=0;m<this.multipleList[i].list.length;m++){ |
|
|
|
if(this.multipleList[i].list[m] == item1){ //规格相同 |
|
|
|
console.log("同规格"); |
|
|
|
this.multipleList[i].list.splice(m,1) |
|
|
|
console.log(this.multipleList); |
|
|
|
return; |
|
|
|
}else{ //规格不同 |
|
|
|
if(m+1 == this.multipleList[i].list.length){ |
|
|
|
console.log("不同规格"); |
|
|
|
this.multipleList[i].list.push(item1) |
|
|
|
console.log(this.multipleList); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ //不同分类 |
|
|
|
if(this.multipleList.length == i+1){ |
|
|
|
console.log("不同分类"); |
|
|
|
|
|
|
|
list.push(item1) |
|
|
|
var data = { |
|
|
|
name:item.name, |
|
|
|
list: list |
|
|
|
} |
|
|
|
this.multipleList.push(data) |
|
|
|
console.log(this.multipleList); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.multipleList); |
|
|
|
}, |
|
|
|
// 获取属性值 |
|
|
|
getProductAttributeValue(index) { |
|
|
|
|
|
|
|
@ -257,9 +437,9 @@ |
|
|
|
}, false, true).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
item.attributeValue = res.result; |
|
|
|
}else{ |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
}) |
|
|
|
this.showList = JSON.parse(JSON.stringify(this.attrList)) |
|
|
|
@ -267,23 +447,22 @@ |
|
|
|
}, |
|
|
|
inputDialogToggle(type, item, parent) { |
|
|
|
this.typeModel = type; |
|
|
|
if(type == 'edit') { |
|
|
|
this.inputVal = item.categoryName ; |
|
|
|
if (type == 'edit') { |
|
|
|
this.inputVal = item.categoryName; |
|
|
|
this.editItem = item; |
|
|
|
}else if ( type == 'add' || type == 'attrAdd' || type == 'attrValAdd') { |
|
|
|
} else if (type == 'add' || type == 'attrAdd' || type == 'attrValAdd') { |
|
|
|
this.inputVal = ''; |
|
|
|
this.isOpenId = item; |
|
|
|
if(type == 'add') { |
|
|
|
if (type == 'add') { |
|
|
|
this.dialogTit = '输入分类名' |
|
|
|
} else if(type == 'attrAdd') { |
|
|
|
this.dialogTit = '输入属性名' |
|
|
|
// this.$refs.addPopup.open() |
|
|
|
// return; |
|
|
|
} else if(type == 'attrValAdd') { |
|
|
|
} else if (type == 'attrAdd') { |
|
|
|
this.$refs.addTypeDialog.open('bottom') |
|
|
|
return; |
|
|
|
} else if (type == 'attrValAdd') { |
|
|
|
this.dialogTit = '输入属性值' |
|
|
|
} |
|
|
|
} else if ( type == 'attrEdit') { |
|
|
|
this.inputVal = item.attributeName ; |
|
|
|
} else if (type == 'attrEdit') { |
|
|
|
this.inputVal = item.attributeName; |
|
|
|
this.editItem = item; |
|
|
|
} |
|
|
|
this.$refs.inputDialog.open() |
|
|
|
@ -292,24 +471,24 @@ |
|
|
|
switch (this.typeModel) { |
|
|
|
case 'add': |
|
|
|
|
|
|
|
this.tui.request("/app/productCategory/save", "post", { |
|
|
|
categoryName: e |
|
|
|
}, false, true).then((res) => { |
|
|
|
this.tui.request("/app/productCategory/save", "post", { |
|
|
|
categoryName: e |
|
|
|
}, false, true).then((res) => { |
|
|
|
|
|
|
|
if (res.code == 200) { |
|
|
|
this.getGategoryList() |
|
|
|
uni.showToast({ |
|
|
|
title:"添加成功", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title:"添加失败", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
if (res.code == 200) { |
|
|
|
this.getGategoryList() |
|
|
|
uni.showToast({ |
|
|
|
title: "添加成功", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: "添加失败", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}).catch((res) => {}) |
|
|
|
}).catch((res) => {}) |
|
|
|
break; |
|
|
|
case 'edit': |
|
|
|
this.tui.request("/app/productCategory/edit", "post", { |
|
|
|
@ -319,22 +498,22 @@ |
|
|
|
if (res.code == 200) { |
|
|
|
this.getGategoryList() |
|
|
|
uni.showToast({ |
|
|
|
title:"修改成功", |
|
|
|
title: "修改成功", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title:"修改失败", |
|
|
|
title: "修改失败", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
break; |
|
|
|
case 'attrAdd': |
|
|
|
for(let i=0;i<this.attrList.length;i++){ |
|
|
|
if(this.attrList[i].attributeName == e){ |
|
|
|
for (let i = 0; i < this.attrList.length; i++) { |
|
|
|
if (this.attrList[i].attributeName == e) { |
|
|
|
uni.showToast({ |
|
|
|
title:"请勿重复添加", |
|
|
|
title: "请勿重复添加", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return |
|
|
|
@ -347,21 +526,21 @@ |
|
|
|
if (res.code == 200) { |
|
|
|
this.getGategoryList() |
|
|
|
uni.showToast({ |
|
|
|
title:"添加成功", |
|
|
|
title: "添加成功", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title:"添加失败", |
|
|
|
title: "添加失败", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'attrValAdd': |
|
|
|
if(e == ''){ |
|
|
|
if (e == '') { |
|
|
|
uni.showToast({ |
|
|
|
title:"不能为空!", |
|
|
|
title: "不能为空!", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return |
|
|
|
@ -373,41 +552,41 @@ |
|
|
|
if (res.code == 200) { |
|
|
|
this.getGategoryList() |
|
|
|
uni.showToast({ |
|
|
|
title:"添加成功", |
|
|
|
title: "添加成功", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title:res.message, |
|
|
|
title: res.message, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
break; |
|
|
|
case 'attrEdit': |
|
|
|
this.tui.request("/app/productAttribute/edit", "post", { |
|
|
|
attributeName: e, |
|
|
|
categoryId: this.editItem.categoryId, |
|
|
|
id: this.editItem.id |
|
|
|
}, false, true).then((res) => { |
|
|
|
|
|
|
|
if (res.code == 200) { |
|
|
|
this.getGategoryList() |
|
|
|
uni.showToast({ |
|
|
|
title:"修改成功", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title:"修改失败", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'attrEdit': |
|
|
|
this.tui.request("/app/productAttribute/edit", "post", { |
|
|
|
attributeName: e, |
|
|
|
categoryId: this.editItem.categoryId, |
|
|
|
id: this.editItem.id |
|
|
|
}, false, true).then((res) => { |
|
|
|
|
|
|
|
if (res.code == 200) { |
|
|
|
this.getGategoryList() |
|
|
|
uni.showToast({ |
|
|
|
title: "修改成功", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: "修改失败", |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
break; |
|
|
|
default: |
|
|
|
} |
|
|
|
this.$refs.inputClose.val='' |
|
|
|
this.$refs.inputClose.val = '' |
|
|
|
}, |
|
|
|
dialogClose() { |
|
|
|
this.inputVal = ''; |
|
|
|
@ -553,9 +732,6 @@ |
|
|
|
margin: 20rpx 0 0 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.content-low:hover { |
|
|
|
background: #eee; |
|
|
|
} |
|
|
|
.popup-content { |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
@ -618,4 +794,43 @@ |
|
|
|
background: linear-gradient(90deg, #60F3FF, #088FEB); |
|
|
|
border-radius: 70rpx; |
|
|
|
} |
|
|
|
.checked{ |
|
|
|
background: #60F3FF; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.add-popup-content { |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
padding: 15px; |
|
|
|
width: 100%; |
|
|
|
height: 1300rpx; |
|
|
|
background-color: #fff; |
|
|
|
} |
|
|
|
|
|
|
|
.add-popup-title { |
|
|
|
font-size: 36rpx; |
|
|
|
font-weight: bold; |
|
|
|
text-align: center; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
|
|
|
|
.add-popup-container { |
|
|
|
margin-top: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.add-popup-bottom { |
|
|
|
display: flex; |
|
|
|
height: 80rpx; |
|
|
|
color: #fff; |
|
|
|
line-height: 80rpx; |
|
|
|
margin-top: 50rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.add-popup-btn { |
|
|
|
flex: 1; |
|
|
|
text-align: center; |
|
|
|
background: linear-gradient(90deg, #60F3FF, #088FEB); |
|
|
|
} |
|
|
|
</style> |