Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

release-products.vue 5.8KB

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