Browse Source

Merge branch 'dev'

xujing 5 years ago
parent
commit
e9a4386d8e

+ 4
- 4
config/dev.js View File

5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://47.101.36.130:8085"',//测试
6
     // HOST: '"http://47.101.36.130:8085"',//测试
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    // HOST: '"https://dev.jinchengjiaye.com"',//测试
9
-    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
-    HOST: '"https://lt.pawoma.cn"',
11
-    WSS_HOST: '"wss://lt.pawoma.cn"',
8
+    HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
+    // HOST: '"https://lt.pawoma.cn"',
11
+    // WSS_HOST: '"wss://lt.pawoma.cn"',
12
     // HOST: '"http://192.168.2.51:8080"',
12
     // HOST: '"http://192.168.2.51:8080"',
13
     // WSS_HOST: '"ws://192.168.2.51:8080"',
13
     // WSS_HOST: '"ws://192.168.2.51:8080"',
14
     Version: 'V3.5.5'
14
     Version: 'V3.5.5'

+ 4
- 4
config/prod.js View File

5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://192.168.2.54:8080"',
6
     // HOST: '"http://192.168.2.54:8080"',
7
     // WSS_HOST: '"ws://192.168.2.54:8080"',
7
     // WSS_HOST: '"ws://192.168.2.54:8080"',
8
-    // HOST: '"https://dev.jinchengjiaye.com"',//测试
9
-    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
-    HOST: '"https://lt.pawoma.cn"',
11
-    WSS_HOST: '"wss://lt.pawoma.cn"',
8
+    HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
+    // HOST: '"https://lt.pawoma.cn"',
11
+    // WSS_HOST: '"wss://lt.pawoma.cn"',
12
     Version:'V3.5.5_2019-12-30'
12
     Version:'V3.5.5_2019-12-30'
13
   },
13
   },
14
   weapp: {},
14
   weapp: {},

+ 2
- 2
project.config.json View File

1
 {
1
 {
2
 	"miniprogramRoot": "dist/",
2
 	"miniprogramRoot": "dist/",
3
 	"projectname": "mini-chengjiao",
3
 	"projectname": "mini-chengjiao",
4
-	"description": "知与行互动",
5
-	"appid": "wxd6f47a9bb3052175",
4
+	"description": "知与行联调",
5
+	"appid": "wxd9ee3a9480a4e544",
6
 	"setting": {
6
 	"setting": {
7
 		"urlCheck": false,
7
 		"urlCheck": false,
8
 		"es6": false,
8
 		"es6": false,

+ 2
- 2
src/components/achieveAvatar/index.js View File

74
         <View className="avatar-page">
74
         <View className="avatar-page">
75
           <View className="content">
75
           <View className="content">
76
             <View className="title">请允许获取昵称、头像、地区及性别</View>
76
             <View className="title">请允许获取昵称、头像、地区及性别</View>
77
-            <Image className="touxiang" src={require('@assets/default-avatar.png')}></Image>
78
-            <View className="name">用户昵称</View>
77
+            <View className="touxiang"><open-data type="userAvatarUrl"></open-data></View>
78
+              <View className="name"><open-data type="userNickName"></open-data></View>
79
             <Button className="btn" open-type="getUserInfo" lang="zh_CN" onGetUserInfo={this.getUserInfo}>好</Button>
79
             <Button className="btn" open-type="getUserInfo" lang="zh_CN" onGetUserInfo={this.getUserInfo}>好</Button>
80
           </View>
80
           </View>
81
         </View>
81
         </View>

+ 7
- 6
src/components/achieveAvatar/index.scss View File

29
       color: #333;
29
       color: #333;
30
     }
30
     }
31
     .touxiang{
31
     .touxiang{
32
-      width: 110px;
33
-      height: 110px;
32
+      overflow: hidden;
33
+      display: block;
34
+      width: 108px;
35
+      height: 108px;
36
+      margin: 24px auto 10px ;
34
       border-radius: 50%;
37
       border-radius: 50%;
35
-      margin: 20px 0 10px 0;
36
     }
38
     }
37
     .name{
39
     .name{
38
-      font-size: 26px;
39
-      color: #333;
40
+      font-size: 28px;
41
+      color: #353535;
40
     }
42
     }
41
   
43
   
42
-  
43
     .btn{
44
     .btn{
44
       width:290px;
45
       width:290px;
45
       height:90px;
46
       height:90px;

+ 3
- 3
src/components/achievePhone/index.js View File

11
   state = {}
11
   state = {}
12
 
12
 
13
   componentDidMount() {
13
   componentDidMount() {
14
-    const { user = {}} = this.props
14
+    const { user = {} } = this.props
15
     if (user.phone && typeof this.props.onSuccess === 'function') {
15
     if (user.phone && typeof this.props.onSuccess === 'function') {
16
       this.props.onSuccess();
16
       this.props.onSuccess();
17
     }
17
     }
30
         }
30
         }
31
 
31
 
32
         return
32
         return
33
-      } else {        
33
+      } else {
34
         if (typeof this.props.onSuccess === 'function') {
34
         if (typeof this.props.onSuccess === 'function') {
35
           this.props.onSuccess(phoneNumber);
35
           this.props.onSuccess(phoneNumber);
36
         }
36
         }
86
     )
86
     )
87
   }
87
   }
