claim.vue 4.0 KB

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