wzx před 1 rokem
rodič
revize
274153b99b
4 změnil soubory, kde provedl 48 přidání a 15 odebrání
  1. 5 11
      card/common/api.js
  2. 2 2
      card/manifest.json
  3. 32 0
      card/package.json
  4. 9 2
      card/url.md

+ 5 - 11
card/common/api.js

@@ -1,16 +1,10 @@
-export const ossUrl = 'http://oss-card.colormaprun.com/card/';
+export const ossUrl = process.env.OSS_URL;
+export const apiServer = process.env.VUE_APP_BASE_URL;
+// console.log("ossUrl", ossUrl);
+// console.log("apiServer", apiServer);
 
-// export const apiServer = 'https://colormaprun.com/api/card/';	// 正式版
-// export const token = '';
-
-export const apiServer = 'https://t-mapi.colormaprun.com/api/card/';	// 测试版
-// export const token = '5c654da466ad325c6a1121e6d9e18f21';
-// export const token = '3ea08be20abc5f8dfee4a11b32606bc3';
-// export const token = 'fc7b8e76ee5d3dad29b424b2030c877e';
-// export const token = '31418466b0d1dc84a0954d407551f07d';
-// export const token = '31418466b0d1dc84a0954d407551f07d';
-// export const token = 'd4cd468ed0662b216e246f1cc37dce22';
 export const token = '';
+// export const token = '5c654da466ad325c6a1121e6d9e18f21';
 
 // 卡片基本信息查询
 export const apiCardBaseQuery = apiServer + 'CardBaseQuery';

+ 2 - 2
card/manifest.json

@@ -2,8 +2,8 @@
     "name" : "card",
     "appid" : "__UNI__A61F96B",
     "description" : "",
-    "versionName" : "1.2.1",
-    "versionCode" : 121,
+    "versionName" : "1.2.2",
+    "versionCode" : 122,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

+ 32 - 0
card/package.json

@@ -0,0 +1,32 @@
+{
+  "name": "card",
+  "version": "1.0.0",
+  "description": "",
+  "main": "main.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "keywords": [],
+  "author": "",
+  "license": "ISC",
+  "uni-app": {
+  		"scripts": {
+  			"dev": {
+  				"title": "开发版",
+  				"env": {
+  					"UNI_PLATFORM": "h5",
+  					"VUE_APP_BASE_URL":"https://t-mapi.colormaprun.com/api/card/",
+					"OSS_URL": "http://t-oss-card.colormaprun.com/card/"
+  				}
+  			},
+  			"prod": {
+  				"title": "正式版",
+  				"env": {
+  					"UNI_PLATFORM": "h5",
+  					"VUE_APP_BASE_URL":"https://colormaprun.com/api/card/",
+					"OSS_URL": "http://oss-card.colormaprun.com/card/"
+  				}
+  			}
+  		}
+  	}
+}

+ 9 - 2
card/url.md

@@ -6,9 +6,16 @@ APP内跳转链接
 [跳转地图列表页] (action://to_map_list/)
 [跳转第三方地图APP] (action://to_map_app?title=地点名称&latitude=123&longitude=456)
 
-
-卡片URL
+卡片URL - 正式版
 
 [每月挑战] (https://oss-mbh5.colormaprun.com/card/#/pages/mytz/index)
 [锦标赛] (https://oss-mbh5.colormaprun.com/card/#/pages/jbs/index)
 [报名 - 样式1] (https://oss-mbh5.colormaprun.com/card/#/pages/bm/style1/index)
+[成就] (https://oss-mbh5.colormaprun.com/card/#/pages/achievement/index)
+
+卡片URL - 开发版
+
+[每月挑战] (http://t-oss-mbh5.colormaprun.com/card/#/pages/mytz/index)
+[锦标赛] (http://t-oss-mbh5.colormaprun.com/card/#/pages/jbs/index)
+[报名 - 样式1] (http://t-oss-mbh5.colormaprun.com/card/#/pages/bm/style1/index)
+[成就] (http://t-oss-mbh5.colormaprun.com/card/#/pages/achievement/index)