88
   render() {
88
   render() {
89
-    const { user = {}} = this.props
89
+    const { user = {} } = this.props
90
 
90
 
91
     return (
91
     return (
92
       <Block>
92
       <Block>

+ 2
- 0
src/components/achievePhone/index.scss View File

1
 .bg_img{
1
 .bg_img{
2
   width: 100vw;
2
   width: 100vw;
3
   height: 100vh;
3
   height: 100vh;
4
+  position: fixed;
5
+  z-index: 99;
4
 }
6
 }
5
 .phone-page{
7
 .phone-page{
6
   position: fixed;
8
   position: fixed;

+ 1
- 3
src/components/authorizationComponent/index.js View File

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

+ 28
- 22
src/pages/person/index.js View File

30
     roleName: '普通用户'
30
     roleName: '普通用户'
31
   }
31
   }
32
 
32
 
33
-  componentDidShow () {
33
+  componentDidShow() {
34
     Taro.showLoading()
34
     Taro.showLoading()
35
     this.loadUserInfo()
35
     this.loadUserInfo()
36
     Taro.hideLoading()
36
     Taro.hideLoading()
37
+    console.log(this.props, "wwwwwwwwwwwwwwwwww")
37
   }
38
   }
38
 
39
 
39
-  loadUserInfo () {
40
+  loadUserInfo() {
40
     queryUserInfo().then(user => {
41
     queryUserInfo().then(user => {
41
       const [roleSetting, roleName] = this.getRoleName(user.personType)
42
       const [roleSetting, roleName] = this.getRoleName(user.personType)
42
 
43
 
50
     })
51
     })
51
   }
52
   }
52
 
53
 
53
-  doSign () {
54
+  doSign() {
54
     const { user: { id, havaSigned } } = this.state
55
     const { user: { id, havaSigned } } = this.state
55
     if (havaSigned) {
56
     if (havaSigned) {
56
       return
57
       return
72
     })
73
     })
73
   }
74
   }
74
 
75
 
75
-  toHomePage () {
76
+  toHomePage() {
76
     Taro.switchTab({
77
     Taro.switchTab({
77
       url: '/pages/project/index'
78
       url: '/pages/project/index'
78
     })
79
     })
79
   }
80
   }
80
 
81
 
81
-  toShopPage () {
82
+  toShopPage() {
82
     Taro.switchTab({
83
     Taro.switchTab({
83
       url: '/pages/shop/index'
84
       url: '/pages/shop/index'
84
     })
85
     })
98
           icon: "none",
99
           icon: "none",
99
           duration: 3000
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
         login(payload, res => {
108
         login(payload, res => {
117
         // },this.loadUserInfo())
118
         // },this.loadUserInfo())
118
 
119
 
119
         // if (res) {
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
         // } else {
126
         // } else {
126
         //   Taro.showToast({
127
         //   Taro.showToast({
127
         //     title: "匹配失败,请联系相关管理人员",
128
         //     title: "匹配失败,请联系相关管理人员",
141
 
142
 
142
   }
143
   }
143
 
144
 
144
-  getRoleName (type) {
145
+  getRoleName(type) {
145
     switch (type) {
146
     switch (type) {
146
       case ROLE_CODE['CONSULTANT']:
147
       case ROLE_CODE['CONSULTANT']:
147
         return [{ consultant: true }, '置业顾问']
148
         return [{ consultant: true }, '置业顾问']
154
     }
155
     }
155
   }
156
   }
156
 
157
 
157
-  goShop () {
158
+  goShop() {
158
     Taro.switchTab({
159
     Taro.switchTab({
159
       url: `/pages/shop/index`
160
       url: `/pages/shop/index`
160
     })
161
     })
161
   }
162
   }
162
-  handleMore () {
163
+  handleMore() {
163
     Taro.showModal({
164
     Taro.showModal({
164
       title: '温馨提示',
165
       title: '温馨提示',
165
       content: '敬请期待'
166
       content: '敬请期待'
166
     })
167
     })
167
   }
168
   }
168
 
169
 
169
-  goPersonDetail () {
170
+  goPersonDetail() {
170
 
171
 
171
     const { user: { personType } } = this.state
172
     const { user: { personType } } = this.state
172
 
173
 
178
 
179
 
179
   }
180
   }
180
 
181
 
181
-  renderLogin () {
182
+  renderLogin() {
182
     return <Authorize></Authorize>
183
     return <Authorize></Authorize>
183
   }
184
   }
184
 
185
 
185
-  renderDetail () {
186
+  renderDetail() {
186
     const { user, menus, roleName } = this.state
187
     const { user, menus, roleName } = this.state
188
+    const { user: { userInfo: { miniApp: { name } } } } = this.props
187
     // const showQRCode = user.personType === ROLE_CODE['CONSULTANT'] || ROLE_CODE['ESTATE_AGENT'] || ROLE_CODE['CHANNEL_AGENT']
189
     // const showQRCode = user.personType === ROLE_CODE['CONSULTANT'] || ROLE_CODE['ESTATE_AGENT'] || ROLE_CODE['CHANNEL_AGENT']
188
     // const isConsultant = user.personType == ROLE_CODE['CONSULTANT']
190
     // const isConsultant = user.personType == ROLE_CODE['CONSULTANT']
189
     // const isConsultant = user.personType
191
     // const isConsultant = user.personType
256
             })
258
             })
257
           }
259
           }
258
         </View>
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
       </View>
266
       </View>
261
     );
267
     );
262
   }
268
   }
263
 
269
 
264
-  render () {
270
+  render() {
265
     const { phone, tel } = this.state.user
271
     const { phone, tel } = this.state.user
266
     return (
272
     return (
267
       <View className='wrap'>
273
       <View className='wrap'>