diff --git a/common/config.service.js b/common/config.service.js
index 2a41cb5..f1b8285 100644
--- a/common/config.service.js
+++ b/common/config.service.js
@@ -5,15 +5,16 @@ let BASE_URL = '/pixelApi';
// #endif
// #ifdef APP-PLUS ||MP
let BASE_URL = 'http://8.138.171.103/pixelApi';// 测试环境
-// let BASE_URL = 'http://www.ylemai.cn/pixelApi';// 正式环境
+// let BASE_URL = 'https://www.ylemai.cn/pixelApi';// 正式环境
// #endif
let IP = 'http://8.138.171.103/';// 测试环境
-// let IP = 'http://www.ylemai.cn/';// 正式环境
+// let IP = 'https://www.ylemai.cn/';// 正式环境
let FILE_URL = IP+'static/';
// 阿里OSS地址
let ALIOSS_URL = 'http://guojunjie.oss-cn-hangzhou.aliyuncs.com';
-let ANOTHER_ALIOSS_URL = 'http://pixel-ai-file-test.oss-cn-guangzhou.aliyuncs.com';
+let OTHER_ALIOSS_URL = 'http://pixel-ai-file-test.oss-cn-guangzhou.aliyuncs.com';// 测试环境
+let ANOTHER_ALIOSS_URL = 'http://pixel-ai-file.oss-cn-guangzhou.aliyuncs.com';// 正式环境
let ALIOSS_ASYNC_URL = "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com";// 异步url
// 火山引擎ai接口地址
let AI_URL = 'https://visual.volcengineapi.com';
@@ -24,7 +25,8 @@ const configService = {
fileUrl: FILE_URL,
aiUrl: AI_URL,
aliUrl: ALIOSS_URL,
- otherAliUrl: ANOTHER_ALIOSS_URL,
+ otherAliUrl: OTHER_ALIOSS_URL,
+ anotherAliUrl: ANOTHER_ALIOSS_URL,
aliAsyncUrl: ALIOSS_ASYNC_URL,
};
diff --git a/common/ossutil/ossWebUpload.js b/common/ossutil/ossWebUpload.js
index 4c3640b..d9b3b47 100644
--- a/common/ossutil/ossWebUpload.js
+++ b/common/ossutil/ossWebUpload.js
@@ -47,6 +47,7 @@ const ossUpload = async(vm,filePath,success) => {
// #ifdef H5
clientPath = res.data.replace(configService.aliUrl, "/ossUpload");
clientPath = clientPath.replace(configService.otherAliUrl, "/otherOssUpload");
+ clientPath = clientPath.replace(configService.anotherAliUrl, "/anotherOssUpload");
// #endif
// #ifndef H5
clientPath = res.data;
diff --git a/common/routerInterceptor.js b/common/routerInterceptor.js
index 328319e..669a364 100644
--- a/common/routerInterceptor.js
+++ b/common/routerInterceptor.js
@@ -24,7 +24,10 @@ const install = (vm) => {
// H5路由拦截,用于拦截用户地址栏输入地址
const token = vm.$store.state.vuex_token;
let locationUrl = window.location.href.split("/#")[1];
- if(needLogin.includes(locationUrl)&&!token){
+ // 参数下标——地址?下标
+ let quteIndex = locationUrl?.indexOf('?');
+ let quteUrl = locationUrl.substring(0,(!quteIndex||quteIndex===-1) ? locationUrl.length : quteIndex);
+ if(needLogin.includes(quteUrl)&&!token){
uni.showToast({
title: '该页面需要登录才能访问,请先登录',
icon: 'none'
@@ -32,7 +35,7 @@ const install = (vm) => {
uni.navigateTo({
url: "/pages/mobile_web/my/child_pages/login?nextUrl="+locationUrl
});
- } else if(!filterRoute.includes(locationUrl)&&locationUrl!=='/'&&vm.$store.state.current_platform&&
+ } else if(quteUrl!=='/'&&!filterRoute.includes(quteUrl)&&vm.$store.state.current_platform&&
locationUrl.indexOf(vm.$store.state.current_platform)==-1){
uni.navigateTo({
url: `/pages/${vm.$store.state.current_platform}/index/index`,
@@ -66,7 +69,7 @@ const install = (vm) => {
return false;
}
// #ifndef APP
- else if(!filterRoute.includes(url)&&url.indexOf(vm.$store.state.current_platform)==-1){
+ else if(!filterRoute.includes(url)&&url.indexOf(vm.$store.state.current_platform)===-1){
uni.showToast({
title: '该设备端无法访问对应页面!',
icon: 'none'
diff --git a/manifest.json b/manifest.json
index de51d70..21f8406 100644
--- a/manifest.json
+++ b/manifest.json
@@ -136,7 +136,7 @@
"proxy" : {
"/pixelApi" : {
"target" : "http://8.138.171.103/pixelApi", // 测试环境
- // "target" : "http://www.ylemai.cn/pixelApi",// 正式环境
+ // "target" : "https://www.ylemai.cn/pixelApi",// 正式环境
"changeOrigin" : true,
"secure" : true,
"ws" : false,
@@ -146,21 +146,21 @@
},
"/upload" : {
"target" : "http://8.138.171.103", // 测试环境
- // "target" : "http://www.ylemai.cn",// 正式环境
+ // "target" : "https://www.ylemai.cn",// 正式环境
"changeOrigin" : true,
"secure" : true,
"ws" : false
},
"/static" : {
"target" : "http://8.138.171.103", // 测试环境
- // "target" : "http://www.ylemai.cn",// 正式环境
+ // "target" : "https://www.ylemai.cn",// 正式环境
"changeOrigin" : true,
"secure" : true,
"ws" : false
},
"/aiupload" : {
"target" : "http://8.138.171.103/upload", // 测试环境
- // "target" : "http://www.ylemai.cn/upload",// 正式环境
+ // "target" : "https://www.ylemai.cn/upload",// 正式环境
"changeOrigin" : true,
"secure" : true,
"ws" : false,
@@ -187,6 +187,15 @@
"^/otherOssUpload/" : ""
}
},
+ "/anotherOssUpload" : {
+ "target" : "http://pixel-ai-file.oss-cn-guangzhou.aliyuncs.com",
+ "changeOrigin" : true,
+ "secure" : true,
+ "ws" : false,
+ "pathRewrite" : {
+ "^/anotherOssUpload/" : ""
+ }
+ },
"/asyncOssUpload" : {
"target" : "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com",
"changeOrigin" : true,
diff --git a/pages/mobile_web/home/home.vue b/pages/mobile_web/home/home.vue
index a5defc9..a4f11b6 100644
--- a/pages/mobile_web/home/home.vue
+++ b/pages/mobile_web/home/home.vue
@@ -218,7 +218,8 @@ export default {
getWorkPath(path){
if(!path) return;
let index = path?.indexOf('?');
- return path?.includes('://') ? path.substring(0,(!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
+ let judge = path?.includes(configService.anotherAliUrl);
+ return path?.includes('://') ? path.substring(0,(judge||!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
},
// 获取应用服务列表
async getServices(){
diff --git a/pages/mobile_web/my/child_pages/share.vue b/pages/mobile_web/my/child_pages/share.vue
index 1e7963a..1c86c0e 100644
--- a/pages/mobile_web/my/child_pages/share.vue
+++ b/pages/mobile_web/my/child_pages/share.vue
@@ -151,7 +151,8 @@
getImagePath(path){
if(!path) return;
let index = path?.indexOf('?');
- return path?.includes('://') ? path.substring(0,(!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
+ let judge = path?.includes(configService.anotherAliUrl);
+ return path?.includes('://') ? path.substring(0,(judge||!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
},
// 返回
back(){
diff --git a/pages/mobile_web/wall/detail.vue b/pages/mobile_web/wall/detail.vue
index d9b308f..b6f51c2 100644
--- a/pages/mobile_web/wall/detail.vue
+++ b/pages/mobile_web/wall/detail.vue
@@ -253,7 +253,8 @@ export default {
// 图片格式化
getPhotoPath(path){
let index = path?.indexOf('?');
- return path?.includes('://') ? path.substring(0,(!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
+ let judge = path?.includes(configService.anotherAliUrl);
+ return path?.includes('://') ? path.substring(0,(judge||!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
},
// 跳转专栏
navigateTo(id){
diff --git a/pages/mobile_web/work/work.vue b/pages/mobile_web/work/work.vue
index c89b7c6..dc03bd3 100644
--- a/pages/mobile_web/work/work.vue
+++ b/pages/mobile_web/work/work.vue
@@ -221,7 +221,8 @@ export default {
getImagePath(path){
if(!path) return;
let index = path?.indexOf('?');
- return path?.includes('://') ? path.substring(0,(!index||index===-1) ? path.length : index) : encodeURI(this.ip+path);
+ let judge = path?.includes(configService.anotherAliUrl);
+ return path?.includes('://') ? path.substring(0,(judge||!index||index===-1) ? path.length : index) : encodeURI(this.ip+path);
},
// 切换选项
changeSelect(index){
diff --git a/pages/mobile_web/workshops/components/dress_select.vue b/pages/mobile_web/workshops/components/dress_select.vue
index a947a4f..bc6495b 100644
--- a/pages/mobile_web/workshops/components/dress_select.vue
+++ b/pages/mobile_web/workshops/components/dress_select.vue
@@ -205,7 +205,8 @@ export default {
// 获取图片路径
getImagePath(path){
let index = path?.indexOf('?');
- return path?.includes('://') ? path.substring(0,(!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
+ let judge = path?.includes(configService.anotherAliUrl);
+ return path?.includes('://') ? path.substring(0,(judge||!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
},
// 判断模特是否选中
mannequinJudge(index){
diff --git a/pages/mobile_web/workshops/index.vue b/pages/mobile_web/workshops/index.vue
index 60b9b3c..dd44c3b 100644
--- a/pages/mobile_web/workshops/index.vue
+++ b/pages/mobile_web/workshops/index.vue
@@ -205,6 +205,7 @@ export default {
ip: configService.ip,
aliIp: configService.aliUrl,
otherAliIp: configService.otherAliUrl,
+ anotherAliIp: configService.anotherAliUrl,
aliAsyncIp: configService.aliAsyncUrl,
myFileUrl: configService.fileUrl + 'pixel/my/',
fileUrl: configService.fileUrl + 'pixel/workshops/',
@@ -519,7 +520,8 @@ export default {
getResultImagePath(path){
if(!path) return;
let index = path?.indexOf('?');
- return path?.includes('://') ? path.substring(0,(!index||index===-1) ? path.length : index) : encodeURI(this.ip+path);
+ let judge = path?.includes(configService.anotherAliUrl);
+ return path?.includes('://') ? path.substring(0,(judge||!index||index===-1) ? path.length : index) : encodeURI(this.ip+path);
},
// 轮询
async asyncPoll(id) {
@@ -702,6 +704,7 @@ export default {
// #ifdef H5
let downloadUrl = await that.resultFile.replace(that.aliIp, "/ossUpload");
downloadUrl = await downloadUrl.replace(that.otherAliIp, "/otherOssUpload");
+ downloadUrl = await downloadUrl.replace(that.anotherAliIp, "/anotherOssUpload");
// #endif
// #ifndef H5
let downloadUrl = that.resultFile;
diff --git a/pages/pc_web/home/components/second.vue b/pages/pc_web/home/components/second.vue
index 8499043..bff2c2a 100644
--- a/pages/pc_web/home/components/second.vue
+++ b/pages/pc_web/home/components/second.vue
@@ -78,6 +78,7 @@ export default {
fileUrl: configService.fileUrl + 'pixel/',
aliIp: configService.aliUrl,
otherAliIp: configService.otherAliUrl,
+ anotherAliIp: configService.anotherAliUrl,
// 选择黑星图片
blackStar: 'work/black-star.png',
// 魔术棒
@@ -170,7 +171,8 @@ export default {
getWorkPath(path){
if(!path) return;
let index = path?.indexOf('?');
- return path?.includes('://') ? path.substring(0,(!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
+ let judge = path?.includes(configService.anotherAliUrl);
+ return path?.includes('://') ? path.substring(0,(judge||!index||index===-1) ? path.length : index) : encodeURI(this.staticIp+path);
},
// 轮播图跳转
linkTo(url){
@@ -208,7 +210,7 @@ export default {
// 下载地址
// let downloadUrl = await path.replace(that.aliIp, "/ossUpload");
let downloadUrl = path;
- if(path.includes(that.aliIp)||path.includes(that.otherAliIp)){window.open(downloadUrl);item.loading = false;}
+ if(path.includes(that.aliIp)||path.includes(that.otherAliIp)||path.includes(that.anotherAliIp)){window.open(downloadUrl);item.loading = false;}
else
uni.request({
url: encodeURI(downloadUrl),
diff --git a/pages/pc_web/index/components/header.vue b/pages/pc_web/index/components/header.vue
index 803fc3a..511ff7a 100644
--- a/pages/pc_web/index/components/header.vue
+++ b/pages/pc_web/index/components/header.vue
@@ -2,7 +2,7 @@
@@ -214,6 +214,10 @@ export default {
finally{
this.dotLoading = false;
}
+ },
+ // 查看协议
+ toAgreement(type = ''){
+ if(type) uni.navigateTo({ url: `/pages/index/rich-detail?name=${type}` });
}
},
mounted() {
diff --git a/pages/pc_web/index/index.vue b/pages/pc_web/index/index.vue
index 7668824..f8aec7d 100644
--- a/pages/pc_web/index/index.vue
+++ b/pages/pc_web/index/index.vue
@@ -2,7 +2,7 @@