|
|
@ -20,7 +20,7 @@ |
|
|
|
</view> |
|
|
|
<view class="sc-total">¥{{paySuccessInfo.amount||'0.00'}}</view> |
|
|
|
</view> |
|
|
|
<text class="sc-num">共 <text>{{paySuccessInfo.goods_data.length}}</text> 件商品</text> |
|
|
|
<text class="sc-num">共 <text>{{countGoodsNum||'0'}}</text> 件商品</text> |
|
|
|
<text class="sc-tip-1">请领取小票,期待下次光临!</text> |
|
|
|
|
|
|
|
<image class="sc-print-img" src="/static/pay/print-img.png" mode="acepectFit" /> |
|
|
@ -40,7 +40,7 @@ |
|
|
|
<script setup> |
|
|
|
//触发自定义事件 |
|
|
|
import util from "@/utils/util.js" |
|
|
|
import { ref,onMounted,onBeforeUnmount,onUnmounted } from 'vue' |
|
|
|
import { ref,onMounted,onBeforeUnmount,onUnmounted,computed } from 'vue' |
|
|
|
const emits = defineEmits(['clickToIndex']) |
|
|
|
const props = defineProps({ |
|
|
|
paySuccessInfo: { |
|
|
@ -67,6 +67,15 @@ onUnmounted(() => { |
|
|
|
timer = null |
|
|
|
}) |
|
|
|
|
|
|
|
let countGoodsNum = computed(() => { |
|
|
|
let goods_data = props.paySuccessInfo.goods_data |
|
|
|
let num = 0; |
|
|
|
for (let i = 0; i < goods_data.length; i++) { |
|
|
|
num += goods_data[i].nums||1 |
|
|
|
} |
|
|
|
return num |
|
|
|
}) |
|
|
|
|
|
|
|
function setCountDown() { |
|
|
|
clearInterval(timer) |
|
|
|
timer = null |
|
|
@ -84,13 +93,14 @@ const handle_clickToIndex = () => { |
|
|
|
emits("clickToIndex", "") |
|
|
|
util.routeTo(`/pages/index/standby`, 'rL'); |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.success-box { |
|
|
|
@include ctf(flex-start); |
|
|
|
flex-direction: column; |
|
|
|
|
|
|
|
width: 750rpx; |
|
|
|
.s-bg { |
|
|
|
width: 750rpx; |
|
|
|
height: 772rpx; |
|
|
@ -107,7 +117,8 @@ const handle_clickToIndex = () => { |
|
|
|
z-index: 5; |
|
|
|
padding: 11.11rpx 17.36rpx; |
|
|
|
height: 79.17rpx; |
|
|
|
width: 750rpx; |
|
|
|
// width: 750rpx; |
|
|
|
width: 90%; |
|
|
|
margin-top: 20rpx; |
|
|
|
@include ctf(flex-start); |
|
|
|
flex-direction: row; |
|
|
|