增加查看券码弹窗
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<view>
|
||||
<up-popup :show="show" mode="center" :safeAreaInsetBottom="mode==='bottom'?true:false">
|
||||
<up-popup
|
||||
:show="show"
|
||||
mode="center"
|
||||
:safeAreaInsetBottom="mode === 'bottom' ? true : false"
|
||||
>
|
||||
<view class="popup-content">
|
||||
<view class="top u-flex u-row-between">
|
||||
<text class="font-bold u-font-32 color-333">{{ title }}</text>
|
||||
@@ -10,12 +14,14 @@
|
||||
<scroll-view style="max-height: 50vh" :scroll-y="true">
|
||||
<slot></slot>
|
||||
</scroll-view>
|
||||
<up-line></up-line>
|
||||
<template v-if="showBottom">
|
||||
<up-line></up-line>
|
||||
|
||||
<view class="bottom">
|
||||
<view class="btn cancel" @click="close">{{ cancelText }}</view>
|
||||
<view class="btn success" @click="confirm">{{ confirmText }}</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<view class="btn cancel" @click="close">{{ cancelText }}</view>
|
||||
<view class="btn success" @click="confirm">{{ confirmText }}</view>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
</up-popup>
|
||||
</view>
|
||||
@@ -39,6 +45,10 @@ const props = defineProps({
|
||||
type: String,
|
||||
default: "取消",
|
||||
},
|
||||
showBottom: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
});
|
||||
const show = defineModel({
|
||||
type: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user