diff --git a/components/birthday-modal.vue b/components/birthday-modal.vue index 0d8d86b..c46ada8 100644 --- a/components/birthday-modal.vue +++ b/components/birthday-modal.vue @@ -55,7 +55,7 @@ - + {{ item.couponInfo.title }} x{{ item.num }} @@ -507,6 +507,7 @@ function close() { outline: none; margin: 0; cursor: pointer; + white-space: nowrap; &:active { background: #f07080; // 点击深色反馈 } diff --git a/components/paymentMethod copy.vue b/components/paymentMethod copy.vue deleted file mode 100644 index 84e0447..0000000 --- a/components/paymentMethod copy.vue +++ /dev/null @@ -1,260 +0,0 @@ - - - - - \ No newline at end of file diff --git a/components/paymentMethod.vue b/components/paymentMethod.vue index 65a219b..2a26f9e 100644 --- a/components/paymentMethod.vue +++ b/components/paymentMethod.vue @@ -15,7 +15,7 @@ {{ item.name }} - 当前余额¥{{ orderVIP ? orderVIP.amount || 0 : 0 }} + 当前余额¥{{ shopUserInfo ? shopUserInfo.amount || 0 : 0 }} 去充值 @@ -66,6 +66,14 @@ const props = defineProps({ type: Array, default: () => [], }, + shopUserInfo:{ + type: Object, + default: () => { + return{ + amount:0 + } + }, + } }); // 工具函数 - 深拷贝对象(切断引用) @@ -77,15 +85,10 @@ function returnDisabled(item) { return props.disablePayType.includes(item.name); } -const orderVIP = ref(null); const emits = defineEmits(["customevent", "groupChange"]); -watchEffect(() => { - orderVIP.value = uni.cache.get("orderVIP"); -}); -const orderVIPfun = (data) => { - orderVIP.value = data; -}; + + // 支付方式列表(保持不变) const paymentMethodList = ref([ @@ -207,13 +210,12 @@ const goRecharge = () => { return; } uni.navigateTo({ - url: `/pages/user/member/czzx?shopId=${orderVIP.value?.shopId || ''}`, + url: `/pages/user/member/czzx?shopId=${props.shopUserInfo?.shopId || ''}`, }); }; defineExpose({ groupChanges, - orderVIPfun, }); diff --git a/distribution/income-details/index.vue b/distribution/income-details/index.vue index cebd4e1..8369648 100644 --- a/distribution/income-details/index.vue +++ b/distribution/income-details/index.vue @@ -50,8 +50,8 @@ style="align-items: baseline; justify-content: flex-end" > 总计: - - {{ centerUserInfo.totalIncome }} + {{ totalIncome }} @@ -113,6 +113,7 @@ {}); + onLoad(async (opt) => { await getCouponShopsAjax(); @@ -314,13 +316,24 @@ onLoad(async (opt) => { } if (opt.shopId) { querForm.value.shopId = opt.shopId; - const findItem = couponShops.value.find((item) => item.id == opt.shopId); + const findItem = shopList.value.find((item) => item.shopId == opt.shopId); querForm.value.shopName = findItem.shopName || ""; } centerUser(); getIncomeDetailsAjax(); }); +const totalIncome=computed(()=>{ + if(!querForm.value.shopId){ + return centerUserInfo.value?(centerUserInfo.value.totalIncome||0):0; + } + const findItem = shopList.value.find((item) => item.shopId == querForm.value.shopId ); + if(findItem){ + return findItem.income||0 + } + return 0 +}) + watch( () => querForm.value.status, (newVal, oldVal) => { diff --git a/pages/order/confirm-order-back.vue b/pages/order/confirm-order-back.vue deleted file mode 100644 index 50e940e..0000000 --- a/pages/order/confirm-order-back.vue +++ /dev/null @@ -1,1407 +0,0 @@ - - - - \ No newline at end of file diff --git a/pages/order/confirm-order.vue b/pages/order/confirm-order.vue index 813a544..1a41fe5 100644 --- a/pages/order/confirm-order.vue +++ b/pages/order/confirm-order.vue @@ -67,7 +67,7 @@ -