parkingFeePaperCoupon.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <template>
  2. <div :class="['scroll-Y', theme]">
  3. <div class="worp">
  4. <div class="title">纸质优惠劵减免说明</div>
  5. <div style="font-size: 28px; color: #808080; padding-top: 12px">
  6. {{ parkPaperCouponRemark }}
  7. </div>
  8. </div>
  9. <template v-if="paperCouponList.length">
  10. <div
  11. class="worp_index1"
  12. v-for="(item, index) in paperCouponList"
  13. :key="item.discountCode"
  14. >
  15. <div class="worp_index1_index">
  16. <div class="content">劵码 {{ item.discountCode }}</div>
  17. <div @click="deleteCoupon(index)"><van-icon name="delete-o" /></div>
  18. </div>
  19. <div
  20. style="
  21. padding-bottom: 25px;
  22. margin-left: 20px;
  23. margin-top: 20px;
  24. font-size: 28px;
  25. "
  26. >
  27. 优惠劵金额 :<span style="color: #064c8a">{{
  28. item.discountValueMoney | currency
  29. }}</span>
  30. </div>
  31. </div>
  32. </template>
  33. <div
  34. :class="{
  35. worp_button: true,
  36. blue_flewx_index3: custTypeId === 1,
  37. green_flewx_index3: custTypeId === 2,
  38. }"
  39. @click="scanCode"
  40. >
  41. <img
  42. :src="require('./static/images/sweep.png')"
  43. style="width: 35px; height: 35px; margin-right: 20px"
  44. />
  45. <div>扫码用劵</div>
  46. </div>
  47. <div class="flewx">
  48. <!-- <div class="flewx-content">应付<span style="color: red;font-size: 32px;padding-left: 20px;">{{actualFee |
  49. currency}}</span> 元 <span style="color: #8d8d8d;padding-left: 30px;font-size: 28px;">已优惠{{discountFee |
  50. currency}}元</span>
  51. </div> -->
  52. <div class="flewx-content">
  53. 已选<span class="num">{{ paperCouponList.length }}张</span>
  54. <span class="discountFee"
  55. >优惠券可优惠{{ discountFee | currency }}</span
  56. >
  57. </div>
  58. <div
  59. :class="{
  60. flewx_index3: true,
  61. blue_flewx_index3: custTypeId === 1,
  62. green_flewx_index3: custTypeId === 2,
  63. 'btn-disabled': !parkInfo.servicefee,
  64. }"
  65. @click="confirm"
  66. >
  67. 确定
  68. </div>
  69. </div>
  70. <!-- 新的toast -->
  71. <fui-toast ref="toast"></fui-toast>
  72. </div>
  73. </template>
  74. <script>
  75. import parkingFeePaperCouponJs from './mixins/parkingFeePaperCoupon'
  76. import baseMixins from './mixins/base'
  77. export default {
  78. mixins:[baseMixins, parkingFeePaperCouponJs]
  79. }
  80. </script>
  81. <style lang="less" scoped>
  82. .scroll-Y {
  83. width: 100%;
  84. display: flex;
  85. flex-direction: column;
  86. height: 100vh;
  87. background: #f4f7ff;
  88. }
  89. .worp {
  90. padding-left: 30px;
  91. margin-top: 30px;
  92. overflow: hidden;
  93. .title {
  94. font-size: 30px;
  95. font-weight: 600;
  96. color: #333333;
  97. line-height: 42px;
  98. }
  99. }
  100. .worp_index1 {
  101. width: 92%;
  102. margin-top: 30px;
  103. margin-left: 4%;
  104. font-size: 30px;
  105. background: #fafbff;
  106. border-radius: 4px;
  107. border: 1px solid #d8dae0;
  108. }
  109. .worp_index1_index {
  110. width: 650px;
  111. height: 60px;
  112. margin-left: 20px;
  113. border-bottom: 1px solid #f2f2f2;
  114. display: flex;
  115. align-items: center;
  116. justify-content: space-between;
  117. padding-top: 10px;
  118. .content {
  119. white-space: nowrap;
  120. text-overflow: ellipsis;
  121. overflow: hidden;
  122. }
  123. }
  124. .worp_button {
  125. width: 690px;
  126. height: 80px;
  127. border-radius: 50px;
  128. text-align: center;
  129. font-size: 30px;
  130. line-height: 80px;
  131. color: #fff;
  132. margin-top: 45px;
  133. // background-image: linear-gradient(to right, #7e4fa1, #433c7f);
  134. background: #064c8a;
  135. margin-left: 30px;
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. }
  140. .flewx {
  141. width: 100%;
  142. height: 100px;
  143. background-color: #fff;
  144. position: fixed;
  145. bottom: 0;
  146. display: flex;
  147. align-items: center;
  148. // padding-bottom: constant(safe-area-inset-bottom);
  149. // padding-bottom: env(safe-area-inset-bottom);
  150. padding-bottom: 20px;
  151. .flewx-content {
  152. font-weight: 400;
  153. position: absolute;
  154. left: 16px;
  155. font-size: 28px;
  156. .num {
  157. color: #064c8a;
  158. }
  159. .discountFee {
  160. color: #ee4d3f;
  161. }
  162. }
  163. .flewx_index3 {
  164. width: 150px;
  165. height: 70px;
  166. border-radius: 45px;
  167. text-align: center;
  168. font-size: 28px;
  169. line-height: 70px;
  170. color: #fff;
  171. // background-image: linear-gradient(to right, #7e4fa1, #433c7f);
  172. background: #064c8a;
  173. box-shadow: 2px 3px 5px #888888;
  174. position: absolute;
  175. right: 16px;
  176. }
  177. }
  178. .blue_flewx_index3 {
  179. .color_flewx_index3('blue');
  180. }
  181. .green_flewx_index3 {
  182. .color_flewx_index3('green');
  183. }
  184. .color_flewx_index3(@value) {
  185. @color: 'color-@{value}';
  186. background-image: none !important;
  187. background-color: @@color !important;
  188. }
  189. </style>