forked from angelo/web-retail-h5
fix(api): rm cart api
This commit is contained in:
parent
d90402bc38
commit
6d925b04ae
|
@ -381,28 +381,33 @@ export default {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
api
|
this.tableData = response.data;
|
||||||
.energyShop({
|
this.tableData.forEach((item) => {
|
||||||
specialArea: this.goodsCheck[0].specialArea,
|
this.$set(item, "quantity", 1);
|
||||||
deleteList: deleteList,
|
});
|
||||||
})
|
this.dialogVisible2 = true;
|
||||||
.then((response) => {
|
// api
|
||||||
if (response.data && response.data.length > 0) {
|
// .energyShop({
|
||||||
this.tableData = response.data;
|
// specialArea: this.goodsCheck[0].specialArea,
|
||||||
this.tableData.forEach((item) => {
|
// deleteList: deleteList,
|
||||||
this.$set(item, "quantity", 1);
|
// })
|
||||||
});
|
// .then((response) => {
|
||||||
this.dialogVisible2 = true;
|
// if (response.data && response.data.length > 0) {
|
||||||
} else {
|
// this.tableData = response.data;
|
||||||
uni.navigateTo({
|
// this.tableData.forEach((item) => {
|
||||||
url:
|
// this.$set(item, "quantity", 1);
|
||||||
"/pages/regiest/index?specialArea=" +
|
// });
|
||||||
this.goodsCheck[0].specialArea +
|
// this.dialogVisible2 = true;
|
||||||
"&shoppArr=" +
|
// } else {
|
||||||
JSON.stringify(shoppArr),
|
// uni.navigateTo({
|
||||||
});
|
// url:
|
||||||
}
|
// "/pages/regiest/index?specialArea=" +
|
||||||
});
|
// this.goodsCheck[0].specialArea +
|
||||||
|
// "&shoppArr=" +
|
||||||
|
// JSON.stringify(shoppArr),
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.goodsCheck[0].specialArea == 21) {
|
} else if (this.goodsCheck[0].specialArea == 21) {
|
||||||
|
@ -475,28 +480,33 @@ export default {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
api
|
this.tableData = response.data;
|
||||||
.energyShop({
|
this.tableData.forEach((item) => {
|
||||||
specialArea: this.goodsCheck[0].specialArea,
|
this.$set(item, "quantity", 1);
|
||||||
deleteList: deleteList,
|
});
|
||||||
})
|
this.dialogVisible2 = true;
|
||||||
.then((response) => {
|
// api
|
||||||
if (response.data && response.data.length > 0) {
|
// .energyShop({
|
||||||
this.tableData = response.data;
|
// specialArea: this.goodsCheck[0].specialArea,
|
||||||
this.tableData.forEach((item) => {
|
// deleteList: deleteList,
|
||||||
this.$set(item, "quantity", 1);
|
// })
|
||||||
});
|
// .then((response) => {
|
||||||
this.dialogVisible2 = true;
|
// if (response.data && response.data.length > 0) {
|
||||||
} else {
|
// this.tableData = response.data;
|
||||||
uni.navigateTo({
|
// this.tableData.forEach((item) => {
|
||||||
url:
|
// this.$set(item, "quantity", 1);
|
||||||
"/pages/other/index?specialArea=" +
|
// });
|
||||||
this.goodsCheck[0].specialArea +
|
// this.dialogVisible2 = true;
|
||||||
"&shoppArr=" +
|
// } else {
|
||||||
JSON.stringify(shoppArr),
|
// uni.navigateTo({
|
||||||
});
|
// url:
|
||||||
}
|
// "/pages/other/index?specialArea=" +
|
||||||
});
|
// this.goodsCheck[0].specialArea +
|
||||||
|
// "&shoppArr=" +
|
||||||
|
// JSON.stringify(shoppArr),
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.goodsCheck[0].specialArea == 30) {
|
} else if (this.goodsCheck[0].specialArea == 30) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ module.exports = (vm) => {
|
||||||
// 初始化请求配置
|
// 初始化请求配置
|
||||||
uni.$u.http.setConfig((config) => {
|
uni.$u.http.setConfig((config) => {
|
||||||
// config.baseURL = 'https://p1.hzs413.com/inter-api';
|
// config.baseURL = 'https://p1.hzs413.com/inter-api';
|
||||||
config.baseURL = 'http://60.205.203.247/prod-api';
|
config.baseURL = 'http://192.168.0.100:8080';
|
||||||
config.timeout = 30000;
|
config.timeout = 30000;
|
||||||
return config
|
return config
|
||||||
})
|
})
|
||||||
|
|
|
@ -354,28 +354,33 @@ export default {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
api
|
this.tableData = response.data;
|
||||||
.energyShop({
|
this.tableData.forEach((item) => {
|
||||||
specialArea: this.goodsCheck[0].specialArea,
|
this.$set(item, "quantity", 1);
|
||||||
deleteList: deleteList,
|
});
|
||||||
})
|
this.dialogVisible2 = true;
|
||||||
.then((response) => {
|
// api
|
||||||
if (response.data && response.data.length > 0) {
|
// .energyShop({
|
||||||
this.tableData = response.data;
|
// specialArea: this.goodsCheck[0].specialArea,
|
||||||
this.tableData.forEach((item) => {
|
// deleteList: deleteList,
|
||||||
this.$set(item, "quantity", 1);
|
// })
|
||||||
});
|
// .then((response) => {
|
||||||
this.dialogVisible2 = true;
|
// if (response.data && response.data.length > 0) {
|
||||||
} else {
|
// this.tableData = response.data;
|
||||||
uni.navigateTo({
|
// this.tableData.forEach((item) => {
|
||||||
url:
|
// this.$set(item, "quantity", 1);
|
||||||
"/pages/regiest/index?specialArea=" +
|
// });
|
||||||
this.goodsCheck[0].specialArea +
|
// this.dialogVisible2 = true;
|
||||||
"&shoppArr=" +
|
// } else {
|
||||||
JSON.stringify(shoppArr),
|
// uni.navigateTo({
|
||||||
});
|
// url:
|
||||||
}
|
// "/pages/regiest/index?specialArea=" +
|
||||||
});
|
// this.goodsCheck[0].specialArea +
|
||||||
|
// "&shoppArr=" +
|
||||||
|
// JSON.stringify(shoppArr),
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.goodsCheck[0].specialArea == 21) {
|
} else if (this.goodsCheck[0].specialArea == 21) {
|
||||||
|
@ -416,28 +421,33 @@ export default {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
api
|
this.tableData = response.data;
|
||||||
.energyShop({
|
this.tableData.forEach((item) => {
|
||||||
specialArea: this.goodsCheck[0].specialArea,
|
this.$set(item, "quantity", 1);
|
||||||
deleteList: deleteList,
|
});
|
||||||
})
|
this.dialogVisible2 = true;
|
||||||
.then((response) => {
|
// api
|
||||||
if (response.data && response.data.length > 0) {
|
// .energyShop({
|
||||||
this.tableData = response.data;
|
// specialArea: this.goodsCheck[0].specialArea,
|
||||||
this.tableData.forEach((item) => {
|
// deleteList: deleteList,
|
||||||
this.$set(item, "quantity", 1);
|
// })
|
||||||
});
|
// .then((response) => {
|
||||||
this.dialogVisible2 = true;
|
// if (response.data && response.data.length > 0) {
|
||||||
} else {
|
// this.tableData = response.data;
|
||||||
uni.navigateTo({
|
// this.tableData.forEach((item) => {
|
||||||
url:
|
// this.$set(item, "quantity", 1);
|
||||||
"/pages/other/index?specialArea=" +
|
// });
|
||||||
this.goodsCheck[0].specialArea +
|
// this.dialogVisible2 = true;
|
||||||
"&shoppArr=" +
|
// } else {
|
||||||
JSON.stringify(shoppArr),
|
// uni.navigateTo({
|
||||||
});
|
// url:
|
||||||
}
|
// "/pages/other/index?specialArea=" +
|
||||||
});
|
// this.goodsCheck[0].specialArea +
|
||||||
|
// "&shoppArr=" +
|
||||||
|
// JSON.stringify(shoppArr),
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.goodsCheck[0].specialArea == 30) {
|
} else if (this.goodsCheck[0].specialArea == 30) {
|
||||||
|
|
Loading…
Reference in New Issue