Initial commit: 积分兑换电商平台多商户版 MER-2.2
Made-with: Cursor
This commit is contained in:
41
mer_uniapp/components/popupHeader.vue
Normal file
41
mer_uniapp/components/popupHeader.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<view class="header">
|
||||
<view class="title">{{title}} <text v-show="num">{{num?num:0}}</text></view>
|
||||
<CloseIcon @handle-close="close"></CloseIcon>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
//是否展示小字样式
|
||||
title: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
num: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
close() {
|
||||
this.$emit('close');
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.header {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
margin-bottom: 50rpx;
|
||||
|
||||
.title {
|
||||
color: #282828;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user