|
|
@ -25,7 +25,8 @@ |
|
|
</uni-popup-dialog> |
|
|
</uni-popup-dialog> |
|
|
</uni-popup> |
|
|
</uni-popup> |
|
|
<uni-popup ref="delDialog" type="dialog"> |
|
|
<uni-popup ref="delDialog" type="dialog"> |
|
|
<view class="type-popup" style="width:100%;margin-bottom: 0;border-radius: 0;height: 650rpx;border-radius: 20rpx;"> |
|
|
<view class="type-popup" |
|
|
|
|
|
style="width:100%;margin-bottom: 0;border-radius: 0;height: 650rpx;border-radius: 20rpx;"> |
|
|
<view style="height: 120rpx;font-size: 36rpx;font-weight: bold;line-height: 120rpx;text-align: center;"> |
|
|
<view style="height: 120rpx;font-size: 36rpx;font-weight: bold;line-height: 120rpx;text-align: center;"> |
|
|
编辑分类 |
|
|
编辑分类 |
|
|
</view> |
|
|
</view> |
|
|
@ -39,9 +40,12 @@ |
|
|
<view style="width: 90%;margin: 40rpx auto 0;"> |
|
|
<view style="width: 90%;margin: 40rpx auto 0;"> |
|
|
排序:<uni-easyinput type="text" v-model="sortTextEdit" @blur="handleBlurSort" placeholder="可设置排序" /> |
|
|
排序:<uni-easyinput type="text" v-model="sortTextEdit" @blur="handleBlurSort" placeholder="可设置排序" /> |
|
|
</view> |
|
|
</view> |
|
|
<view style="width: 100%;height: 90rpx;line-height: 90rpx;text-align: center;border-radius: 0;color: #fff;display: flex;position: absolute;bottom: 0;"> |
|
|
<view |
|
|
<view style="flex: 1;background: linear-gradient(90deg, #60F3FF, #088FEB);" v-if="inputVal != '默认分类'" @tap="dialogDel">删除</view> |
|
|
style="width: 100%;height: 90rpx;line-height: 90rpx;text-align: center;border-radius: 0;color: #fff;display: flex;position: absolute;bottom: 0;"> |
|
|
<view style="flex: 1;background: linear-gradient(90deg, #FF9797, #FFC1E0);" @tap="dialogInputConfirm">确认</view> |
|
|
<view style="flex: 1;background: linear-gradient(90deg, #60F3FF, #088FEB);" |
|
|
|
|
|
v-if="inputVal != '默认分类'" @tap="dialogDel">删除</view> |
|
|
|
|
|
<view style="flex: 1;background: linear-gradient(90deg, #FF9797, #FFC1E0);" |
|
|
|
|
|
@tap="dialogInputConfirm">确认</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</uni-popup> |
|
|
</uni-popup> |
|
|
@ -54,9 +58,11 @@ |
|
|
style="height:40rpx;line-height: 40rpx;position: absolute !important;bottom:0;right: 30rpx;"></uni-icons> |
|
|
style="height:40rpx;line-height: 40rpx;position: absolute !important;bottom:0;right: 30rpx;"></uni-icons> |
|
|
</view> |
|
|
</view> |
|
|
<view class="add-popup-container"> |
|
|
<view class="add-popup-container"> |
|
|
<input type="text" v-model="typeText" style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;" |
|
|
<input type="text" v-model="typeText" |
|
|
|
|
|
style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;" |
|
|
placeholder="请输入分类名称"> |
|
|
placeholder="请输入分类名称"> |
|
|
<input type="text" v-model="sortText" style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;" |
|
|
<input type="text" v-model="sortText" |
|
|
|
|
|
style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;" |
|
|
placeholder="可设置分类排序"> |
|
|
placeholder="可设置分类排序"> |
|
|
<view class="add-popup-bottom"> |
|
|
<view class="add-popup-bottom"> |
|
|
<view class="add-popup-btn" @tap="dialogInputConfirm(typeText)">确认</view> |
|
|
<view class="add-popup-btn" @tap="dialogInputConfirm(typeText)">确认</view> |
|
|
@ -79,7 +85,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="shop-box" v-for="(item,index) in goodsList" :key="index" style="position: relative;"> |
|
|
<view class="shop-box" v-for="(item,index) in goodsList" :key="index" style="position: relative;"> |
|
|
<view style='height: 50rpx;line-height: 50rpx;'> |
|
|
<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}} |
|
|
{{item.attributeList | sliceMsg}} |
|
|
</view> |
|
|
</view> |
|
|
<view style="width: 29%;text-align: center;float: left;"> |
|
|
<view style="width: 29%;text-align: center;float: left;"> |
|
|
@ -291,7 +298,8 @@ |
|
|
if (type == 'edit') { |
|
|
if (type == 'edit') { |
|
|
this.inputVal = item.categoryName; |
|
|
this.inputVal = item.categoryName; |
|
|
this.editItem = item; |
|
|
this.editItem = item; |
|
|
this.sortTextEdit = (this.editItem.sort == null || this.editItem.sort == 'null') ? '' : this.editItem.sort |
|
|
this.sortTextEdit = (this.editItem.sort == null || this.editItem.sort == 'null') ? '' : this.editItem |
|
|
|
|
|
.sort |
|
|
this.$refs.delDialog.open('bottom') |
|
|
this.$refs.delDialog.open('bottom') |
|
|
} else if (type == 'add') { |
|
|
} else if (type == 'add') { |
|
|
this.inputVal = ''; |
|
|
this.inputVal = ''; |
|
|
@ -340,9 +348,19 @@ |
|
|
} else { |
|
|
} else { |
|
|
that.show = true |
|
|
that.show = true |
|
|
} |
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res1.message, |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res.message, |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -498,7 +516,8 @@ |
|
|
for (var i = 0; i < this.multipleList.length; i++) { |
|
|
for (var i = 0; i < this.multipleList.length; i++) { |
|
|
if (this.multipleList[i].attributeName == item.name) { //同种分类 |
|
|
if (this.multipleList[i].attributeName == item.name) { //同种分类 |
|
|
for (var m = 0; m < this.multipleList[i].productAttributeValueVoList.length; m++) { |
|
|
for (var m = 0; m < this.multipleList[i].productAttributeValueVoList.length; m++) { |
|
|
if(this.multipleList[i].productAttributeValueVoList[m].value == item.list[index].value){ //规格相同 |
|
|
if (this.multipleList[i].productAttributeValueVoList[m].value == item.list[index] |
|
|
|
|
|
.value) { //规格相同 |
|
|
|
|
|
|
|
|
this.multipleList[i].productAttributeValueVoList.splice(m, 1) |
|
|
this.multipleList[i].productAttributeValueVoList.splice(m, 1) |
|
|
|
|
|
|
|
|
@ -534,9 +553,11 @@ |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
page,.page1{ |
|
|
page, |
|
|
|
|
|
.page1 { |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-wrap { |
|
|
.u-wrap { |
|
|
height: calc(100vh); |
|
|
height: calc(100vh); |
|
|
/* #ifdef H5 */ |
|
|
/* #ifdef H5 */ |
|
|
@ -611,10 +632,12 @@ |
|
|
margin: 150rpx auto 0; |
|
|
margin: 150rpx auto 0; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.checked { |
|
|
.checked { |
|
|
background: #60F3FF; |
|
|
background: #60F3FF; |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.card-list ul {} |
|
|
.card-list ul {} |
|
|
|
|
|
|
|
|
.card-list li { |
|
|
.card-list li { |
|
|
@ -708,6 +731,7 @@ |
|
|
background: linear-gradient(90deg, #60F3FF, #088FEB); |
|
|
background: linear-gradient(90deg, #60F3FF, #088FEB); |
|
|
border-radius: 70rpx; |
|
|
border-radius: 70rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.add-popup-content { |
|
|
.add-popup-content { |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
@ -742,11 +766,13 @@ |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
background: linear-gradient(90deg, #60F3FF, #088FEB); |
|
|
background: linear-gradient(90deg, #60F3FF, #088FEB); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.title-fur { |
|
|
.title-fur { |
|
|
width: 95%; |
|
|
width: 95%; |
|
|
height: 70rpx; |
|
|
height: 70rpx; |
|
|
margin: 0 auto; |
|
|
margin: 0 auto; |
|
|
border-bottom: 1px solid #eee; |
|
|
border-bottom: 1px solid #eee; |
|
|
|
|
|
|
|
|
.name { |
|
|
.name { |
|
|
font-size: 30rpx; |
|
|
font-size: 30rpx; |
|
|
width: 90%; |
|
|
width: 90%; |
|
|
@ -755,6 +781,7 @@ |
|
|
line-height: 70rpx; |
|
|
line-height: 70rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.content-fur { |
|
|
.content-fur { |
|
|
padding-bottom: 25rpx; |
|
|
padding-bottom: 25rpx; |
|
|
} |
|
|
} |
|
|
@ -770,6 +797,7 @@ |
|
|
color: #777; |
|
|
color: #777; |
|
|
margin: 20rpx 0 0 20rpx; |
|
|
margin: 20rpx 0 0 20rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.type-popup { |
|
|
.type-popup { |
|
|
width: 500rpx; |
|
|
width: 500rpx; |
|
|
height: auto; |
|
|
height: auto; |
|
|
|