Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-customer-new-master
Commits
3844b182
Commit
3844b182
authored
Mar 04, 2025
by
knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uView安装配置设置
parent
73ee2bc2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
21 deletions
+35
-21
App.vue
src/App.vue
+2
-1
main.js
src/main.js
+1
-1
pages.json
src/pages.json
+9
-0
uni.scss
src/uni.scss
+4
-1
vue.config.js
vue.config.js
+19
-18
No files found.
src/App.vue
View file @
3844b182
...
...
@@ -37,6 +37,7 @@ export default {
}
</
script
>
<
style
>
<
style
lang=
"scss"
>
@import
"uview-ui/index.scss"
;
@import
url(@/static/css/main.css)
;
</
style
>
src/main.js
View file @
3844b182
...
...
@@ -4,7 +4,7 @@ import App from './App'
import
request
from
'
./utils/request.js
'
import
store
from
'
@/store
'
import
mixin
from
'
@/mixins/default
'
import
uView
from
"
uview-ui
"
;
import
lang
from
'
@/common/lang.js
'
Vue
.
config
.
productionTip
=
false
...
...
src/pages.json
View file @
3844b182
{
"easycom"
:
{
"^u-(.*)"
:
"uview-ui/components/u-$1/u-$1.vue"
},
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/index/index"
,
...
...
@@ -340,6 +343,12 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/cons/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
],
"globalStyle"
:
{
...
...
src/uni.scss
View file @
3844b182
...
...
@@ -14,6 +14,9 @@
/* 颜色变量 */
/* uni.scss */
@import
'uview-ui/theme.scss'
;
/* 行为相关颜色 */
$uni-color-primary
:
#007aff
;
$uni-color-success
:
#4cd964
;
...
...
@@ -73,4 +76,4 @@ $uni-font-size-title:40rpx;
$uni-color-subtitle
:
#555555
;
// 二级标题颜色
$uni-font-size-subtitle
:
36rpx
;
$uni-color-paragraph
:
#3F536E
;
// 文章段落颜色
$uni-font-size-paragraph
:
30rpx
;
\ No newline at end of file
$uni-font-size-paragraph
:
30rpx
;
vue.config.js
View file @
3844b182
const
path
=
require
(
'
path
'
);
const
CopyWebpackPlugin
=
require
(
'
copy-webpack-plugin
'
);
// 最新版本copy-webpack-plugin插件暂不兼容,推荐v5.0.0
const
path
=
require
(
'
path
'
);
const
CopyWebpackPlugin
=
require
(
'
copy-webpack-plugin
'
);
// 最新版本copy-webpack-plugin插件暂不兼容,推荐v5.0.0
module
.
exports
=
{
configureWebpack
:
{
plugins
:
[
new
CopyWebpackPlugin
([
{
from
:
path
.
join
(
__dirname
,
'
public
'
),
to
:
path
.
join
(
__dirname
,
'
dist
'
,
process
.
env
.
NODE_ENV
===
'
production
'
?
'
build
'
:
'
dev
'
,
process
.
env
.
UNI_PLATFORM
)
}
])
module
.
exports
=
{
transpileDependencies
:
[
'
uview-ui
'
],
configureWebpack
:
{
plugins
:
[
new
CopyWebpackPlugin
([
{
from
:
path
.
join
(
__dirname
,
'
public
'
),
to
:
path
.
join
(
__dirname
,
'
dist
'
,
process
.
env
.
NODE_ENV
===
'
production
'
?
'
build
'
:
'
dev
'
,
process
.
env
.
UNI_PLATFORM
)
}
])
]
}
}
\ No newline at end of file
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment