tianyi 1 month ago
parent
commit
8ad2c422c3
  1. 24
      package1/address/addressList.vue
  2. 6
      package1/buyFood/buyFood.vue
  3. 6
      package1/group/groupBuyList.vue
  4. 12
      package1/group/groupBuySingle.vue
  5. 5
      package1/group/searchGroup.vue
  6. 4
      package1/group/shopEvaluate.vue
  7. 10
      package1/myCenter/addGoods.vue
  8. 8
      package1/myCenter/addType.vue
  9. 2
      package1/myCenter/dataStatistics.vue
  10. 24
      package1/myCenter/goodsList.vue
  11. 4
      package1/myCenter/partTimeJobRegister.vue
  12. 2
      package1/order/orderDetail.vue
  13. 6
      package1/order/returnOrder.vue

24
package1/address/addressList.vue

@ -189,27 +189,27 @@
this.addressForm.areaId = match.id; this.addressForm.areaId = match.id;
this.addressForm.areaName = match.title; this.addressForm.areaName = match.title;
} else { } else {
return this.tui.toast('请搜索并选择有效的楼座'); return this.tui.toast('请搜索并选择有效的楼座',1000);
} }
} }
if(!this.addressForm.areaId) return this.tui.toast('请搜索并选择楼座'); if(!this.addressForm.areaId) return this.tui.toast('请搜索并选择楼座',1000);
if(!this.addressForm.floor) return this.tui.toast('请填写所在楼层'); if(!this.addressForm.floor) return this.tui.toast('请填写所在楼层',1000);
if(!/^-?\d+$/.test(this.addressForm.floor)) return this.tui.toast('楼层必须为整数'); if(!/^-?\d+$/.test(this.addressForm.floor)) return this.tui.toast('楼层必须为整数',1000);
if(!this.addressForm.roomNum) return this.tui.toast('请填写详细地址门牌号'); if(!this.addressForm.roomNum) return this.tui.toast('请填写详细地址门牌号',1000);
if(!this.addressForm.receiverName) return this.tui.toast('请填写收件人'); if(!this.addressForm.receiverName) return this.tui.toast('请填写收件人',1000);
if(!this.addressForm.receiverPhone) return this.tui.toast('请填写联系电话'); if(!this.addressForm.receiverPhone) return this.tui.toast('请填写联系电话',1000);
if(!/^1[3-9]\d{9}$/.test(this.addressForm.receiverPhone)) return this.tui.toast('请输入有效的11位手机号码'); if(!/^1[3-9]\d{9}$/.test(this.addressForm.receiverPhone)) return this.tui.toast('请输入有效的11位手机号码',1000);
let url = this.addressForm.id ? "/app/userAddress/edit" : "/app/userAddress/save"; let url = this.addressForm.id ? "/app/userAddress/edit" : "/app/userAddress/save";
let that = this; let that = this;
this.addressForm.userId = uni.getStorageSync('id') this.addressForm.userId = uni.getStorageSync('id')
that.tui.request(url, "POST", this.addressForm, false, true).then((res) => { that.tui.request(url, "POST", this.addressForm, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
that.tui.toast("保存成功"); that.tui.toast("保存成功",1000);
that.$refs.addBookPopup.close(); that.$refs.addBookPopup.close();
that.getAddressList(); that.getAddressList();
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
} }
}).catch(() => {}); }).catch(() => {});
}, },
@ -222,10 +222,10 @@
if (res.confirm) { if (res.confirm) {
that.tui.request("/app/userAddress/delById", "POST", {id: id}, false, true).then((res) => { that.tui.request("/app/userAddress/delById", "POST", {id: id}, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
that.tui.toast("删除成功"); that.tui.toast("删除成功",1000);
that.getAddressList(); that.getAddressList();
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
} }
}).catch(() => {}); }).catch(() => {});
} }

6
package1/buyFood/buyFood.vue

@ -752,7 +752,7 @@
wxPayment() { wxPayment() {
let that = this; let that = this;
if (!this.currentOrderId || !this.backendTotalAmount) { if (!this.currentOrderId || !this.backendTotalAmount) {
that.tui.toast(this.currentOrderId + this.backendTotalAmount); that.tui.toast(this.currentOrderId + this.backendTotalAmount,1000);
return; return;
} }
@ -807,10 +807,10 @@
that.handlePaymentSuccess(); that.handlePaymentSuccess();
}, 1500); }, 1500);
}).catch(e => { }).catch(e => {
that.tui.toast("请求失败"); that.tui.toast("请求失败",1000);
}); });
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
} }
} }
}) })

6
package1/group/groupBuyList.vue

