Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
hooloo
mp
user
Commits
ebb79de0
Commit
ebb79de0
authored
Jun 30, 2022
by
宋冰琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 菜单 订单详情 样式问题 tabar 售罄sku提示
parent
8f5ab84c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
5 deletions
+27
-5
components/menuAssembly/index.vue
+1
-1
components/tabBar/tabBar.vue
+1
-1
menuSubPackage/pages/goodsDetail/goodsDetail.vue
+19
-3
orderSubPackage/pages/orderInfo/index.vue
+6
-0
No files found.
components/menuAssembly/index.vue
View file @
ebb79de0
...
...
@@ -356,7 +356,7 @@ export default {
font-size
:
20
rpx
;
color
:
#999999
;
font-family
:
Futura-Medium
,
Futura
;
line-height
:
26
rpx
;
line-height
:
13
rpx
;
.num
{
text-decoration
:
line-through
;
...
...
components/tabBar/tabBar.vue
View file @
ebb79de0
...
...
@@ -91,7 +91,7 @@
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
width
:
50
rpx
;
width
:
100%
;
height
:
100%
;
}
...
...
menuSubPackage/pages/goodsDetail/goodsDetail.vue
View file @
ebb79de0
...
...
@@ -23,12 +23,11 @@
<view
v-for=
"specItem in goodInfo.specs"
:key=
"specItem.specId"
>
<view
class=
"good-spec-name"
>
{{
specItem
.
specName
}}
</view>
<view
class=
"good-spec-rule"
>
<div
v-for=
"specItemRule in specItem.rules"
class=
"div_item"
:key=
"specItemRule.ruleId"
>
<div
v-for=
"specItemRule in specItem.rules"
class=
"div_item"
:key=
"specItemRule.ruleId"
@
click=
"selectRoles(specItemRule, specItem)"
>
<div
v-if=
"specItemRule.isRecommend=='1'"
:class=
"[UseIt(specItemRule.ruleId)?'disabledStyle':'']"
class=
"default"
></div>
<button
class=
"good-spec-rule-item"
:disabled=
"UseIt(specItemRule.ruleId)"
@
click=
"selectRoles(specItemRule, specItem)"
:class=
"
{ active: isActvie(specItemRule) }">
{{
specItemRule
.
ruleName
}}
<view
@
click
.
prevent=
"checkSku(specItemRule)"
>
{{
specItemRule
.
ruleName
}}
</view>
</button>
</div>
</view>
...
...
@@ -202,7 +201,19 @@ export default {
return
selected
},
checkSku
(
specItemRule
)
{
const
value
=
this
.
UseIt
(
specItemRule
.
ruleId
)
if
(
value
)
{
this
.
showToast
({
title
:
'该选项已售罄'
,
icon
:
'none'
});
return
}
},
selectRoles
(
specItemRule
,
parent
)
{
const
value
=
this
.
UseIt
(
specItemRule
.
ruleId
)
if
(
value
)
{
this
.
showToast
({
title
:
'该选项已售罄'
,
icon
:
'none'
});
return
}
const
{
selected
}
=
this
;
selected
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
specId
==
parent
.
specId
)
{
...
...
@@ -442,6 +453,7 @@ export default {
margin-right
:
32
rpx
;
line-height
:
48
rpx
;
min-width
:
120
rpx
;
z-index
:
999999
;
.default
{
...
...
@@ -476,6 +488,7 @@ export default {
border
:
none
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
background
:
#EAEAEA
;
pointer-events
:
none
;
&.active
{
font-weight
:
400
;
padding
:
7
rpx
48
rpx
6
rpx
48
rpx
;
...
...
@@ -485,6 +498,9 @@ export default {
border
:
0
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
}
view
{
pointer-events
:
none
;
}
}
.good-spec-rule-item
::after
{
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
ebb79de0
...
...
@@ -753,6 +753,12 @@ export default {
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
span
{
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
}
}
.icno-arrow
{
width
:
15.27
rpx
;
...
...
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