You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

equityList.vue 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <navBar title="权益选购" :scrollTop="scrollTop" navbgClass="nav-bgXin" fontColor='#fff'></navBar>
  3. <view class="container">
  4. <view class="bg">
  5. <image mode="aspectFit" :src="`${$imgUrl}issuance/bj.png`" class="img"></image>
  6. </view>
  7. <view class="content">
  8. <view class="item-box" v-for='item in currentProductList.equityList'>
  9. <image mode="aspectFit" :src="`${$imgUrl}issuance/l-car.png`" class="l-img"></image>
  10. <view class="r-info">
  11. <view class="t-title">
  12. {{item.productName}}
  13. </view>
  14. <view class="tip-list">
  15. <view class="tip-item" v-for='ele in item.labels'>
  16. {{ele}}
  17. </view>
  18. </view>
  19. <view class="b-con">
  20. <view class="l-fee">
  21. <view class="t-price">
  22. <text>¥</text>
  23. <text class='fee'>{{item.discountPrice * 0.01 }}</text>
  24. </view>
  25. <view class="b-price">
  26. ¥{{item.originalPrice * 0.01 }}
  27. </view>
  28. </view>
  29. <view class="r-btn" @click="savaHandle(item)">
  30. 立即购买
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script setup>
  39. import navBar from "@/components/nav-bar/nav-bar2.vue";
  40. import {
  41. ref
  42. } from 'vue'
  43. import {
  44. onLoad,
  45. onPageScroll,
  46. onShow
  47. } from "@dcloudio/uni-app";
  48. import {
  49. getItem,
  50. setItem
  51. } from "@/utils/storage.ts";
  52. const sendParams = ref({})
  53. onLoad((e) => {
  54. if (e) {
  55. sendParams.value = e
  56. }
  57. currentProductList.value = getItem('currentProductList')
  58. })
  59. const currentProductList = ref({})
  60. const scrollTop = ref(0); //滚动距离
  61. //监听页面滚动
  62. onPageScroll((e) => {
  63. scrollTop.value = e.scrollTop;
  64. });
  65. const savaHandle = (val, idx) => {
  66. console.log("vAL", val)
  67. setItem("clientFee", currentProductList.value.clientFee);
  68. // setItem("promoteId", val.promoteId);
  69. // 产品金额+权益金额
  70. let fee = Number(currentProductList.value.fee) + Number(val.discountPrice);
  71. uni.navigateTo({
  72. url: `/subpackage/orders/equity/interestsList?equityId=${val.equityId}&userType=${sendParams.value.userType}&vanType=${sendParams.value.vanType}&cardType=${sendParams.value.cardType}&isValueCard=${sendParams.value.isValueCard}&fee=${fee}&signAgencyId=${currentProductList.value['deviceType']}&productId=${currentProductList.value['productId']}`,
  73. });
  74. };
  75. </script>
  76. <style scoped lang='scss'>
  77. .container {
  78. height: 100vh;
  79. width: 100%;
  80. position: relative;
  81. .bg {
  82. position: absolute;
  83. width: 100%;
  84. .img {
  85. height: 405rpx;
  86. width: 100%;
  87. }
  88. }
  89. .content {
  90. width: 100%;
  91. position: absolute;
  92. top: 365rpx;
  93. border-radius: 30rpx 30rpx 0 0;
  94. background-color: #fff;
  95. height: calc(100% - 365rpx);
  96. padding: 40rpx 30rpx 0;
  97. box-sizing: border-box;
  98. .item-box {
  99. display: flex;
  100. align-items: center;
  101. margin-bottom: 50rpx;
  102. .l-img {
  103. flex-shrink: 0;
  104. width: 180rpx;
  105. height: 164rpx;
  106. }
  107. .r-info {
  108. margin-left: 20rpx;
  109. flex: 1 1 auto;
  110. height: 164rpx;
  111. .t-title {
  112. font-family: SourceHanSansSC, SourceHanSansSC;
  113. font-size: 30rpx;
  114. color: #111111;
  115. }
  116. .tip-list {
  117. display: flex;
  118. margin: 10rpx 0;
  119. .tip-item {
  120. border-radius: 6rpx;
  121. border: 1rpx solid #CCB375;
  122. padding: 5rpx 8rpx;
  123. font-size: 20rpx;
  124. color: #CCB375;
  125. margin-right: 10rpx;
  126. }
  127. }
  128. .b-con {
  129. display: flex;
  130. align-items: center;
  131. justify-content: space-between;
  132. .t-price {
  133. font-family: SourceHanSansSC, SourceHanSansSC;
  134. font-size: 22rpx;
  135. color: #CE1717;
  136. .fee {
  137. font-size: 30rpx;
  138. }
  139. }
  140. .b-price {
  141. text-decoration-line: line-through;
  142. font-size: 22rpx;
  143. color: #999999;
  144. }
  145. .r-btn {
  146. border-radius: 25rpx;
  147. background-color: #CCB375;
  148. font-family: MicrosoftYaHeiUI;
  149. font-size: 24rpx;
  150. color: #FFFFFF;
  151. width: 140rpx;
  152. height: 50rpx;
  153. text-align: center;
  154. line-height: 50rpx;
  155. }
  156. }
  157. }
  158. }
  159. }
  160. }
  161. </style>