您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

release-products.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. var data = {};
  75. const options = {
  76. type: 2,
  77. data: data,
  78. method: "POST",
  79. showLoading: true,
  80. };
  81. request(etcQyList, options).then((res) => {
  82. const data = stringToJson(res.bizContent);
  83. // state.list = data.data
  84. state.list = [{
  85. bg: imgURL + "applyCard/product-bg.png",
  86. icon: imgURL + "applyCard/wechat.png",
  87. title: "微信支付",
  88. tip: "服务费是每笔交易金额的0.05%",
  89. tag1: "微信代付",
  90. tag2: "微信便捷支付",
  91. tag: "tag1",
  92. channelId: data.data[0].channelId,
  93. }, ];
  94. });
  95. });
  96. const state = reactive({
  97. data: {
  98. show: false,
  99. src: imgURL + "applyCard/edit.png",
  100. },
  101. list: [{
  102. bg: imgURL + "applyCard/product-bg.png",
  103. icon: imgURL + "applyCard/wechat.png",
  104. title: "微信支付",
  105. tip: "服务费是每笔交易金额的0.05%",
  106. tag1: "微信代付",
  107. tag2: "微信便捷支付",
  108. tag: "tag1",
  109. }, ],
  110. id: '',
  111. clientFee: '',
  112. orderId: "",
  113. });
  114. </script>
  115. <style lang="scss" scoped>
  116. .content-value {
  117. position: relative;
  118. margin-top: -50rpx;
  119. // padding: 0rpx 30rpx;
  120. position: relative;
  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. .item-value {
  187. padding: 20rpx;
  188. position: absolute;
  189. display: flex;
  190. align-items: center;
  191. justify-content: space-around;
  192. .content {
  193. .title {
  194. font-size: 32rpx;
  195. font-family: Microsoft YaHei;
  196. font-weight: 400;
  197. color: #ffffff;
  198. }
  199. .tip {
  200. font-size: 24rpx;
  201. font-family: Microsoft YaHei;
  202. font-weight: 400;
  203. color: #ffffff;
  204. }
  205. }
  206. }
  207. .icon-tip {
  208. width: 100rpx;
  209. height: 100rpx;
  210. }
  211. .content {
  212. margin-left: 40rpx;
  213. }
  214. }
  215. </style>