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