Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

release-products.vue 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <template>
  2. <navBar title="支付账户签约"></navBar>
  3. <navBgCar></navBgCar>
  4. <view class="content-value">
  5. <view @click="qianyueAction(item)" class="ul-item" v-for="(item, index) in state.list" :key="index">
  6. <image style="width: 100%; height: 170rpx; background-color: #eeeeee" :src="item.bg"></image>
  7. <view class="item-value">
  8. <image class="icon-tip" :src="item.icon"></image>
  9. <view class="content">
  10. <view class="title">
  11. {{ item.title }}
  12. </view>
  13. <view style="margin-top: 15rpx" class="tip">
  14. {{ item.tip }}
  15. </view>
  16. <view style="margin-top: 15rpx" class="flex">
  17. <view :class="item.tag">
  18. {{ item.tag1 }}
  19. </view>
  20. <view style="margin-left: 15rpx" :class="item.tag">
  21. {{ item.tag2 }}
  22. </view>
  23. </view>
  24. </view>
  25. <view class="action-btn"> 签约 </view>
  26. </view>
  27. </view>
  28. <!-- <view class="action">
  29. <button type="default" class="button" @click="savaHandle()">
  30. 已有签约,跳过。
  31. </button>
  32. </view> -->
  33. </view>
  34. </template>
  35. <script setup lang="ts">
  36. import {
  37. onLoad,
  38. onShow
  39. } from "@dcloudio/uni-app";
  40. import {
  41. reactive
  42. } from "vue";
  43. import {
  44. etcQyList
  45. } from "@/utils/network/api.js";
  46. import {
  47. request
  48. } from "@/utils/network/request.js";
  49. import {
  50. stringToJson
  51. } from "@/utils/network/encryption";
  52. import {
  53. fileURL
  54. } from "@/datas/fileURL.js";
  55. import navBar from "../components/nav-bar/nav-bar2.vue";
  56. import navBgCar from "./components/nav-bg-car5";
  57. const imgURL = `${fileURL}image/`;
  58. const savaHandle = () => {
  59. console.log("执行点击事件");
  60. uni.navigateTo({
  61. url: `/applyCard/choice-product?orderId=${state.orderId}`,
  62. });
  63. };
  64. const qianyueAction = (val) => {
  65. console.log(val);
  66. uni.navigateTo({
  67. url: `/applyCard/sign-up?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}`,
  68. });
  69. };
  70. onLoad((option: any) => {
  71. state.orderId = option.orderId;
  72. state.clientFee = option.clientFee;
  73. state.id = option.id;
  74. state.data
  75. var data = {};
  76. const options = {
  77. type: 2,
  78. data: data,
  79. method: "POST",
  80. showLoading: true,
  81. };
  82. request(etcQyList, options).then((res) => {
  83. const data = stringToJson(res.bizContent);
  84. // state.list = data.data
  85. state.list = [{
  86. bg: imgURL + "applyCard/product-bg.png",
  87. icon: imgURL + "applyCard/wechat.png",
  88. title: "微信支付",
  89. tip: "服务费是每笔交易金额的0.05%",
  90. tag1: "微信代付",
  91. tag2: "微信便捷支付",
  92. tag: "tag1",
  93. channelId: data.data[0].channelId,
  94. }, ];
  95. });
  96. });
  97. const state = reactive({
  98. data: {
  99. show: false,
  100. src: imgURL + "applyCard/edit.png",
  101. },
  102. list: [{
  103. bg: imgURL + "applyCard/product-bg.png",
  104. icon: imgURL + "applyCard/wechat.png",
  105. title: "微信支付",
  106. tip: "服务费是每笔交易金额的0.05%",
  107. tag1: "微信代付",
  108. tag2: "微信便捷支付",
  109. tag: "tag1",
  110. }, ],
  111. id: '',
  112. clientFee: '',
  113. orderId: "",
  114. });
  115. </script>
  116. <style lang="scss" scoped>
  117. .content-value {
  118. position: relative;
  119. margin-top: -50rpx;
  120. // padding: 0rpx 30rpx;
  121. position: relative;
  122. }
  123. .flex {
  124. display: flex;
  125. align-items: center;
  126. }
  127. .action {
  128. margin-top: 30rpx;
  129. padding-left: 20rpx;
  130. padding-right: 20rpx;
  131. padding-bottom: 30rpx;
  132. .button {
  133. height: 80rpx;
  134. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  135. border-radius: 40rpx;
  136. font-size: 32rpx;
  137. font-weight: 400;
  138. color: #ffffff;
  139. line-height: 80rpx;
  140. }
  141. }
  142. .action-btn {
  143. margin-left: 45rpx;
  144. width: 121rpx;
  145. height: 61rpx;
  146. border: 1px solid rgba(255, 255, 255, 1);
  147. border-radius: 30rpx;
  148. background: rgba(255, 255, 255, 0.2);
  149. text-align: center;
  150. font-size: 30rpx;
  151. font-family: Microsoft YaHei;
  152. font-weight: 400;
  153. color: #ffffff;
  154. line-height: 61rpx;
  155. }
  156. .tag1 {
  157. padding: 5rpx;
  158. background: rgba(0, 179, 139, 0.5);
  159. border-radius: 6rpx;
  160. font-size: 22rpx;
  161. font-family: Microsoft YaHei;
  162. font-weight: 400;
  163. color: #ffffff;
  164. }
  165. .tag3 {
  166. padding: 5rpx;
  167. background: rgba(139, 112, 228, 0.5);
  168. border-radius: 6rpx;
  169. font-size: 22rpx;
  170. font-family: Microsoft YaHei;
  171. font-weight: 400;
  172. color: #ffffff;
  173. }
  174. .tag2 {
  175. padding: 5rpx;
  176. background: rgba(249, 97, 60, 0.5);
  177. border-radius: 6rpx;
  178. font-size: 22rpx;
  179. font-family: Microsoft YaHei;
  180. font-weight: 400;
  181. color: #ffffff;
  182. }
  183. .ul-item {
  184. padding: 5px 20rpx;
  185. display: flex;
  186. align-items: center;
  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>