提交订单提示信息修改

static-project
chen 2022-06-07 11:09:43 +08:00
parent cc9bd441d8
commit 6b83051dfe
2 changed files with 4 additions and 8 deletions

View File

@ -111,17 +111,11 @@ const request = (method, url, options) => {
success: res => {
console.log(`${url}返的结果===>`,res);
if (res.statusCode == 200) {
if (res.data.code == 0) {
// 接口调用成功
resolve(res.data);
} else {
// 接口返回错误信息
checkError(res);
}
} else {
// 接口返回错误信息
checkError(res);
}
},
fail: e => {
// 接口请求错误

View File

@ -55,6 +55,7 @@
//
submit(){
if(this.checkEmpty() && this.flag){
console.log(121231222)
this.flag = false;
let params = {
sku_list: uni.getStorageSync('buyList'),
@ -69,8 +70,9 @@
uni.reLaunch({
url:`/pagesB/finish/finish?id=${res.data.id}`
})
} else {
}else{
this.$toolAll.tools.showToast(res.msg);
this.flag = true;
}
})
}