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 5.2KB

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