浏览代码

feat: page_xxx_app -> page_xxx_mobile

cuiyalong 4 年之前
父节点
当前提交
72a87bedec

+ 3 - 4
.gitignore

@@ -2,6 +2,8 @@
 node_modules
 dist
 rev
+page_docs_mobile
+page_docs_pc
 
 # local env files
 .env.local
@@ -28,7 +30,4 @@ yarn-error.log*
 *.zip
 *.7z
 .vscode
-jydocs-mobile/page_docs_app
-jydocs-pc/page_docs
-jydocs-pc/pc
-jydocs-pc/app
+

+ 3 - 3
README.md

@@ -14,8 +14,8 @@
 
 ```
 3.11 部署目录 
-移动端 /opt/nginx/nginx/html/page_docs_app/
-PC端 /opt/nginx/nginx/html/page_docs/
+移动端 /opt/nginx/nginx/html/page_docs_mobile/
+PC端 /opt/nginx/nginx/html/page_docs_pc/
 ```
 
 #### 移动端
@@ -81,7 +81,7 @@ location ~ ^\/page_(.*)\.html {
     add_header         Cache-Control no-cache,no-store,must-revalidate;
 
     root html;
-    # root /opt/nginx/nginx/html/;
+    # root /opt/nginx/nginx/html;
 }
 
 # 2.静态资源配置(vue程序刷新404问题)

+ 2 - 2
jydocs-mobile/.env.production

@@ -1,5 +1,5 @@
 NODE_ENV=production
 VUE_APP_BASE_API='/jydocs'
-BASE_URL = '/page_docs_app/'
-VUE_APP_BASE_URL = '/page_docs_app/'
+BASE_URL = '/page_docs_mobile/'
+VUE_APP_BASE_URL = '/page_docs_mobile/'
 VUE_APP_LOG_URL='https://www.jianyu360.com/jyLogs/actionInfo?logAction='

+ 2 - 2
jydocs-mobile/.env.test

@@ -1,5 +1,5 @@
 NODE_ENV=production
 VUE_APP_BASE_API='/jydocs/'
-BASE_URL = '/page_docs_app/'
-VUE_APP_BASE_URL = '/page_docs_app/'
+BASE_URL = '/page_docs_mobile/'
+VUE_APP_BASE_URL = '/page_docs_mobile/'
 VUE_APP_LOG_URL='https://web2-jytest.jydev.jianyu360.com/jyLogs/actionInfo?logAction='

+ 1 - 1
jydocs-mobile/src/components/Recharge.vue

@@ -56,7 +56,7 @@ export default class extends Vue {
     }
 
     buyMoney () {
-      window.location.href = `/page_points_app/pay?id=${this.detailData.docId}`
+      window.location.href = `/page_points_mobile/pay?id=${this.detailData.docId}`
     }
 }
 </script>

+ 1 - 1
jydocs-mobile/src/components/SharePopup.vue

@@ -58,7 +58,7 @@ export default class extends Vue {
 
     // 了解详情
     reviewDetail () {
-      location.href = '/page_points_app/share'
+      location.href = '/page_points_mobile/share'
     }
 }
 </script>

+ 5 - 5
jydocs-mobile/vue.config.js

@@ -39,26 +39,26 @@ module.exports = {
   publicPath: process.env.BASE_URL,
   parallel: false,
   productionSourceMap: false,
-  outputDir: 'page_docs_app',
+  outputDir: 'page_docs_mobile',
   devServer: {
     port: '8080',
     open: false,
     disableHostCheck: true,
     proxy: {
       '^/jydocs': {
-        target: 'https://app2-jytest.jydev.jianyu360.com',
+        target: 'https://web2-jytest.jydev.jianyu360.com',
         // target: 'http://192.168.20.180:821',
         changeOrigin: true,
         logLevel: 'debug'
       },
       '^/jypay': {
-        // target: 'https://web2-jytest.jydev.jianyu360.com',
-        target: 'https://app2-jytest.jydev.jianyu360.com',
+        target: 'https://web2-jytest.jydev.jianyu360.com',
+        // target: 'http://192.168.20.180:86',
         changeOrigin: true,
         logLevel: 'debug'
       },
       '^/jyintegral': {
-        target: 'https://app2-jytest.jydev.jianyu360.com',
+        target: 'https://web2-jytest.jydev.jianyu360.com',
         // target: 'http://192.168.20.145:820',
         changeOrigin: true,
         logLevel: 'debug'

+ 1 - 1
jydocs-pc/.env.alone

@@ -1,5 +1,5 @@
 NODE_ENV=development
-VUE_APP_BASE_API='/jydocs/'
+VUE_APP_BASE_API='/jydocs'
 VUE_APP_BASE_URL='/'
 VUE_APP_MOCK=false
 VUE_APP_ALONE=true

+ 1 - 1
jydocs-pc/.env.production

@@ -1,5 +1,5 @@
 NODE_ENV=production
 VUE_APP_BASE_API='/jydocs/'
 VUE_APP_BASE_URL='/swordfish/docs'
-VUE_APP_BASE_PUBLIC='/page_docs/'
+VUE_APP_BASE_PUBLIC='/page_docs_pc/'
 VUE_APP_LOG_URL='https://www.jianyu360.com/jyLogs/actionInfo?logAction='

+ 1 - 1
jydocs-pc/.env.test

@@ -1,5 +1,5 @@
 NODE_ENV=production
 VUE_APP_BASE_API='/jydocs/'
 VUE_APP_BASE_URL='/swordfish/docs'
-VUE_APP_BASE_PUBLIC='/page_docs/'
+VUE_APP_BASE_PUBLIC='/page_docs_pc/'
 VUE_APP_LOG_URL='https://web2-jytest.jydev.jianyu360.com/jyLogs/actionInfo?logAction='

+ 2 - 2
jydocs-pc/README.md

@@ -57,7 +57,7 @@
 ###### nginx
 ```
 # 剑鱼文库 前端配置
-location ^~/page_docs {
+location ^~/page_docs_pc {
     if ($uri ~ \.html$) {
 		add_header         Pragma   no-cache;
         add_header         Expires  0;
@@ -65,6 +65,6 @@ location ^~/page_docs {
     }
     root /opt/nginx/nginx/html/;
     index index.html;
-    try_files $uri $uri/ /page_docs/index.html;
+    try_files $uri $uri/ /page_docs_pc/index.html;
 }
 ```

+ 1 - 1
jydocs-pc/vue.config.js

@@ -1,7 +1,7 @@
 module.exports = {
   parallel: false,
   productionSourceMap: false,
-  outputDir: 'page_docs',
+  outputDir: 'page_docs_pc',
   publicPath: process.env.VUE_APP_BASE_PUBLIC,
   lintOnSave: true,
   devServer: {