65 lines
2.1 KiB
Vue
65 lines
2.1 KiB
Vue
<template>
|
|
<view class="w-full h-full">
|
|
<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="text-90 c-#333333!">¥{{ scanPayData.payPrice }}</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">{{ scanPayData.mchName }}</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="p-40rpx fixed bottom-30rpx left-0 right-0 font-bold">
|
|
<tm-button :block="true" @click="goBack">完成</tm-button>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from "vue"
|
|
import { onShow } from "@dcloudio/uni-app"
|
|
import { usePayStore } from "@/sheep/stores/pay"
|
|
|
|
const scanPayData = ref<any>({})
|
|
|
|
onShow(() => {
|
|
if (!usePayStore().scanPayData.mchId) return uni.showToast({ title: "支付信息不存在", icon: "none" })
|
|
scanPayData.value = usePayStore().scanPayData
|
|
})
|
|
|
|
const goBack = () => {
|
|
const url: string = window.location.href.split("h5")[0] + "h5/?launchParam=coopMerchant#/pages/tabbar/order"
|
|
window.location.replace(url)
|
|
}
|
|
</script>
|