From c88c65cd4f46e5dd9a0215d9cda13f07b498f4a7 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期二, 08 四月 2025 10:02:38 +0800 Subject: [PATCH] 浮窗 --- src/views/directory/index.vue | 69 +++++++++++++++------------------- 1 files changed, 31 insertions(+), 38 deletions(-) diff --git a/src/views/directory/index.vue b/src/views/directory/index.vue index 3cf48be..2303847 100644 --- a/src/views/directory/index.vue +++ b/src/views/directory/index.vue @@ -4,12 +4,18 @@ <p>鐜嬫案鐐庨櫌澹鐢熺洰褰�</p> </div> <div class="page-main-title"> - <p @click="changeTab('chart')" :class="[activeTabs == 'chart' ? 'active-tab' : '']"> - <img :src="[activeTabs == 'chart' ? chartIcon : noChartIcon]" alt=""> + <p + @click="changeTab('chart')" + :class="[activeTabs == 'chart' ? 'active-tab' : '']" + > + <img :src="[activeTabs == 'chart' ? chartIcon : noChartIcon]" alt="" /> <span>鍥捐〃鏄剧ず</span> </p> - <p @click="changeTab('list')" :class="[activeTabs == 'list' ? 'active-tab' : '']"> - <img :src="[activeTabs == 'list' ? listIcon : noListIcon]" alt=""> + <p + @click="changeTab('list')" + :class="[activeTabs == 'list' ? 'active-tab' : '']" + > + <img :src="[activeTabs == 'list' ? listIcon : noListIcon]" alt="" /> <span>鍒楄〃鏄剧ず</span> </p> </div> @@ -31,8 +37,9 @@ <p class="table-title-degree">{{ item.degree }}</p> <p class="table-title-number">{{ item.studentList.length }}浜�</p> </div> - <div class="table-title-right" @click="item.isShow = !item.isShow"><img - :src="[item.isShow ? topIcon : bottomIcon]" alt=""></div> + <div class="table-title-right" @click="item.isShow = !item.isShow"> + <img :src="[item.isShow ? topIcon : bottomIcon]" alt="" /> + </div> </div> <table cellpadding="100" @@ -251,7 +258,7 @@ name: "Root", children: [ { - name: "Node 1", + name: "鐜嬬帀鏉�", children: [ { name: "Leaf 1-1" }, { name: "Leaf 1-2" }, @@ -305,40 +312,26 @@ return ` <div style=" padding: 10px; - background: #fff; + background: #FDF8F0; border-radius: 5px; - box-shadow: 0 2px 10px rgba(0,0,0,0.1); max-width: 300px; + width: 360px; + text-align: center; "> - <div style=" - border-bottom: 1px solid #eee; - padding-bottom: 5px; - margin-bottom: 5px; - "> - <span style=" - font-size: 16px; - color: #333; - font-weight: bold; - ">${data.name}</span> - ${ - data.customInfo - ? `<span style=" - background: #ffeb3b; - padding: 2px 5px; - border-radius: 3px; - margin-left: 8px; - font-size: 12px; - ">${data.customInfo}</span>` - : "" - } - </div> - <div style="margin-top: 8px;"> - <div>鑺傜偣鍊�: <span style="color: #4f8ff7;">${ - data.value || 0 - }</span></div> - <div>鎻忚堪: ${data.description || "鏆傛棤鎻忚堪"}</div> - - </div> + <div style="width: 80px;height: 80px;position: relative; margin: 0 auto; margin-bottom: 10px;background: #D8D8D8;"> + <img class="autoImg" src="${require("@/assets/images/directory/touxiang.png")}" alt=""> + </div> + <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;">${ + data.name + }</div> + <div> <span> 鐢� </span> <span> 纭曞+ </span> <span> 鍖椾含涓尰鑽ぇ瀛� </span></div> + <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;text-align: left;margin-top: 10px;"> + <p style="margin-bottom: 5px;">瀛︿範鏃堕棿锛�1985.09 -1988.07</p> + <p style="margin-bottom: 5px;">鐜板伐浣滃崟浣嶏細鍖椾含涓尰鑽ぇ瀛︿笢鏂瑰尰闄�</p> + <p style="margin-bottom: 5px;">鑱屽姟锛氬師闄㈤暱</p> + <p style="margin-bottom: 5px;">鑱岀О锛氫富浠诲尰甯堛�佹暀鎺�</p> + </div> + </div> `; }, -- Gitblit v1.9.1