claim.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/logo.png" mode="aspectFit" />
  11. </u-col>
  12. <u-col span="4">
  13. <image class="commodity-img" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/commodity.png" mode="aspectFit" />
  14. </u-col>
  15. <u-col span="4">
  16. <image class="logo-rules" @click="openDetail" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/rules.png" />
  17. </u-col>
  18. </u-row>
  19. </view>
  20. <view class="topImg">
  21. <image class="img_1" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/topImg.png" mode="heightFix" />
  22. </view>
  23. <view class="topImg">
  24. <image class="img_2" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/topImg_2.png" mode="heightFix" />
  25. </view>
  26. <view class="content">
  27. <view class="title-1">
  28. <view class="content_imgView">
  29. <image style="height: 276rpx" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/tongjichanpin.png"
  30. mode="heightFix" />
  31. </view>
  32. </view>
  33. <view class="detail">
  34. <view class="text-detail">
  35. 您所查询的是超吉炫新型低纤槟榔胶果,是正牌产品,感谢您的购买!
  36. </view>
  37. <view class="text-one">
  38. 此二维码已参与过活动!
  39. </view>
  40. <view class="text-one">
  41. 首次扫码者: {{scanUserData.openid}}
  42. </view>
  43. <view class="text-one">
  44. 首次扫码时间: {{scanUserData.scan_time}}
  45. </view>
  46. <view class="text-one">
  47. 获得奖励: {{prizeJson.prize_type == 0 ? '谢谢惠顾' : prizeJson.prize_type == 1 ? prizeJson.money/100 + '元现金红包' : prizeJson.prize_type == 4 ? "积分奖励":"加"+prizeJson.price+"元,"+prizeJson.title+""+prizeJson.prize_name }}
  48. </view>
  49. </view>
  50. </view>
  51. <CustomTabbar />
  52. </view>
  53. </template>
  54. <script>
  55. import CustomTabbar from '@/components/tabbar_cjx.vue';
  56. export default {
  57. components: {
  58. CustomTabbar
  59. },
  60. data() {
  61. return {
  62. scanUserData:{},
  63. prizeJson:{}
  64. }
  65. },
  66. onLoad() {
  67. let scanDetail = uni.getStorageSync('scanDetail');
  68. this.scanUserData = scanDetail.result.scanInfo;
  69. this.prizeJson = scanDetail.prizeJson;
  70. console.log(scanDetail);
  71. },
  72. methods: {
  73. goBack() {
  74. uni.navigateBack();
  75. },
  76. openDetail(){
  77. uni.navigateTo({
  78. url: '/pages/cjx/index/rules'
  79. });
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. @import url('../../../static/scss/common_cjx.css');
  86. .row-class {
  87. height: 80rpx;
  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: 20rpx 40rpx;
  117. border-radius: 10rpx;
  118. padding: 10rpx;
  119. margin-top: 10vh;
  120. background-image:
  121. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/cardBgi.png");
  122. background-size: cover;
  123. background-position: center;
  124. background-repeat: no-repeat;
  125. }
  126. .text-detail{
  127. font-weight: 500;
  128. font-size: 28rpx;
  129. color: #F6F6F9;
  130. margin-bottom: 10rpx;
  131. }
  132. .text-one{
  133. font-weight: 400;
  134. font-size: 26rpx;
  135. color: #FF31C2 ;
  136. margin-bottom: 10rpx;
  137. }
  138. .detail-btn{
  139. text-align: center;
  140. color: #F9D395;
  141. height: 60rpx;
  142. line-height: 60rpx;
  143. margin-right: 20rpx;
  144. font-size: 13px;
  145. background-color: #901710;
  146. padding: 3px;
  147. border-radius: 5px;
  148. }
  149. .center-image {
  150. height: 280rpx;
  151. object-fit: contain; /* 保持图片的宽高比,确保不会被拉伸或裁切 */
  152. }
  153. ::v-deep .detail-btn span {
  154. background-color: #8E1813;
  155. padding: 4rpx;
  156. border-radius: 8rpx;
  157. font-weight: 400;
  158. font-size: 26rpx;
  159. }
  160. </style>