選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

choice-product.vue 5.0KB

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