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

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