样式修改

This commit is contained in:
weiwei committed 2025-04-03 18:25:26 +08:00
1 parent de17c36177
commit b894e9d5d2
1 file changed
+18 -21
+18 -21
View File
@@ -9,26 +9,23 @@
</tm-sheet>
<tm-sheet v-if="walletList.length > 0" class="flex flex-col">
<view class="text-gray-700 font-bold text-sm mb-2">选择支付钱包:</view>
<tm-radio-group v-model="curWalletId" direction="column">
<tm-radio :value="v.id" v-for="(v, index) in walletList" :key="index">
<template v-slot:label="{ checked }">
<view
class="card relative border-4 border-solid border-#efefef flex justify-between items-center p-3"
:class="{ 'border-4 border-solid border-blue!': curWalletId == v.id }"
>
<view class="flex items-center">
<image class="w-70 h-70 mr-2" :src="filePath(v.walletTypeIcon)" />
<view class="main-text-32">{{ v.walletTypeName }}</view>
</view>
<view class="main-text-28 flex items-center">
<view>余额:{{ hooks.useMoney(v.balance) }}</view>
<text>元</text>
</view>
</view>
</template>
</tm-radio>
</tm-radio-group>
<view class="text-gray-700 font-bold text-sm mb-1">选择支付钱包:</view>
<view
v-for="(v, index) in walletList"
:key="index"
class="card relative border-4 border-solid my-1 duration-200 border-#efefef flex justify-between items-center p-3"
:class="{ 'border-4 border-solid border-blue!': curWalletId == v.id }"
@click="curWalletId = v.id"
>
<view class="flex items-center">
<image class="w-70 h-70 mr-2" :src="filePath(v.walletTypeIcon)" />
<view class="main-text-32">{{ v.walletTypeName }}</view>
</view>
<view class="main-text-28 flex items-center">
<view>余额:{{ hooks.useMoney(v.balance) }}</view>
<text>元</text>
</view>
</view>
</tm-sheet>
<tm-button class="mt-1" :block="true" @click="disabled ? '' : handlePay()" :disabled="disabled">支付</tm-button>
@@ -40,7 +37,7 @@
<script setup lang="ts">
import { ref, computed } from "vue"
import { onLoad, onShow } from "@dcloudio/uni-app"
import { onShow } from "@dcloudio/uni-app"
import { usePayStore } from "@/sheep/stores/pay"
import payApi from "@@/api/pay"
import { storePrice } from "@/sheep/utils/formatMoney"