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
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
     // HOST: '"https://lt.pawoma.cn"',
10
     // HOST: '"https://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-<<<<<<< HEAD
13
     // HOST: '"http://192.168.2.52:8080"',
12
     // HOST: '"http://192.168.2.52:8080"',
14
     // WSS_HOST: '"ws://192.168.2.52:8080"',
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
   weapp: {},
15
   weapp: {},
21
   h5: {}
16
   h5: {}

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

38
       console.log('活动列表')
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
   componentWillUnmount() {
67
   componentWillUnmount() {
55
     const { recordId } = this.state
68
     const { recordId } = this.state
56
     recordId && updatePoint(recordId)
69
     recordId && updatePoint(recordId)

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

127
               moreRecord.map(item => (
127
               moreRecord.map(item => (
128
                 <View className="activity-item">
128
                 <View className="activity-item">
129
                   <View className="name">{item.activityName || ' '}</View>
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
                 </View>
131
                 </View>
132
               ))
132
               ))
133
             }
133
             }

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

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