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.

преди 2 години
преди 2 години
преди 2 години
преди 2 години
преди 2 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <navBar title="选择产品"></navBar>
  3. <navBgCar></navBgCar>
  4. <view class="content-value">
  5. <view @click="savaHandle(item)" class="ul-item" v-for="(item, index) in state.dataArray" :key="index">
  6. <image style="width: 100%; height: 170rpx; background-color: #eeeeee"
  7. :src="`${$imgUrl}applyCard/product-bg.png`"></image>
  8. <view class="item-value">
  9. <image class="icon-tip" :src="`${$imgUrl}applyCard/wechat.png`"></image>
  10. <view class="content">
  11. <view class="title">
  12. {{ item.name }}
  13. </view>
  14. <view style="margin-top: 15rpx" class="tip">
  15. {{ item.productMsg }}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="bottomTip"> 到底啦!敬请期待其他产品! </view>
  21. </view>
  22. </template>
  23. <script setup lang="ts">
  24. import {
  25. onLoad,
  26. onShow
  27. } from "@dcloudio/uni-app";
  28. import {
  29. reactive
  30. } from "vue";
  31. import {
  32. etcQueryProduct
  33. } from "@/utils/network/api.js";
  34. import {
  35. request
  36. } from "@/utils/network/request.js";
  37. import {
  38. stringToJson
  39. } from "@/utils/network/encryption";
  40. import {
  41. fileURL
  42. } from "@/datas/fileURL.js";
  43. import navBgCar from "./components/nav-bg-car4";
  44. import navBar from "../components/nav-bar/nav-bar2.vue";
  45. import {
  46. getItem,
  47. StorageKeys
  48. } from "@/utils/storage.ts";
  49. import {
  50. msg
  51. } from "@/utils/utils";
  52. const imgURL = `${fileURL}image/`;
  53. import {
  54. setItem
  55. } from "@/utils/storage";
  56. const savaHandle = (val) => {
  57. if (val.isValueCard === 2) {
  58. setItem('clientFee', val.clientFee)
  59. setItem("productId", val.id)
  60. uni.navigateTo({
  61. url: `/applyCard/release-products?orderId=${state.orderId}&&clientFee=${val.clientFee}&&id=${val.id}`,
  62. });
  63. } else {
  64. uni.navigateTo({
  65. url: `/applyCard/product-detail?orderId=${state.orderId}&&clientFee=${val.clientFee}&&id=${val.id}`,
  66. });
  67. }
  68. };
  69. onLoad((option: any) => {
  70. state.orderId = option.orderId;
  71. var data = {
  72. orderId: state.orderId,
  73. };
  74. const options = {
  75. type: 2,
  76. data: data,
  77. method: "POST",
  78. showLoading: true,
  79. };
  80. request(etcQueryProduct, options).then((res) => {
  81. const data = stringToJson(res.bizContent);
  82. state.dataArray = data;
  83. });
  84. });
  85. const state = reactive({
  86. orderId: "",
  87. data: {
  88. show: false,
  89. src: imgURL + "applyCard/edit.png",
  90. },
  91. dataArray: [],
  92. list: [{
  93. bg: imgURL + "applyCard/product-bg.png",
  94. icon: imgURL + "applyCard/wechat.png",
  95. title: "【货车】微信车主服务",
  96. tip: "绑定微信支付,无需绑定银行卡",
  97. }, ],
  98. });
  99. </script>
  100. <style lang="scss" scoped>
  101. .bottomTip {
  102. margin-top: 100rpx;
  103. text-align: center;
  104. font-size: 28rpx;
  105. font-family: Microsoft YaHei;
  106. font-weight: 400;
  107. color: #b3b3b3;
  108. }
  109. .content-value {
  110. position: relative;
  111. margin-top: -50rpx;
  112. padding: 0rpx 30rpx;
  113. position: relative;
  114. .img-pos {
  115. position: absolute;
  116. left: 500rpx;
  117. top: -38rpx;
  118. right: 50rpx;
  119. .img-flex {
  120. display: flex;
  121. justify-content: space-between;
  122. align-items: center;
  123. .car-img {
  124. width: 86rpx;
  125. height: 42rpx;
  126. }
  127. .flag-img {
  128. width: 30rpx;
  129. height: 35rpx;
  130. }
  131. }
  132. }
  133. }
  134. .flex {
  135. display: flex;
  136. align-items: center;
  137. }
  138. .action {
  139. margin-top: 30rpx;
  140. padding-left: 20rpx;
  141. padding-right: 20rpx;
  142. padding-bottom: 30rpx;
  143. .button {
  144. height: 80rpx;
  145. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  146. border-radius: 40rpx;
  147. font-size: 32rpx;
  148. font-weight: 400;
  149. color: #ffffff;
  150. line-height: 80rpx;
  151. }
  152. }
  153. .action-btn {
  154. margin-left: 45rpx;
  155. width: 121rpx;
  156. height: 61rpx;
  157. border: 1px solid rgba(255, 255, 255, 1);
  158. border-radius: 30rpx;
  159. background: rgba(255, 255, 255, 0.2);
  160. text-align: center;
  161. font-size: 30rpx;
  162. font-family: Microsoft YaHei;
  163. font-weight: 400;
  164. color: #ffffff;
  165. line-height: 61rpx;
  166. }
  167. .tag1 {
  168. padding: 5rpx;
  169. background: rgba(0, 179, 139, 0.5);
  170. border-radius: 6rpx;
  171. font-size: 22rpx;
  172. font-family: Microsoft YaHei;
  173. font-weight: 400;
  174. color: #ffffff;
  175. }
  176. .tag3 {
  177. padding: 5rpx;
  178. background: rgba(139, 112, 228, 0.5);
  179. border-radius: 6rpx;
  180. font-size: 22rpx;
  181. font-family: Microsoft YaHei;
  182. font-weight: 400;
  183. color: #ffffff;
  184. }
  185. .tag2 {
  186. padding: 5rpx;
  187. background: rgba(249, 97, 60, 0.5);
  188. border-radius: 6rpx;
  189. font-size: 22rpx;
  190. font-family: Microsoft YaHei;
  191. font-weight: 400;
  192. color: #ffffff;
  193. }
  194. .ul-item {
  195. padding: 5px 20rpx;
  196. display: flex;
  197. align-items: center;
  198. .item-value {
  199. padding: 20rpx;
  200. position: absolute;
  201. display: flex;
  202. align-items: center;
  203. justify-content: space-around;
  204. .content {
  205. .title {
  206. font-size: 32rpx;
  207. font-family: Microsoft YaHei;
  208. font-weight: 400;
  209. color: #ffffff;
  210. }
  211. .tip {
  212. font-size: 24rpx;
  213. font-family: Microsoft YaHei;
  214. font-weight: 400;
  215. color: #ffffff;
  216. }
  217. }
  218. }
  219. .icon-tip {
  220. width: 100rpx;
  221. height: 100rpx;
  222. }
  223. .content {
  224. margin-left: 40rpx;
  225. }
  226. }
  227. </style>