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

12
pages/goods/gategoryLow.vue

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

36
pages/goods/goodsList.vue

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

10
pages/login/login.vue

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

5
pages/myCenter/businessInfo.vue

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

10
pages/myCenter/shopDetail.vue

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

20
pages/shop/addType.vue

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

35
pages/shop/afterService.vue

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

55
pages/shop/goodsList.vue

@ -239,9 +239,15 @@
}else{ }else{
this.shopList1[index].isPush = value this.shopList1[index].isPush = value
} }
this.tui.toast('设置成功') uni.showToast({
title: '设置成功',
icon: 'none'
})
} else { } else {
this.tui.toast(res.message) uni.showToast({
title: res.message,
icon: 'none'
})
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
@ -258,9 +264,15 @@
}, false, 'POST', 'application/x-www-form-urlencoded').then((res) => { }, false, 'POST', 'application/x-www-form-urlencoded').then((res) => {
if (res.code == 200) { if (res.code == 200) {
that.getShareList() that.getShareList()
that.tui.toast('删除成功') uni.showToast({
title: '删除成功',
icon: 'none'
})
} else { } else {
that.tui.toast(res.message) uni.showToast({
title: res.message,
icon: 'none'
})
} }
}).catch((res) => {}) }).catch((res) => {})
} }
@ -279,9 +291,15 @@
}else{ }else{
this.shopList1[index].isMust = value this.shopList1[index].isMust = value
} }
this.tui.toast('设置成功') uni.showToast({
title: '设置成功',
icon: 'none'
})
} else { } else {
this.tui.toast(res.message) uni.showToast({
title: res.message,
icon: 'none'
})
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
@ -298,9 +316,15 @@
}else{ }else{
this.shopList1[index].delFlag = value this.shopList1[index].delFlag = value
} }
this.tui.toast('设置成功') uni.showToast({
title: '设置成功',
icon: 'none'
})
} else { } else {
this.tui.toast(res.message) uni.showToast({
title: res.message,
icon: 'none'
})
} }
}).catch((res) => {}) }).catch((res) => {})
}else{ }else{
@ -315,9 +339,15 @@
}else{ }else{
this.shopList1[index].delFlag = value this.shopList1[index].delFlag = value
} }
this.tui.toast('设置成功') uni.showToast({
title: '设置成功',
icon: 'none'
})
} else { } else {
this.tui.toast(res.message) uni.showToast({
title: res.message,
icon: 'none'
})
} }
}).catch((res) => {}) }).catch((res) => {})
} }
@ -389,7 +419,10 @@
this.pages = res.result.pages this.pages = res.result.pages
} }
} else { } else {
this.tui.toast(res.message) uni.showToast({
title: res.message,
icon: 'none'
})
} }
}).catch((res) => {}) }).catch((res) => {})
}, },

5
pages/shop/orderDetail.vue

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

20
pages/shop/selfDeliveryOrderList.vue

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

10
pages/shop/shopOrderList.vue

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

Loading…
Cancel
Save