user.vue 3.53 KB
Newer Older
baihong committed
1 2 3 4 5
<template>
	<view class="app">
		<view class="header">
			<page-header>
				<view class="nav">
baihong committed
6 7 8 9 10 11 12 13 14 15 16 17 18
					<u-icon name="arrow-left" color="#000000" size="38"></u-icon>
					<text class="title">个人中心</text>
				</view>
				<view class="header-main">
					<view class="header-left">
						<u-image width="110rpx" height="110rpx" :src="src" shape='circle'></u-image>
						<text class="name">realme</text>
					</view>
					<view class="header-right">
						<image src="../../static/imgs/ic_coin_01@2x.png" mode=""></image>
						<text>998</text>
						<u-icon name="arrow-right" color="#000000" size="18"></u-icon>
					</view>
baihong committed
19 20 21
				</view>
			</page-header>
		</view>
baihong committed
22 23 24 25 26
		<u-tabs :active-item-style="{color:'#000000'}" :bar-style="{width:120+'rpx',left:-36+'rpx',top:80+'rpx'}" inactive-color='#999999' active-color='#FFC915' :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<view class="main-box">
			<view class="item">
				<image src="https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF" mode=""></image>
				<text>状态:审核中</text>
baihong committed
27 28 29 30 31 32
			</view>
		</view>
	</view>
</template>

<script>
baihong committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
	import pageHeader from '@/components/page-header.vue';
	export default {
		components: {
			pageHeader
		},
		data() {
			return {
				src: 'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF',
				list: [{
					name: '审核中'
				}, {
					name: '已通过'
				}, {
					name: '已拒绝'
				}],
				current: 0
			};
		},
		computed: {

		},
		onLoad(option) {

		},
		methods: {
			change(index) {
				this.current = index;
			},
			goSalesInquiry() {
				uni.navigateTo({
					url: '../salesInquiry/salesInquiry'
				});
			},
			startMove() {
				// eslint-disable-next-line
				let timer = setTimeout(() => {
					if (this.number === 2) {
						this.number = 0;
					} else {
						this.number += 1;
					}
					this.startMove();
				}, 2000); // 滚动不需要停顿则将2000改成动画持续时间
			}
		}
	};
baihong committed
79 80 81
</script>

<style lang="scss" scoped>
baihong committed
82 83 84 85 86 87 88 89 90 91 92 93
	.app {
		background: #f5f7f9;
		height: 100vh;
        .main-box{
			background: #FFFFFF;
			width: 100vw;
			box-sizing: border-box;
			padding: 30rpx;
			margin-top: 19rpx;
			image{
				width: 690rpx;
				height: 427rpx;
baihong committed
94
			}
baihong committed
95 96 97 98 99 100 101
			text{
				font-size: 28rpx;
				font-family: PingFangSC-Semibold, PingFang SC;
				font-weight: 600;
				color: #333333;
				line-height: 40rpx;
				margin-top: 10rpx;
baihong committed
102 103
			}
		}
baihong committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
		.header {
			width: 100vw;
			height: 303rpx;
			background: linear-gradient(136deg, #FFCA16 0%, #FFD64A 100%);

			&-main {
				padding: 0 40rpx 0 60rpx;
				box-sizing: border-box;
				display: flex;
				margin-top: 47rpx;
				justify-content: space-between;

				.header-right {
					display: flex;
					align-items: center;

					image {
						width: 28rpx;
						height: 30rpx;
					}

					text {
						font-size: 32rpx;
						font-family: OpenSans;
						color: #000000;
						line-height: 34rpx;
						margin: 0 14rpx;
					}
				}

				.header-left {
					display: flex;
					align-items: center;
					font-size: 24rpx;
baihong committed
138
					font-family: OpenSans;
baihong committed
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
					font-weight: 400;
					color: #333333;
					line-height: 30rpx;

					.name {
						font-size: 40rpx;
						font-family: OpenSans;
						color: #000000;
						line-height: 72rpx;
						margin-left: 20rpx;
					}

				}
			}

			.nav {
				display: flex;
				align-items: center;
				margin-top: 20rpx;
				padding-left: 15rpx;

				.title {
					margin-left: 250rpx;
					font-size: 36rpx;
					font-family: PingFangSC-Semibold, PingFang SC;
					font-weight: 600;
					color: #000000;
					line-height: 50rpx;
				}
			}
baihong committed
169 170 171
		}
	}
</style>