result.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="cu-modal" :class="{'show': visible}">
  3. <view class="mask" @click="close"></view>
  4. <view class="cu-dialog" style="background-color: transparent; width:100%">
  5. <view v-if="data" class="relative wrapper flex-column-align-center">
  6. <image :src="resource.in_lottery" style="width: 414rpx; height: 36rpx" />
  7. <view class="paddingT38 paddingB20 text-center font10 bold color-white">{{data.name}}</view>
  8. <image :src="data.cover" style="width: 220rpx; height: 252rpx" class="radius4"/>
  9. <view class="paddingT40 font4" style="color: #FFFAAF">
  10. 奖品已发放~
  11. </view>
  12. </view>
  13. <view class="paddingT30 flex-align-center">
  14. <image :src="resource.close" class="x" @click="close" />
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import resource from '@/utils/resource'
  21. export default {
  22. data() {
  23. return {
  24. resource,
  25. visible: false,
  26. data: null
  27. }
  28. },
  29. methods: {
  30. show(spu) {
  31. this.data = spu
  32. this.visible = true
  33. },
  34. close() {
  35. this.visible = false
  36. this.data = false
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .mask {
  43. position: absolute;
  44. left: 0;
  45. right: 0;
  46. top: 0;
  47. bottom: 0;
  48. }
  49. .wrapper {
  50. padding: 63rpx 40rpx 82rpx;
  51. z-index: 1001;
  52. width: 604rpx;
  53. margin: 0 auto;
  54. position: relative;
  55. background: linear-gradient(315deg, #ff345a 0%, #ffa25e 100%);
  56. box-shadow: 0px 0px 10rpx 0px rgba(255, 129, 0, 0.5);
  57. border-radius: 16rpx;
  58. border: 1rpx solid rgba(255, 211, 155, 0.4);
  59. }
  60. .x {
  61. width: 60rpx;
  62. height: 60rpx;
  63. }
  64. </style>