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