Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

release-products.vue 5.8KB

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