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.

choice-product.vue 5.0KB

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