claim.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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" @click="openDetail" 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-index">
  24. <view class="title-1">
  25. <view class="content_imgView">
  26. <image style="height: 400rpx" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/xhc/commodity.png"
  27. mode="heightFix" />
  28. </view>
  29. </view>
  30. <view class="detail">
  31. <view class="text-detail">
  32. 您所查询的是小和醇系列槟榔,是正牌产品,感谢您的购买!
  33. </view>
  34. <view class="text-one">
  35. 此二维码已参与过活动!
  36. </view>
  37. <view class="text-one">
  38. 首次扫码者: {{scanUserData.nick_name}}
  39. </view>
  40. <view class="text-one">
  41. 首次扫码时间: {{scanUserData.scan_time}}
  42. </view>
  43. <view class="text-one">
  44. 获得奖励: {{prizeJson.prize_type == 0 ? '谢谢惠顾' : prizeJson.prize_type == 1 ? prizeJson.money/100 + '元现金红包' : prizeJson.prize_type == 4 ? "积分奖励":"加"+prizeJson.price+"元,"+prizeJson.title+""+prizeJson.prize_name }}
  45. </view>
  46. </view>
  47. </view>
  48. <CustomTabbar />
  49. </view>
  50. </template>
  51. <script>
  52. import CustomTabbar from '@/components/tabbar_common.vue';
  53. export default {
  54. components: {
  55. CustomTabbar
  56. },
  57. data() {
  58. return {
  59. scanUserData:{},
  60. prizeJson:{}
  61. }
  62. },
  63. onLoad() {
  64. let scanDetail = uni.getStorageSync('scanDetail');
  65. this.scanUserData = scanDetail.result.scanInfo;
  66. this.prizeJson = scanDetail.prizeJson;
  67. console.log(scanDetail);
  68. },
  69. methods: {
  70. goBack() {
  71. uni.navigateBack();
  72. },
  73. openDetail(){
  74. uni.navigateTo({
  75. url: '/pages/xhc/index/rules'
  76. });
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. @import url('../../../static/scss/common_xhc.css');
  83. .row-class {
  84. height: 80rpx;
  85. }
  86. .content-index {
  87. margin-top: 8vh;
  88. }
  89. .theme-text {
  90. height: 10vh;
  91. text-align: center;
  92. line-height: 11vh;
  93. .textImage {
  94. height: 80rpx;
  95. width: 400rpx;
  96. }
  97. }
  98. .title-1{
  99. text-align: center;
  100. color: #A7001C;
  101. font-size: 18px;
  102. letter-spacing: 4px;
  103. font-weight: 600;
  104. }
  105. .winning-picture{
  106. height: 460rpx;
  107. background-image: url(https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiZj.png);
  108. background-size: contain;
  109. background-position: center;
  110. background-repeat: no-repeat;
  111. display: flex;
  112. justify-content: center; /* 水平居中 */
  113. // align-items: center; /* 垂直居中 */
  114. }
  115. .detail{
  116. margin: 100rpx 40rpx;
  117. border-radius: 10rpx;
  118. padding: 10rpx;
  119. background: #FDE2B1;
  120. border-radius: 8px;
  121. border: 4px solid #FB911B;
  122. }
  123. .text-detail{
  124. font-weight: 600;
  125. font-size: 28rpx;
  126. color: #3D3D3D;;
  127. margin-bottom: 10rpx;
  128. }
  129. .text-one{
  130. font-weight: 400;
  131. font-size: 26rpx;
  132. color: #3D3D3D; ;
  133. margin-bottom: 10rpx;
  134. }
  135. .detail-btn{
  136. text-align: center;
  137. color: #F9D395;
  138. height: 60rpx;
  139. line-height: 60rpx;
  140. margin-right: 20rpx;
  141. font-size: 13px;
  142. background-color: #901710;
  143. padding: 3px;
  144. border-radius: 5px;
  145. }
  146. .center-image {
  147. height: 280rpx;
  148. object-fit: contain; /* 保持图片的宽高比,确保不会被拉伸或裁切 */
  149. }
  150. ::v-deep .detail-btn span {
  151. background-color: #8E1813;
  152. padding: 4rpx;
  153. border-radius: 8rpx;
  154. font-weight: 400;
  155. font-size: 26rpx;
  156. }
  157. </style>