售后问题修改

This commit is contained in:
taozi
2023-04-05 19:32:10 +08:00
parent 6f5728573f
commit 692e4b810b
2 changed files with 32 additions and 14 deletions

View File

@ -42,7 +42,7 @@ export default {
expressQuery: {
code: '', // 快递公司编码
name: '', // 快递公司名称
postalCode: 'SF1213132132', // 快递编号
postalCode: '', // 快递编号
orderCode: '', // 订单编号
},
expressList: [],
@ -77,17 +77,21 @@ export default {
async addExpress() {
let errMsg = '请选择'
if (!this.expressQuery.code || !this.expressQuery.code) {
errMsg += ' 快递公司 '
errMsg += '快递公司 '
uni.showToast({
title: errMsg,
icon: 'none',
duration: 2000,
})
return
}
if (!this.expressQuery.postalCode) {
errMsg += ' 快递单号 '
}
if (errMsg.length > 3) {
uni.showToast({
title: errMsg,
icon: 'none',
duration: 2000,
})
uni.showToast({
title: '请填写快递单号',
icon: 'none',
duration: 2000,
})
return
}
addExpressData(this.expressQuery)
.then(res => {