瀏覽代碼

Merge branch 'dev'

xujing 5 年之前
父節點
當前提交
e9a4386d8e

+ 4
- 4
config/dev.js 查看文件

@@ -5,10 +5,10 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 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 12
     // HOST: '"http://192.168.2.51:8080"',
13 13
     // WSS_HOST: '"ws://192.168.2.51:8080"',
14 14
     Version: 'V3.5.5'

+ 4
- 4
config/prod.js 查看文件

@@ -5,10 +5,10 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://192.168.2.54:8080"',
7 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 12
     Version:'V3.5.5_2019-12-30'
13 13
   },
14 14
   weapp: {},

+ 2
- 2
project.config.json 查看文件

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

+ 2
- 2
src/components/achieveAvatar/index.js 查看文件

@@ -74,8 +74,8 @@ export default class Index extends Component {
74 74
         <View className="avatar-page">
75 75
           <View className="content">
76 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 79
             <Button className="btn" open-type="getUserInfo" lang="zh_CN" onGetUserInfo={this.getUserInfo}>好</Button>
80 80
           </View>
81 81
         </View>

+ 7
- 6
src/components/achieveAvatar/index.scss 查看文件

@@ -29,17 +29,18 @@
29 29
       color: #333;
30 30
     }
31 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 37
       border-radius: 50%;
35
-      margin: 20px 0 10px 0;
36 38
     }
37 39
     .name{
38
-      font-size: 26px;
39
-      color: #333;
40
+      font-size: 28px;
41
+      color: #353535;
40 42
     }
41 43
   
42
-  
43 44
     .btn{
44 45
       width:290px;
45 46
       height:90px;

+ 3
- 3
src/components/achievePhone/index.js 查看文件

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

+ 2
- 0
src/components/achievePhone/index.scss 查看文件

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

+ 1
- 3
src/components/authorizationComponent/index.js 查看文件

@@ -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 查看文件

@@ -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'>