Commit c9e02d4b authored by 阮藤's avatar 阮藤

相关问题解决

parent 61c74de7
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
</view> </view>
<!-- tabs --> <!-- tabs -->
<u-sticky class="bd_rad" style="background: #fff;"> <u-sticky offset-top="88" class="bd_rad" style="background: #fff;">
<u-tabs :list="list" font-size="28" :show-bar="false" active-color="#AF8D66" :current="current" @change="change"></u-tabs> <u-tabs :list="list" font-size="28" :show-bar="false" active-color="#AF8D66" :current="current" @change="change"></u-tabs>
</u-sticky> </u-sticky>
</view> </view>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<!-- list --> <!-- list -->
<view class="u-m-t-20 u-m-l-30 u-m-r-30 u-m-b-20"> <view class="u-m-t-20 u-m-l-30 u-m-r-30 u-m-b-20">
<!-- v-for --> <!-- v-for -->
<view class="u-m-b-20 posi_rela bd_rad1 u-p-30" v-for="item in 4" :key="item.id" style="background: #fff;"> <view class="u-m-b-20 posi_rela bd_rad1 u-p-30" v-for="item in entrustmentList" :key="item.id" style="background: #fff;">
<view class="u-m-b-30 u-flex justify-between"> <view class="u-m-b-30 u-flex justify-between">
<view class="entrus_list_title u-font-32">{{ item.materialName }}</view> <view class="entrus_list_title u-font-32">{{ item.materialName }}</view>
<view class="u-font-28">{{ item.status | filterStatus }}</view> <view class="u-font-28">{{ item.status | filterStatus }}</view>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</view> </view>
</view> </view>
<!--底部按钮--> <!--底部按钮-->
<view class="footer" id="footer"> <view v-if="statusBtn" class="footer" id="footer">
<view class="footer-btn"> <view class="footer-btn">
<view class="custom-style-round-circle custom-style-btn custom-style"> <view class="custom-style-round-circle custom-style-btn custom-style">
<view class="custom-style-right" @click="dateilEnt"><view class="title">新增委托</view></view> <view class="custom-style-right" @click="dateilEnt"><view class="title">新增委托</view></view>
...@@ -87,6 +87,8 @@ export default { ...@@ -87,6 +87,8 @@ export default {
mixins: [dom], mixins: [dom],
data() { data() {
return { return {
statusBtn:true,
timeOut: null,
background: { backgroundColor: 'rgba(245,245,245,0)' }, background: { backgroundColor: 'rgba(245,245,245,0)' },
modal: { modal: {
show: false, show: false,
...@@ -144,6 +146,21 @@ export default { ...@@ -144,6 +146,21 @@ export default {
this.entrustmentPage(); this.entrustmentPage();
} }
}, },
onPageScroll(object) {
this.statusBtn = false;
if (this.timeOut) {
clearTimeout(this.timeOut);
}
this.timeOut = setTimeout(() => {
this.statusBtn = true;
}, 1000);
let a = JSON.stringify(object);
if (object.scrollTop >= this.headerHeight) {
this.background.backgroundColor = 'rgba(245,245,245,1)';
} else {
this.background.backgroundColor = 'rgba(245,245,245,0)';
}
},
filters: { filters: {
filterStatus(v) { filterStatus(v) {
switch (v) { switch (v) {
......
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