售后问题修改
This commit is contained in:
@ -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 => {
|
||||
|
Reference in New Issue
Block a user