claim.vue 3.6 KB

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