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.

choice-product.vue 5.2KB

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