Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

release-products.vue 6.9KB

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