tianyi 2 weeks ago
parent
commit
0906febc4a
  1. 20
      pages/goods/gategory.vue
  2. 12
      pages/goods/gategoryLow.vue
  3. 36
      pages/goods/goodsList.vue
  4. 10
      pages/login/login.vue
  5. 5
      pages/myCenter/businessInfo.vue
  6. 10
      pages/myCenter/shopDetail.vue
  7. 20
      pages/shop/addType.vue
  8. 35
      pages/shop/afterService.vue
  9. 5
      pages/shop/dataStatistics.vue
  10. 55
      pages/shop/goodsList.vue
  11. 5
      pages/shop/orderDetail.vue
  12. 20
      pages/shop/selfDeliveryOrderList.vue
  13. 5
      pages/shop/shopEvaluate.vue
  14. 10
      pages/shop/shopOrderList.vue

20
pages/goods/gategory.vue

@ -278,7 +278,10 @@
if (res.code == 200) {
this.indexList = res.result;
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
},
@ -365,7 +368,10 @@
}
}
if(e == ''){
that.tui.toast("请输入分类名")
uni.showToast({
title: "请输入分类名",
icon: 'none'
})
return
}
//application/x-www-form-urlencoded
@ -375,13 +381,19 @@
productAttributeOfAddVos:that.multipleList
}, false, 'POST', 'application/json').then(data => {
if (res.code == 200) {
that.tui.toast("添加成功")
uni.showToast({
title: "添加成功",
icon: 'none'
})
that.$refs.addTypeDialog.close()
that.sortText = ''
that.getGategoryList()
} else {
that.tui.toast("添加失败")
uni.showToast({
title: "添加失败",
icon: 'none'
})
}
})
for(var i=0;i<that.defaultList.length;i++){

12
pages/goods/gategoryLow.vue

@ -137,14 +137,22 @@
items.attributeValue = res2.result;
this.$forceUpdate()
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
})
}
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})

36
pages/goods/goodsList.vue

@ -180,7 +180,11 @@
},
largeImg(img) {
if ((img.productPicture == null && img.productPictures == null) || (img.productPicture == '' && img.productPictures == null)) {
this.tui.toast("暂无可展示的图片", 300)
uni.showToast({
title: "暂无可展示的图片",
icon: 'none'
})
return
}
this.bigImg = []
@ -218,7 +222,10 @@
this.shopList = []
this.getShareList();
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
},
@ -299,7 +306,10 @@
this.pages = res.result.pages
}
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
uni.hideLoading()
@ -322,9 +332,15 @@
id: data.id
}, false, 'POST', 'application/json').then(res => {
if (res.code == 200) {
that.tui.toast("下架成功")
uni.showToast({
title: "下架成功",
icon: 'none'
})
} else {
that.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
that.categoryId = data.categoryId
that.getShareList()
@ -334,9 +350,15 @@
id: data.id
}, false, 'POST', 'application/json').then(res => {
if (res.code == 200) {
that.tui.toast("上架成功")
uni.showToast({
title: "上架成功",
icon: 'none'
})
} else {
that.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
that.categoryId = data.categoryId
that.getShareList()

10
pages/login/login.vue

@ -309,7 +309,10 @@
.captchaId
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
},
@ -346,7 +349,10 @@
}, 200)
uni.showToast('登录成功', 2000, true)
} else {
that.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
return
}
}).catch((res) => {})

5
pages/myCenter/businessInfo.vue

@ -139,7 +139,10 @@
submit(){
const error = this.validateForm()
if (error) {
this.tui.toast(error)
uni.showToast({
title: error,
icon: 'none'
})
return
}
const payload = {

10
pages/myCenter/shopDetail.vue

@ -126,7 +126,10 @@
this.applyShop(this.normalizeShopResult(res.result))
} else {
this.applyShop(this.getCachedShop())
if (res.message) this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
},
@ -258,7 +261,10 @@
submit() {
const error = this.validateShop()
if (error) {
this.tui.toast(error)
uni.showToast({
title: error,
icon: 'none'
})
return
}
const shopId = this.getShopId()

20
pages/shop/addType.vue

@ -106,7 +106,10 @@
if (res.code == 200) {
this.indexList = res.result;
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
}).catch(() => {});
},
@ -157,7 +160,10 @@
}
}
if(that.typeText == ''){
that.tui.toast("请输入分类名")
uni.showToast({
title: "请输入分类名",
icon: 'none'
})
return
}
@ -170,13 +176,19 @@
shopId:uni.getStorageSync('shopId')
}, false, 'POST', 'application/x-www-form-urlencoded').then((res) => {
if (res.code == 200) {
that.tui.toast("添加成功")
uni.showToast({
title: "添加成功",
icon: 'none'
})
that.$refs.addTypeDialog.close()
that.sortText = ''
that.getGategoryList()
} else {
that.tui.toast("添加失败")
uni.showToast({
title: "添加失败",
icon: 'none'
})
}
}).catch(() => {});

