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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. // #ifdef MP-ALIPAY
  87. state.list = [
  88. {
  89. bg: imgURL + "applyCard/product-bg.png",
  90. icon: imgURL + "applyCard/alibaba.png",
  91. title: "支付宝代扣",
  92. // tip: "服务费是每笔交易金额的0.05%",
  93. tag1: "支付宝代付",
  94. tag2: "支付宝便捷支付",
  95. tag: "tag1",
  96. channelId: data.data[0].channelId,
  97. },
  98. ]
  99. // #endif
  100. // #ifdef MP-WEIXIN
  101. state.list = [
  102. {
  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. channelId: data.data[0].channelId,
  111. },
  112. ];
  113. // #endif
  114. });
  115. });
  116. const state = reactive({
  117. data: {
  118. show: false,
  119. src: imgURL + "applyCard/edit.png",
  120. },
  121. list: [],
  122. id: "",
  123. clientFee: "",
  124. orderId: "",
  125. });
  126. </script>
  127. <style lang="scss" scoped>
  128. .content-value {
  129. position: relative;
  130. margin-top: -50rpx;
  131. // padding: 0rpx 30rpx;
  132. position: relative;
  133. }
  134. .flex {
  135. display: flex;
  136. align-items: center;
  137. }
  138. .action {
  139. margin-top: 30rpx;
  140. padding-left: 20rpx;
  141. padding-right: 20rpx;
  142. padding-bottom: 30rpx;
  143. .button {
  144. height: 80rpx;
  145. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  146. border-radius: 40rpx;
  147. font-size: 32rpx;
  148. font-weight: 400;
  149. color: #ffffff;
  150. line-height: 80rpx;
  151. }
  152. }
  153. .action-btn {
  154. margin-left: 45rpx;
  155. width: 121rpx;
  156. height: 61rpx;
  157. border: 1px solid rgba(255, 255, 255, 1);
  158. border-radius: 30rpx;
  159. background: rgba(255, 255, 255, 0.2);
  160. text-align: center;
  161. font-size: 30rpx;
  162. font-family: Microsoft YaHei;
  163. font-weight: 400;
  164. color: #ffffff;
  165. line-height: 61rpx;
  166. }
  167. .tag1 {
  168. padding: 5rpx;
  169. background: rgba(0, 179, 139, 0.5);
  170. border-radius: 6rpx;
  171. font-size: 22rpx;
  172. font-family: Microsoft YaHei;
  173. font-weight: 400;
  174. color: #ffffff;
  175. }
  176. .tag3 {
  177. padding: 5rpx;
  178. background: rgba(139, 112, 228, 0.5);
  179. border-radius: 6rpx;
  180. font-size: 22rpx;
  181. font-family: Microsoft YaHei;
  182. font-weight: 400;
  183. color: #ffffff;
  184. }
  185. .tag2 {
  186. padding: 5rpx;
  187. background: rgba(249, 97, 60, 0.5);
  188. border-radius: 6rpx;
  189. font-size: 22rpx;
  190. font-family: Microsoft YaHei;
  191. font-weight: 400;
  192. color: #ffffff;
  193. }
  194. .ul-item {
  195. padding: 5px 20rpx;
  196. display: flex;
  197. align-items: center;
  198. .item-value {
  199. padding: 20rpx;
  200. position: absolute;
  201. display: flex;
  202. align-items: center;
  203. justify-content: space-around;
  204. .content {
  205. .title {
  206. font-size: 32rpx;
  207. font-family: Microsoft YaHei;
  208. font-weight: 400;
  209. color: #ffffff;
  210. }
  211. .tip {
  212. font-size: 24rpx;
  213. font-family: Microsoft YaHei;
  214. font-weight: 400;
  215. color: #ffffff;
  216. }
  217. }
  218. }
  219. .icon-tip {
  220. width: 100rpx;
  221. height: 100rpx;
  222. }
  223. .content {
  224. margin-left: 40rpx;
  225. }
  226. }
  227. </style>