[update] 物流信息查询改为后端查,之前是直接跳快递100

This commit is contained in:
lideqin
2023-04-25 18:56:34 +08:00
parent 0eb9f7b0e5
commit 71106e081e
22 changed files with 530 additions and 8 deletions
@@ -419,7 +419,14 @@ export default {
// this.model.sendMethod 1是ems 2是顺丰
// https://www.kuaidi100.com/chaxun?com=[]&nu=[]
const com = Number(this.model.sendMethod) === 1 && 'ems' || 'shunfeng'
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${this.model.postNo}`)
// window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${this.model.postNo}`)
let url = ''
if (com === 'shunfeng' && this.model.mobile) {
url = `${window._CONFIG['lookExpressDomainURL']}?com=${ com }&nu=${ this.model.postNo }&phone=${ this.model.mobile }`
} else {
url = `${window._CONFIG['lookExpressDomainURL']}?com=${ com }&nu=${ this.model.postNo }`
}
window.open(url, '_blank')
}
}