Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
70b65221
Commit
70b65221
authored
Jun 23, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配件选择页面
parent
ff5082c3
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
261 additions
and
174 deletions
+261
-174
adjust.vue
src/components/select-parts/adjust.vue
+0
-1
index.vue
src/components/submit-bar/index.vue
+12
-3
readme.md
src/components/submit-bar/readme.md
+1
-1
parts.vue
src/pages/order/parts.vue
+13
-8
partsList.vue
src/pages/order/partsList.vue
+235
-161
No files found.
src/components/select-parts/adjust.vue
View file @
70b65221
...
@@ -43,7 +43,6 @@
...
@@ -43,7 +43,6 @@
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.parts
{
.parts
{
padding
:
0
20rpx
;
.lists
{
.lists
{
padding
:
10rpx
0
;
padding
:
10rpx
0
;
.name
{
.name
{
...
...
src/components/submit-bar/index.vue
View file @
70b65221
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<view
class=
"center-list"
>
合计
<text
class=
"num"
>
{{
num
}}
</text>
件
</view>
<view
class=
"center-list"
>
合计
<text
class=
"num"
>
{{
num
}}
</text>
件
</view>
</view>
</view>
<view
class=
"u-flex bottom-right"
>
<view
class=
"u-flex bottom-right"
>
<button
:class=
"['btn', btnActive]"
@
click=
"submit"
>
确定
</button>
<button
:class=
"['btn', btnActive]"
@
click=
"submit"
>
{{
submitTxt
}}
</button>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -46,6 +46,12 @@
...
@@ -46,6 +46,12 @@
default
()
{
default
()
{
return
0
return
0
}
}
},
submitTxt
:
{
// 提交按钮文字
type
:
String
,
default
()
{
return
'确定'
}
}
}
},
},
data
()
{
data
()
{
...
@@ -80,12 +86,14 @@
...
@@ -80,12 +86,14 @@
.bottom
{
.bottom
{
width
:
100%
;
width
:
100%
;
height
:
180rpx
;
height
:
180rpx
;
background
:
#fff
;
justify-content
:
space-between
;
.u-flex
{
.u-flex
{
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
}
}
.bottom-left
{
.bottom-left
{
margin-
right
:
1
0rpx
;
margin-
left
:
3
0rpx
;
.left-list
{
.left-list
{
width
:
100%
;
width
:
100%
;
&
:nth-of-type
(
1
)
{
&
:nth-of-type
(
1
)
{
...
@@ -98,8 +106,8 @@
...
@@ -98,8 +106,8 @@
}
}
.bottom-center
{
.bottom-center
{
flex
:
1
;
flex
:
1
;
margin-right
:
20rpx
;
align-items
:
flex-start
;
align-items
:
flex-start
;
margin
:
0
20rpx
;
.center-list
{
.center-list
{
&
:nth-of-type
(
1
)
{
&
:nth-of-type
(
1
)
{
color
:
#666
;
color
:
#666
;
...
@@ -118,6 +126,7 @@
...
@@ -118,6 +126,7 @@
}
}
.bottom-right
{
.bottom-right
{
width
:
340rpx
;
width
:
340rpx
;
margin-right
:
20rpx
;
.btn
{
.btn
{
width
:
100%
;
width
:
100%
;
padding
:
30rpx
;
padding
:
30rpx
;
...
...
src/components/submit-bar/readme.md
View file @
70b65221
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
| btnStatus | Boolean | true | true/false | 确定按钮是否可点击 |
| btnStatus | Boolean | true | true/false | 确定按钮是否可点击 |
| partNum | Number | 0 | | 配件数量 |
| partNum | Number | 0 | | 配件数量 |
| num | Number | 0 | | 合计总件数 |
| num | Number | 0 | | 合计总件数 |
| submitTxt | String | 确定 | | 确定按钮文字 |
### Events
### Events
...
...
src/pages/order/parts.vue
View file @
70b65221
...
@@ -15,14 +15,16 @@
...
@@ -15,14 +15,16 @@
<view
v-else
class=
"empty"
>
暂无可用备件
</view>
<view
v-else
class=
"empty"
>
暂无可用备件
</view>
</view>
</view>
<submit-bar
<view
class=
"bar"
>
:partNum=
"partNum"
<submit-bar
:num=
"num"
:partNum=
"partNum"
:btnStatus=
"btnStatus"
:num=
"num"
:allChecked=
"allChecked"
:btnStatus=
"btnStatus"
@
select=
"allSelect"
:allChecked=
"allChecked"
@
submit=
"submit"
@
select=
"allSelect"
/>
@
submit=
"submit"
/>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -137,5 +139,8 @@
...
@@ -137,5 +139,8 @@
flex
:
1
;
flex
:
1
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.bar
{
width
:
100%
;
}
}
}
</
style
>
</
style
>
src/pages/order/partsList.vue
View file @
70b65221
This diff is collapsed.
Click to expand it.
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