From f82e87fe554ae939cb0f825a544e18590db41e03 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Sat, 6 Mar 2021 14:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/RecipesPlanDrawer/index.vue | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/stdiet-ui/src/components/RecipesPlanDrawer/index.vue b/stdiet-ui/src/components/RecipesPlanDrawer/index.vue index db51810f0..48e224f95 100644 --- a/stdiet-ui/src/components/RecipesPlanDrawer/index.vue +++ b/stdiet-ui/src/components/RecipesPlanDrawer/index.vue @@ -19,7 +19,17 @@ @click="handleOnRecipesLinkClick" >客户食谱链接 - + + + 二维码 + 查看暂停记录 @@ -68,13 +78,17 @@ import Clipboard from "clipboard"; import { listRecipesPlanByCusId } from "@/api/custom/recipesPlan"; import PlanPauseDrawer from "./PlanPauseDrawer"; +import VueQr from "vue-qr"; +const logo = require("@/assets/logo/logo_b.png"); export default { name: "RecipesPlanDrawer", components: { PlanPauseDrawer, + VueQr, }, data() { return { + logo, visible: false, title: "", cusOutId: "", @@ -90,6 +104,7 @@ export default { if (!this.data) { return; } + this.visible = true; this.title = `「${this.data.name}」食谱计划`; this.planLoading = true; @@ -101,6 +116,10 @@ export default { } return str; }, ""); + this.copyValue = + window.location.origin.replace("manage", "sign") + + "/recipes/detail/" + + this.cusOutId; // console.log(this.planList); this.planLoading = false; }); @@ -115,10 +134,6 @@ export default { this.innerTitle = `「${this.data.name}」暂停记录`; }, handleOnRecipesLinkClick() { - this.copyValue = - window.location.origin.replace("manage", "sign") + - "/recipes/detail/" + - this.cusOutId; new Clipboard(".copyBtn"); this.$message({ message: "拷贝成功",