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