ylong 7 місяців тому
батько
коміт
8768e35aa3

+ 4 - 4
pages/home/index.vue

@@ -160,6 +160,7 @@ import UpsellBook from "./components/upsell-book.vue";
 import UpsellRules from "./components/upsell-rules.vue";
 import UpsellShare from "./components/upsell-share.vue";
 import UpsellQrcode from "./components/upsell-qrcode.vue";
+const app = getApp();
 
 export default {
   components: {
@@ -267,10 +268,9 @@ export default {
         this.screenHeight = res.windowHeight;
       },
     });
-
-    if (this.globalData.upsellCode) {
-      console.log(this.globalData.upsellCode, "upsellCode");
-      this.$refs.shareRef?.open(this.globalData.upsellCode);
+    console.log(app.globalData, "获取全局参数globalData");
+    if (app.globalData.upsellCode) {
+      this.$refs.shareRef?.open(app.globalData.upsellCode);
     }
   },
   methods: {

BIN
static/img/activity/bg.png


BIN
static/img/activity/bg2.png


BIN
static/img/activity/hand.png


BIN
static/img/activity/卖书APP.png