<template>
	<view class="page1">
		<view class="title-gary"></view>
		<view class="title">外卖订单</view>
		<view style="background: #fff;border: 1px solid #eee;">
			<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#007aff"></uni-segmented-control>
		</view>
		<view class="content" style="background: #fff;">
			<view v-show="current === 0">
				
			</view>
			<view v-show="current === 1">
				
			</view>
			<view v-show="current === 2">
				
			</view>
			<view v-show="current === 3">
				
			</view>
			<view v-show="current === 4">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items:['待接单', '待发货', '待退款','待售后','已发货','已完成','已取消','已售后'],
				current: 0,
			}
		},
		props:{
			
		},
		watch: {
			
		},
		methods: {
			onClickItem(e) {
				// this.pageNum = 1
				// this.detailList = []
				// if (this.current !== e.currentIndex) {
				// 	this.current = e.currentIndex
				// }
				// if(e.currentIndex == 0){
				// 	this.getShareList();
				// }else if(e.currentIndex == 1){
				// 	this.getWaitStorage('1')
				// }else if(e.currentIndex == 2){
				// 	this.getWaitStorage('2')
				// }else if(e.currentIndex == 3){
				// 	this.getWaitStorage('3')
				// }
			},
			ceshi(e) {
				console.log("11111111",e)
				if (e.detail.code) {
					// 将 code 发送给后端
					this.tui.request("/social/wechat/getPhone", "POST", {
						code:e.detail.code
					}, false, true).then((res) => {
						if (res.code == 200) {
							
						} else {
							this.tui.toast(res.message)
						}
					
					})
				} else {
					// 用户拒绝授权
					console.log('用户取消授权');
				}
			}
		}
	}
</script>

<style>
	page,.page1{
		width: 100%;
		height: 100%;
		font-size: 28rpx;
	}
	.title-gary{
		width: 100%;
		height: 80rpx;
		background: #777;
	}
	.title{
		width: 100%;
		height: 100rpx;
		background: #fff;
		line-height: 100rpx;
		text-align: center;
	}
</style>