123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <template>
- <view class="show-box">
- <view class="in-border">
- <view class="table-title">
- <image src="../../static/head-l-point.png" mode=""></image>
- <view class="text" v-if="showMsg.type === 'user'">
- 中奖记录
- </view>
- <view class="text" v-else-if="showMsg.type === 'me'">
- 我的奖品
- </view>
- <view class="text" v-else-if="showMsg.type === 'html'">
- 活动规则
- </view>
- <image src="../../static/head-r-point.png" mode=""></image>
- </view>
- <view class="table" v-if="['me','user'].includes(showMsg.type)">
- <view class="table-head">
- <view class="nickname">{{showMsg.type === 'user' ? '昵称' : '序号'}}</view>
- <view class="table-name">奖品名称</view>
- <view class="table-name time">获奖时间</view>
- </view>
- <view class="table-d">
- <view class="table-body" v-for="(item,index) in showMsg.data" :key="index">
- <view class="nickname">
- {{showMsg.type === 'user' ? item.user.nickname : index + 1}}
- </view>
- <view class="table-name">
- {{item.prize.name}}
- </view>
- <view class="table-name time">
- {{item.add_time}}
- </view>
- </view>
- </view>
- </view>
- <view class="content" v-else v-html="showMsg.data"></view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- }
- },
- props: {
- showMsg: {
- type: Object
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .show-box {
- display: flex;
- flex-direction: column;
- align-items: center;
- background-color: #FFFEFE;
- margin: 20px;
- padding: 4px;
- border-radius: 12rpx;
- box-shadow: 0px 3px 0px 0px #FCF5C8;
- }
- .in-border {
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- border: 1px dashed #FF7F5F;
- border-radius: 12rpx;
- padding: 35rpx 0;
- }
- .table-title {
- display: flex;
- align-items: center;
- margin-bottom: 30rpx;
- .text {
- color: #E74435;
- font-size: 36rpx;
- font-weight: 600;
- padding: 0 12rpx;
- }
- image {
- width: 50rpx;
- height: 16rpx;
- }
- }
- .table-d {
- max-height: 200rpx;
- overflow-y: scroll;
- }
- .table {
- width: 100%;
- .table-head,
- .table-body {
- display: flex;
- justify-content: space-around;
- width: 100%;
- }
- .table-head {
- color: #A57E7E;
- .nickname {
- width: 30%;
- padding: 10rpx 20rpx;
- }
- .table-name {
- width: 30%;
- text-align: left;
- padding: 10rpx 20rpx;
- }
- .time {
- width: 40%;
- }
- }
- .table-body {
- color: #282828;
- .nickname {
- width: 30%;
- font-size: 24rpx;
- padding: 10rpx 20rpx;
- }
- .table-name {
- width: 30%;
- text-align: left;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- font-size: 24rpx;
- padding: 10rpx 20rpx;
- }
- .time {
- width: 40%;
- }
- }
- }
- .content {
- width: 100%;
- padding: 0 20rpx;
- }
- </style>
|