87 lines
2.1 KiB
TypeScript
87 lines
2.1 KiB
TypeScript
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
|
|
|
|
export default defineUniPages({
|
|
globalStyle: {
|
|
navigationBarTextStyle: 'black',
|
|
navigationBarTitleText: '六纬志愿',
|
|
navigationBarBackgroundColor: '#fff',
|
|
backgroundColor: '#F8F8F8',
|
|
},
|
|
easycom: {
|
|
autoscan: true,
|
|
custom: {
|
|
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
|
|
'^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
|
|
'z-paging/components/z-paging$1/z-paging$1.vue',
|
|
},
|
|
},
|
|
tabBar: {
|
|
color: '#7A7E83',
|
|
selectedColor: '#3370ff',
|
|
borderStyle: 'white',
|
|
backgroundColor: '#ffffff',
|
|
height: '60px',
|
|
fontSize: '10px',
|
|
iconWidth: '16px',
|
|
spacing: '3px',
|
|
list: [
|
|
{
|
|
iconPath: '/static/tabBar/home.png',
|
|
selectedIconPath: '/static/tabBar/home-active.png',
|
|
pagePath: 'pages/home/index/index',
|
|
text: '首页',
|
|
},
|
|
{
|
|
iconPath: '/static/tabBar/news.png',
|
|
selectedIconPath: '/static/tabBar/news-active.png',
|
|
pagePath: 'pages/evaluation/index/index',
|
|
text: '测评',
|
|
},
|
|
{
|
|
iconPath: '/static/tabBar/place.png',
|
|
selectedIconPath: '/static/tabBar/place-active.png',
|
|
pagePath: 'pages/expert/index/index',
|
|
text: '专家',
|
|
},
|
|
|
|
{
|
|
iconPath: '/static/tabBar/center.png',
|
|
selectedIconPath: '/static/tabBar/center-active.png',
|
|
pagePath: 'pages/ucenter/index/index',
|
|
text: '我的',
|
|
},
|
|
],
|
|
},
|
|
pages: [
|
|
{
|
|
path: 'pages/home/index/index',
|
|
type: 'home',
|
|
style: {
|
|
navigationBarTitleText: '六维志愿',
|
|
navigationStyle: 'custom',
|
|
},
|
|
},
|
|
],
|
|
preloadRule: {
|
|
'pages/home/index/index': {
|
|
network: 'all',
|
|
packages: ['pages-evaluation-sub'],
|
|
},
|
|
},
|
|
condition: {
|
|
current: 0,
|
|
list: [
|
|
{
|
|
name: '',
|
|
path: '',
|
|
query: '',
|
|
},
|
|
],
|
|
},
|
|
permission: {
|
|
'scope.userLocation': {
|
|
desc: '你的位置信息将用于小程序位置接口的效果展示',
|
|
},
|
|
},
|
|
})
|