zhoulisen il y a 5 ans
Parent
révision
547eed004c

+ 1
- 1
project.config.json Voir le fichier

@@ -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,

+ 8
- 3
src/components/consultant/index.js Voir le fichier

@@ -45,7 +45,7 @@ export default class Index extends Component {
45 45
     }
46 46
     handleChatClick(data, e) {
47 47
         e.stopPropagation()
48
-        
48
+
49 49
         const { userInfo: { miniApp: { tpls }, person: { personId, name, nickname } } } = this.props
50 50
         const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true)[0] || {}).tplId
51 51
         const realname = name || nickname
@@ -66,10 +66,15 @@ export default class Index extends Component {
66 66
     }
67 67
 
68 68
     handleConsuItemClick(item) {
69
+        console.log(item, '1231123')
70
+        wx.setStorage({
71
+            key: "isConsultant",
72
+            data: "true"
73
+        })
69 74
         Taro.navigateTo({
70
-          url: `/pages/card/index?id=${item.id}`
75
+            url: `/pages/card/index?id=${item.id}`
71 76
         })
72
-      }
77
+    }
73 78
     render() {
74 79
         const { show } = this.state
75 80
         const { data, style, smallStyle } = this.props

+ 2
- 0
src/pages/project/detail/index.js Voir le fichier

@@ -123,6 +123,7 @@ export default class Index extends Component {
123 123
   componentDidShow() {
124 124
     const id = this.$router.params.id
125 125
     if (id) {
126
+       console.log('12321312321321')
126 127
       this.loadDetail()
127 128
     }
128 129
   }
@@ -207,6 +208,7 @@ export default class Index extends Component {
207 208
     this.setState({
208 209
       buildingId: id
209 210
     }, () => {
211
+      console.log('12321312321321')
210 212
       this.loadDetail()
211 213
       this.loadNewsData()
212 214
       // this.loadActivityData()