Quellcode durchsuchen

add subcribe message

张延森 vor 5 Jahren
Ursprung
Commit
06574882f3
4 geänderte Dateien mit 22 neuen und 6 gelöschten Zeilen
  1. 4
    4
      config/dev.js
  2. 3
    0
      src/constants/api.js
  3. 8
    0
      src/constants/common.js
  4. 7
    2
      src/services/common.js

+ 4
- 4
config/dev.js Datei anzeigen

@@ -7,10 +7,10 @@ module.exports = {
7 7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8 8
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
9 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"',
13
-    // WSS_HOST: '"ws://192.168.2.51:8080"',
10
+    // HOST: '"https://lt.pawoma.cn"',
11
+    // WSS_HOST: '"wss://lt.pawoma.cn"',
12
+    HOST: '"http://127.0.0.1:8080"',
13
+    WSS_HOST: '"ws://127.0.0.1:8080"',
14 14
     Version: 'V3.5.3'
15 15
   },
16 16
   weapp: {},

+ 3
- 0
src/constants/api.js Datei anzeigen

@@ -184,3 +184,6 @@ export const API_ECHERTS_MONTH = resolvePath('customerStatisticMonthly')
184 184
 export const API_BUILDING_TYPE = resolvePath('getByBuildingIdSelectBuildingProjectType')
185 185
 export const API_CONSULTANT_VISIT_RECORD = resolvePath('visitRecord')
186 186
 export const API_MORE_ACTIVITY = resolvePath('visitRecord/activity')
187
+
188
+// 消息模板
189
+export const API_TEMPLATE_TYPE = resolvePath('template/of/')

+ 8
- 0
src/constants/common.js Datei anzeigen

@@ -0,0 +1,8 @@
1
+// 通知消息
2
+export const TPL_NOTICE = "notice";
3
+
4
+// 助力消息
5
+export const TPL_HELP = "help-result";
6
+
7
+// 拼团消息
8
+export const TPL_GROUP = "group-result";

+ 7
- 2
src/services/common.js Datei anzeigen

@@ -6,7 +6,8 @@ import {
6 6
   API_BANNER_LIST,
7 7
   API_QUERY_CODE_SCENE,
8 8
   API_BURIED_POINT,
9
-  API_CITY_LIST
9
+  API_CITY_LIST,
10
+  API_TEMPLATE_TYPE,
10 11
 } from '@constants/api'
11 12
 
12 13
 /**
@@ -55,4 +56,8 @@ export const updatePoint = (id, payload) => fetch({ url: `${API_BURIED_POINT}/${
55 56
 export const queryCityList = () => fetch({ url: API_CITY_LIST })
56 57
 
57 58
 
58
-
59
+/**
60
+ * 获取消息模板
61
+ * @param {*} 
62
+ */
63
+export const queryMessageTPL = type => fetch({ url: `${API_TEMPLATE_TYPE}/${type}` })