xujing 5 年之前
父節點
當前提交
97c3a7068c

+ 18
- 3
src/pages/checkin/index.js 查看文件

@@ -24,9 +24,24 @@ export default class checkin extends Component {
24 24
       const router = Taro.getStorageSync('router')
25 25
 
26 26
       const { id = router.query.id, type = router.query.type || '' } = parseQueryString(router.query.params)
27
+     
28
+      if (!id) {
29
+        getQrCodeParams(this.$router.params.scene).then(res => {
30
+          this.setState({ id: res.id, type: res.type }, () => {
31
+            this.setState({ id, type })
32
+            this.getcheckinDetails(id, type)
33
+          })
34
+        }).catch(err => {
35
+          Taro.showToast({
36
+            title: '没有找到活动',
37
+            icon: 'none'
38
+          })
39
+        })
40
+      } else {
41
+        this.setState({ id, type })
42
+        this.getcheckinDetails(id, type)
43
+      }
27 44
       console.log(id, 'id-----')
28
-      this.setState({ id, type })
29
-      this.getcheckinDetails(id, type)
30 45
 
31 46
       // const routers = wx.getLaunchOptionsSync()
32 47
 
@@ -59,7 +74,7 @@ export default class checkin extends Component {
59 74
   // console.log(id, 'id-----')
60 75
   // this.setState({ id, type })
61 76
   componentDidShow () {
62
-    const { id, type } = this.state
77
+    // const { id, type } = this.state
63 78
     // this.getcheckinDetails(id, type)
64 79
   }
65 80
   // dynamicId

+ 2
- 2
src/pages/person/personDetail/editDetail/index.js 查看文件

@@ -185,8 +185,8 @@ export default class editDetail extends Component {
185 185
               </View>
186 186
             </Picker>
187 187
           </View>)
188
-        }
189
-        {
188
+        } */}
189
+        {/* {
190 190
           (isChannel && user.personType == 'estate agent') && (<View className='col_box'>
191 191
             <Input type='text' placeholder='请输入渠道码' className='channelCode' data-id='channelCode' onInput={this.BindInfo.bind(this)} />
192 192
           </View>)

+ 5
- 5
src/pages/project/detail/index.js 查看文件

@@ -65,10 +65,10 @@ export default class Index extends Component {
65 65
 
66 66
   componentWillMount() {
67 67
     ready.queue(() => {
68
-      // 分享场景需要先授权手机, 再授权头像
69
-      const options = wx.getLaunchOptionsSync()
70
-      console.log('-------options----->', options)
71
-      if (sceneInShare(options.scene)) {
68
+      // // 分享场景需要先授权手机, 再授权头像
69
+      // const options = wx.getLaunchOptionsSync()
70
+      // console.log('-------options----->', options)
71
+      // if (sceneInShare(options.scene)) {
72 72
         const { person = {} } = this.props.userInfo || {}
73 73
         console.log('-------person----->', person)
74 74
         if ((person.tel || person.phone) && (person.avatarurl || '').indexOf('wx.qlogo.cn') === -1) {
@@ -79,7 +79,7 @@ export default class Index extends Component {
79 79
         this.setState({
80 80
           grantPhoneVisible: true,
81 81
         })
82
-      }
82
+      // }
83 83
 
84 84
 
85 85
       const router = Taro.getStorageSync('router')

+ 0
- 6
src/pages/project/index.js 查看文件

@@ -84,7 +84,6 @@ export default class Index extends Component {
84 84
 
85 85
     if (this.props.curCity.id) {
86 86
       ready.queue(() => {
87
-        console.log('我又隐藏啦,哈哈哈哈')
88 87
         Taro.hideTabBar()
89 88
         this.loadData()
90 89
       })
@@ -97,8 +96,6 @@ export default class Index extends Component {
97 96
   }
98 97
 
99 98
   getLocation() {
100
-    // debugger
101
-    console.log('-----this.props-->', this.props)
102 99
     const { cityList, userInfo: { person: { org } } } = this.props
103 100
     let defaultCity = cityList.filter(item => {
104 101
       return item.id == org.defaultCityId
@@ -109,8 +106,6 @@ export default class Index extends Component {
109 106
       Taro.setStorageSync('lat', location.latitude)
110 107
       Taro.setStorageSync('lon', location.longitude)
111 108
 
112
-      console.log(location, 'location')
113
-
114 109
       const payload = { location: `${location.longitude},${location.latitude}` }
115 110
 
116 111
       getLocationCity(payload).then(res => {
@@ -118,7 +113,6 @@ export default class Index extends Component {
118 113
         let curCity = cityList.filter(item => {
119 114
           return item.name == res.name || ''
120 115
         })
121
-
122 116
         console.log('-----curCity-->', curCity)
123 117
         this.updateCity(curCity[0] || defaultCity)
124 118
       }).catch(err => {