diff --git a/pages/shop/addGoods.vue b/pages/shop/addGoods.vue
index 9e4cbe5..3827682 100644
--- a/pages/shop/addGoods.vue
+++ b/pages/shop/addGoods.vue
@@ -23,7 +23,7 @@
-
+
@@ -31,8 +31,9 @@
-
- {{typeItem.categoryName}}
+
+
@@ -55,7 +56,9 @@
- 删除
+
+
+
新增拼团
@@ -116,6 +119,7 @@
{
- const groupCount = item && item.groupCount !== undefined && item.groupCount !== null ? String(item.groupCount).trim() : ''
- const groupPrice = item && item.groupPrice !== undefined && item.groupPrice !== null ? String(item.groupPrice).trim() : ''
- return groupCount !== '' || groupPrice !== ''
- })
- },
isValidPrice(value) {
return /^\d+(\.\d{1,2})?$/.test(value) && Number(value) > 0
},
@@ -852,7 +846,7 @@
let that = this
this.NB.sendRequest("/app/productAttributeValue/selectByAttributeId", {
id: id,
- }, false, 'get', 'application/x-www-form-urlencoded').then((res) => {
+ }, false, 'post', 'application/x-www-form-urlencoded').then((res) => {
if (res.code == 200) {
that.categorySonData = res.result
for (var i = 0; i < that.categorySonData.length; i++) {
@@ -1050,6 +1044,17 @@
box-sizing: border-box;
min-width: 0;
}
+ .group-delete-btn {
+ flex: 0 0 70rpx;
+ width: 70rpx;
+ height: 70rpx;
+ margin-left: 20rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #fff;
+ border-radius: 10rpx;
+ }
.keyboard-safe-bottom {
height: 260rpx;
}
diff --git a/pages/shop/goodsList.vue b/pages/shop/goodsList.vue
index 03c0e1c..00a4587 100644
--- a/pages/shop/goodsList.vue
+++ b/pages/shop/goodsList.vue
@@ -262,9 +262,15 @@
}else{
this.shopList1[index].isPush = value
}
- this.tui.toast('设置成功')
+ uni.showToast({
+ title: '设置成功',
+ icon: 'none'
+ })
} else {
- this.tui.toast(res.message)
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
}
})
},
@@ -280,9 +286,15 @@
}, false, 'post', 'application/x-www-form-urlencoded').then((res) => {
if (res.code == 200) {
that.getShareList()
- that.tui.toast('删除成功')
+ uni.showToast({
+ title: '删除成功',
+ icon: 'none'
+ })
} else {
- that.tui.toast(res.message)
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
}
})
}
@@ -300,9 +312,15 @@
}else{
this.shopList1[index].isMust = value
}
- this.tui.toast('设置成功')
+ uni.showToast({
+ title: '设置成功',
+ icon: 'none'
+ })
} else {
- this.tui.toast(res.message)
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
}
})
},
@@ -317,9 +335,15 @@
}else{
this.shopList1[index].delFlag = value
}
- this.tui.toast('设置成功')
+ uni.showToast({
+ title: '设置成功',
+ icon: 'none'
+ })
} else {
- this.tui.toast(res.message)
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
}
})
}else{
@@ -332,9 +356,15 @@
}else{
this.shopList1[index].delFlag = value
}
- this.tui.toast('设置成功')
+ uni.showToast({
+ title: '设置成功',
+ icon: 'none'
+ })
} else {
- this.tui.toast(res.message)
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
}
})
}
@@ -406,7 +436,10 @@
}
this.status = this.pageNum >= this.pages ? 'nomore' : 'loadmore'
} else {
- this.tui.toast(res.message)
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
}
})
},
@@ -460,7 +493,10 @@
this.categoryId = this.indexList[0].id
this.getShareList();
} else {
- this.tui.toast(res.message)
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
}
})
},