常志远 2 年之前
父節點
當前提交
4b6394de2c
共有 5 個文件被更改,包括 281 次插入0 次删除
  1. 二進制
      assets/img/riFill-bar-chart-2-fill@1x.png
  2. 二進制
      assets/img/riFill-store-3-fill@1x.png
  3. 二進制
      assets/img/riLine-gift-2-line@1x.png
  4. 10 0
      pages.json
  5. 271 0
      pages/mine/points/points.vue

二進制
assets/img/riFill-bar-chart-2-fill@1x.png


二進制
assets/img/riFill-store-3-fill@1x.png


二進制
assets/img/riLine-gift-2-line@1x.png


+ 10 - 0
pages.json

@@ -186,6 +186,16 @@
             
         }
        
+      
+        ,{
+            "path" : "pages/mine/points/points",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationStyle": "custom", // 隐藏系统导航栏

+ 271 - 0
pages/mine/points/points.vue

@@ -0,0 +1,271 @@
+<template>
+	<view>
+		<u-navbar title="积分">
+			<view class="slot-wrap">
+				积分规则
+			</view>	
+		</u-navbar>
+		<view class="background">
+			<view class="points">
+				<view class="number">
+					2779
+				</view>
+				<view class="unit">
+					积分
+				</view>
+			</view>
+			<view class="rank" v-if="this.current==0">
+				<view class="img"><img src="../../../assets/img/riFill-bar-chart-2-fill@1x.png" alt=""></view>
+				<view class="text">积分排名105名</view>
+				<view><u-icon name="arrow-right" color="#fff" size="28"></u-icon></view>
+			</view>
+			<view class="rank" v-if="this.current==1">
+				<view class="img"><img src="../../../assets/img/riLine-gift-2-line@1x.png" alt=""></view>
+				<view class="text">积分兑换</view>
+				<view><u-icon name="arrow-right" color="#fff" size="28"></u-icon></view>
+			</view>
+			
+		</view>
+		
+		<view class="record">
+			<view class="tabs">
+				<u-tabs bar-width="100" inactive-color="#bbbbbb" active-color="#101010" :list="list" :is-scroll="false" :current="current" @change="change" ></u-tabs>
+			</view>
+			<view class="get" v-if="this.current==0" >
+				<view class="total">
+					6月获取278
+				</view>
+				<view class="each" v-for="item in 7">
+					<view class="way-date">
+						<view class="way">
+							点赞获得积分
+						</view>
+						<view class="date">
+							2022-06-15 01:58
+						</view>
+					</view>
+					<view class="number">
+						+2
+					</view>
+				</view>
+				
+			</view>
+		    <view class="exchange" v-if="this.current==1">
+		    	<view class="item">
+		    		<view class="month">
+		    			6月
+		    		</view>
+					<view class="details" v-for="item in 2">
+						<view class="picture">
+							<img src="../../../assets/img/riLine-gift-2-line@1x.png" alt="">
+						</view>
+						<view class="infos">
+							<view class="name">
+								兑换礼品名称
+							</view>
+							<view class="price">
+								<text>价格:</text>
+								<text>30积分</text>
+							</view>
+							<view class="date">
+								<text>时间:</text>
+								<text>2022-06-23 14:27:22兑换</text>
+							</view>
+						</view>
+					</view>
+		    	</view>
+				
+				<view class="item">
+					<view class="month">
+						5月
+					</view>
+					<view class="details" v-for="item in 2">
+						<view class="picture">
+							<img src="../../../assets/img/riLine-gift-2-line@1x.png" alt="">
+						</view>
+						<view class="infos">
+							<view class="name">
+								兑换礼品名称
+							</view>
+							<view class="price">
+								<text>价格:</text>
+								<text>30积分</text>
+							</view>
+							<view class="date">
+								<text>时间:</text>
+								<text>2022-05-23 14:27:22兑换</text>
+							</view>
+						</view>
+					</view>
+				</view>
+		    </view>
+		
+		</view>
+		<u-divider bg-color="#F2F4F4" border-color="#CFD2D5">已经到底了</u-divider>
+	</view>
+</template>
+
+
+<script>
+	export default {
+		data() {
+			return {
+				list: [{
+					name: '积分获取'
+				}, {
+					name: '积分兑换'
+				}],
+				current: 0
+			}
+		},
+		methods: {
+			change(index) {
+				this.current = index;
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	/deep/.u-slot-content {
+		display: block;
+		text-align: right !important;
+		margin-right: 16px;
+		color: rgba(31, 74, 153, 1);
+		font-size: 16px;
+	}
+	.background{
+		background: linear-gradient(180deg, rgba(18,114,238,1) 0%,rgba(244,244,246,1) 100%);
+		padding: 32rpx;
+		color: #fff;
+		display: flex;
+		justify-content: space-between;
+		align-items: baseline;
+		height: 231px;
+		.points{
+			display: flex;
+			align-items: baseline;
+			.number{
+				font-size: 36px;
+			}
+			.unit{
+				font-size: 16px;
+				margin-left: 16rpx;
+			}
+		}
+		.rank{
+			display: flex;
+			align-items: center;
+			font-size: 32rpx;
+			
+			.img{
+				width: 32rpx;
+				height: 32rpx;
+				img{
+					width: 100%;
+					height: 100%;
+				}
+			}
+			.text{
+				margin-left: 8rpx;
+				margin-right: 4rpx;
+			}
+		}
+	}
+
+     .record{
+		 margin: -320rpx 32rpx 24rpx;
+		 background-color: #fff;
+		 border-radius: 8px 8px 0px 0px;
+		 min-height: 800rpx;
+		.tabs{
+			padding: 0 160rpx;
+			height: 40px;
+			border-bottom: 1px solid #E6E6E6;
+			/deep/.u-tab-bar{
+						 background-color: #0076FF !important ;
+			}
+		}
+		.get{
+			
+			.total{
+				height: 44px;
+				line-height: 44px;
+				color: rgba(51, 51, 51, 1);
+				font-size: 16px;
+				border-bottom: 1px solid #E6E6E6;
+				text-indent:32rpx;
+			}
+			.each{
+				
+				display: flex;
+				justify-content: space-between;
+				align-items: center;
+				padding: 28rpx 0;
+				margin: 0 32rpx;
+				border-bottom: 1px solid #E6E6E6;
+				.way-date{
+					.way{
+						color: rgba(51, 51, 51, 1);
+						font-size: 16px;
+					}
+					.date{
+						color: rgba(119, 119, 119, 1);
+						margin-top: 16rpx;
+					}
+				}
+				.number{
+					color: rgba(31, 74, 153, 1);
+					font-size: 24px;
+				}
+				
+			}
+		}
+	 
+	    .exchange{
+			padding:0 32rpx 32rpx;
+			.item{
+				
+				.month{
+					height: 88rpx;
+					line-height: 88rpx;
+					color: #101010;
+				}
+				.details{
+					display: flex;
+					border-radius: 4px;
+					background-color: rgba(242, 242, 242, 1);
+					padding: 16rpx ;
+					margin-bottom: 16rpx;
+					.picture{
+						width: 128rpx;
+						height:128rpx;
+						border-radius: 4px;
+						background-color: rgba(255, 70, 41, 1);
+						display: flex;
+						align-items: center;
+						justify-content: center;
+						img{
+							width: 88rpx;
+							height: 88rpx;
+						}
+					}
+					.infos{
+						margin-left: 16rpx;
+						.name{
+							color: rgba(16, 16, 16, 1);
+							font-size: 32rpx;
+						}
+						.price,.date{
+							color: rgba(102, 102, 102, 1);
+							line-height: 28rpx;
+							margin-top: 14rpx;
+							font-size: 28rpx
+						}
+					}
+				}
+			}
+		}
+	
+	 }
+</style>