From 2aa71d0e74a5c4a87b610dae5639b25a56e8c313 Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Tue, 13 Aug 2024 10:01:25 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B48=E6=9C=8813=E6=97=A5=20=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/merchantList.vue | 45 +++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/src/views/business/merchantList.vue b/src/views/business/merchantList.vue index be6917d..a55a010 100644 --- a/src/views/business/merchantList.vue +++ b/src/views/business/merchantList.vue @@ -20,11 +20,11 @@      - 刷新 + 刷新 - 重置 + 重置 - 添加 @@ -114,6 +114,9 @@ 收益明细 + + 生成二维码 + 删除 @@ -486,6 +489,17 @@ + +
+ + +
+
+ @@ -592,6 +606,10 @@ import { serverPaths } from '@/utils/enumData' percentage2: 0, certification:[], imagePhoto:[], + + showQrCodePage: false, + qrCodePath: "", + qrCodeLoading: false, } }, @@ -1289,6 +1307,27 @@ import { serverPaths } from '@/utils/enumData' } }) }, + genQrCode(row) { + //打开弹窗,窗口里有二维码,或者空, + + this.showQrCodePage = true; + this.qrCodePath = ""; + this.qrCodeLoading = true; + + let params = { + id: row.consortiaId, + }; + this.$http({ url: this.$http.adornUrl('consortia/genOrGetQrCodePath'), method: 'get', params: this.$http.adornParams(params) }).then(({ data }) => { + if (data.code == 0) { + //this.$message({ message: '加载成功', type: 'success', duration: 1500 }) + this.qrCodePath = data.imagePath; + } else { + this.$message({ message: data.msg, type: 'error', duration: 1500 }) + } + this.qrCodeLoading = false; + }); + + }, handleAvatarSuccess1(file, fileList) { this.logo = file.data },