Commit 70b65221 authored by Damon's avatar Damon

配件选择页面

parent ff5082c3
...@@ -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 {
......
...@@ -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: 10rpx; margin-left: 30rpx;
.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;
......
...@@ -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
......
...@@ -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>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment