123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <template>
- <view class="content">
- <uni-popup class="popup" ref="popup" type="center">
- <view class="popupContent">
- <view class="title">奖品预览</view>
- <image class="img" :src="imgUrl" mode="widthFix"></image>
- <p class="name">
- <span style="margin-right: 10px">奖品名称:</span>
- {{ name }}
- </p>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- export default {
- emits: ['callBack'],
- props: {
- value: {
- type: Object,
- default: {},
- },
- },
- computed: {},
- data() {
- return {
- imgUrl: '',
- name: '',
- }
- },
- mounted() {
- // this.$refs.popup2.open('center')
- // this.getLotteryResults()
- },
- methods: {
- show(value) {
- this.imgUrl = value.icon
- this.name = value.name
- this.$refs.popup.open()
- },
- },
- }
- </script>
- <style scoped lang="scss">
- .popupContent {
- padding: 10px;
- width: 70vw;
- min-height: 40vh;
- background: #fff;
- border-radius: 5px;
- display: flex;
- justify-content: center;
- align-content: flex-start;
- flex-wrap: wrap;
- .title {
- margin-bottom: 10px;
- text-align: center;
- }
- .img {
- width: 60vw;
- height: 60vw;
- box-shadow: 1px 1px 4px #9c9c9c;
- }
- .name {
- width: 100%;
- margin-top: 20px;
- text-align: center;
- font-weight: 600;
- font-size: 15px;
- }
- }
- </style>
- <style scoped>
- /* .popup2 >>> .uni-popup__wrapper {
- top: -8vh;
- } */
- </style>
|