Преглед изворни кода

fix:小程序跳转配置

zhanghui пре 2 година
родитељ
комит
600b7c9278
2 измењених фајлова са 19 додато и 5 уклоњено
  1. 14 3
      main.js
  2. 5 2
      manifest.json

+ 14 - 3
main.js

@@ -16,11 +16,22 @@ Vue.prototype.$phonePattern = '^1[3-9][0-9]\\d{8}$';
 Vue.prototype.$idCardPattern = '^([1-6][1-9]|50)\\d{4}(18|19|20)\\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$';
 //后端接口地址
 Vue.prototype.$baseUrl = env.baseUrl;
-//小程序地址
+//娇骄儿造型小程序跳转地址
 Vue.prototype.$xcxUrl = 'https://jje.xinyuekj.com.cn/spread/spread';
-//拓客端地址
+
+// #ifdef H5
+//拓客端H5页面拓客专员注册跳转地址 --- 测试地址
 Vue.prototype.$tkUrl = 'http://tk.gzzzyd.com/#/pages/register/register';
-//微信授权回调地址
+//拓客端H5页面拓客专员注册跳转地址 --- 正式地址
+// Vue.prototype.$tkUrl = 'https://jje.xinyuekj.com.cn/tk/#/pages/register/register';
+// #endif
+
+// #ifdef MP-WEIXIN
+//拓客端小程序拓客专员注册跳转地址
+Vue.prototype.$tkUrl = 'https://jje.xinyuekj.com.cn/tk/register';
+// #endif
+
+//微信授权回调地址 -- 微信浏览器调起微信登录使用(现在没用了,暂时保留)--- 测试地址
 Vue.prototype.$callbackUrl = 'http://tk.gzzzyd.com';
 Vue.prototype.$api = api;
 Vue.use(uView);

+ 5 - 2
manifest.json

@@ -90,9 +90,12 @@
 	"mp-weixin": {
 		"appid": "wx0c80b1524229c640",
 		"setting": {
-			"urlCheck": false
+			"urlCheck": false,
+			"postcss": false,
+			"minified": true
 		},
-		"usingComponents": true
+		"usingComponents": true,
+		"lazyCodeLoading": "requiredComponents"
 	},
 	"mp-alipay": {
 		"usingComponents": true