@ -340,7 +340,7 @@
} }
} }
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
}).catch((res) => {}) }).catch((res) => {})
@ -358,7 +358,7 @@
} }
} }
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
}).catch((res) => {}) }).catch((res) => {})
@ -410,7 +410,7 @@
that.isArea = false that.isArea = false
that.$forceUpdate() that.$forceUpdate()
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
uni.hideLoading() uni.hideLoading()

12
package1/group/groupBuySingle.vue

@ -657,7 +657,7 @@
if (res.code == 200) { if (res.code == 200) {
this.tuanzhangOrder = res.result; this.tuanzhangOrder = res.result;
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
uni.hideLoading() uni.hideLoading()
@ -817,7 +817,7 @@
that.pageNum = that.searchForm.pageNum; that.pageNum = that.searchForm.pageNum;
that.$forceUpdate(); that.$forceUpdate();
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
return; return;
} }
uni.hideLoading(); uni.hideLoading();
@ -837,7 +837,7 @@
} }
that.$forceUpdate() that.$forceUpdate()
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
uni.hideLoading() uni.hideLoading()
@ -991,7 +991,7 @@
that.$forceUpdate(); that.$forceUpdate();
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
return; return;
} }
uni.hideLoading(); uni.hideLoading();
@ -1470,7 +1470,7 @@
}); });
}, },
fail: function(err) { fail: function(err) {
that.tui.toast("支付失败或取消"); that.tui.toast("支付失败或取消",1000);
} }
}); });
} else { } else {
@ -1484,7 +1484,7 @@
setTimeout(() => { that.$refs.joinSuccessPopup.open('bottom'); }, 1500); setTimeout(() => { that.$refs.joinSuccessPopup.open('bottom'); }, 1500);
}); });
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
} }
} }
}) })

5
package1/group/searchGroup.vue

@ -68,7 +68,6 @@
<view style="padding-top: 4rpx;"> <view style="padding-top: 4rpx;">
<uni-rate :disabled="true" size="16" disabledColor="rgba(255, 184, 84, 1)" :value="item.shopScore" /> <uni-rate :disabled="true" size="16" disabledColor="rgba(255, 184, 84, 1)" :value="item.shopScore" />
</view> </view>
<uni-rate :disabled="true" size="16" disabledColor="rgba(255, 184, 84, 1)" :value="item.shopScore" />
</view> </view>
<view class="shop-tag"> <view class="shop-tag">
<text style="padding: 4rpx 10rpx;background: rgba(223, 255, 176, 1);color: #777;border-radius: 6rpx;"> <text style="padding: 4rpx 10rpx;background: rgba(223, 255, 176, 1);color: #777;border-radius: 6rpx;">
@ -261,7 +260,7 @@
console.log(that.shopArea) console.log(that.shopArea)
} }
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
}).catch((res) => {}) }).catch((res) => {})
@ -295,7 +294,7 @@
that.isArea = false that.isArea = false
that.$forceUpdate() that.$forceUpdate()
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
uni.hideLoading() uni.hideLoading()

4
package1/group/shopEvaluate.vue

@ -222,7 +222,7 @@
that.menuList[0].num = res.result.total that.menuList[0].num = res.result.total
} }
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
uni.hideLoading() uni.hideLoading()
@ -252,7 +252,7 @@
this.back() this.back()
}, 1000) }, 1000)
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
} }
uni.hideLoading(); uni.hideLoading();
}).catch((res) => {}); }).catch((res) => {});

10
package1/myCenter/addGoods.vue

@ -211,7 +211,7 @@
}, },
fail() { fail() {
this.tui.toast("您未授权,图片上传功能可能会出现错误") this.tui.toast("您未授权,图片上传功能可能会出现错误",1000)
} }
}) })
this.typeItem = JSON.parse(JSON.stringify(this.typeItem)) || '' this.typeItem = JSON.parse(JSON.stringify(this.typeItem)) || ''
@ -250,7 +250,7 @@
this.formData.categoryId = res.result.categoryId this.formData.categoryId = res.result.categoryId
this.edit(this.formData) this.edit(this.formData)
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
} }
@ -366,7 +366,7 @@
} }
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
@ -388,7 +388,7 @@
this.tui.request("/app/product/save", "post", this.formData, false, false).then((res) => { this.tui.request("/app/product/save", "post", this.formData, false, false).then((res) => {
if(res.code == 200){ if(res.code == 200){
that.tui.toast("操作成功"); that.tui.toast("操作成功",1000);
uni.navigateBack() uni.navigateBack()
} }
}).catch(() => {}); }).catch(() => {});
@ -400,7 +400,7 @@
this.formData.productPictures = [] this.formData.productPictures = []
this.tui.request("/app/product/edit", "post", this.formData, false, false).then((res) => { this.tui.request("/app/product/edit", "post", this.formData, false, false).then((res) => {
if(res.code == 200){ if(res.code == 200){
that.tui.toast("操作成功"); that.tui.toast("操作成功",1000);
uni.navigateBack() uni.navigateBack()
} }
}).catch(() => {}); }).catch(() => {});

