shish 11 luni în urmă
părinte
comite
4f3ad5338e
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      mallApp/src/pages/goods/detail.vue

+ 4 - 1
mallApp/src/pages/goods/detail.vue

@@ -79,6 +79,7 @@
       :info="data"
       :buyNum="buyNum"
       :hdId="hdId"
+      :account="account"
       @change="changeNum"
       @close="hidePopup"
     />
@@ -95,7 +96,7 @@ import { mapGetters } from "vuex";
 import { getDetail } from "@/api/goods";
 import RichMediaViewer from "../../components/RichMediaViewer/index.vue";
 export default {
-  name: "goods-detail",
+  name: "detail",
   mixins: [share],
   components: {
     AppSwiper,
@@ -111,6 +112,7 @@ export default {
       buyNum: 1,
       popupShow: false,
       hdId: 0,
+      account:0,
       title: "",
       previewContent: [],
       common_title: "",
@@ -119,6 +121,7 @@ export default {
   },
   onLoad(option) {
     this.hdId = this.option.hdId ? this.option.hdId : 0;
+    this.account = this.option.account?this.option.account:0
   },
   onPageScroll(e) {
     // console.log('Scroll position:', parseInt(e.scrollTop))