您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

equityInfo.vue 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <!-- <view style="height: 100%;">
  3. <rich-text style="flex: 1" :nodes="richText" />
  4. </view> -->
  5. <view style="background-color:#E9EDF0;overflow: hidden;min-height: 100vh;font-size: 28rpx;">
  6. <view class="title" :style="{'--bgimg':`url(${$imgUrl}equiet-bg2.png)`}">
  7. <view class="name">
  8. <text>{{params.productName}}</text>
  9. <view><text>¥</text><text class="money">{{params.discountPrice/100}}</text></view>
  10. </view>
  11. <view class="date">有效期至{{params.endDate}}</view>
  12. </view>
  13. <view class="explain">
  14. <view class="use">使用说明</view>
  15. <view class="tips">
  16. <view class="one">权益领取方式</view>
  17. <view class="list">
  18. <text class="point"></text>
  19. <view>用户激活ETC后通过贵州黔通九州ETC小程序-服务模块-我的权益中主动领取兑换码。</view>
  20. </view>
  21. <view class="list">
  22. <text class="point"></text>
  23. <view>领取时限:自激活起180天内。</view>
  24. </view>
  25. </view>
  26. <view class="tips">
  27. <view class="one">权益使用方式</view>
  28. <view class="list">
  29. <text class="point"></text>
  30. <view>进入途虎养车APP或途虎养车小程序,点击“我的”.“集团客户”-将兑换码添加到提示框-根据页面提示填入车牌-点击确认后显示兑换。</view>
  31. </view>
  32. <view class="list">
  33. <text class="point"></text>
  34. <view>点击已兑换的洗车卡券,选择就近门店,点击“导航”,到店说明使用途虎券码兑换服务,出示服务二维码即可使用服务。</view>
  35. </view>
  36. </view>
  37. <view class="tips">
  38. <view class="one">权益注意事项</view>
  39. <view class="list">
  40. <text class="point"></text>
  41. <view>服务使用范围为7座(含)以下家用非营运客车,暂不支持面包车、商务车等中大型车辆。</view>
  42. </view>
  43. <view class="list">
  44. <text class="point"></text>
  45. <view>春节期间部分门店不能提供服务,具体可使用的服务门店请以卡券展示的门店;门店遇高峰期会排队,请注意合理安排时间或咨询途虎养车客服。</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script setup lang='ts'>
  52. import {
  53. ref
  54. } from 'vue';
  55. import {
  56. requestNew
  57. } from "@/utils/network/request.js";
  58. import {
  59. onLoad
  60. } from '@dcloudio/uni-app'
  61. import { singleEquityDetail } from "@/utils/network/api.js";
  62. let richText = ref('')
  63. let singleEquityId = ref('')
  64. let couponAgencyType = ref('')
  65. let couponId = ref('')
  66. let params = ref('')
  67. onLoad((options) => {
  68. console.log("参数",options)
  69. singleEquityId.value = options.singleEquityId
  70. couponAgencyType.value = options.couponAgencyType
  71. //卡券渠道类型获取单项权益列表
  72. requestNew(singleEquityDetail, {
  73. type: 2,
  74. data: {
  75. singleEquityId: singleEquityId.value
  76. },
  77. method: "POST",
  78. showLoading: true,
  79. }).then((item) => {
  80. let res = item
  81. console.log(res, '=========');
  82. richText.value = res.productIntro
  83. couponId.value = res.couponId
  84. params.value=res
  85. })
  86. })
  87. </script>
  88. <style lang='scss' scoped>
  89. .copy-btn {
  90. background-color: #4caf50;
  91. color: #fff;
  92. border: none;
  93. width: 100%;
  94. border-radius: 10rpx;
  95. font-size: 24rpx;
  96. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2);
  97. }
  98. .title{
  99. background-size: 100% 100%;
  100. background-repeat: no-repeat;
  101. height: 250rpx;
  102. text-align: center;
  103. display: flex;
  104. align-items: center;
  105. justify-content: center;
  106. background-image: var(--bgimg);
  107. display: flex;
  108. flex-direction: column;
  109. box-sizing: border-box;
  110. align-items: center;
  111. justify-content: space-evenly;
  112. margin: 20rpx;
  113. box-sizing: border-box;
  114. .name{
  115. font-weight: 400;
  116. font-size: 30rpx;
  117. color: #FFFFFF;
  118. display: flex;
  119. align-items: center;
  120. justify-content: space-between;
  121. width: 100%;
  122. flex: 1;
  123. padding: 0 30rpx 0 30rpx;
  124. box-sizing: border-box;
  125. .money{
  126. font-size: 92rpx;
  127. color: #F2DBAC;
  128. }
  129. }
  130. .date{
  131. color: #666666;
  132. display: flex;
  133. justify-content: flex-start;
  134. width: 100%;
  135. flex: 1;
  136. align-items: center;
  137. padding-left: 30rpx;
  138. box-sizing: border-box;
  139. padding-top: 13rpx;
  140. }
  141. }
  142. .explain{
  143. width: 100%;
  144. background-color: white;
  145. margin-top: 20rpx;
  146. padding: 20rpx;
  147. box-sizing: border-box;
  148. height: calc(100vh - 250rpx);
  149. .use{
  150. font-size: 32rpx;
  151. color: #111111;
  152. line-height: 35rpx;
  153. font-family: MicrosoftYaHei;
  154. font-weight: bold;
  155. }
  156. .tips{
  157. .one{
  158. font-size: 28rpx;
  159. color: #111111;
  160. line-height: 35rpx;
  161. margin: 26rpx 0;
  162. }
  163. .list{
  164. font-size: 28rpx;
  165. color: #999999;
  166. display: flex;
  167. margin-bottom: 10rpx;
  168. .point{
  169. width: 10rpx;
  170. height: 10rpx;
  171. background: #A0A0A0;
  172. display: inline-block;
  173. border-radius: 100%;
  174. margin-right: 20rpx;
  175. margin-top: 10rpx;
  176. }
  177. }
  178. }
  179. }
  180. </style>