【fix】优化代码

This commit is contained in:
黄少君
2024-02-22 18:37:23 +08:00
parent 17c043348a
commit f8fac0a5bc
246 changed files with 973 additions and 406 deletions

View File

@ -15,7 +15,7 @@ import { doPayment, PayType } from "@/utils/paymentUtils";
import { orderInfo as orderInfoRequest } from "@/api/order";
import { useInterface } from "@/hooks/useInterface";
import { useRouter } from "@/hooks/useRouter";
import {useMainStore} from "@/store/store";
import { useMainStore } from "@/store/modules/useMainStore";
const {toast} = useInterface()
const {push} = useRouter()
@ -54,7 +54,7 @@ const subLoading = ref(false)
async function handleSubmit() {
try {
subLoading.value = true
await doPayment({type: payType.value, payInfo: orderInfo.value,isGroup:orderInfo.value.campaignType===1})
await doPayment({type: payType.value, payInfo: orderInfo.value, isGroup: orderInfo.value.campaignType === 1})
subLoading.value = false
emits('confirm')
close()
@ -97,10 +97,14 @@ async function handleSubmit() {
:src="pay.icon"
/>
<view class="info">
<view class="label flex flex-nowrap flex-ai__end" style="white-space: nowrap">
<view
class="label flex flex-nowrap flex-ai__end"
style="white-space: nowrap">
{{ pay.label }}
<span v-if="pay.type===PayType['1']" style="font-size: 16rpx;white-space: nowrap;">
{{mainStore.user.nowMoney}}
<span
v-if="pay.type===PayType['1']"
style="font-size: 16rpx;white-space: nowrap;">
{{ mainStore.user.nowMoney }}
</span>
</view>
<view>