初始化移动端提交
This commit is contained in:
3
sheep/config/captcha.js
Normal file
3
sheep/config/captcha.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
captchaEnable: true, // 是否开启验证码
|
||||
}
|
||||
31
sheep/config/index.js
Normal file
31
sheep/config/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import packageInfo from '@/package.json';
|
||||
|
||||
const { version } = packageInfo;
|
||||
|
||||
// 开发环境配置
|
||||
export let baseUrl;
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
baseUrl = import.meta.env.SHOPRO_DEV_BASE_URL;
|
||||
} else {
|
||||
baseUrl = import.meta.env.SHOPRO_BASE_URL;
|
||||
}
|
||||
if (typeof baseUrl === 'undefined') {
|
||||
console.error('请检查.env配置文件是否存在');
|
||||
} else {
|
||||
console.log(`[移动端 ${version}] https://doc.iocoder.cn`);
|
||||
}
|
||||
|
||||
export const apiPath = import.meta.env.SHOPRO_API_PATH;
|
||||
export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
|
||||
export const tenantId = import.meta.env.SHOPRO_TENANT_ID;
|
||||
export const websocketPath = import.meta.env.SHOPRO_WEBSOCKET_PATH;
|
||||
export const h5Url = import.meta.env.SHOPRO_H5_URL;
|
||||
|
||||
export default {
|
||||
baseUrl,
|
||||
apiPath,
|
||||
staticUrl,
|
||||
tenantId,
|
||||
websocketPath,
|
||||
h5Url,
|
||||
};
|
||||
35
sheep/config/theme.js
Normal file
35
sheep/config/theme.js
Normal file
@@ -0,0 +1,35 @@
|
||||
// 主题配置文件
|
||||
export const themeConfig = {
|
||||
// 主题色配置 - 统一使用 #0055A2
|
||||
primary: {
|
||||
main: '#0055A2',
|
||||
light: '#337AB7',
|
||||
dark: '#003F73',
|
||||
gradient: 'rgba(0, 85, 162, 0.6)', // 渐变结束色
|
||||
},
|
||||
|
||||
// 渐变配置
|
||||
gradients: {
|
||||
// 水平渐变 (90度)
|
||||
horizontal: 'linear-gradient(90deg, #0055A2, rgba(0, 85, 162, 0.6))',
|
||||
// 垂直渐变 (180度)
|
||||
vertical: 'linear-gradient(180deg, #0055A2 0%, rgba(0, 85, 162, 0.6) 100%)',
|
||||
// 对角渐变
|
||||
diagonal: 'linear-gradient(135deg, #0055A2, rgba(0, 85, 162, 0.6))',
|
||||
},
|
||||
|
||||
// CSS 变量映射
|
||||
getCSSVars() {
|
||||
return {
|
||||
'--theme-primary': this.primary.main,
|
||||
'--theme-primary-light': this.primary.light,
|
||||
'--theme-primary-dark': this.primary.dark,
|
||||
'--theme-primary-gradient': this.primary.gradient,
|
||||
'--gradient-horizontal-primary': this.gradients.horizontal,
|
||||
'--gradient-vertical-primary': this.gradients.vertical,
|
||||
'--gradient-diagonal-primary': this.gradients.diagonal,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
export default themeConfig;
|
||||
20
sheep/config/zIndex.js
Normal file
20
sheep/config/zIndex.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// uniapp在H5中各API的z-index值如下:
|
||||
/**
|
||||
* actionsheet: 999
|
||||
* modal: 999
|
||||
* navigate: 998
|
||||
* tabbar: 998
|
||||
* toast: 999
|
||||
*/
|
||||
|
||||
export default {
|
||||
toast: 10090,
|
||||
noNetwork: 10080,
|
||||
popup: 10075, // popup包含popup,actionsheet,keyboard,picker的值
|
||||
mask: 10070,
|
||||
navbar: 980,
|
||||
topTips: 975,
|
||||
sticky: 970,
|
||||
indexListSticky: 965,
|
||||
popover: 960,
|
||||
};
|
||||
Reference in New Issue
Block a user