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: "拷贝成功",