Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

equityList.vue 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. import {navTo } from "@/utils/utils";
  53. const sendParams = ref({})
  54. onLoad((e) => {
  55. if (e) {
  56. sendParams.value = e
  57. }
  58. currentProductList.value = getItem('currentProductList')
  59. })
  60. const currentProductList = ref({})
  61. const scrollTop = ref(0); //滚动距离
  62. //监听页面滚动
  63. onPageScroll((e) => {
  64. scrollTop.value = e.scrollTop;
  65. });
  66. const savaHandle = (val, idx) => {
  67. console.log("vAL", val)
  68. setItem("clientFee", currentProductList.value.clientFee);
  69. // setItem("promoteId", val.promoteId);
  70. // 产品金额+权益金额
  71. let fee = Number(currentProductList.value.fee) + Number(val.discountPrice);
  72. navTo(`/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. // uni.navigateTo({
  74. // 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']}`,
  75. // });
  76. };
  77. </script>
  78. <style scoped lang='scss'>
  79. .container {
  80. height: 100vh;
  81. width: 100%;
  82. position: relative;
  83. .bg {
  84. position: absolute;
  85. width: 100%;
  86. .img {
  87. height: 405rpx;
  88. width: 100%;
  89. }
  90. }
  91. .content {
  92. width: 100%;
  93. position: absolute;
  94. top: 365rpx;
  95. border-radius: 30rpx 30rpx 0 0;
  96. background-color: #fff;
  97. height: calc(100% - 365rpx);
  98. padding: 40rpx 30rpx 0;
  99. box-sizing: border-box;
  100. .item-box {
  101. display: flex;
  102. align-items: center;
  103. margin-bottom: 50rpx;
  104. .l-img {
  105. flex-shrink: 0;
  106. width: 180rpx;
  107. height: 164rpx;
  108. }
  109. .r-info {
  110. margin-left: 20rpx;
  111. flex: 1 1 auto;
  112. height: 164rpx;
  113. .t-title {
  114. font-family: SourceHanSansSC, SourceHanSansSC;
  115. font-size: 30rpx;
  116. color: #111111;
  117. }
  118. .tip-list {
  119. display: flex;
  120. margin: 10rpx 0;
  121. .tip-item {
  122. border-radius: 6rpx;
  123. border: 1rpx solid #CCB375;
  124. padding: 5rpx 8rpx;
  125. font-size: 20rpx;
  126. color: #CCB375;
  127. margin-right: 10rpx;
  128. }
  129. }
  130. .b-con {
  131. display: flex;
  132. align-items: center;
  133. justify-content: space-between;
  134. .t-price {
  135. font-family: SourceHanSansSC, SourceHanSansSC;
  136. font-size: 22rpx;
  137. color: #CE1717;
  138. .fee {
  139. font-size: 30rpx;
  140. }
  141. }
  142. .b-price {
  143. text-decoration-line: line-through;
  144. font-size: 22rpx;
  145. color: #999999;
  146. }
  147. .r-btn {
  148. border-radius: 25rpx;
  149. background-color: #CCB375;
  150. font-family: MicrosoftYaHeiUI;
  151. font-size: 24rpx;
  152. color: #FFFFFF;
  153. width: 140rpx;
  154. height: 50rpx;
  155. text-align: center;
  156. line-height: 50rpx;
  157. }
  158. }
  159. }
  160. }
  161. }
  162. }
  163. </style>