空轴进站返回顶部

This commit is contained in:
2024-05-11 16:39:05 +08:00
parent 932a5a31be
commit b4604fa746
3 changed files with 17 additions and 14 deletions

View File

@@ -33,16 +33,18 @@ uni-button:after {
color: #D7592F ; color: #D7592F ;
} }
.icon_unchecked { .icon_unchecked {
display: inline-block;
color: #fff; color: #fff;
width: 32rpx; width: 42rpx;
height: 32rpx; height: 42rpx;
background-color: #fff; background-color: #fff;
font-size: 24rpx; font-size: 28rpx;
line-height: 28rpx; line-height: 38rpx;
border: 1rpx solid #bbb; border: 1rpx solid #bbb;
border-radius: 8rpx;
} }
.icon_checked { .icon_checked {
color: #D7592F ; background-color: #D7592F ;
border: 1rpx solid #D7592F ; border: 1rpx solid #D7592F ;
} }
.icon_back { .icon_back {

View File

@@ -172,7 +172,4 @@
} }
} }
} }
</script> </script>
<style lang="stylus">
</style>

View File

@@ -63,20 +63,24 @@
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index1 || !pkId}" :disabled="disabled" @tap="_inConfirm">上空轴</button> <button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index1 || !pkId}" :disabled="disabled" @tap="_inConfirm">上空轴</button>
<button class="zd-col-6 btn-submit btn-success letter-30" @tap="_queryMaterialInfo">查询</button> <button class="zd-col-6 btn-submit btn-success letter-30" @tap="_queryMaterialInfo">查询</button>
</view> </view>
<up-top ref="UT" :scrollTop="top"></up-top>
</view> </view>
</template> </template>
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import UpTop from '@/components/upTop.vue'
import {devicePointQuery, queryProductArea, queryDeviceByarea, queryMaterialInfo5, inConfirm} from '@/utils/getData2.js' import {devicePointQuery, queryProductArea, queryDeviceByarea, queryMaterialInfo5, inConfirm} from '@/utils/getData2.js'
export default { export default {
components: { components: {
NavBar, NavBar,
SearchBox SearchBox,
UpTop
}, },
data() { data() {
return { return {
top: 0,
options1: [], options1: [],
index1: '', index1: '',
options2: [], options2: [],
@@ -89,6 +93,9 @@
disabled: false disabled: false
}; };
}, },
onPageScroll(e) {
this.$refs.UT.topData(e.scrollTop)
},
created () { created () {
this._queryProductArea() this._queryProductArea()
this._queryMaterialInfo() this._queryMaterialInfo()
@@ -172,7 +179,4 @@
} }
} }
} }
</script> </script>
<style lang="stylus">
</style>