张延森 5 years ago
parent
commit
4ec4d3b9b9
4 changed files with 5 additions and 3 deletions
  1. 2
    2
      config/dev.js
  2. 1
    1
      project.config.json
  3. 1
    0
      src/constants/api.js
  4. 1
    0
      src/pages/auth/index.js

+ 2
- 2
config/dev.js View File

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
-    HOST: '"http://192.168.0.131:8080"',
13
-    WSS_HOST: '"ws://192.168.0.131:8080"',
12
+    HOST: '"http://127.0.0.1:8080"',
13
+    WSS_HOST: '"ws://127.0.0.1:8080"',
14
   },
14
   },
15
   weapp: {},
15
   weapp: {},
16
   h5: {}
16
   h5: {}

+ 1
- 1
project.config.json View File

2
 	"miniprogramRoot": "dist/",
2
 	"miniprogramRoot": "dist/",
3
 	"projectname": "mini-chengjiao",
3
 	"projectname": "mini-chengjiao",
4
 	"description": "dev环境",
4
 	"description": "dev环境",
5
-	"appid": "wxd9ee3a9480a4e544",
5
+	"appid": "wxe6ab1ec2d96341db",
6
 	"setting": {
6
 	"setting": {
7
 		"urlCheck": false,
7
 		"urlCheck": false,
8
 		"es6": false,
8
 		"es6": false,

+ 1
- 0
src/constants/api.js View File

53
 export const API_POINTS_RECORDS = resolvePath('taPointsRecords')
53
 export const API_POINTS_RECORDS = resolvePath('taPointsRecords')
54
 export const API_POINTS_RULE = resolvePath('tdPointsRules')
54
 export const API_POINTS_RULE = resolvePath('tdPointsRules')
55
 export const API_POINTS_ADRESS = resolvePath('person/city')
55
 export const API_POINTS_ADRESS = resolvePath('person/city')
56
+export const API_GOODS_BELONGS = resolvePath('goodsToBuilding')
56
 
57
 
57
 // client
58
 // client
58
 export const API_CLIENT_LIST = resolvePath('customer/recommend/mine')
59
 export const API_CLIENT_LIST = resolvePath('customer/recommend/mine')

+ 1
- 0
src/pages/auth/index.js View File

15
     const sessionKey = Taro.getStorageSync('sessionKey')
15
     const sessionKey = Taro.getStorageSync('sessionKey')
16
     // 获取用户信息
16
     // 获取用户信息
17
     Taro.getUserInfo({
17
     Taro.getUserInfo({
18
+      lang: 'zh_CN',
18
       success: res => {
19
       success: res => {
19
         const payload = Object.assign(res, { sessionKey })
20
         const payload = Object.assign(res, { sessionKey })
20
         // const { userInfo: { nickName, gender, country, city, province } } = payload
21
         // const { userInfo: { nickName, gender, country, city, province } } = payload