Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
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
ui
cauchy-ui
Commits
8b5fefcd
Commit
8b5fefcd
authored
Jul 23, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 问题修复
parent
c7974d2e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
fontResize.js
src/directives/fontResize.js
+2
-2
theme.less
src/style/theme.less
+1
-1
SkuList.vue
src/views/vipLife/components/SkuList.vue
+3
-3
SpuList.vue
src/views/vipLife/components/SpuList.vue
+4
-5
No files found.
src/directives/fontResize.js
View file @
8b5fefcd
...
...
@@ -2,8 +2,8 @@ const TXT_SIZE = 17;
const
TXT_MIN_SIZE
=
12
;
export
default
{
inserted
(
el
)
{
let
txtSize
=
TXT_SIZE
;
inserted
(
el
,
binding
)
{
let
txtSize
=
binding
.
value
||
TXT_SIZE
;
const
containerWidth
=
el
.
offsetWidth
;
const
txtLength
=
el
.
innerText
.
length
*
TXT_SIZE
;
const
overTxtWidth
=
txtLength
-
containerWidth
;
...
...
src/style/theme.less
View file @
8b5fefcd
...
...
@@ -33,7 +33,7 @@
@dialog-border-radius: @border-radius-lg;
@dialog-has-title-message-text-color: @text-grey;
@popup-close-icon-color: @gray-3;
@navbar-default-height: @nav-bar-height;
@picker-toolbar-padding: @padding-unit - 2 @padding-md;
@picker-font-size: 14px;
...
...
src/views/vipLife/components/SkuList.vue
View file @
8b5fefcd
...
...
@@ -14,13 +14,13 @@
@
click=
"item.hasStock && parent.handleSkuSelected(item, index)"
>
<div
v-if=
"props.showUnit"
class=
"Vl__sku-name unit"
>
{{
props
.
threeCol
?
item
.
saleP
rice
:
item
.
skuName
}}
{{
props
.
threeCol
?
item
.
p
rice
:
item
.
skuName
}}
<span>
元
</span>
</div>
<div
v-else
v-font-resize
class=
"Vl__sku-name"
>
{{
props
.
threeCol
?
item
.
saleP
rice
:
item
.
skuName
}}
{{
props
.
threeCol
?
item
.
p
rice
:
item
.
skuName
}}
</div>
<div
class=
"Vl__sku-price"
>
售价
{{
item
.
p
rice
}}
元
</div>
<div
class=
"Vl__sku-price"
>
售价
{{
item
.
saleP
rice
}}
元
</div>
</div>
</
template
>
<cr-empty
v-else
class=
"Vl__sku-empty"
image=
"commodity"
description=
"暂无商品~"
/>
...
...
src/views/vipLife/components/SpuList.vue
View file @
8b5fefcd
...
...
@@ -10,7 +10,7 @@
@click="$parent.handleSpuSelected(item)"
>
<img
:src=
"item.icon"
class=
"Vl__spu-icon"
/>
<div
class=
"Vl__spu-name"
>
{{
item
.
name
}}
</div>
<div
v-font-resize=
"14"
class=
"Vl__spu-name"
>
{{
item
.
name
}}
</div>
</div>
</div>
</div>
...
...
@@ -72,7 +72,6 @@ export default {
}
}
},
mounted
()
{
this
.
createScroller
();
},
...
...
@@ -130,8 +129,8 @@ export default {
overflow: hidden;
}
&-icon {
width: 4
0
px;
height: 4
0
px;
width: 4
8
px;
height: 4
8
px;
object-fit: contain;
}
&-placeholder {
...
...
@@ -179,7 +178,7 @@ export default {
&-name {
.text-14();
color: @text-grey;
padding: 0 @padding-
sm
;
padding: 0 @padding-
unit
;
margin-top: @padding-xs;
display: -webkit-box;
-webkit-box-orient: vertical;
...
...
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