Authored by Bad

修改配置

... ... @@ -4,11 +4,11 @@ SHOPRO_VERSION=v2.4.1
# 后端接口 - 正式环境(通过 process.env.NODE_ENV 非 development)
# SHOPRO_BASE_URL=http://api-dashboard.yudao.iocoder.cn
# SHOPRO_BASE_URL=http://mall.hcxtec.com
SHOPRO_BASE_URL=https://xunji.geaktec.com
# 后端接口 - 测试环境(通过 process.env.NODE_ENV = development)
#SHOPRO_DEV_BASE_URL=http://192.168.1.200:48081
# SHOPRO_DEV_BASE_URL=http://192.168.1.85:48080
SHOPRO_DEV_BASE_URL=https:/xunji.geaktec.com
SHOPRO_DEV_BASE_URL=https://xunji.geaktec.com
# SHOPRO_DEV_BASE_URL=http://api-dashboard.yudao.iocoder.cn/
### SHOPRO_DEV_BASE_URL=http://10.171.1.188:48080
### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc
... ...
{
"name": "智能健身",
"appid": "__UNI__7CAA18B",
"appid": "__UNI__8F24C84",
"description": "基于 uni-app + Vue3 技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。",
"versionName": "2025.10",
"versionCode": "183",
... ... @@ -68,10 +68,7 @@
"schemes": "shopro"
},
"ios": {
"urlschemewhitelist": [
"baidumap",
"iosamap"
],
"urlschemewhitelist": ["baidumap", "iosamap"],
"dSYMs": false,
"privacyDescription": {
"NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目",
... ... @@ -82,9 +79,7 @@
"urltypes": "shopro",
"capabilities": {
"entitlements": {
"com.apple.developer.associated-domains": [
"applinks:shopro.sheepjs.com"
]
"com.apple.developer.associated-domains": ["applinks:shopro.sheepjs.com"]
}
},
"idfa": true
... ... @@ -102,18 +97,12 @@
},
"payment": {
"weixin": {
"__platform__": [
"ios",
"android"
],
"__platform__": ["ios", "android"],
"appid": "wxae7a0c156da9383b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
},
"alipay": {
"__platform__": [
"ios",
"android"
]
"__platform__": ["ios", "android"]
}
},
"share": {
... ... @@ -123,9 +112,7 @@
}
}
},
"orientation": [
"portrait-primary"
],
"orientation": ["portrait-primary"],
"splashscreen": {
"androidStyle": "common",
"iosStyle": "common",
... ... @@ -169,11 +156,9 @@
"quickapp-native": {
"icon": "/static/logo.png",
"package": "com.example.demo",
"features": [
{
"features": [{
"name": "system.clipboard"
}
]
}]
},
"quickapp-webview": {
"icon": "/static/logo.png",
... ... @@ -200,10 +185,7 @@
"desc": "你的位置信息将用于展示附近的服务"
}
},
"requiredPrivateInfos": [
"chooseAddress",
"getLocation"
],
"requiredPrivateInfos": ["chooseAddress", "getLocation"],
"mergeVirtualHostAttributes": true
},
"mp-alipay": {
... ...
... ... @@ -29,13 +29,11 @@ const options = {
isToken: true,
};
/** 登录页路径 */
const LOGIN_PAGE = '/pages7/pages/index/login';
/** 跳转到登录页(navigateTo 失败时 reLaunch,避免页面栈异常) */
function navigateToLogin() {
uni.navigateTo({
url: LOGIN_PAGE,
url: '/pages7/pages/index/login',
fail: () => {
uni.reLaunch({ url: '/pages/xunji/xunji' });
},
... ...
... ... @@ -8,7 +8,7 @@ import uniReadPagesV3Plugin from './sheep/router/utils/uni-read-pages-v3';
import mpliveMainfestPlugin from './sheep/libs/mplive-manifest-plugin';
// https://vitejs.dev/config/
export default (command, mode) => {
export default ({ command, mode }) => {
const env = loadEnv(mode, __dirname, 'SHOPRO_');
return {
envPrefix: 'SHOPRO_',
... ...