guhongwei 4 سال پیش
والد
کامیت
73c776fac0
9فایلهای تغییر یافته به همراه23 افزوده شده و 23 حذف شده
  1. 1 1
      .env
  2. 1 1
      package.json
  3. 1 1
      src/plugins/stomp.js
  4. 11 11
      src/router/index.js
  5. 1 1
      src/views/apply/index.vue
  6. 3 3
      src/views/index.vue
  7. 1 1
      src/views/cashing/index.vue
  8. 1 1
      src/views/service/index.vue
  9. 3 3
      vue.config.js

+ 1 - 1
.env

@@ -1,3 +1,3 @@
 VUE_APP_AXIOS_BASE_URL = ''
-VUE_APP_ROUTER="jlstcoupons"
+VUE_APP_ROUTER="kjzlmobile"
 VUE_APP_HOST="http://broadcast.waityou24.cn"

+ 1 - 1
package.json

@@ -1,5 +1,5 @@
 {
-  "name": "jlst-coupons",
+  "name": "kjzl-mobile",
   "version": "0.1.0",
   "private": true,
   "scripts": {

+ 1 - 1
src/plugins/stomp.js

@@ -5,7 +5,7 @@
 import Vue from 'vue';
 import _ from 'lodash';
 import assert from 'assert';
-import { Client } from '@stomp/stompjs/esm5/client';
+import { Client } from '@stomp/stompjs/esm6/client';
 
 const Plugin = {
   install(Vue, options) {

+ 11 - 11
src/router/index.js

@@ -15,23 +15,23 @@ const web = [
     component: () => import('../views/index.vue'),
   },
   {
-    path: '/apply',
-    name: 'apply',
-    meta: { title: '我要申领' },
-    component: () => import('../views/apply/index.vue'),
-  },
-  {
-    path: '/cashing',
-    name: 'cashing',
-    meta: { title: '我要兑付' },
-    component: () => import('../views/cashing/index.vue'),
+    path: '/education',
+    name: 'education',
+    meta: { title: '科普教育' },
+    component: () => import('../views/education/index.vue'),
   },
   {
     path: '/service',
     name: 'service',
-    meta: { title: '我要服务' },
+    meta: { title: '科教服务' },
     component: () => import('../views/service/index.vue'),
   },
+  {
+    path: '/research',
+    name: 'research',
+    meta: { title: '研发杂记' },
+    component: () => import('../views/research/index.vue'),
+  },
 ];
 const routes = [...web];
 const router = new VueRouter({

+ 1 - 1
src/views/apply/index.vue

@@ -5,7 +5,7 @@
         <el-col :span="24" class="top">
           <top topType="2" :leftArrow="false"></top>
         </el-col>
-        <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 我要申领 </el-col>
+        <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 科普教育 </el-col>
         <el-col :span="24" class="foot"> 底部 </el-col>
       </el-col>
     </el-row>

+ 3 - 3
src/views/index.vue

@@ -6,9 +6,9 @@
           <top topType="2" :leftArrow="false"></top>
         </el-col>
         <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }">
-          <van-button @click="$router.push('apply')">我要申领</van-button>
-          <van-button @click="$router.push('cashing')">我要兑付</van-button>
-          <van-button @click="$router.push('service')">我要服务</van-button>
+          <van-button @click="$router.push('education')">科普教育</van-button>
+          <van-button @click="$router.push('service')">科教服务</van-button>
+          <van-button @click="$router.push('research')">研发杂记</van-button>
         </el-col>
         <el-col :span="24" class="foot"> 底部 </el-col>
       </el-col>

+ 1 - 1
src/views/cashing/index.vue

@@ -5,7 +5,7 @@
         <el-col :span="24" class="top">
           <top topType="2" :leftArrow="false"></top>
         </el-col>
-        <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 我要兑付 </el-col>
+        <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 研发杂记 </el-col>
         <el-col :span="24" class="foot"> 底部 </el-col>
       </el-col>
     </el-row>

+ 1 - 1
src/views/service/index.vue

@@ -5,7 +5,7 @@
         <el-col :span="24" class="top">
           <top topType="2" :leftArrow="false"></top>
         </el-col>
-        <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 我要服务 </el-col>
+        <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 科教服务 </el-col>
         <el-col :span="24" class="foot"> 底部 </el-col>
       </el-col>
     </el-row>

+ 3 - 3
vue.config.js

@@ -2,7 +2,7 @@ const path = require('path');
 const common = path.resolve(__dirname, '../common');
 module.exports = {
   publicPath: `/${process.env.VUE_APP_ROUTER}`,
-  outputDir: 'jlstcoupons',
+  outputDir: 'kjzlmobile',
   productionSourceMap: false,
   configureWebpack: (config) => {
     Object.assign(config, {
@@ -22,8 +22,8 @@ module.exports = {
       '/files': {
         target: 'http://broadcast.waityou24.cn',
       },
-      '/api': {
-        target: 'http://192.168.1.19:9200', //http://192.168.1.19:9200
+      '/api/live': {
+        target: 'http://192.168.1.19:9101', //http://192.168.1.19:9101//http://broadcast.waityou24.cn
         changeOrigin: true,
         ws: false,
       },