代客下单修改,登录页面修改,部分页面调整,请求封装调整

This commit is contained in:
2025-11-27 18:02:28 +08:00
parent f9cc02e93f
commit 3bb09ef0b1
45 changed files with 4934 additions and 1054 deletions

View File

@@ -455,9 +455,9 @@ function formatCoupon() {
async function getQuan() {
const orderRes = await orderApi.tbOrderInfoDetail(option.orderId);
if (orderRes.code == 200) {
order.value = orderRes.data;
Object.assign(limitTimeDiscount,orderRes.data.limitRate)
if (orderRes) {
order.value = orderRes
Object.assign(limitTimeDiscount,orderRes.limitRate)
}
console.log(order.value);
@@ -465,7 +465,7 @@ async function getQuan() {
const res = await $findCoupon({
shopUserId: option.shopUserId,
});
couponList.value = res.data || [];
couponList.value = res || [];
formatCoupon();
myQuan.hasAjax = true;
}
@@ -575,8 +575,8 @@ async function getShopUser() {
const res = await shopUserDetail({
id: option.shopUserId,
});
if (res.code == 200) {
shopUserInfo.value = res.data;
if (res) {
shopUserInfo.value = res;
}
}
onLoad(async (opt) => {