lhl 4 years ago
parent
commit
095e689d72
4 changed files with 30 additions and 15 deletions
  1. 4 1
      pages.json
  2. 24 12
      pages/profit/profit.vue
  3. BIN
      static/img/centerbg.png
  4. 2 2
      uni.scss

+ 4 - 1
pages.json

@@ -180,7 +180,10 @@
 		{
 			"path": "pages/profit/profit",
 			"style": {
-				"navigationBarTitleText": "收益中心"
+				"navigationBarTitleText": "收益中心",
+				"navigationBarBackgroundColor": "transparent",
+				"navigationBarTextStyle": "white"
+				// "transparentTitle":"always"
 			}
 		}
 	],

+ 24 - 12
pages/profit/profit.vue

@@ -1,9 +1,10 @@
 <template>
 	<view class="content">
-		<view class="content-money">
+		<view class="content-money">
+			<image src="../../static/img/centerbg.png" mode="" class="bg"></image>
 			<view class="money-box">
-				<view class="text">可提现佣金(元)</view>
-				<view class="money">{{ money | getMoneyStyle }}</view>		
+				<view class="text">当前余额</view>
+				<view class="money"><text>¥</text>{{ money | getMoneyStyle }}</view>		
 			</view>
 			<!-- <view class="moneyTx" @click="navto('./withdrawal')">提现</view>
 			<view class="flex buttom-box">
@@ -177,12 +178,17 @@ export default {
 
 <style lang="scss">
 page {
-	background: #ffffff;
+	background: #000;
 	height: 100%;
 }
 .content-money {
 	padding-bottom: 30rpx;
-	background: $page-color-base;
+	background: $page-color-base;
+	position: relative;
+	.bg{ 
+		position: absolute;
+		width: 100%;
+	}
 	.moneyTx{
 		position: absolute;
 		top: 150rpx;
@@ -224,17 +230,23 @@ page {
 	}
 }
 .money-box {
-	background-color: $base-color;
+	// background-color: $base-color;
 	padding-top: var(--status-bar-height);
 	height: 368rpx;
-	color: #ffffff;
-	text-align: center;
+	color: #FAD6B0;
+	text-align: center;
+	position: relative;
 	.text {
 		padding-top: 147rpx;
 		font-size: $font-sm;
 	}
-	.money {
-		font-size: 56rpx;
+	.money {
+		font-size: 47px;
+		font-family: PingFang SC;
+		font-weight: bold;
+		text {
+			font-size: 24px;
+		}
 	}
 }
 
@@ -242,7 +254,7 @@ page {
 	display: flex;
 	height: 40px;
 	padding: 0 5px;
-	background: #fff;
+	background: #000;
 	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
 	position: relative;
 	z-index: 10;
@@ -253,7 +265,7 @@ page {
 		align-items: center;
 		height: 100%;
 		font-size: 15px;
-		color: $font-color-dark;
+		color: #999999;
 		position: relative;
 		&.current {
 			color: $base-color;

BIN
static/img/centerbg.png


+ 2 - 2
uni.scss

@@ -1,10 +1,10 @@
 /* 页面左右间距 */
 $page-row-spacing: 30rpx;
 //页面基础颜色
-$page-color-base: #f8f8f8;//页面背景颜色
+$page-color-base: #000;//页面背景颜色
 $page-color-light: #f8f6fc;
 // 主题颜色
-$base-color: #5dbc7c;//项目颜色
+$base-color: #FAD6B0;//项目颜色
 $box-shadow-color:#5dbc7c;//阴影颜色
 $font-color:#5dbc7c;//字体颜色
 $font-color-spec: #5dbc7c;//可操作文字颜色