This commit is contained in:
weiwei committed 2025-03-26 16:55:39 +08:00
1 parent 56bf1d15a5
commit d60ff2fbcc
3 files changed
+39 -45

No files matched your search

+36 -42
View File
@@ -1,52 +1,46 @@
<template>
<view class="w-full h-full">
<view class="w-full h-55% bg-#1677FF border-b-10rpx">
<view class="flex-col-center p-30rpx">
<view class="sub-text-36 font-bold fixed top-30rpx right-60rpx c-white!" @click="goBack">完成</view>
<view class="flex-col-center m-y-50rpx">
<svg
t="1742975132669"
class="icon"
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
p-id="2952"
data-spm-anchor-id="a313x.search_index.0.i7.beb13a813i4xbT"
width="64"
height="64"
>
<path
d="M512.187255 0.000125a511.313108 511.313108 0 1 0 511.999937 511.313108A511.625303 511.625303 0 0 0 512.187255 0.000125z m277.041917 360.897517l-343.414592 342.91508a29.283899 29.283899 0 0 1-42.208776 0l-168.585345-168.585345A29.783411 29.783411 0 0 1 277.104356 493.268357l147.668275 147.418519 322.247766-321.748253a29.783411 29.783411 0 1 1 42.146336 42.083897z"
fill="#ffffff"
p-id="2953"
data-spm-anchor-id="a313x.search_index.0.i4.beb13a813i4xbT"
class=""
></path>
</svg>
<text class="sub-text-36 c-white! mt-1">支付成功</text>
</view>
<view class="flex-col-center p-30rpx">
<view class="flex-col-center m-y-50rpx">
<svg
t="1742978804614"
class="icon"
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
p-id="1708"
width="64"
height="64"
>
<path
d="M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0z m288 371.2L460.8 710.4c-6.4 6.4-19.2 12.8-25.6 12.8-12.8 0-19.2-6.4-25.6-12.8L224 531.2c-12.8-12.8-12.8-38.4 0-57.6 12.8-12.8 38.4-12.8 57.6 0l147.2 147.2L736 313.6c12.8-12.8 38.4-12.8 57.6 0 19.2 19.2 19.2 44.8 6.4 57.6z"
fill="#2BCDA3"
p-id="1709"
data-spm-anchor-id="a313x.search_index.0.i2.beb13a81SVstw0"
class="selected"
></path>
</svg>
<text class="text-36 mt-3 font-bold c-#333333!">支付成功</text>
</view>
<view class="flex-col-center m-b-60rpx">
<text class="main-text-90 color-white!">¥{{ payData.customPrice }}</text>
</view>
<view class="flex-col-center m-b-60rpx">
<text class="text-90 c-#333333!">¥{{ payData.customPrice }}</text>
</view>
<view class="w-full bg-#f7f7f7 rounded-20rpx p-10rpx flex-col justify-center">
<view class="flex-row justify-between m-15rpx">
<text class="sub-text-30">商家</text>
<text class="sub-text-30">{{ payData.name }}</text>
</view>
<hr />
<view class="flex-row justify-between m-15rpx">
<text class="sub-text-30">支付方式</text>
<text class="sub-text-30">扫一扫</text>
</view>
<view class="w-full p-10rpx flex-col justify-center">
<view class="flex-row justify-between m-15rpx">
<text class="sub-text-30 c-#333333!">商家</text>
<text class="sub-text-30">{{ payData.name }}</text>
</view>
<hr />
<view class="flex-row justify-between m-15rpx">
<text class="sub-text-30 c-#333333!">支付方式</text>
<text class="sub-text-30">扫一扫</text>
</view>
</view>
</view>
<view class="w-full h-half bg-#e6e6e655">
<view class="p-30rpx fixed bottom-30rpx left-0 right-0 font-bold">
<tm-button :block="true" @click="goBack">完成</tm-button>
</view>
<view class="p-40rpx fixed bottom-30rpx left-0 right-0 font-bold">
<tm-button :block="true" @click="goBack">完成</tm-button>
</view>
</view>
</template>
+1 -1
View File
@@ -179,7 +179,7 @@ const doScanCode = async () => {
let decodedString: string | undefined = ""
if (isDevEnv()) {
decodedString = decodeBase64("eyJpZCI6IjE5MDQ3MDUzMDEwNTQ2NzY5OTMiLCJuYW1lIjoi5paw5Y6/5bqc6LaF5biCIn0=")
uni.showToast({ title: "开发环境不是浙政钉环境,扫码仅供测试", icon: "none" })
uni.showToast({ title: "开发环境不是浙政钉环境,扫码仅供测试,收款商家为新县府超市", icon: "none" })
} else {
const res: any = await (window as any).dd.scan({ type: "all" })
decodedString = decodeBase64(res.text)
+2 -2
View File
@@ -61,7 +61,7 @@ const checkAndRefreshToken = async (tokenStorage: any) => {
if (!accessToken) return
const expiresDate = new Date(accessToken.expiresAt).getTime()
console.log("现在的时间大于过期时间吗:", new Date().getTime() >= expiresDate)
// console.log("现在的时间大于过期时间吗:", new Date().getTime() >= expiresDate)
if (new Date().getTime() >= expiresDate) {
// try {
@@ -193,7 +193,7 @@ const handleErrorResponse = (response: any) => {
setTimeout(() => {
uni.removeStorageSync(TOKEN_KEY)
uni.removeStorageSync(USER_INFO_KEY)
console.log("未授权")
// console.log("未授权")
}, 500)
break
case 424: