Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d484bacb
authored
May 08, 2021
by
fanx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改根尺寸
1 parent
3050d4ce
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
34 deletions
postcss.config.js
src/assets/css/sprite.less
src/assets/icon/logo.png
src/assets/images/sprite.png
src/components/NafmHeader.vue
src/components/UserCommon.vue
src/utils/index.js
postcss.config.js
View file @
d484bac
...
...
@@ -9,7 +9,7 @@ module.exports = ({ file }) => {
if
(
file
&&
file
.
dirname
&&
file
.
dirname
.
indexOf
(
'vant'
)
>
-
1
)
{
rootValue
=
37.5
}
else
{
rootValue
=
82.8
//75
rootValue
=
41.4
//75
}
return
{
plugins
:
[
...
...
src/assets/css/sprite.less
View file @
d484bac
...
...
@@ -3,5 +3,5 @@
.icon-bg-mine { width: 828px; height: 340px; background-position: 0px -432px; }
.icon-bg-navigation { width: 828px; height: 176px; background-position: -848px -206px; }
.icon-bg-search { width: 828px; height: 186px; background-position: -848px 0px; }
.icon-logo { width: 200px; height: 200px; background-position: -848px -402px; }
.icon-user-question { width: 32px; height: 36px; background-position: -1068px -402px; }
\ No newline at end of file
.icon-logo { width: 224px; height: 224px; background-position: -848px -402px; }
.icon-user-question { width: 32px; height: 36px; background-position: -1092px -402px; }
\ No newline at end of file
src/assets/icon/logo.png
View file @
d484bac
6.69 KB
|
W:
|
H:
28.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/sprite.png
View file @
d484bac
268 KB
|
W:
|
H:
302 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/NafmHeader.vue
View file @
d484bac
...
...
@@ -146,7 +146,7 @@ section {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
36
px
;
font-size
:
18
px
;
z-index
:
-1
;
}
.nav_right
{
...
...
src/components/UserCommon.vue
View file @
d484bac
<
template
>
<div
class=
"user_container"
>
<!-- 右侧插槽 -->
<div
class=
"logo"
>
<img
:src=
"require('@/assets/icon/logo.png')"
alt=
""
>
</div>
<!-- 顶部插槽 -->
<div
class=
"user_navigation"
v-if=
"$slots.top"
slot=
"top"
>
<slot
name=
"top"
/>
</div>
...
...
@@ -16,5 +20,15 @@ export default {
background-image
:
url(../assets/icon/bg_login.png)
;
background-repeat
:
no-repeat
;
background-size
:
100%
;
height
:
450px
;
}
.logo
{
display
:
flex
;
justify-content
:
center
;
img
{
margin-top
:
280px
;
width
:
224px
;
height
:
224px
;
}
}
</
style
>
\ No newline at end of file
src/utils/index.js
View file @
d484bac
...
...
@@ -3,33 +3,6 @@
* import utils from "@/utils";
*/
/**
* table滚动
*/
const
tableScroll
=
(
columns
,
y
)
=>
{
let
_y
=
(
typeof
y
==
"string"
||
typeof
y
==
'number'
)
?
y
:
document
.
body
.
clientHeight
-
y
.
getBoundingClientRect
().
top
-
150
;
let
opt
=
{
x
:
(
typeof
columns
==
"string"
||
typeof
columns
==
'number'
)
?
columns
:
columns
.
reduce
((
c
,
n
)
=>
{
let
cn
=
typeof
c
==
"number"
?
c
:
parseInt
(
c
[
'width'
]
||
300
);
let
nn
=
parseInt
(
n
[
'width'
]
||
300
);
return
cn
+
nn
;
}),
y
:
Math
.
max
(
_y
,
300
)
}
// console.log(opt);
return
opt
}
// table 表格各项配置
const
tableConfig
=
{
align
:
'center'
,
// 表格内容排列方式
ellipsis
:
true
,
// 表格内容超出宽度,省略显示
}
// 封装接口返回数据
const
handlePromise
=
(
promise
)
=>
{
return
promise
.
then
(
res
=>
{
...
...
@@ -40,7 +13,5 @@ const handlePromise = (promise) => {
}
export
{
tableScroll
,
tableConfig
,
handlePromise
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment