consumer模块完成度95%,安卓端大部分页面能正常获取数据,页面样式显示基本正常,逐渐完善;消费者端的积分、余额、评价、优惠券等小模块正在完善

This commit is contained in:
cyh666666
2026-03-03 17:02:53 +08:00
parent 7e74b88e1e
commit cceb556c62
15 changed files with 4975 additions and 612 deletions

View File

@@ -22,6 +22,7 @@
<script setup lang="uts">
import { ref, onMounted } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { supabaseService } from '@/utils/supabaseService.uts'
const orderId = ref('')
@@ -56,12 +57,8 @@ const loadOrderInfo = async () => {
}
}
onMounted(() => {
const pages = getCurrentPages()
const currentPage = pages[pages.length - 1]
const options = currentPage.options as Record<string, any>
console.log('[payment-success] options:', JSON.stringify(options))
onLoad((options) => {
if (options == null) return
const orderIdValue = options['orderId']
if (orderIdValue != null) {
@@ -87,6 +84,10 @@ onMounted(() => {
}
})
onMounted(() => {
// 逻辑已移到 onLoad
})
const viewOrder = () => {
uni.navigateTo({
url: '/pages/mall/consumer/orders'
@@ -182,9 +183,6 @@ const goHome = () => {
border-radius: 22.5px;
font-size: 16px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 15px;
}