返回顶部组件

This commit is contained in:
2024-01-24 15:49:01 +08:00
parent 927e7cc69a
commit 221dc8d033
5 changed files with 63 additions and 5 deletions

View File

@@ -140,20 +140,24 @@
</view>
</view>
<view v-if="active" class="msg_mask"></view>
<up-top ref="UT" :scrollTop="top"></up-top>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import UpTop from '@/components/upTop.vue'
import {queryProductArea, feedingQueryMaterialInfo, feedingConfirm, feedingQueryPoint, feedingHandleConfirm, feedingVehicleReturn} from '@/utils/getData2.js'
export default {
components: {
NavBar,
SearchBox
SearchBox,
UpTop
},
data() {
return {
top: 0,
val1: '',
val2: '',
options: [],
@@ -181,6 +185,9 @@
btn_active: false
};
},
onPageScroll(e) {
this.$refs.UT.topData(e.scrollTop)
},
created () {
this._queryProductArea()
},