erekook 7 mēneši atpakaļ
vecāks
revīzija
d989a8d030

+ 4 - 0
app.js

@@ -15,6 +15,9 @@ import { apple } from "./config/config";
 
 
 App({
 App({
   onLaunch(options) {
   onLaunch(options) {
+    this.globalData.queryData = {
+      ...options.query,
+    };
     console.log("场景值:", options, options.scene);
     console.log("场景值:", options, options.scene);
     this.globalData.from = options.query.from || "";
     this.globalData.from = options.query.from || "";
     novelPlugin.setLoggerConfig({
     novelPlugin.setLoggerConfig({
@@ -150,6 +153,7 @@ App({
     userCode: "",
     userCode: "",
     from: "",
     from: "",
     videoAd: null,
     videoAd: null,
+    queryData: {},
   },
   },
 });
 });
 
 

BIN
assets/images/icons/submit-ok.png


+ 1 - 7
pages/feedback/success.js

@@ -6,14 +6,8 @@ Page({
   data: {},
   data: {},
 
 
   onClickBtn() {
   onClickBtn() {
-    wx.redirectTo({
+    wx.switchTab({
       url: "/pages/index/index",
       url: "/pages/index/index",
-      success: (res) => {
-        console.log("Redirect success");
-      },
-      fail: (err) => {
-        console.error("Redirect failed", err);
-      },
     });
     });
   },
   },
 
 

+ 1 - 1
project.private.config.json

@@ -26,7 +26,7 @@
         {
         {
           "name": "pages/feedback/index",
           "name": "pages/feedback/index",
           "pathName": "pages/feedback/index",
           "pathName": "pages/feedback/index",
-          "query": "",
+          "query": "corpId=123&employeeId=456",
           "scene": null,
           "scene": null,
           "launchMode": "default"
           "launchMode": "default"
         },
         },