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

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

View File

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