xujing 5 年之前
父節點
當前提交
7a04f68184
共有 4 個文件被更改,包括 38 次插入20 次删除
  1. 0
    5
      config/dev.js
  2. 26
    13
      src/pages/activity/activity.js
  3. 1
    1
      src/pages/person/accessRecord.js
  4. 11
    1
      src/pages/project/h5Page.js

+ 0
- 5
config/dev.js 查看文件

@@ -9,13 +9,8 @@ module.exports = {
9 9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-<<<<<<< HEAD
13 12
     // HOST: '"http://192.168.2.52:8080"',
14 13
     // WSS_HOST: '"ws://192.168.2.52:8080"',
15
-=======
16
-    HOST: '"http://192.168.2.52:8080"',
17
-    WSS_HOST: '"ws://192.168.2.52:8080"',
18
->>>>>>> 6d2db04a857d72bc8504b0f061c8baf8a3c98aba
19 14
   },
20 15
   weapp: {},
21 16
   h5: {}

+ 26
- 13
src/pages/activity/activity.js 查看文件

@@ -38,19 +38,32 @@ export default class active extends Component {
38 38
       console.log('活动列表')
39 39
     })
40 40
   }
41
-  componentWillMount() {
42
-    if (Taro.getApp().props.projectIndex) {
43
-      this.setState({
44
-        current: 1
45
-      })
46
-    }
47
-    else {
48
-      this.setState({
49
-        current: 0
50
-      })
51
-    }
52
-  }
53
-
41
+  // componentWillMount() {
42
+  //   console.log(Taro.getApp().props, "Taro.getApp()")
43
+  //   if (Taro.getApp().props.projectIndex) {
44
+  //     this.setState({
45
+  //       current: 1
46
+  //     })
47
+  //   }
48
+  //   else {
49
+  //     this.setState({
50
+  //       current: 0
51
+  //     })
52
+  //   }
53
+  // }
54
+  // componentDidShow() {
55
+  //   if (Taro.getApp().props.projectIndex == 1) {
56
+  //     this.setState({
57
+  //       current: 1
58
+  //     })
59
+  //     Taro.getApp().props.projectIndex = 2
60
+  //   }
61
+  //   else {
62
+  //     this.setState({
63
+  //       current: 0
64
+  //     })
65
+  //   }
66
+  // }
54 67
   componentWillUnmount() {
55 68
     const { recordId } = this.state
56 69
     recordId && updatePoint(recordId)

+ 1
- 1
src/pages/person/accessRecord.js 查看文件

@@ -127,7 +127,7 @@ export default class Person extends Component {
127 127
               moreRecord.map(item => (
128 128
                 <View className="activity-item">
129 129
                   <View className="name">{item.activityName || ' '}</View>
130
-                  <View className="time">{`${dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}`}</View>
130
+                  <View className="time">{`${dayjs(item.visitTime).format('YYYY-MM-DD HH:mm:ss')}`}</View>
131 131
                 </View>
132 132
               ))
133 133
             }

+ 11
- 1
src/pages/project/h5Page.js 查看文件

@@ -100,6 +100,7 @@ export default class Index extends Component {
100 100
     ready.queue(() => {
101 101
 
102 102
       if (this.$router.params.scene) {
103
+
103 104
         getQrCodeParams(this.$router.params.scene).then((_, codeParams) => {
104 105
           this.setState({
105 106
             codeParams: codeParams || ''
@@ -114,6 +115,7 @@ export default class Index extends Component {
114 115
       console.log(hFiveId, "hFiveId")
115 116
       // h5id 、第一个分享人ID、置业顾问ID、分享人ID 
116 117
       getHFiveDetail(hFiveId).then(res => {
118
+        // debugger
117 119
         this.setState({
118 120
           pageInfo: res
119 121
         })
@@ -125,6 +127,7 @@ export default class Index extends Component {
125 127
         this.setState({
126 128
           avatarVisible: false,
127 129
         })
130
+        console.log(phone, "phone#########")
128 131
         // 头像手机号都有
129 132
         if (phone) {
130 133
 
@@ -154,6 +157,7 @@ export default class Index extends Component {
154 157
       avatarVisible: false,
155 158
       phoneVisible: true,
156 159
     })
160
+
157 161
     console.log("授权头像成功!")
158 162
   }
159 163
   // 授权用户信息
@@ -168,9 +172,15 @@ export default class Index extends Component {
168 172
         const payload = Object.assign(res, { sessionKey })
169 173
         // 用户信息保存至服务器
170 174
         dispatchUpdateUserInfo(payload).then(res => {
171
-          console.log('获取用户信息成功')
172 175
           this.onAvatarSuccess();
176
+          console.log('获取用户信息成功')
173 177
           Taro.hideLoading()
178
+          const { userInfo: { person: { phone } } } = this.props
179
+          if (phone) {
180
+            this.setState({
181
+              phoneVisible: false,
182
+            })
183
+          }
174 184
         })
175 185
       },
176 186
       fail: (err) => {