生箔生产进度样式优化,添加返回顶部

This commit is contained in:
2024-05-11 14:44:49 +08:00
parent 0cbef46860
commit 39e69be121
2 changed files with 18 additions and 17 deletions

View File

@@ -148,12 +148,9 @@
} }
</script> </script>
<style lang="stylus"> <style lang="stylus" scoped>
.slide_new table td:nth-child(1), .slide_new table th:nth-child(1) .slide_new table .bgred td:first-child
box-shadow 1px 0 2px rgba(0,0,0,.12) background-image linear-gradient(to right,#E9B451,#fff)
.bgred td .slide_new table .bgyellow td:first-child
background-color #D7592F background-image linear-gradient(to right,#c2cde3,#fff)
color #ffffff
.bgyellow td
background-color #E9B451
</style> </style>

View File

@@ -63,20 +63,24 @@
<view class="zd-row submitbar"> <view class="zd-row submitbar">
<button class="zd-col-22 btn-submit btn-success" @tap="searchList">查询</button> <button class="zd-col-22 btn-submit btn-success" @tap="searchList">查询</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 {queryProductArea, queryRawFoil} from '@/utils/getData1.js' import {queryProductArea, queryRawFoil} from '@/utils/getData1.js'
export default { export default {
components: { components: {
NavBar, NavBar,
SearchBox SearchBox,
UpTop
}, },
data() { data() {
return { return {
top: 0,
val1: '', val1: '',
val2: '', val2: '',
options: [], options: [],
@@ -94,6 +98,9 @@
pageSize: 10 pageSize: 10
}; };
}, },
onPageScroll(e) {
this.$refs.UT.topData(e.scrollTop)
},
created () { created () {
this._queryRawFoil() this._queryRawFoil()
this._queryProductArea() this._queryProductArea()
@@ -148,12 +155,9 @@
} }
</script> </script>
<style lang="stylus"> <style lang="stylus" scoped>
.slide_new table td:nth-child(1), .slide_new table th:nth-child(1) .slide_new table .bgred td:first-child
box-shadow 1px 0 2px rgba(0,0,0,.12) background-image linear-gradient(to right,#E9B451,#fff)
.bgred td .slide_new table .bgyellow td:first-child
background-color #D7592F background-image linear-gradient(to right,#c2cde3,#fff)
color #ffffff
.bgyellow td
background-color #E9B451
</style> </style>