自主项目,食堂系统,前端uniapp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

126 lines
2.9 KiB

<template>
<view>
<view class="tabs">
<u-tabs :list="tab_list" :is-scroll="false" :current="current" bg-color="#f6f6f6" active-color="#1833F2" @change="tabsChange"></u-tabs>
</view>
<swiper :style="{height: 'calc('+ windowHeight +'px - 110rpx)', width: '750rpx'}"
:current="current" @change="swiperChange">
<swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex">
<scroll-view class="lf-w-100 lf-h-100 lf-p-l-32 lf-p-r-32 lf-border-box" :scroll-y="true">
<view class="card" v-for="(item, index) in 16" :key="index" @click="$url('/pages/supply/order/detail')">
<view class="lf-row-between upper">
<view class="lf-font-28 lf-color-333">订单状态</view>
<view class="order-btn quoted-price">已报价,等待审核</view>
</view>
<view class="lf-row-between lower">
<view>报价单号 327684287343874</view>
<view>2021-7-6 23:24:46</view>
</view>
</view>
<view class="loading-more">
<text :class="{'loading-more-text': tabItem.loading_class}">{{ tabItem.loading_text }}</text>
<!-- <lf-nocontent></lf-nocontent> -->
</view>
</scroll-view>
</swiper-item>
</swiper>
</view>
</template>
<script>
export default {
data(){
return {
current: 0,
tab_list: [{
name: '全部',
loading_class: true,
loading_text: '正在加载中...',
page: 1,
isPage: true,
list: []
},{
name: '审核中',
loading_class: true,
loading_text: '正在加载中...',
page: 1,
isPage: true,
list: []
},{
name: '已完成',
loading_class: true,
loading_text: '正在加载中...',
page: 1,
isPage: true,
list: []
}],
page_size: 10,
windowHeight: 0
}
},
onLoad(){
this.windowHeight = uni.getSystemInfoSync().windowHeight;
},
methods: {
tabsChange(current){
this.current = current;
},
swiperChange(event){
this.current = event.detail.current;
}
}
}
</script>
<style>
page{
background-color: #f6f6f6;
}
</style>
<style lang="scss" scoped="scoped">
.card{
width: 100%;
height: max-content;
background-color: #FFFFFF;
border-radius: 20rpx;
padding: 0 20rpx;
box-sizing: border-box;
margin-bottom: 30rpx;
.upper{
width: 100%;
padding: 20rpx 0;
border-bottom: 1rpx solid #e5e5e5;
box-sizing: border-box;
.order-btn{
width: max-content;
height: 62rpx;
border-radius: 32rpx;
// border: 2rpx solid #777777;
// padding: 0 20rpx;
line-height: 60rpx;
font-size: 28rpx;
}
// 已报价等待审核
.quoted-price{
color: #777777;
}
// 等待报价
.wait{
color: #1833F2;
}
// 已通过审核
.passed{
color: #0BCE5F;
}
// 报价被拒绝
.refuse{
color: #FF0000;
}
}
.lower{
padding: 20rpx 0;
font-size: 24rpx;
color: #777777;
}
}
</style>