Ver Fonte

Merge branch 'master' of http://git.liuniu946.com/hwq/xpl

hwq há 3 anos atrás
pai
commit
fe5ecdcdb9

+ 11 - 1
pages.json

@@ -397,7 +397,17 @@
 				"navigationBarTitleText": "邀请好友"
 			}
 		}
-	],
+	    ,{
+            "path" : "pages/user/user1",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "",
+                "enablePullDownRefresh": false
+            }
+            
+        }
+     
+    ],
 
 	"globalStyle": {
 		"navigationBarTextStyle": "black",

+ 492 - 0
pages/user/user1.vue

@@ -0,0 +1,492 @@
+<template>
+	<view class="content">
+		<view class="top">
+			<view class="bg">
+				<image class="imgBg" src="../../static/user/img17.png" mode=""></image>
+			</view>
+			<view class="title">
+				<view class="header">
+					<view class="tx">
+						<image src="../../static/error/missing-face.png" mode=""></image>
+					</view>
+					<view class="dl">
+						<image src="../../static/user/jiedian1.png" mode=""></image>
+					</view>
+				</view>
+				<view class="message">
+					<view class="name">
+						{{name}}
+					</view>
+					<view class="phone">
+						{{phone}}
+					</view>
+					<view class="vip-box">
+						<view class="vip">
+							会员等级LV.5
+						</view>
+						<view class="pintuan">
+							拼团等级LV.2
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+		<view class="box">
+			<view class="sweets-box">
+				<view class="sweets">
+					<view class="limit">
+						111
+					</view>
+
+					<view class="sweets-name">
+						拼团积分
+					</view>
+				</view>
+				<view class="jiange">
+
+				</view>
+				<view class="sweets">
+					<view class="limit">
+						111
+					</view>
+					<view class="sweets-name">
+						购物积分
+					</view>
+				</view>
+				<view class="jiange">
+
+				</view>
+				<view class="sweets">
+					<view class="limit">
+						111
+					</view>
+					<view class="sweets-name">
+						佣金
+					</view>
+				</view>
+				<view class="jiange">
+
+				</view>
+				<view class="sweets">
+					<view class="limit">
+						111
+					</view>
+					<view class="sweets-name">
+						糖果
+					</view>
+				</view>
+			</view>
+			<view class="my-order">
+				<view class="box-title flex borde-b">
+					<view class="title1"><text>我的订单</text></view>
+					<view class="link" @click="navTo()" hover-class="common-hover">
+
+						<text class="iconfont iconenter"></text>
+					</view>
+				</view>
+				<view class="order-section">
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user01.png" mode="aspectFit"></image>
+							<view class="corner">
+								<text></text>
+							</view>
+						</view>
+						<text>代付款</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class="icon1 position-relative">
+							<image class="icon-img" src="/static/user/user02.png" mode="aspectFit"></image>
+							<view class="corner">
+								<text></text>
+							</view>
+						</view>
+						<text>代发货</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class="icon1 position-relative">
+							<image class="icon-img" src="/static/user/user03.png" mode="aspectFit"></image>
+							<view class="corner">
+								<text></text>
+							</view>
+						</view>
+						<text>待收货</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user04.png" mode="aspectFit"></image>
+						</view>
+						<text>已完成</text>
+					</view>
+				</view>
+			</view>
+			<view class="my-order">
+				<view class="box-title flex borde-b">
+					<view class="title1"><text>拼购工具</text></view>
+					<view class="link" @click="navTo()" hover-class="common-hover">
+					</view>
+				</view>
+				<view class="order-section">
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user01.png" mode="aspectFit"></image>
+							
+						</view>
+						<text>我的拼购</text>
+					</view>
+					<view class="order-item" @click="navTo('./pages/user/pingou')" hover-class="common-hover" :hover-stay-time="50">
+						<view class="icon1 position-relative">
+							<image class="icon-img" src="/static/user/user02.png" mode="aspectFit"></image>
+							
+						</view>
+						<text>我的节点</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class="icon1 position-relative">
+							<image class="icon-img" src="/static/user/user03.png" mode="aspectFit"></image>
+							
+						</view>
+						<text>我的服务器</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user04.png" mode="aspectFit"></image>
+						</view>
+						<text>汇总数据</text>
+					</view>
+				</view>
+			</view>
+			<view class="my-order">
+				<view class="box-title flex borde-b">
+					<view class="title1"><text>更多功能</text></view>
+					<view class="link" @click="navTo()" hover-class="common-hover">
+					</view>
+				</view>
+				<view class="order-section">
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user01.png" mode="aspectFit"></image>
+							
+						</view>
+						<text>我的团队</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class="icon1 position-relative">
+							<image class="icon-img" src="/static/user/user02.png" mode="aspectFit"></image>
+							
+						</view>
+						<text>互助团队</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class="icon1 position-relative">
+							<image class="icon-img" src="/static/user/user03.png" mode="aspectFit"></image>
+							
+						</view>
+						<text>团队邀请</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user04.png" mode="aspectFit"></image>
+						</view>
+						<text>收货地址</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user04.png" mode="aspectFit"></image>
+						</view>
+						<text>联系客服</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user04.png" mode="aspectFit"></image>
+						</view>
+						<text>关于我们</text>
+					</view>
+					<view class="order-item" @click="navTo()" hover-class="common-hover" :hover-stay-time="50">
+						<view class=" icon1 position-relative">
+							<image class="icon-img" src="/static/user/user04.png" mode="aspectFit"></image>
+						</view>
+						<text>设置</text>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				name: '阿强',
+				phone: 18252757278,
+			}
+		},
+		methods: {
+			navTo(){
+				uni.navigateTo({
+					url
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+	.content {
+		height: 100%;
+		color: #FCFCFC;
+	}
+
+	.top {
+		width: 100%;
+		height: 530rpx;
+		position: relative;
+
+		.bg {
+			position: absolute;
+			width: 100%;
+			height: 530rpx;
+
+			image {
+				width: 100%;
+				height: 100%;
+			}
+		}
+
+		.title {
+			position: relative;
+			display: flex;
+			flex-direction: column;
+			top: 20%;
+
+
+
+
+			.header {
+				display: flex;
+				flex-direction: column;
+				align-items: center;
+
+				.tx {
+					width: 132rpx;
+					height: 132rpx;
+
+					image {
+						width: 100%;
+						height: 100%;
+					}
+				}
+
+				.dl {
+					position: relative;
+					margin-top: -16rpx;
+					width: 100rpx;
+					height: 32rpx;
+
+					image {
+						width: 100%;
+						height: 100%;
+					}
+				}
+			}
+
+			.message {
+				margin-top: 10rpx;
+				display: flex;
+				flex-direction: column;
+				align-items: center;
+
+				.name {
+					font-size: 34rpx;
+					font-family: PingFang SC;
+					font-weight: bold;
+					color: #FFFFFF;
+
+				}
+
+				.phone {
+					font-size: 26rpx;
+					font-family: PingFang SC;
+					font-weight: 500;
+					color: #FFFFFF;
+
+				}
+			}
+
+			.vip-box {
+				margin-top: 10rpx;
+				display: flex;
+				align-items: center;
+				
+
+				.vip {
+					text-align: center;
+					width: 163rpx;
+					height: 32rpx;
+					background: #FFFFFF;
+					border-radius: 16rpx;
+					font-size: 20rpx;
+					font-family: PingFang SC;
+					font-weight: bold;
+					color: #2E58FF;
+					margin-right: 7rpx;
+				}
+
+				.pintuan {
+					text-align: center;
+					width: 163rpx;
+					height: 32rpx;
+					background: #FFFFFF;
+					border-radius: 16rpx;
+					font-size: 20rpx;
+					font-family: PingFang SC;
+					font-weight: bold;
+					color: #2E58FF;
+				}
+			}
+		}
+	}
+
+	.box {
+		display: flex;
+		flex-direction: column;
+		width: 710rpx;
+		position: relative;
+		margin: -80rpx 20rpx ;
+		color: #FEFEFE;;
+	}
+
+	.sweets-box {
+		display: flex;
+		align-items: center;
+		justify-content: space-around;
+		width: 710rpx;
+		height: 165rpx;
+		background: #FFFFFF;
+		box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
+		border-radius: 20rpx;
+
+		.jiange {
+			width: 1rpx;
+			height: 36rpx;
+			background: #999999;
+
+		}
+
+		.sweets {
+			display: flex;
+			flex-direction: column;
+			align-items: center;
+			font-size: 28rpx;
+			font-family: PingFang SC;
+			font-weight: 500;
+
+			.limit {
+				font-size: 36rpx;
+				font-family: PingFang SC;
+				font-weight: bold;
+				color: #666666;
+			}
+
+			.sweets-name {
+				font-size: 28rpx;
+				font-family: PingFang SC;
+				font-weight: 500;
+				color: #666666;
+			}
+		}
+
+	}
+
+	.my-order {
+		margin-top: 20rpx;
+		display: flex;
+		justify-content: space-between;
+		flex-direction: column;
+		width: 710rpx;
+		height: 221rpx;
+		background: #FFFFFF;
+		box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
+		border-radius: 20rpx;
+	}
+
+	
+
+	.box-title {
+		border-top-left-radius: 20rpx;
+		border-top-right-radius: 20rpx;
+		background-color: #FFFFFF;
+		line-height: 1;
+		padding: 20rpx 30rpx;
+
+		.title1 {
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #333333;
+			
+		}
+
+		.link {
+			font-size: $font-base - 2rpx;
+			color: $font-color-light;
+		}
+	}
+	
+	.order-section {
+		display: flex;
+		
+		
+		.order-item {
+			display: flex;
+			flex-direction: column;
+			
+			align-items: center;
+			width: 25%;
+			flex-wrap: wrap;
+			height: 120rpx;
+
+			font-size: $font-sm;
+			color: $font-color-dark;
+		}
+
+		.iconfont {
+			font-size: 48rpx;
+			margin-bottom: 18rpx;
+			color: #fa436a;
+		}
+
+		.icon-shouhoutuikuan {
+			font-size: 44rpx;
+		}
+
+		.icon {
+			height: 88rpx;
+			width: 90rpx;
+			margin-bottom: 18rpx;
+			background-size: 100%;
+			background-repeat: no-repeat;
+			background-position: center;
+
+			.icon-img {
+				width: 100%;
+				height: 100%;
+			}
+		}
+
+		.icon1 {
+			height: 50rpx;
+			width: 48rpx;
+			margin-bottom: 18rpx;
+			background-size: 100%;
+			background-repeat: no-repeat;
+			background-position: center;
+
+			.icon-img {
+				width: 100%;
+				height: 100%;
+			}
+		}
+	}
+</style>

BIN
static/user/img17.png


BIN
static/user/jiedian1.png


BIN
static/user/missing-face.png


BIN
static/user/tiaozhuan.png


BIN
static/user/user01.png


BIN
static/user/user02.png


BIN
static/user/user03.png


BIN
static/user/user04.png