purchase-let/multipleShop/verificationOrder/index.vue

191 lines
4.0 KiB
Vue
Raw Normal View History

2024-06-03 18:25:34 +08:00
<style lang="scss">
page {
background: #FAFAFA;
}
.order {
padding-bottom: 30rpx;
.order-search {
position: sticky;
top: 0;
z-index: 10;
display: flex;
height: 90rpx;
background-color: #fff;
padding: 0 24rpx;
box-sizing: border-box;
.order-search-txt {
position: absolute;
right: 28rpx;
top: 50%;
transform: translateY(-50%);
width: 110rpx;
height: 52rpx;
line-height: 52rpx;
text-align: center;
background: #FFFFFF;
border-radius: 30rpx 30rpx 30rpx 30rpx;
font-size: 28rpx;
color: #20B128;
}
}
.order-list {
padding-top: 24rpx;
height: calc(100vh - 90rpx - 24rpx - 30rpx);
.order-list-item {
width: 710rpx;
background: #FFFFFF;
border-radius: 12rpx;
margin: 0 auto 24rpx;
padding: 0 30rpx;
box-sizing: border-box;
.order-list-item-order_num {
height: 74rpx;
line-height: 74rpx;
font-weight: 600;
font-size: 26rpx;
color: #333333;
border-bottom: 2rpx solid #F1F1F1;
}
.order-list-item-trans {
display: flex;
justify-content: space-between;
padding: 16rpx 0 24rpx 0;
.order-list-item-trans-left {
display: flex;
justify-content: center;
align-items: center;
margin-right: 38rpx;
}
.order-list-item-trans-right {
.order-type {
margin-bottom: 10rpx;
font-weight: 600;
font-size: 32rpx;
color: #444444;
}
.order-reciver {
margin-bottom: 10rpx;
font-size: 26rpx;
color: #777777;
}
.order-verification-time {
width: 500rpx;
font-size: 26rpx;
color: #777777;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}
}
.order-tab {
display: flex;
align-items: center;
justify-content: space-around;
width: 100%;
height: 102rpx;
background-color: #fff;
.order-tab-item {
font-size: 32rpx;
color: #444444;
}
.order-tab-active {
position: relative;
font-weight: bold;
font-size: 32rpx;
color: #20B128;
&::after {
content: "";
display: block;
position: absolute;
width: 52rpx;
height: 6rpx;
border-radius: 6rpx;
background-color: #20B128;
bottom: -20rpx;
left: 50%;
transform: translateX(-50%);
}
}
}
}
</style>
<template>
<view class="order">
<view class="order-search">
<u-search :animation="true" :showAction="false" bgColor="#f6f6f6" placeholder="请输入门店"></u-search>
<view class="order-search-txt">搜索</view>
</view>
<view class="order-tab">
<view class="order-tab-item" @click="onTabChange(1)" :class="{'order-tab-active':orderTab==1}">待配送(0)</view>
<view class="order-tab-item" @click="onTabChange(2)" :class="{'order-tab-active':orderTab==2}">已配送(0)</view>
</view>
<view class="order-list">
<scroll-view style="height: 100%;" :scroll-y="true" @scroll="onScroll">
<view class="order-list-wrap">
<view class="order-list-item" v-for="item in 10">
<view class="order-list-item-order_num">订单编号:123123123123</view>
<view class="order-list-item-trans">
<view class="order-list-item-trans-right">
<view class="order-type">配送订单</view>
<view class="order-reciver">收货人李斯</view>
<view class="order-verification-time">商品信息黄牛牛腩块2kg*5</view>
</view>
<view class="order-list-item-trans-left">
<u-image width="76rpx" height="76rpx" src="../../multipleShop/images/scan.png" />
</view>
</view>
</view>
</view>
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
</u-empty>
</scroll-view>
</view>
</view>
</template>
<script setup>
import {
onLoad
} from "@dcloudio/uni-app";
import {
ref
} from "vue";
// tab切换
const orderTab = ref(1);
const onTabChange = (e) => {
orderTab.value = e;
}
uni.login({
success(res) {
console.log(res);
}
})
const onScroll = (e) => {
console.log(e);
}
</script>