xujing 5 lat temu
rodzic
commit
4631a57fe5
2 zmienionych plików z 5 dodań i 3 usunięć
  1. 1
    1
      project.config.json
  2. 4
    2
      src/pages/project/h5Page.js

+ 1
- 1
project.config.json Wyświetl plik

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "知与行互动",
5
-	"appid": "wxd6f47a9bb3052175",
5
+	"appid": "wxd9ee3a9480a4e544",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 4
- 2
src/pages/project/h5Page.js Wyświetl plik

@@ -474,14 +474,14 @@ export default class Index extends Component {
474 474
       webParams,
475 475
     } = this.state;
476 476
     const {
477
-      userInfo: { person }
477
+      userInfo: { person },
478 478
     } = this.props;
479 479
 
480 480
     const consultant1 = this.$router.params.consultantId || codeParams.consultant || Taro.getStorageSync('consultantId') || ''
481 481
     const consultantId1 = this.$router.params.consultantId || codeParams.consultantId || ''
482 482
     const consultant = person.personType == ROLE_CODE["CONSULTANT"] ? person.personId : consultant1;
483 483
     const consultantId = person.personType == ROLE_CODE["CONSULTANT"] ? person.userId : consultantId1;
484
-
484
+    console.log(this.props, "this.propsthis.propsthis.propsthis.props")
485 485
     const firstShare = this.$router.params.firstShare || person.personId;
486 486
     const webUrlParams = [
487 487
       `personId=${person.personId}`,
@@ -491,6 +491,8 @@ export default class Index extends Component {
491 491
       `consultant=${consultant}`,
492 492
       `consultantId=${consultantId}`,
493 493
       `firstShare=${firstShare}`,
494
+      `orgId=${person.orgId}`,
495
+      `miniappId=${person.miniappId}`,
494 496
       `codeParams=${encodeURIComponent(mergeQueryParams(webParams || '', codeParams["__raw"]))}`
495 497
     ].join("&");
496 498