代客下单修改,登录页面修改,部分页面调整,请求封装调整
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user