xujing před 5 roky
rodič
revize
402043400e

+ 1
- 3
src/components/authorizationComponent/index.js Zobrazit soubor

@@ -7,9 +7,7 @@ import { queryUserInfo, doUserSignin } from '@services/user'
7 7
 
8 8
 @connect(state => state.user, { ...actions })
9 9
 export default class Index extends Component {
10
-  config = {
11
-    navigationBarTitleText: '我的'
12
-  }
10
+
13 11
   state = {
14 12
     isLogin: false,
15 13
     isPhone: false

+ 28
- 22
src/pages/person/index.js Zobrazit soubor

@@ -30,13 +30,14 @@ export default class Person extends Component {
30 30
     roleName: '普通用户'
31 31
   }
32 32
 
33
-  componentDidShow () {
33
+  componentDidShow() {
34 34
     Taro.showLoading()
35 35
     this.loadUserInfo()
36 36
     Taro.hideLoading()
37
+    console.log(this.props, "wwwwwwwwwwwwwwwwww")
37 38
   }
38 39
 
39
-  loadUserInfo () {
40
+  loadUserInfo() {
40 41
     queryUserInfo().then(user => {
41 42
       const [roleSetting, roleName] = this.getRoleName(user.personType)
42 43
 
@@ -50,7 +51,7 @@ export default class Person extends Component {
50 51
     })
51 52
   }
52 53
 
53
-  doSign () {
54
+  doSign() {
54 55
     const { user: { id, havaSigned } } = this.state
55 56
     if (havaSigned) {
56 57
       return
@@ -72,13 +73,13 @@ export default class Person extends Component {
72 73
     })
73 74
   }
74 75
 
75
-  toHomePage () {
76
+  toHomePage() {
76 77
     Taro.switchTab({
77 78
       url: '/pages/project/index'
78 79
     })
79 80
   }
80 81
 
81
-  toShopPage () {
82
+  toShopPage() {
82 83
     Taro.switchTab({
83 84
       url: '/pages/shop/index'
84 85
     })
@@ -98,10 +99,10 @@ export default class Person extends Component {
98 99
           icon: "none",
99 100
           duration: 3000
100 101
         })
101
-        Taro.setStorageSync('userId',res.userId)
102
-        const  payload={
103
-          path:'',
104
-          scene:''
102
+        Taro.setStorageSync('userId', res.userId)
103
+        const payload = {
104
+          path: '',
105
+          scene: ''
105 106
         }
106 107
 
107 108
         login(payload, res => {
@@ -117,11 +118,11 @@ export default class Person extends Component {
117 118
         // },this.loadUserInfo())
118 119
 
119 120
         // if (res) {
120
-          // Taro.showToast({
121
-          //   title: "匹配成功,请退出小程序重新登录即可",
122
-          //   icon: "none",
123
-          //   duration: 3000
124
-          // })
121
+        // Taro.showToast({
122
+        //   title: "匹配成功,请退出小程序重新登录即可",
123
+        //   icon: "none",
124
+        //   duration: 3000
125
+        // })
125 126
         // } else {
126 127
         //   Taro.showToast({
127 128
         //     title: "匹配失败,请联系相关管理人员",
@@ -141,7 +142,7 @@ export default class Person extends Component {
141 142
 
142 143
   }
143 144
 
144
-  getRoleName (type) {
145
+  getRoleName(type) {
145 146
     switch (type) {
146 147
       case ROLE_CODE['CONSULTANT']:
147 148
         return [{ consultant: true }, '置业顾问']
@@ -154,19 +155,19 @@ export default class Person extends Component {
154 155
     }
155 156
   }
156 157
 
157
-  goShop () {
158
+  goShop() {
158 159
     Taro.switchTab({
159 160
       url: `/pages/shop/index`
160 161
     })
161 162
   }
162
-  handleMore () {
163
+  handleMore() {
163 164
     Taro.showModal({
164 165
       title: '温馨提示',
165 166
       content: '敬请期待'
166 167
     })
167 168
   }
168 169
 
169
-  goPersonDetail () {
170
+  goPersonDetail() {
170 171
 
171 172
     const { user: { personType } } = this.state
172 173
 
@@ -178,12 +179,13 @@ export default class Person extends Component {
178 179
 
179 180
   }
180 181
 
181
-  renderLogin () {
182
+  renderLogin() {
182 183
     return <Authorize></Authorize>
183 184
   }
184 185
 
185
-  renderDetail () {
186
+  renderDetail() {
186 187
     const { user, menus, roleName } = this.state
188
+    const { user: { userInfo: { miniApp: { name } } } } = this.props
187 189
     // const showQRCode = user.personType === ROLE_CODE['CONSULTANT'] || ROLE_CODE['ESTATE_AGENT'] || ROLE_CODE['CHANNEL_AGENT']
188 190
     // const isConsultant = user.personType == ROLE_CODE['CONSULTANT']
189 191
     // const isConsultant = user.personType
@@ -256,12 +258,16 @@ export default class Person extends Component {
256 258
             })
257 259
           }
258 260
         </View>
259
-        <View style="text-align:center;line-height:50px;color:#cccccc;">{version}</View>
261
+        <View style="text-align:center;color:#ccc;line-height:1.5;font-size:22rpx;padding:20rpx 0 4rpx 0 ">
262
+          <View style="font-size:26rpx;color:#999;"> {version}</View>
263
+          <View > 橙蕉互动提供技术支持 </View>
264
+          <View >{name}提供运营方案 </View>
265
+        </View>
260 266
       </View>
261 267
     );
262 268
   }
263 269
 
264
-  render () {
270
+  render() {
265 271
     const { phone, tel } = this.state.user
266 272
     return (
267 273
       <View className='wrap'>