Просмотр исходного кода

fix(config): 更新测试环境配置和API接口地址

- 修改env.js中的测试环境baseURL为新地址
- 将所有业务相关API接口路径从/business/tech/更改为/order/tech/
- 更新了包括权益卡、服务信息、订单列表等20多个接口的路径配置
- 移除庞架开发环境配置并启用新的开发环境地址
PQJ 6 дней назад
Родитель
Сommit
dc7323ed3c
3 измененных файлов с 24 добавлено и 24 удалено
  1. 3 3
      common/js/env.js
  2. 20 20
      common/js/service.js
  3. 1 1
      common/js/user.js

+ 3 - 3
common/js/env.js

@@ -10,12 +10,12 @@
  * 测试环境
  * 测试环境
  * @type {string}
  * @type {string}
  */
  */
-let baseUrl = `https://jje.xinyuekj.com.cn/test-api`
+// let baseUrl = `https://jje.xinyuekj.com.cn/test-api`
 
 
 /**
 /**
- * 庞架开发环境
+ * 开发环境
  */
  */
-// let baseUrl = `http://10.147.20.142:8080`
+let baseUrl = `http://192.168.2.90:9201`
 
 
 
 
 
 

+ 20 - 20
common/js/service.js

@@ -8,7 +8,7 @@ export default {
     //查询服务对象是否有权益卡
     //查询服务对象是否有权益卡
     equityCard(param) {
     equityCard(param) {
         return request({
         return request({
-            url: '/business/tech/equityCard',
+            url: '/order/tech/equityCard',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -17,7 +17,7 @@ export default {
     //当前服务对象
     //当前服务对象
     currServiceInfoList(param) {
     currServiceInfoList(param) {
         return request({
         return request({
-            url: '/business/tech/currServiceInfoList',
+            url: '/order/tech/currServiceInfoList',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -26,7 +26,7 @@ export default {
     //当前服务对象
     //当前服务对象
     currServiceInfo(param) {
     currServiceInfo(param) {
         return request({
         return request({
-            url: '/business/tech/currServiceInfo',
+            url: '/order/tech/currServiceInfo',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -34,7 +34,7 @@ export default {
     //下一位
     //下一位
     next(param) {
     next(param) {
         return request({
         return request({
-            url: '/business/tech/next',
+            url: '/order/tech/next',
             method: 'POST',
             method: 'POST',
             data:param
             data:param
         })
         })
@@ -43,7 +43,7 @@ export default {
     //开始服务
     //开始服务
     start(param) {
     start(param) {
         return request({
         return request({
-            url: '/business/tech/start',
+            url: '/order/tech/start',
             method: 'POST',
             method: 'POST',
             data:param
             data:param
         })
         })
@@ -51,7 +51,7 @@ export default {
     //开始服务
     //开始服务
     end(param) {
     end(param) {
         return request({
         return request({
-            url: '/business/tech/end',
+            url: '/order/tech/end',
             method: 'POST',
             method: 'POST',
             data:param
             data:param
         })
         })
@@ -59,7 +59,7 @@ export default {
     //就位
     //就位
     takePlace(param) {
     takePlace(param) {
         return request({
         return request({
-            url: '/business/tech/takePlace',
+            url: '/order/tech/takePlace',
             method: 'POST',
             method: 'POST',
             data:param
             data:param
         })
         })
@@ -67,7 +67,7 @@ export default {
     //结算
     //结算
     settle(param) {
     settle(param) {
         return request({
         return request({
-            url: '/business/tech/settle',
+            url: '/order/tech/settle',
             method: 'POST',
             method: 'POST',
             data:param
             data:param
         })
         })
@@ -75,7 +75,7 @@ export default {
     //待服务的订单
     //待服务的订单
     list(param) {
     list(param) {
         return request({
         return request({
-            url: '/business/tech/wait/list',
+            url: '/order/tech/wait/list',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -84,7 +84,7 @@ export default {
     //服务统计
     //服务统计
     statics(param) {
     statics(param) {
         return request({
         return request({
-            url: '/business/tech/statics',
+            url: '/order/tech/statics',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -101,7 +101,7 @@ export default {
     //服务项目列表
     //服务项目列表
     serviceProjectList(param) {
     serviceProjectList(param) {
         return request({
         return request({
-            url: '/business/tech/serviceProject/list',
+            url: '/order/tech/serviceProject/list',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -109,7 +109,7 @@ export default {
     //添加服务项目
     //添加服务项目
     addServiceProject(param) {
     addServiceProject(param) {
         return request({
         return request({
-            url: '/business/tech/addServiceProject',
+            url: '/order/tech/addServiceProject',
             method: 'POST',
             method: 'POST',
             data:param
             data:param
         })
         })
@@ -126,28 +126,28 @@ export default {
     // 移交
     // 移交
     handover(param) {
     handover(param) {
         return request({
         return request({
-            url: '/business/tech/handover',
+            url: '/order/tech/handover',
             method: 'POST'
             method: 'POST'
         })
         })
     },
     },
     // 报道打卡
     // 报道打卡
     clockIn(param) {
     clockIn(param) {
         return request({
         return request({
-            url: '/business/tech/clockIn?storeId='+param.storeId + '&timestamp=' + param.timestamp,
+            url: '/order/tech/clockIn?storeId='+param.storeId + '&timestamp=' + param.timestamp,
             method: 'POST'
             method: 'POST'
         })
         })
     },
     },
     // 切换服务对象
     // 切换服务对象
     switchServiceObject(param) {
     switchServiceObject(param) {
         return request({
         return request({
-            url: '/business/tech/switchServiceObject?orderServiceId='+param.orderServiceId+'&serviceObjectId='+param.serviceObjectId,
+            url: '/order/tech/switchServiceObject?orderServiceId='+param.orderServiceId+'&serviceObjectId='+param.serviceObjectId,
             method: 'POST'
             method: 'POST'
         })
         })
     },
     },
     // 获取服务对象列表
     // 获取服务对象列表
     getServiceObjectList(param) {
     getServiceObjectList(param) {
         return request({
         return request({
-            url: '/business/tech/getServiceObjectList',
+            url: '/order/tech/getServiceObjectList',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -155,7 +155,7 @@ export default {
     // 叫号
     // 叫号
     call(param) {
     call(param) {
         return request({
         return request({
-            url: '/business/tech/call',
+            url: '/order/tech/call',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -164,7 +164,7 @@ export default {
     //查询服务人员
     //查询服务人员
     serviceUserList(param) {
     serviceUserList(param) {
         return request({
         return request({
-            url: '/business/tech/serviceUser/list',
+            url: '/order/tech/serviceUser/list',
             method: 'GET',
             method: 'GET',
             data:param
             data:param
         })
         })
@@ -183,7 +183,7 @@ export default {
     //保存用户偏好
     //保存用户偏好
     preference(param) {
     preference(param) {
         return request({
         return request({
-            url: '/business/tech/save/preference',
+            url: '/order/tech/save/preference',
             method: 'POST',
             method: 'POST',
             data:param
             data:param
 
 
@@ -193,7 +193,7 @@ export default {
     // get请求,查询技师业绩
     // get请求,查询技师业绩
     performanceList(data) {
     performanceList(data) {
         return request({
         return request({
-            url: '/business/tech/performanceList',
+            url: '/order/tech/performanceList',
             method: 'GET',
             method: 'GET',
             data: data
             data: data
         })
         })

+ 1 - 1
common/js/user.js

@@ -5,7 +5,7 @@ export default {
     //获取技师信息
     //获取技师信息
     getUserInfo() {
     getUserInfo() {
         return request({
         return request({
-            url: '/business/tech/info',
+            url: '/order/tech/info',
             method: 'GET'
             method: 'GET'
         })
         })
     }
     }