error.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="intro-page common">
  3. <view class="top-class"></view>
  4. <view class="title">
  5. <view class="logo-container">
  6. <image class="logo-text" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/xhc/common/logo.png" />
  7. </view>
  8. <view class="title-1">
  9. <view class="title-image"></view>
  10. </view>
  11. </view>
  12. <view class="head">
  13. <image class="logo-rules" @click="openDetail" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/xhc/common/rules.png" />
  14. </view>
  15. <view class="head-ttile">
  16. <view class="head-ttile-img">
  17. <image class="ttile-img" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/xhc/common/bgi_3.png" mode="heightFix"/>
  18. </view>
  19. <view class="head-ttile-text">
  20. 正宗海南·醇香浓郁
  21. </view>
  22. </view>
  23. <view class="content">
  24. <view class="title-1">
  25. </view>
  26. <view class="detail">
  27. <view class="text-detail">
  28. 您所查询的是海南小和醇槟榔,是正牌产品,感谢您的购买!
  29. </view>
  30. <view class="text-one">
  31. </view>
  32. <view class="text-one">
  33. {{msg}}
  34. </view>
  35. </view>
  36. </view>
  37. <CustomTabbar />
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. msg: "未知错误"
  45. }
  46. },
  47. onLoad: function(options) {
  48. if (options.msg){
  49. this.msg = options.msg;
  50. }
  51. },
  52. methods: {
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. @import url('../../static/scss/common_xhc.css');
  58. .row-class {
  59. height: 80rpx;
  60. }
  61. .theme-text {
  62. height: 10vh;
  63. text-align: center;
  64. line-height: 11vh;
  65. .textImage {
  66. height: 80rpx;
  67. width: 400rpx;
  68. }
  69. }
  70. .title-1{
  71. text-align: center;
  72. color: #A7001C;
  73. font-size: 18px;
  74. letter-spacing: 4px;
  75. font-weight: 600;
  76. }
  77. .winning-picture{
  78. height: 460rpx;
  79. background-image: url(https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiZj.png);
  80. background-size: contain;
  81. background-position: center;
  82. background-repeat: no-repeat;
  83. display: flex;
  84. justify-content: center; /* 水平居中 */
  85. // align-items: center; /* 垂直居中 */
  86. }
  87. .detail{
  88. border-radius: 10rpx;
  89. padding: 10rpx;
  90. margin: 30vh 40rpx 20rpx;
  91. height: 20vh;
  92. background: #FDE2B1;
  93. border: 4px solid #FB911B;
  94. }
  95. .text-detail{
  96. font-weight: 500;
  97. font-size: 28rpx;
  98. color: #000000;
  99. margin-bottom: 10rpx;
  100. padding: 20rpx;
  101. }
  102. .text-one{
  103. font-weight: 400;
  104. font-size: 26rpx;
  105. color: #901710 ;
  106. margin-bottom: 10rpx;
  107. padding: 20rpx;
  108. }
  109. .detail-btn{
  110. text-align: center;
  111. color: #F9D395;
  112. height: 60rpx;
  113. line-height: 60rpx;
  114. margin-right: 20rpx;
  115. font-size: 13px;
  116. background-color: #901710;
  117. padding: 3px;
  118. border-radius: 5px;
  119. }
  120. .center-image {
  121. height: 280rpx;
  122. object-fit: contain; /* 保持图片的宽高比,确保不会被拉伸或裁切 */
  123. }
  124. ::v-deep .detail-btn span {
  125. background-color: #8E1813;
  126. padding: 4rpx;
  127. border-radius: 8rpx;
  128. font-weight: 400;
  129. font-size: 26rpx;
  130. }
  131. </style>