<template>
	<view>
		<view class="backcorfff width100">
			<QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change"
				activeColor="#089bf5" lineColor="#089bf5" minWidth="125">
			</QSTabs>
		</view>
		<!-- 状态 -->
		<view class="mart20 width100">
			<view class="width94 backcorfff border-r mart15" v-for="(item,index) in merchantlist" :key="index" @click="jumpmerdes">
				<view class="notes">
					<image src="../../../static/img/merchantstu.png" mode="widthFix" class="iconw40"></image>
					<view class="width65 margle">
						<view class="font14 fcor333">155832658692</view>
						<view class="font12 fcor999">2021-12-15 09:30:21</view>
					</view>
					<!-- <view class="statucs font14">正常</view> -->
					<!-- <view class="otstatucs font14">违规</view> -->
					<view class="otstatucs font14">审核失败</view>
				</view>
				<view class="notes">
					<view class="width30 fcor333 font15">联系人</view>
					<view class="width30 fcor999 font15">谁谁谁谁</view>
					<!-- <view class="width30 fcor999 font15">-</view> -->
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import QSTabs from '../../../components/QS-tabs/QS-tabs.vue';
	export default {
		components: {
			QSTabs
		},
		data() {
			return {
				tabs: ["正常", "编辑中", "待审核", "审核中", "审核失败", "违规"],
				current: 0,  // tabs默认值
				merchantlist:[1,2,3,4,5]
			}
		},
		methods: {
			//筛选
			change(index) {
				this.$refs.tabs.setFinishCurrent(index);
				this.current = index;
			},
			//跳转详情
			jumpmerdes(){
				uni.navigateTo({
					url:'../merchant-details/merchant-details'
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f6f6f6;
	}
	
	.notes {
		width: calc(100% - 40upx);
		display: flex;
		align-items: center;
		padding: 20upx 0 20upx 20upx;  
	}
	//正常状态
	.statucs{
		background-color: #e9f9e5;
		color: #84b878;
		text-align: center;
		padding: 2px 5px;
	}
	//其他状态
	.otstatucs{
		background-color: #fbeee4;
		color: #db8c73;
		text-align: center;
		padding: 2px 5px;
	}
</style>
