error.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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-label">
  27. <view class="label-title">
  28. 扫码错误
  29. </view>
  30. </view>
  31. <view class="intro-content">
  32. <view class="winning-picture">
  33. <image class="center-image" src="../../static/images/common/qrcode-scan.png" mode="heightFix"></image>
  34. <view class="">
  35. {{msg}}
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. msg: "未知错误"
  48. }
  49. },
  50. onLoad: function(options) {
  51. if (options.msg){
  52. this.msg = options.msg;
  53. }
  54. },
  55. methods: {
  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. .intro-card {
  94. margin: 0 32rpx;
  95. padding: 32rpx 24rpx 24rpx 24rpx;
  96. background: rgba(131, 100, 71, 0.5);
  97. border-radius: 10rpx;
  98. .intro-view {
  99. border: 1px solid #341B10;
  100. padding: 10px;
  101. margin: 10px;
  102. position: relative;
  103. .intro-label {
  104. background-image:
  105. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/label.png");
  106. /* 使用绝对路径 */
  107. background-size: contain;
  108. background-repeat: no-repeat;
  109. width: 220rpx;
  110. height: 120rpx;
  111. position: absolute;
  112. margin-top: -70rpx;
  113. align-content: center;
  114. .label-title {
  115. font-weight: bold;
  116. font-size: 30rpx;
  117. color: #341B10;
  118. text-align: center;
  119. margin-left: 10px;
  120. height: 120rpx;
  121. line-height: 110rpx;
  122. }
  123. }
  124. .intro-content {
  125. font-size: 28rpx;
  126. color: #5c4322;
  127. line-height: 1.8;
  128. margin: 20rpx 0px;
  129. text-align: justify;
  130. height: 50vh;
  131. align-content: center;
  132. }
  133. .company-img {
  134. width: 100%;
  135. height: 260rpx;
  136. border-radius: 12rpx;
  137. object-fit: cover;
  138. margin-top: 10rpx;
  139. background: #eee;
  140. }
  141. }
  142. }
  143. .winning-picture{
  144. height: 480rpx;
  145. background-image: url(https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiZj.png);
  146. background-size: contain;
  147. background-position: center;
  148. background-repeat: no-repeat;
  149. align-content: center;
  150. text-align: center;
  151. }
  152. .center-image {
  153. height: 100rpx;
  154. object-fit: contain; /* 保持图片的宽高比,确保不会被拉伸或裁切 */
  155. padding-top: 140rpx;
  156. }
  157. </style>