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

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