8
package1/myCenter/addType.vue

@ -107,7 +107,7 @@
if (res.code == 200) { if (res.code == 200) {
this.indexList = res.result; this.indexList = res.result;
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch(() => {}); }).catch(() => {});
}, },
@ -151,7 +151,7 @@
} }
} }
if(that.typeText == ''){ if(that.typeText == ''){
that.tui.toast("请输入分类名") that.tui.toast("请输入分类名",1000)
return return
} }
this.tui.request("/app/productCategory/save", "POST",{ this.tui.request("/app/productCategory/save", "POST",{
@ -161,13 +161,13 @@
shopId:uni.getStorageSync('shopId') shopId:uni.getStorageSync('shopId')
}, false, true).then((res) => { }, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
that.tui.toast("添加成功") that.tui.toast("添加成功",1000)
that.$refs.addTypeDialog.close() that.$refs.addTypeDialog.close()
that.sortText = '' that.sortText = ''
that.getGategoryList() that.getGategoryList()
} else { } else {
that.tui.toast("添加失败") that.tui.toast("添加失败",1000)
} }
}).catch(() => {}); }).catch(() => {});

2
package1/myCenter/dataStatistics.vue

@ -146,7 +146,7 @@
if (res.code == 200) { if (res.code == 200) {
this.shopInfo = res.result this.shopInfo = res.result
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}) })

24
package1/myCenter/goodsList.vue

@ -213,9 +213,9 @@
}else{ }else{
this.shopList1[index].isPush = value this.shopList1[index].isPush = value
} }
this.tui.toast('设置成功') this.tui.toast('设置成功',1000)
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
@ -231,9 +231,9 @@
}, false, true).then((res) => { }, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
that.getShareList() that.getShareList()
that.tui.toast('删除成功') that.tui.toast('删除成功',1000)
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
} }
@ -251,9 +251,9 @@
}else{ }else{
this.shopList1[index].isMust = value this.shopList1[index].isMust = value
} }
this.tui.toast('设置成功') this.tui.toast('设置成功',1000)
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
@ -268,9 +268,9 @@
}else{ }else{
this.shopList1[index].delFlag = value this.shopList1[index].delFlag = value
} }
this.tui.toast('设置成功') this.tui.toast('设置成功',1000)
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
}else{ }else{
@ -283,9 +283,9 @@
}else{ }else{
this.shopList1[index].delFlag = value this.shopList1[index].delFlag = value
} }
this.tui.toast('设置成功') this.tui.toast('设置成功',1000)
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
} }
@ -351,7 +351,7 @@
this.pages = res.result.pages this.pages = res.result.pages
} }
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
@ -388,7 +388,7 @@
this.categoryId = this.indexList[0].id this.categoryId = this.indexList[0].id
this.getShareList(); this.getShareList();
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}).catch((res) => {}) }).catch((res) => {})
}, },

4
package1/myCenter/partTimeJobRegister.vue

@ -267,7 +267,7 @@
that.$forceUpdate(); that.$forceUpdate();
} }
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
}).catch((res) => {}) }).catch((res) => {})
@ -282,7 +282,7 @@
} }
} }
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
}).catch((res) => {}) }).catch((res) => {})

2
package1/order/orderDetail.vue

@ -954,7 +954,7 @@
this.$forceUpdate(); this.$forceUpdate();
}, },
returnProducts(item){ returnProducts(item){
uni.navigateTo({ uni.redirectTo({
url: '/package1/order/returnOrder?order=' + encodeURIComponent(JSON.stringify(item)) url: '/package1/order/returnOrder?order=' + encodeURIComponent(JSON.stringify(item))
}); });
}, },

6
package1/order/returnOrder.vue

@ -228,7 +228,7 @@
只退商品 只退商品
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.deliveryType == 1">
<radio :checked="sellTime==1" name="sellTime" @click="checkSellTime(1)" /> <radio :checked="sellTime==1" name="sellTime" @click="checkSellTime(1)" />
退配送费 退配送费
@ -238,12 +238,12 @@
全额退款商家原因 全额退款商家原因
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.deliveryType == 1">
<radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" /> <radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" />
全额退款配送员原因 全额退款配送员原因
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.deliveryType == 1">
<radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" /> <radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" />
全额退款商家+配送员原因 全额退款商家+配送员原因

Loading…
Cancel
Save