<template>
	<view class="page">
		<u-tabs active-color="#26c570" :list="list" :current="current" @change="change"></u-tabs>
		<view style="padding: 0 20rpx;">
			<view v-for="(item,index) in 10"
				style="background: #fff;margin-top: 40rpx;padding: 30rpx;border-radius: 18rpx;">
				<view style="display: flex;align-items: center;justify-content: space-between;">
					<view style="display: flex;align-items: center;">
						<view class="t1" style="margin-right: 15rpx;">订单号：131313</view>
						<u-icon name="arrow-right" color="#979797" size="24"></u-icon>
					</view>
					<view class="t1">待付款</view>
				</view>
				<view style="display: flex;justify-content: space-between;align-items: center;margin: 10rpx 0;">
					<view style="display: flex;">
						<view>
							<image style="width: 200rpx;height: 200rpx;border-radius: 18rpx;" mode="aspectFill"
								src="../../static/icon/bg1.png"></image>
						</view>
						<view
							style="display: flex;flex-direction: column;justify-content: space-around;margin-left: 15rpx;">
							<view>产品名称</view>
							<view class="t1">下单时间：11312</view>
						</view>
					</view>
					<view style="display: flex;flex-direction: column;justify-content: space-around;height: 200rpx;">
						<view class="t1">￥444</view>
						<view class="t1">X1</view>
					</view>
				</view>
				<view
					style="display: flex;justify-content: space-between;padding-top: 30rpx;border-top: 2rpx solid #eee;align-items: center;">
					<view>
						<text>共1件商品，合计 </text>
						<text style="color: red;font-weight: bold;">￥49</text>
					</view>
					<view
						style="background: #26c570;color: #fff;border-radius: 36rpx;font-size: 20rpx;padding: 14rpx 20rpx;">
						查看详情</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{
						name: '全部'
					}, 
					{
						name: '待付款'
					}, 
					{
						name: '待发货',
					},
					{
						name: '已发货',
					},
					{
						name: '已完成',
					},
					{
						name: '已关闭',
					},
				],
				current: 0,

				pageindex: {
					page: 1,
					pageSize: 10,
				},
			};
		},
		mounted() {
			this.getALL()
		},
		onLoad(optiong) {

		},
		methods: {
			getALL() {
				// this.$http.sendRequest('/order/getAll', 'POST', this.pageindex, 2).then(res => {
				// 	//成功回调	
				// 	this.list = res.data.data.list
				// })
			},
			change(index) {
				this.current = index;
			}

		}
	}
</script>

<style scoped lang="scss">
	.page {
		
	}

	.t1 {
		font-size: 26rpx;
		color: #979797;
	}
</style>