This commit is contained in:
weipengfei 2023-08-30 15:06:03 +08:00
parent 9da43b6711
commit 555cba5b93
2 changed files with 10 additions and 4 deletions

View File

@ -41,7 +41,9 @@
list: [] list: []
} }
}, },
onLoad() {}, onLoad() {
this.skeleton = true;
},
onShow() { onShow() {
this.loadList(); this.loadList();
}, },
@ -50,10 +52,9 @@
}, },
methods: { methods: {
async loadList(){ async loadList(){
this.skeleton = true;
let res = await taskLists({limit: 15, page: 1}); let res = await taskLists({limit: 15, page: 1});
this.list = res.data; this.list = res.data;
this.$u.sleep(500).then(()=>{this.skeleton = false}) this.skeleton = false;
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {

View File

@ -51,7 +51,7 @@
</view> --> </view> -->
<view class="button"> <view class="button">
<view class="retreat" @click="retreat">退股</view> <view class="retreat" @click="retreat">退股</view>
<view class="hand" @click="hand">上交</view> <view class="hand" :class="{'disable': !shareholder.is_amount_turned}" @click="hand">上交</view>
</view> </view>
</view> </view>
</template> </template>
@ -274,6 +274,11 @@
justify-content: center; justify-content: center;
font-size: 32rpx; font-size: 32rpx;
} }
.disable {
background-color: #666;
color: #eee;
}
} }
.contract { .contract {