|
|
@@ -200,6 +200,16 @@ export default {
|
|
|
this.createOrderFn()
|
|
|
},
|
|
|
createOrderFn() {
|
|
|
+ let hdId = this.option.hdId?this.option.hdId:0
|
|
|
+ let account = this.option.account?this.option.account:0
|
|
|
+
|
|
|
+ if(Number(hdId)<=0 || Number(account)<=0){
|
|
|
+ this.$util.confirmModal({content:'网络异常,请重新提交'},() => {
|
|
|
+ uni.reLaunch({url:'/pages/home/recent'})
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
let form = {}
|
|
|
if (this.form.sendType == 2) {
|
|
|
if(this.form.hasMap == 0 || this.openIntraCity == 2) {
|
|
|
@@ -229,9 +239,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
uni.showLoading({mask:true})
|
|
|
- let hdId = this.option.hdId?this.option.hdId:0
|
|
|
- let account = this.option.account?this.option.account:0
|
|
|
-
|
|
|
const params = {
|
|
|
...form,
|
|
|
...this.form,
|