From 3252eb2d24b8c2ff7490d842227466bb8b6e0014 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 12 Aug 2024 18:36:20 +0800
Subject: [PATCH] 问题处理

---
 src/page/assetsCenter/index.vue |   53 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 52 insertions(+), 1 deletions(-)

diff --git a/src/page/assetsCenter/index.vue b/src/page/assetsCenter/index.vue
index 548338e..ae85721 100644
--- a/src/page/assetsCenter/index.vue
+++ b/src/page/assetsCenter/index.vue
@@ -1,5 +1,9 @@
 <template>
   <div class="assets-box">
+	  <div class="typebox" style="display: flex;">
+	  	<div :class="typeindex==index?'typebox_box':'typebox_boxa'" @click="typeclick(index)"
+	  		v-for="(item,index) in typelist" :key="index">{{item}}</div>
+	  </div>
     <header>
       <van-row class="title-box">
         <van-col span="12">
@@ -13,7 +17,7 @@
 			<div class="pt">{{ $t("总资产估值") }}</div>
 			<div class="flex ex-bg justify-center my-42 items-center w-100" @click="onSwitch">
 			<!-- <div class="flex ex-bg justify-center my-42 items-center w-100" > -->
-			  <img src="@/assets/image/exchange/icon_3.png" alt="" class="w-25 h-25"  />
+			  <!-- <img src="@/assets/image/exchange/icon_3.png" alt="" class="w-25 h-25"  /> -->
 			</div>
 		</div>
         <!-- <div class="pt">{{ assetsFunds.total }}</div> -->
@@ -220,6 +224,7 @@
     return {
       keywords: "",
       loading: true,
+	  typelist: [this.$t("资金")+this.$t("账户"), this.$t("交易")+this.$t("账户")],
       active: 1,
 	  typeindex:0,
 	  tabList2: [
@@ -346,6 +351,16 @@
   },
   methods: {
     ...mapActions("user", ["GET_UERS_KYC"]),
+	typeclick(e) {
+		this.typeindex = e
+		// if (e == 0) {
+		// 	this.initParama(this.symbol)
+		// } else {
+		// 	// this.symbol = 'wld'
+		// 	this.initParam(this.symbol)
+		// }
+		// this.$forceUpdate()
+	},
     onInput(e) {
       console.log(333, this.fundsDatra);
       this.funds = this.fundsDatra.filter((item) =>
@@ -461,6 +476,42 @@
 </script>
 
 <style lang="scss" scoped>
+	.typebox_box {
+		width: 50%;
+		background-color: #9691fa;
+		color: #fff;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+	}
+	
+	.typebox_boxa {
+		width: 50%;
+		background-color: #fff;
+		color: #9691fa;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+	}
+	
+	.no_touch {
+		-webkit-user-select: none;
+		user-select: none;
+		-ms-user-select: none;
+		-moz-user-select: none;
+	
+		@include themify() {
+			background: themed("main_background");
+		}
+	
+		min-height: 100vh;
+	}
+	
+	.typebox {
+		width: 100%;
+		height: 100px;
+	
+	}
 .assets-box {
   header {
     // padding: 100px 0 0px;

--
Gitblit v1.9.3