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.

release-products.vue 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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: `/applyCard/choice-product?orderId=${state.orderId}`,
  57. });
  58. };
  59. const qianyueAction = (val) => {
  60. console.log(val);
  61. uni.navigateTo({
  62. url: `/applyCard/sign-up?orderId=${state.orderId}`,
  63. });
  64. };
  65. onLoad((option: any) => {
  66. state.orderId = option.orderId;
  67. var data = {};
  68. const options = {
  69. type: 2,
  70. data: data,
  71. method: "POST",
  72. showLoading: true,
  73. };
  74. request(etcQyList, options).then((res) => {
  75. const data = stringToJson(res.bizContent);
  76. // state.list = data.data
  77. state.list = [
  78. {
  79. bg: imgURL + "applyCard/product-bg.png",
  80. icon: imgURL + "applyCard/wechat.png",
  81. title: "微信支付",
  82. tip: "服务费是每笔交易金额的0.05%",
  83. tag1: "微信代付",
  84. tag2: "微信便捷支付",
  85. tag: "tag1",
  86. channelId: data.data[0].channelId,
  87. },
  88. ];
  89. });
  90. });
  91. const state = reactive({
  92. data: {
  93. show: false,
  94. src: imgURL + "applyCard/edit.png",
  95. },
  96. list: [
  97. {
  98. bg: imgURL + "applyCard/product-bg.png",
  99. icon: imgURL + "applyCard/wechat.png",
  100. title: "微信支付",
  101. tip: "服务费是每笔交易金额的0.05%",
  102. tag1: "微信代付",
  103. tag2: "微信便捷支付",
  104. tag: "tag1",
  105. },
  106. ],
  107. orderId: "",
  108. });
  109. </script>
  110. <style lang="scss" scoped>
  111. .content-value {
  112. position: relative;
  113. margin-top: -50rpx;
  114. // padding: 0rpx 30rpx;
  115. position: relative;
  116. }
  117. .flex {
  118. display: flex;
  119. align-items: center;
  120. }
  121. .action {
  122. margin-top: 30rpx;
  123. padding-left: 20rpx;
  124. padding-right: 20rpx;
  125. padding-bottom: 30rpx;
  126. .button {
  127. height: 80rpx;
  128. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  129. border-radius: 40rpx;
  130. font-size: 32rpx;
  131. font-weight: 400;
  132. color: #ffffff;
  133. line-height: 80rpx;
  134. }
  135. }
  136. .action-btn {
  137. margin-left: 45rpx;
  138. width: 121rpx;
  139. height: 61rpx;
  140. border: 1px solid rgba(255, 255, 255, 1);
  141. border-radius: 30rpx;
  142. background: rgba(255, 255, 255, 0.2);
  143. text-align: center;
  144. font-size: 30rpx;
  145. font-family: Microsoft YaHei;
  146. font-weight: 400;
  147. color: #ffffff;
  148. line-height: 61rpx;
  149. }
  150. .tag1 {
  151. padding: 5rpx;
  152. background: rgba(0, 179, 139, 0.5);
  153. border-radius: 6rpx;
  154. font-size: 22rpx;
  155. font-family: Microsoft YaHei;
  156. font-weight: 400;
  157. color: #ffffff;
  158. }
  159. .tag3 {
  160. padding: 5rpx;
  161. background: rgba(139, 112, 228, 0.5);
  162. border-radius: 6rpx;
  163. font-size: 22rpx;
  164. font-family: Microsoft YaHei;
  165. font-weight: 400;
  166. color: #ffffff;
  167. }
  168. .tag2 {
  169. padding: 5rpx;
  170. background: rgba(249, 97, 60, 0.5);
  171. border-radius: 6rpx;
  172. font-size: 22rpx;
  173. font-family: Microsoft YaHei;
  174. font-weight: 400;
  175. color: #ffffff;
  176. }
  177. .ul-item {
  178. padding: 5px 20rpx;
  179. display: flex;
  180. align-items: center;
  181. .item-value {
  182. padding: 20rpx;
  183. position: absolute;
  184. display: flex;
  185. align-items: center;
  186. justify-content: space-around;
  187. .content {
  188. .title {
  189. font-size: 32rpx;
  190. font-family: Microsoft YaHei;
  191. font-weight: 400;
  192. color: #ffffff;
  193. }
  194. .tip {
  195. font-size: 24rpx;
  196. font-family: Microsoft YaHei;
  197. font-weight: 400;
  198. color: #ffffff;
  199. }
  200. }
  201. }
  202. .icon-tip {
  203. width: 100rpx;
  204. height: 100rpx;
  205. }
  206. .content {
  207. margin-left: 40rpx;
  208. }
  209. }
  210. </style>