Commit a5f0799c authored by Facius's avatar Facius

我的备件页申请按钮

parent d5541fa1
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
</view> </view>
<view class="tab-view"> <view class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" scroll-anchoring enable-back-to-top> <scroll-view scroll-y style="height: 100%;width: 100%;" scroll-anchoring enable-back-to-top @scroll="scroll">
<view class="loading-view" v-if="!loaded"> <view class="loading-view" v-if="!loaded">
<u-loading mode="flower"></u-loading> <u-loading mode="flower"></u-loading>
</view> </view>
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
@submit="$u.throttle(handleSubmit, 500)" /> @submit="$u.throttle(handleSubmit, 500)" />
</view> </view>
</template> </template>
<view class="fixed-button">
<ApplyButton :type="buttonType" @click="handleClickApply"/>
</view>
</view> </view>
</template> </template>
...@@ -50,13 +53,15 @@ ...@@ -50,13 +53,15 @@
import NoOrder from "@/components/order/noOrder.vue" import NoOrder from "@/components/order/noOrder.vue"
import SubmitBar from "@/components/submit-bar/index" import SubmitBar from "@/components/submit-bar/index"
import SpareCell from "@/components/parts/spareCell.vue" import SpareCell from "@/components/parts/spareCell.vue"
import ApplyButton from "@/components/parts/applyButton.vue"
export default { export default {
components: { components: {
// AppliedCell, // AppliedCell,
NoOrder, NoOrder,
SubmitBar, SubmitBar,
SpareCell SpareCell,
ApplyButton
}, },
data() { data() {
return { return {
...@@ -65,7 +70,8 @@ ...@@ -65,7 +70,8 @@
showBounce: false, showBounce: false,
keyword: '', keyword: '',
searchedKeyword: '', searchedKeyword: '',
selectedParts: [] selectedParts: [],
buttonType: 'expand' // 申请按钮宽 collapse': '80rpx', 'expand': '220rpx''
}; };
}, },
computed: { computed: {
...@@ -217,6 +223,14 @@ ...@@ -217,6 +223,14 @@
url: 'pages/parts/returnParts', url: 'pages/parts/returnParts',
}) })
}, },
handleClickApply() {
uni.navigateTo({
url: 'pages/parts/application'
})
},
scroll() {
this.buttonType = 'collapse'
},
} }
}; };
</script> </script>
...@@ -290,5 +304,11 @@ ...@@ -290,5 +304,11 @@
position: absolute; position: absolute;
} }
} }
.fixed-button {
position: fixed;
right: 20rpx;
bottom: 140rpx;
}
} }
</style> </style>
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