This commit is contained in:
xiaozhiyong
2024-04-24 16:51:02 +08:00
parent 8024394c40
commit 4813635a78
2 changed files with 8 additions and 5 deletions

View File

@@ -215,7 +215,7 @@
productByPage() {
serve.productByPage(this.paramter).then(res => {
if (res.code === 20000) {
if (!res.data.list.length&&this.paramter.currentPage!=1) {
if (!res.data.list.length && this.paramter.currentPage != 1) {
uni.showToast({
title: '没有更多订单啦~',
icon: 'none'
@@ -245,8 +245,10 @@
this.$refs.delete.open('center')
this.deleteData = item
},
deleteIntegral(){
serve.deleteProductById({id:this.deleteData.id}).then(res=>{
deleteIntegral() {
serve.deleteProductById({
id: this.deleteData.id
}).then(res => {
uni.showToast({
title: res.msg,
icon: 'none'