lackMolib.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 class="relative wrapper">
  6. <image :src="ossurl.welfare.toys.collectImg" style="width: 588rpx;height: 276rpx;" />
  7. <view class="confirm">
  8. <image :src="ossurl.welfare.toys.collectBtn" class="x" @click="submit" />
  9. </view>
  10. </view>
  11. <view class="paddingT30 flex-align-center">
  12. <view class="close cuIcon-close" @click="close"></view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import ossurl from '@/utils/ossurl'
  19. export default {
  20. data() {
  21. return {
  22. ossurl,
  23. visible: false
  24. }
  25. },
  26. methods: {
  27. show() {
  28. this.visible = true
  29. },
  30. close() {
  31. this.visible = false
  32. },
  33. submit() {
  34. this.visible = false
  35. this.$router.switchTab('award')
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .mask {
  42. position: absolute;
  43. left: 0;
  44. right: 0;
  45. top: 0;
  46. bottom: 0;
  47. }
  48. .wrapper {
  49. width: 566rpx;
  50. height: 500rpx;
  51. margin: 220rpx 92rpx 0;
  52. }
  53. .text {
  54. font-size: 40rpx;
  55. color: #fff;
  56. margin: 58rpx auto 0;
  57. text-align: center;
  58. }
  59. .confirm {
  60. text-align: center;
  61. margin-top: 56rpx;
  62. }
  63. .x {
  64. width: 308rpx;
  65. height: 96rpx;
  66. }
  67. .close {
  68. width: 64rpx;
  69. height: 64rpx;
  70. background: #d8d8d8;
  71. font-size: 32rpx;
  72. text-align: center;
  73. line-height: 64rpx;
  74. color: #444;
  75. border-radius: 50%;
  76. }
  77. </style>