Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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()">已有签约,跳过。</button>
  38. </view> -->
  39. </view>
  40. </template>
  41. <script setup lang="ts">
  42. import { onLoad, onShow } from "@dcloudio/uni-app";
  43. import { reactive } from "vue";
  44. import { etcQyList } from "@/utils/network/api.js";
  45. import { request } from "@/utils/network/request.js";
  46. import { stringToJson } from "@/utils/network/encryption";
  47. import { fileURL } from "@/datas/fileURL.js";
  48. // import navBar from "../../components/nav-bar/nav-bar2.vue"
  49. // import navBgCar from "./components/nav-bg-car4";
  50. const imgURL = `${fileURL}image/`;
  51. const savaHandle = () => {
  52. console.log("执行点击事件");
  53. // uni.navigateTo({
  54. // url: `/pages/orders/choice-product?orderId=${state.orderId}`
  55. // })
  56. // uni.redirectTo({
  57. // url: `/pages/orders/choice-product?orderId=${state.orderId}`
  58. // });
  59. };
  60. const qianyueAction = (val) => {
  61. console.log(val);
  62. // uni.navigateTo({
  63. // url: `/pages/orders/sign-up?orderId=${val.orderId}`
  64. // })
  65. if (val.to == 1) {
  66. uni.redirectTo({
  67. url: "/subpackage/after-sale/account-change/product-detail",
  68. });
  69. } else if (val.to == 2) {
  70. wx.showModal({
  71. title: "",
  72. content: "账户中不存在招商银行,请先去添加银行卡继续办理",
  73. confirmText: "添加卡",
  74. cancelText: "取消办理",
  75. success: function (res) {
  76. if (res.confirm) {
  77. console.log("用户点击确定");
  78. uni.redirectTo({
  79. url: "/subpackage/after-sale/account-change/bank-card-add",
  80. });
  81. } else if (res.cancel) {
  82. console.log("用户点击取消");
  83. }
  84. },
  85. });
  86. } else {
  87. uni.redirectTo({
  88. url: "/subpackage/after-sale/account-change/signing-bank",
  89. });
  90. }
  91. };
  92. onLoad((option: any) => {
  93. state.orderId = "20230301165228146760068";
  94. var data = {};
  95. const options = {
  96. type: 2,
  97. data: data,
  98. method: "POST",
  99. showLoading: true,
  100. };
  101. request(etcQyList, options).then((res) => {
  102. const data = stringToJson(res.bizContent);
  103. // state.list = data.data
  104. state.list = [
  105. {
  106. bg: imgURL + "applyCard/product-bg.png",
  107. icon: imgURL + "applyCard/wechat.png",
  108. title: "微信支付",
  109. tip: "服务费是每笔交易金额的0.05%",
  110. tag1: "微信代付",
  111. tag2: "微信便捷支付",
  112. tag: "tag1",
  113. channelId: data.data[0].channelId,
  114. },
  115. ];
  116. });
  117. });
  118. const state = reactive({
  119. data: {
  120. show: false,
  121. src: imgURL + "applyCard/edit.png",
  122. },
  123. list: [
  124. {
  125. bg: imgURL + "applyCard/product-bg.png",
  126. icon: imgURL + "applyCard/wechat.png",
  127. title: "微信支付",
  128. tip: "服务费是每笔交易金额的0.05%",
  129. tag1: "微信代付",
  130. tag2: "微信便捷支付",
  131. tag: "tag1",
  132. to: "1",
  133. },
  134. {
  135. bg: imgURL + "jianshe-bg.png",
  136. icon: imgURL + "jianshe.png",
  137. title: "建设银行",
  138. tip: "服务费是每笔交易金额的0.05%",
  139. tag1: "微信代付",
  140. tag2: "微信便捷支付",
  141. tag: "tag1",
  142. to: "2",
  143. },
  144. {
  145. bg: imgURL + "gongshang-bg.png",
  146. icon: imgURL + "gongshang.png",
  147. title: "工商银行",
  148. tip: "服务费是每笔交易金额的0.05%",
  149. tag1: "微信代付",
  150. tag2: "微信便捷支付",
  151. tag: "tag1",
  152. },
  153. {
  154. bg: imgURL + "applyCard/product-bg.png",
  155. icon: imgURL + "nongshang.png",
  156. title: "农商银行",
  157. tip: "服务费是每笔交易金额的0.05%",
  158. tag1: "微信代付",
  159. tag2: "微信便捷支付",
  160. tag: "tag1",
  161. },
  162. {
  163. bg: imgURL + "applyCard/product-bg.png",
  164. icon: imgURL + "zhaoshang.png",
  165. title: "招商银行",
  166. tip: "服务费是每笔交易金额的0.05%",
  167. tag1: "微信代付",
  168. tag2: "微信便捷支付",
  169. tag: "tag1",
  170. },
  171. ],
  172. orderId: "",
  173. });
  174. </script>
  175. <style lang="scss" scoped>
  176. .content-value {
  177. position: relative;
  178. // margin-top: -50rpx;
  179. // padding: 0rpx 30rpx;
  180. position: relative;
  181. }
  182. .flex {
  183. display: flex;
  184. align-items: center;
  185. }
  186. .action {
  187. margin-top: 30rpx;
  188. padding-left: 20rpx;
  189. padding-right: 20rpx;
  190. padding-bottom: 30rpx;
  191. .button {
  192. height: 80rpx;
  193. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  194. border-radius: 40rpx;
  195. font-size: 32rpx;
  196. font-weight: 400;
  197. color: #ffffff;
  198. line-height: 80rpx;
  199. }
  200. }
  201. .action-btn {
  202. margin-left: 45rpx;
  203. width: 121rpx;
  204. height: 61rpx;
  205. border: 1px solid rgba(255, 255, 255, 1);
  206. border-radius: 30rpx;
  207. background: rgba(255, 255, 255, 0.2);
  208. text-align: center;
  209. font-size: 30rpx;
  210. font-family: Microsoft YaHei;
  211. font-weight: 400;
  212. color: #ffffff;
  213. line-height: 61rpx;
  214. }
  215. .tag1 {
  216. padding: 5rpx;
  217. background: rgba(0, 179, 139, 0.5);
  218. border-radius: 6rpx;
  219. font-size: 22rpx;
  220. font-family: Microsoft YaHei;
  221. font-weight: 400;
  222. color: #ffffff;
  223. }
  224. .tag3 {
  225. padding: 5rpx;
  226. background: rgba(139, 112, 228, 0.5);
  227. border-radius: 6rpx;
  228. font-size: 22rpx;
  229. font-family: Microsoft YaHei;
  230. font-weight: 400;
  231. color: #ffffff;
  232. }
  233. .tag2 {
  234. padding: 5rpx;
  235. background: rgba(249, 97, 60, 0.5);
  236. border-radius: 6rpx;
  237. font-size: 22rpx;
  238. font-family: Microsoft YaHei;
  239. font-weight: 400;
  240. color: #ffffff;
  241. }
  242. .ul-item {
  243. padding: 5px 20rpx;
  244. display: flex;
  245. align-items: center;
  246. .item-value {
  247. padding: 20rpx;
  248. position: absolute;
  249. display: flex;
  250. align-items: center;
  251. justify-content: space-around;
  252. .content {
  253. .title {
  254. font-size: 32rpx;
  255. font-family: Microsoft YaHei;
  256. font-weight: 400;
  257. color: #ffffff;
  258. }
  259. .tip {
  260. font-size: 24rpx;
  261. font-family: Microsoft YaHei;
  262. font-weight: 400;
  263. color: #ffffff;
  264. }
  265. }
  266. }
  267. .icon-tip {
  268. width: 100rpx;
  269. height: 100rpx;
  270. }
  271. .content {
  272. margin-left: 40rpx;
  273. }
  274. }
  275. </style>