<template>
|
<div class="result-without-bg-wrapper" v-bind="$attrs">
|
<div class="result-without-bg-content">
|
<img class="result-without-bg-content-icon" :src="OssAssets.result.Successv2" />
|
<div class="result-without-bg-content-title">{{ title }}</div>
|
<div class="result-without-bg-content-remark">
|
<slot name="remark">{{ remark }} </slot>
|
</div>
|
</div>
|
<div class="result-without-bg-wrapper-actions">
|
<slot name="actions">
|
<div class="chunk-form-actions">
|
<nut-button class="recharge-button" type="primary" @click="emit('generate')">
|
<div class="recharge-button-inner">
|
<div class="recharge-button-text">生成我的推广码</div>
|
</div>
|
</nut-button>
|
</div>
|
</slot>
|
</div>
|
<div class="result-without-bg-wrapper-tips">
|
<slot name="tips">{{ tips }} </slot>
|
</div>
|
</div>
|
</template>
|
|
<script setup lang="ts">
|
import { OssAssets } from '../../constants/img';
|
import { Button as NutButton } from '@nutui/nutui-taro';
|
|
defineOptions({
|
name: 'ResultWithoutBG',
|
});
|
|
type Props = {
|
title?: string;
|
type?: 'success' | 'fail';
|
tips?: string;
|
remark?: string;
|
};
|
|
const props = withDefaults(defineProps<Props>(), {});
|
|
const emit = defineEmits<{
|
(e: 'generate'): void;
|
}>();
|
</script>
|