35
pages/shop/afterService.vue

@ -339,7 +339,10 @@
this.tuanzhangOrder = res.result;
this.$refs.pintuanPopup.open('center')
} else {
that.tui.toast(res.message);
uni.showToast({
title: res.message,
icon: 'none'
})
return;
}
uni.hideLoading();
@ -370,7 +373,10 @@
const orderId = item && item.mallOrder ? item.mallOrder.id : item && item.orderId;
if (!orderId) {
this.tui.toast('订单信息不存在');
uni.showToast({
title: '订单信息不存在',
icon: 'none'
})
return;
}
uni.navigateTo({
@ -405,7 +411,10 @@
that.loadStatus = that.mode == 'record' && that.searchCountForm.pageNum < that.totalPages ? 'more' : 'nomore';
that.$forceUpdate();
} else {
that.tui.toast(res.message);
uni.showToast({
title: res.message,
icon: 'none'
})
return;
}
uni.hideLoading();
@ -473,7 +482,10 @@
confirmReject() {
const reason = (this.rejectReason || '').trim();
if (reason === '') {
this.tui.toast('请输入拒绝原因');
uni.showToast({
title: '请输入拒绝原因',
icon: 'none'
})
return;
}
const item = this.rejectItem;
@ -519,14 +531,23 @@
const successMessage = messageList[0] || '操作成功';
return this.getReturnCount().then(() => {
this.resetSubmitState();
this.tui.toast(successMessage, 2000, true);
uni.showToast({
title: successMessage,
icon: 'none'
})
}).catch(() => {
this.resetSubmitState();
this.tui.toast(successMessage, 2000, true);
uni.showToast({
title: successMessage,
icon: 'none'
})
});
}).catch((message) => {
this.resetSubmitState();
this.tui.toast(this.getRequestErrorMessage(message), 2000);
uni.showToast({
title: this.getRequestErrorMessage(message),
icon: 'none'
})
});
}
}

5
pages/shop/dataStatistics.vue

@ -145,7 +145,10 @@
if (res.code == 200) {
this.shopInfo = res.result
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
})

55
pages/shop/goodsList.vue

@ -239,9 +239,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'
})
}
}).catch((res) => {})
},
@ -258,9 +264,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'
})
}
}).catch((res) => {})
}
@ -279,9 +291,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'
})
}
}).catch((res) => {})
},
@ -298,9 +316,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'
})
}
}).catch((res) => {})
}else{
@ -315,9 +339,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'
})
}
}).catch((res) => {})
}
@ -389,7 +419,10 @@
this.pages = res.result.pages
}
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
}).catch((res) => {})
},

5
pages/shop/orderDetail.vue

@ -856,7 +856,10 @@
callPlatformService() {
let regionId = this.getCurrentRegionId();
if (!regionId) {
this.tui.toast("请选择校区");
uni.showToast({
title: "请选择校区",
icon: 'none'
})
return;
}
let that = this;

20
pages/shop/selfDeliveryOrderList.vue

@ -171,7 +171,10 @@
getList() {
if (!this.searchForm.workerId) {
this.loadStatus = 'nomore';
this.tui.toast('店铺未绑定自配送配送员');
uni.showToast({
title: '店铺未绑定自配送配送员',
icon: 'none'
})
return;
}
this.tui.request('/mall/delivery/pageShopDelivery', 'POST', this.searchForm, false, false).then((res) => {
@ -181,7 +184,10 @@
this.totalPages = res.result.pages || 1;
this.loadStatus = this.searchForm.pageNum >= this.totalPages ? 'nomore' : 'more';
} else {
this.tui.toast(res.message);
uni.showToast({
title: res.message,
icon: 'none'
})
}
});
},
@ -211,9 +217,15 @@
} else {
this.list.splice(index, 1);
}
this.tui.toast(res.message || '操作成功');
uni.showToast({
title: res.message || '操作成功',
icon: 'none'
})
} else {
this.tui.toast(res.message);
uni.showToast({
title: res.message,
icon: 'none'
})
}
});
},

5
pages/shop/shopEvaluate.vue

@ -224,7 +224,10 @@
that.menuList[0].num = res.result.total
}
} else {
that.tui.toast(res.message,1000)
uni.showToast({
title: res.message,
icon: 'none'
})
return
}
uni.hideLoading()

10
pages/shop/shopOrderList.vue

@ -194,7 +194,10 @@
that.totalPages = res.result.pages; // pages =
that.$forceUpdate();
} else {
that.tui.toast(res.message);
uni.showToast({
title: res.message,
icon: 'none'
})
return;
}
uni.hideLoading();
@ -220,7 +223,10 @@
if (res.code == 200) {
that.getList()
} else {
that.tui.toast(res.message);
uni.showToast({
title: res.message,
icon: 'none'
})
return;
}
uni.hideLoading();

Loading…
Cancel
Save