winPrize.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="intro-page common">
  3. <view class="top-class"></view>
  4. <view class="title">
  5. 梅山古镇
  6. </view>
  7. <view class="head">
  8. <u-row class="row-class">
  9. <u-col span="4">
  10. <image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" />
  11. </u-col>
  12. <u-col span="4">
  13. </u-col>
  14. <u-col span="4">
  15. </u-col>
  16. </u-row>
  17. </view>
  18. <view class="theme-text">
  19. <image src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/text.png"
  20. class="textImage"></image>
  21. </view>
  22. <!-- 公司简介内容卡片 -->
  23. <view class="intro-card">
  24. <view class="intro-view">
  25. <view class="intro-content">
  26. <view>
  27. <image
  28. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/prize/winPrize_1.png"
  29. mode="heightFix" class="prize_image_1"></image>
  30. </view>
  31. <view>
  32. <image
  33. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/prize/winPrize_2.png"
  34. mode="heightFix" class="prize_image_2"></image>
  35. </view>
  36. <view>恭喜你找到爆辣卧底,</view>
  37. <view>获得一次抽奖机会!</view>
  38. </view>
  39. </view>
  40. </view>
  41. <!-- 返回按钮 -->
  42. <view class="footer-btn">
  43. <view @click="goBack" class="return-button">立即抽奖</view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. methods: {
  50. goBack() {
  51. uni.redirectTo({
  52. url: '/pages/lgz/index/index'
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. @import url('../../../static/scss/common.css');
  60. .row-class {
  61. height: 80rpx;
  62. }
  63. .logo-img {
  64. background-size: cover;
  65. /* 确保背景图片自适应填充整个容器 */
  66. background-position: center;
  67. /* 背景图片居中显示 */
  68. background-repeat: no-repeat;
  69. /* 防止背景图重复 */
  70. height: 42rpx;
  71. width: 62%;
  72. }
  73. .commodity-img {
  74. background-size: cover;
  75. /* 确保背景图片自适应填充整个容器 */
  76. background-position: center;
  77. /* 背景图片居中显示 */
  78. background-repeat: no-repeat;
  79. /* 防止背景图重复 */
  80. height: 35rpx;
  81. width: 100%;
  82. }
  83. .theme-text {
  84. height: 10vh;
  85. text-align: center;
  86. line-height: 11vh;
  87. .textImage {
  88. height: 80rpx;
  89. width: 400rpx;
  90. }
  91. }
  92. .prize_image_1 {
  93. height: 140rpx;
  94. }
  95. .prize_image_2 {
  96. height: 340rpx
  97. }
  98. .intro-card {
  99. margin: 0 32rpx;
  100. padding: 32rpx 24rpx 24rpx 24rpx;
  101. background: rgba(131, 100, 71, 0.5);
  102. border-radius: 10rpx;
  103. .intro-view {
  104. border: 1px solid #341B10;
  105. padding: 10px;
  106. margin: 10px;
  107. position: relative;
  108. height: 56vh;
  109. .intro-content {
  110. font-size: 40rpx;
  111. color: #5c4322;
  112. line-height: 1.8;
  113. margin: 20rpx 0px;
  114. text-align: center;
  115. color: #9B0000;
  116. font-weight: 600;
  117. }
  118. .company-img {
  119. width: 100%;
  120. height: 260rpx;
  121. border-radius: 12rpx;
  122. object-fit: cover;
  123. margin-top: 10rpx;
  124. background: #eee;
  125. }
  126. }
  127. }
  128. </style>