jz.kai 2 年之前
父節點
當前提交
d27e1172ca
共有 7 個文件被更改,包括 21 次插入25 次删除
  1. 2 2
      .env.development
  2. 2 2
      .env.production
  3. 2 2
      .env.test
  4. 9 13
      src/api/news.js
  5. 6 6
      src/routers/index.js
  6. 0 0
      src/views/list.vue
  7. 0 0
      src/views/listTab.vue

+ 2 - 2
.env.development

@@ -1,3 +1,3 @@
-OUT_PUT_DIR=dist/machinery-show
+OUT_PUT_DIR=dist/railroad-show
 
-VUE_APP_BACKEND_URL=http://localhost:8086/order-server
+VUE_APP_BACKEND_URL=http://localhost:8086/railroad-server

+ 2 - 2
.env.production

@@ -1,3 +1,3 @@
-OUT_PUT_DIR=dist/order-show
+OUT_PUT_DIR=dist/railroad-show
 
-VUE_APP_BACKEND_URL=http://47.100.90.230:8080/order-server
+VUE_APP_BACKEND_URL=http://47.100.90.230:8080/railroad-server

+ 2 - 2
.env.test

@@ -1,3 +1,3 @@
-OUT_PUT_DIR=dist/machinery-show
+OUT_PUT_DIR=dist/railroad-show
 
-VUE_APP_BACKEND_URL=http://ykt-test.xiaoxinda.com/supervision-server
+VUE_APP_BACKEND_URL=http://ykt-test.xiaoxinda.com/railroad-server

+ 9 - 13
src/api/news.js

@@ -1,26 +1,22 @@
 import request from '@/utils/request'
 import constant from '@/constant'
 
-function list(formData){
-  return request.post(constant.serverUrl + "/open/orderForm/list", formData);
+function swiperList(formData){
+  return request.post(constant.serverUrl + "/open/newsApi/swiperList", formData);
 }
 
-function detail(id){
-  return request.get(constant.serverUrl + "/open/orderForm/detail/" + id);
-}
-
-function sendRQCode(formData){
-  return request.post(constant.serverUrl + "/open/orderForm/sendRQCode", formData);
+function tabList(formData){
+  return request.post(constant.serverUrl + "/open/newsApi/tabList", formData);
 }
 
-function login(formData){
-  return request.post(constant.serverUrl + "/open/orderForm/login", formData);
+function pageList(formData){
+  return request.post(constant.serverUrl + "/open/newsApi/pageList", formData);
 }
 
-function exportXls(formData){
-  return request.post(constant.serverUrl + "/open/orderForm/exportXls", formData);
+function detail(id){
+  return request.get(constant.serverUrl + "/open/newsApi/detail/" + id);
 }
 
 export default {
-  list,detail,sendRQCode,login,exportXls
+  swiperList,tabList,pageList,detail
 }

+ 6 - 6
src/routers/index.js

@@ -15,14 +15,14 @@ export const constantRoutes = [
       component: () => import('@/views/index')
     },
     {
-        path: '/list1',
-        name: 'list1',
-        component: () => import('@/views/list1')
+        path: '/list',
+        name: 'list',
+        component: () => import('@/views/list')
     },
     {
-      path: '/list2',
-      name: 'list2',
-      component: () => import('@/views/list2')
+      path: '/listTab',
+      name: 'listTab',
+      component: () => import('@/views/listTab')
   },
     {
       path: '/detail',

+ 0 - 0
src/views/list1.vue → src/views/list.vue


+ 0 - 0
src/views/list2.vue → src/views/listTab.vue