Prechádzať zdrojové kódy

fix: 修改包名、跳转路径名

yangfeng 4 rokov pred
rodič
commit
c72846f87a

+ 2 - 2
.gitignore

@@ -2,8 +2,8 @@
 node_modules
 dist
 rev
-page_points
-page_points_app
+page_points_pc
+page_points_mobile
 # local env files
 .env.local
 .env.*.local

+ 2 - 2
back-end/config.json

@@ -29,6 +29,6 @@
     },
     "jydocsImg":"https://jydocs-previewimg.oss-cn-beijing.aliyuncs.com/",
     "webdomain":"https://web-wky.jydev.jianyu360.com",
-    "shareTimeline":"/page_points_app/share",
-    "shareApp":"/page_points_app/invite"
+    "shareTimeline":"/page_points_mobile/share",
+    "shareApp":"/page_points_mobile/invite"
 }

+ 1 - 1
jypoints-mobile/.env.development

@@ -1,4 +1,4 @@
 NODE_ENV=development
 VUE_APP_BASE_API = ''
-BASE_URL = '/dev/page_points_app'
+BASE_URL = '/dev/page_points_mobile'
 VUE_APP_LOG_URL = 'https://web2-jytest.jydev.jianyu360.com/jyLogs/actionInfo?logAction='

+ 1 - 1
jypoints-mobile/.env.production

@@ -1,4 +1,4 @@
 NODE_ENV=production
 VUE_APP_BASE_API = ''
-BASE_URL = '/page_points_app'
+BASE_URL = '/page_points_mobile'
 VUE_APP_LOG_URL = 'https://www.jianyu360.com/jyLogs/actionInfo?logAction='

+ 1 - 1
jypoints-mobile/.env.test

@@ -1,4 +1,4 @@
 NODE_ENV=production
 VUE_APP_BASE_API = ''
-BASE_URL = '/page_points_app'
+BASE_URL = '/page_points_mobile'
 VUE_APP_LOG_URL = 'https://web2-jytest.jydev.jianyu360.com/jyLogs/actionInfo?logAction='

+ 1 - 1
jypoints-mobile/package.json

@@ -4,7 +4,7 @@
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve",
-    "build": "vue-cli-service build --mode production",
+    "build": "vue-cli-service build",
     "build:test": "vue-cli-service build --mode test",
     "lint": "vue-cli-service lint --fix",
     "analyzer": "use_analyzer=true vue-cli-service build --mode production",

+ 1 - 1
jypoints-mobile/public/index.html

@@ -33,7 +33,7 @@
     <div id="app"></div>
     <!-- built files will be auto injected -->
     <!-- 打包时要改路径 -->
-    <script src="/page_points_app/js/commonForVue.js?v=<%= htmlWebpackPlugin.options.version %>"></script>
+    <script src="/page_points_mobile/js/commonForVue.js?v=<%= htmlWebpackPlugin.options.version %>"></script>
     <!-- vConsole debug -->
     <!-- <script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js"></script>
     <script>new VConsole()</script> -->

+ 1 - 1
jypoints-mobile/src/views/gain/Share.vue

@@ -35,7 +35,7 @@ export default class Share extends Vue {
   ruleList = ['将招标信息、文库文档链接分享至好友,好友打开链接之后您将获得 <strong>5</strong> 枚剑鱼币。', '每日最多可获取 <strong>25</strong> 枚剑鱼币。']
 
   toDocs () {
-    window.location.href = '/page_docs_app/home'
+    window.location.href = '/page_docs_mobile/home'
   }
 
   toMainSearch () {

+ 1 - 1
jypoints-mobile/src/views/points/Home.vue

@@ -283,7 +283,7 @@ export default class Home extends Vue {
 
   // 跳转到详情页
   goDetail (id) {
-    window.location.href = '/page_docs_app/details/' + id
+    window.location.href = '/page_docs_mobile/details/' + id
   }
 
   // 邀请或分享

+ 1 - 1
jypoints-mobile/vue.config.js

@@ -39,7 +39,7 @@ module.exports = {
   publicPath: process.env.BASE_URL,
   parallel: false,
   productionSourceMap: false,
-  outputDir: './page_points_app',
+  outputDir: './page_points_mobile',
   devServer: {
     port: '8080',
     open: false,

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

@@ -1,5 +1,5 @@
 NODE_ENV=production
 VUE_APP_BASE_API=''
 VUE_APP_BASE_URL='/swordfish/integral/index'
-VUE_APP_BASE_PUBLIC='/page_points/'
+VUE_APP_BASE_PUBLIC='/page_points_pc/'
 VUE_APP_LOG_URL = 'https://www.jianyu360.com/jyLogs/actionInfo?logAction='

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

@@ -1,5 +1,5 @@
 NODE_ENV=production
 VUE_APP_BASE_API=''
 VUE_APP_BASE_URL='/swordfish/integral/index'
-VUE_APP_BASE_PUBLIC='/page_points/'
+VUE_APP_BASE_PUBLIC='/page_points_pc/'
 VUE_APP_LOG_URL = 'https://web2-jytest.jydev.jianyu360.com/jyLogs/actionInfo?logAction='

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

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