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

release-products.vue 5.1KB

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