bug修复

This commit is contained in:
2024-04-18 00:37:43 +08:00
parent b87c8e8292
commit 6c4c2ac85d
16 changed files with 110 additions and 32 deletions

View File

@@ -19,7 +19,7 @@
<image :src='assetsUrl("ic_decline.png")' />
<text>直降¥{{ (item.price - item.payPrice).toFixed(2) }}</text>
</view>
<text>{{ tabIndex == 0 ? '即将恢复' : '即将开始'}}</text>
<text>{{ tabIndex == 0 ? '即将恢复' : '即将开始' }}</text>
</view>
<view class='bottom-price c-flex-row' :class='{"bottom-price-disabled":tabIndex==1}'>
<text>{{ item.payPrice }}</text>
@@ -62,7 +62,7 @@ const fetchData = async (refresh: boolean = true) => {
pageNum: currentPageNum.value,
pageSize: 100,
obj: {
status: tabIndex.value
timeStatus: tabIndex.value + 1
}
});
groupbuyList.value = list;

View File

@@ -65,7 +65,7 @@ const buildSqbParams = computed(() => {
const params = sortASCII({
client_sn: orderBean.value?.id || '',
return_url: '/pages/common/payresult/index',
total_amount: ((orderBean.value?.totalPrice || 0) * 100).toString(),
total_amount: Number(((orderBean.value?.totalPrice || 0) * 100).toFixed(2)),
terminal_sn: terminalInfo.value.terminalSn,
subject: '商品团购券',
subject_img: orderBean?.value?.orderGoods[0].images || '',

View File

@@ -1,12 +1,12 @@
<template>
<web-view class="h-full" :src="url" />
<web-view class='h-full' :src='url' />
</template>
<script setup lang="ts">
<script setup lang='ts'>
const url = ref<string>('');
onLoad((params: any) => {
if (params.url)
url.value = params.url;
if(params.url)
url.value = decodeURIComponent(params.url);
});
</script>