hwq 3 gadi atpakaļ
vecāks
revīzija
9838b31856
2 mainītis faili ar 17 papildinājumiem un 3 dzēšanām
  1. 2 2
      components/mchart.vue
  2. 15 1
      pages/user/extension.vue

+ 2 - 2
components/mchart.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="content">
-		<qiun-data-charts type="line" :chart-data="chartData" echartsApp />
+		<qiun-data-charts type="area" :chart-data="chartData" echartsApp />
 	</view>
 </template>
 
@@ -15,7 +15,7 @@
 				chartData: {
 					categories: [],
 					series: [{
-						name: 'Lala走势',
+						name: 'LALA价格走势图',
 						data: []
 					}]
 				}

+ 15 - 1
pages/user/extension.vue

@@ -16,7 +16,11 @@
 				</view>
 			</view>
 		</view>
+		
 		<view class="main flex">
+			<view class="today" >
+				{{ today }}
+			</view>
 			<view class="main-box flex">
 				<view class="item">
 					<view class="num">{{myPerformance || 0}}</view>
@@ -120,9 +124,13 @@ export default {
 			small_achivement_month:'',// 本月新增小区业绩
 			all: '', //累计奖励
 			yesterday:'',//昨日
+			today:'',//日期
 		};
 	},
 	onLoad(options) {
+		var myDate = new Date();
+		this.today = myDate.getFullYear() + '年' + (myDate.getMonth()+1) + '月' + myDate.getDate() +'日';
+		console.log(this.today)
 		this.loadData(); //onload只是在第一次进入页面会刷新数据,从二级页面回来不会重新加载数据
 	},
 
@@ -228,7 +236,7 @@ page {
 	text-align: center;
 	font-size: 35rpx;
 	position: relative;
-
+	
 	// padding-top: 60rpx;
 	.header {
 		position: absolute;
@@ -360,6 +368,12 @@ page {
 	border-radius: 20rpx;
 	margin: -160rpx auto 0;
 	padding: 40rpx 40rpx;
+	.today {
+		position: absolute;
+		top: -50rpx;
+		right: 20rpx;
+		color: #fff;
+	}
 	.main-box {
 		flex-direction: column;
 		align-items: center;