提交订单提示信息修改

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,13 +111,7 @@ const request = (method, url, options) => {
success: res => { success: res => {
console.log(`${url}返的结果===>`,res); console.log(`${url}返的结果===>`,res);
if (res.statusCode == 200) { if (res.statusCode == 200) {
if (res.data.code == 0) { resolve(res.data);
// 接口调用成功
resolve(res.data);
} else {
// 接口返回错误信息
checkError(res);
}
} else { } else {
// 接口返回错误信息 // 接口返回错误信息
checkError(res); checkError(res);

View File

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