123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972 |
- <template>
- <div class="container">
- <svg-icon name="wallet-bg" class="bg-img" />
- <van-pull-refresh v-model="loading" @refresh="onRefresh" style="height:100%">
- <div class="user-info-body">
- <div class="user-info-lf">
- <van-image width="28px" height="28px" round :src="walletStore.avatar" />
- <div class="user-info">
- <div class="user-info-name" @click="showWallet = true">
- <div>{{ walletStore.username }}</div>
- <svg-icon
- style="width: 16px; height: 16px; margin-left: 3px;margin-top: -3px;"
- name="down"
- />
- </div>
- <div class="user-info-key-body">
- <span class="user-info-key-body-text">{{
- formatAddress(walletStore.account)
- }}</span>
- <svg-icon
- class="im-copy-btn"
- style="width: 16px; height: 16px"
- name="copy"
- :data-clipboard-text="walletStore.account"
- />
- </div>
- </div>
- </div>
- <div class="network">
- <van-image
- width="20px"
- height="20px"
- round
- :src="walletStore.accountIcon"
- />
- <div class="network-name">{{ walletStore.accountName }}</div>
- </div>
- </div>
- <div class="amount">
- <div class="amount-item-box">
- <div>Total assets</div>
- <div class="amount-item">
- <div class="item-text">
- <svg-icon class="my" style="width: 28px; height: 28px" name="my" />
- <div>{{ isShow ? totalMoney : "****" }}</div>
- </div>
- <svg-icon
- style="width: 16px; height: 16px"
- :name="isShow ? 'eyes' : 'seyes'"
- @click="isShow = !isShow"
- />
- </div>
- </div>
- <svg-icon
- style="width: 24px; height: 24px; margin-right: 27px"
- name="right"
- @click="goToPageDetail"
- />
- </div>
- <div class="card-box">
- <div class="box-cont" @click="goToPage('exchange')">
- <svg-icon
- class="box-cont-icon"
- style="width: 30px; height: 30px"
- name="1"
- />
- <div>{{ $t("wallet.GoldCoinExchange") }}</div>
- </div>
- <div class="box-cont" @click="goToPage('proceeds')">
- <svg-icon
- class="box-cont-icon"
- style="width: 30px; height: 30px"
- name="2"
- />
- <div>{{ $t("wallet.Collection") }}</div>
- </div>
- <div class="box-cont" @click="goToPage('transferDetail')">
- <svg-icon
- class="box-cont-icon"
- style="width: 30px; height: 30px"
- name="3"
- />
- <div>{{ $t("wallet.Transfer") }}</div>
- </div>
- <div class="box-cont" @click="goToDapp(1)">
- <svg-icon
- class="box-cont-icon"
- style="width: 30px; height: 30px"
- name="4"
- />
- <div>{{ $t("wallet.Competition") }}</div>
- </div>
- <div class="box-cont" @click="goToDapp(2)">
- <svg-icon
- class="box-cont-icon"
- style="width: 30px; height: 30px"
- name="5"
- />
- <div>{{ $t("wallet.BlockBrowser") }}</div>
- </div>
- </div>
- <div class="list-box">
- <div class="list-title">
- <div>{{ $t("wallet.Token") }}</div>
- <svg-icon
- style="width: 24px; height: 24px"
- name="add"
- @click="changePop(1)"
- />
- </div>
- <div class="list-ul">
- <template v-for="(item, i) in walletStore.tokenList" :key="i">
- <div
- class="list-li"
- v-if="item.name == 'ACC' || !item.show"
- @click="changePop(2, item)"
- >
- <div class="list-li-lf">
- <van-image width="30px" height="30px" round :src="item.logo" />
- <div style="margin-left: 8px">{{ item.name }}</div>
- </div>
- <div class="list-li-ri">
- <div>{{ item.balance }}</div>
- <div class="list-li-ri-num">${{ item.money }}</div>
- </div>
- </div>
- </template>
- </div>
- </div>
- </van-pull-refresh>
- <van-popup v-model:show="showWallet" position="bottom" round>
- <div class="pop-content">
- <div class="pop-title">
- <svg-icon
- style="width: 24px; height: 24px"
- name="left-arrow"
- @click="showWallet = false"
- />
- <div class="title">{{ $t("wallet.SelectWallet") }}</div>
- </div>
- <div class="tree">
- <div class="tree-lf">
- <div
- class="tree-lf-icon"
- v-for="(item, i) in networkList"
- :class="netWorkIndex == i ? 'active-bg' : ''"
- @click="changeNetwork(i)"
- >
- <van-image lazy-load class="network-item-icon" :src="item.icon" />
- </div>
- </div>
- <div class="tree-ri">
- <div class="tree-ri-title">
- {{ networkList[netWorkIndex]?.name }}
- </div>
- <div class="tree-ul">
- <div
- class="tree-li"
- v-for="(item, i) in currentWallets"
- :class="item.id == walletStore.id ? 'tree-active' : ''"
- @click="changeWallet(item)"
- >
- <van-image
- width="37px"
- height="37px"
- round
- :src="item.avatar"
- />
- <div class="tree-li-cont">
- <div class="tree-li-text">{{ item.username }}</div>
- <div class="tree-li-address">
- <span>{{ formatAddress(item.account) }}</span>
- <svg-icon
- class="im-copy-btn"
- style="width: 16px; height: 16px; margin-left: 2px"
- name="copy"
- :data-clipboard-text="item.account"
- />
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="pop-btn" @click="addWallet">
- <van-button class="btn" type="primary" size="large" color="#4765DD">
- <svg-icon
- style="width: 24px; height: 24px; margin-right: 4px"
- name="add1"
- />{{ $t("wallet.AddWallet") }}
- </van-button>
- </div>
- </div>
- </van-popup>
- <van-popup
- v-model:show="showHistory"
- position="bottom"
- round
- style="height: 500px"
- >
- <div class="pop-content" style="height: 500px">
- <div class="pop-title">
- <svg-icon
- style="width: 24px; height: 24px"
- name="left-arrow"
- @click="showHistory = false"
- />
- <div class="title">
- {{
- type == 1
- ? $t("wallet.AddTokens")
- : $t("wallet.HistoricalRecords")
- }}
- </div>
- </div>
- <!-- 1 -->
- <div class="pop-ul" v-if="type == 1">
- <div class="pop-li" v-for="(item, i) in walletStore.tokenList">
- <div class="pop-li-lf" v-if="item.name != 'ACC'">
- <van-image width="32px" height="32px" round :src="item.logo" />
- <div style="margin-left: 6px">
- <div>{{ item.name }}</div>
- <div class="pop-address">{{ formatAddress(item.address) }}</div>
- </div>
- </div>
- <svg-icon
- v-if="item.name != 'ACC'"
- style="width: 20px; height: 20px"
- :name="item.show ? 'add-icon' : 'del-icon'"
- @click="tokensHandle(item)"
- />
- </div>
- </div>
- <!-- 2 -->
- <div class="pop-list" v-if="type == 2">
- <template v-if="historyList.length > 0">
- <div class="pop-list-box" v-for="(item, i) in historyList">
- <svg-icon
- style="width: 24px; height: 24px; color: #fff"
- :name="item.from?.hash == walletStore.account ? 'fs' : 'js'"
- />
- <div class="pop-list-ul">
- <div class="pop-list-li">
- <div class="pop-list-li-title">
- {{
- item.from?.hash == walletStore.account
- ? $t("wallet.Send")
- : $t("wallet.Receive")
- }}
- </div>
- <div class="pop-list-li-status">{{ $t("wallet.Success") }}</div>
- </div>
- <div class="pop-list-li">
- <div>{{ $t("wallet.TransferAmount") }}</div>
- <div>{{ item.value }}{{ selectUrl.name }}</div>
- </div>
- <div class="pop-list-li">
- <div>
- {{
- item.from?.hash == walletStore.account
- ? $t("wallet.Send")
- : $t("wallet.Receive")
- }}{{ $t("wallet.Time") }}
- </div>
- <div>{{ item.timestamp }}</div>
- </div>
- <div class="pop-list-li">
- <div>{{ $t("wallet.ReceivingAddress") }}</div>
- <div>
- {{ formatAddress(item.to?.hash) }}
- <svg-icon
- class="im-copy-btn"
- style="width: 20px; height: 20px"
- name="copy"
- :data-clipboard-text="item.to?.hash"
- />
- </div>
- </div>
- <div class="pop-list-li">
- <div>hash</div>
- <div>
- {{ formatAddress(item.hash) }}
- <svg-icon
- class="im-copy-btn"
- style="width: 20px; height: 20px"
- name="copy"
- :data-clipboard-text="item.hash"
- />
- </div>
- </div>
- <div class="pop-list-li" v-if="selectUrl.name == 'ACC'">
- <div>{{ $t("wallet.MinerIsFee") }}</div>
- <div>{{ item.gas_price }}ACC</div>
- </div>
- </div>
- </div>
- </template>
- <template v-if="DBhistoryList.length > 0">
- <div class="pop-list-box" v-for="(item, i) in DBhistoryList">
- <svg-icon
- style="width: 24px; height: 24px; color: #fff"
- :name="item.from.toLowerCase() == walletStore.account.toLowerCase() ? 'fs' : 'js'"
- />
- <div class="pop-list-ul">
- <div class="pop-list-li">
- <div class="pop-list-li-title">
- {{
- item.from.toLowerCase() == walletStore.account.toLowerCase()
- ? $t("wallet.Send")
- : $t("wallet.Receive")
- }}
- </div>
- <div class="pop-list-li-status">{{ $t("wallet.Success") }}</div>
- </div>
- <div class="pop-list-li">
- <div>{{ $t("wallet.TransferAmount") }}</div>
- <div>{{ item.value }}{{ selectUrl.name }}</div>
- </div>
- <div class="pop-list-li">
- <div>
- {{
- item.from.toLowerCase() == walletStore.account.toLowerCase()
- ? $t("wallet.Send")
- : $t("wallet.Receive")
- }}{{ $t("wallet.Time") }}
- </div>
- <div>{{ item.timeStamp }}</div>
- </div>
- <div class="pop-list-li">
- <div>{{ $t("wallet.ReceivingAddress") }}</div>
- <div>
- {{ formatAddress(item.to) }}
- <svg-icon
- class="im-copy-btn"
- style="width: 20px; height: 20px"
- name="copy"
- :data-clipboard-text="item.to"
- />
- </div>
- </div>
- <div class="pop-list-li">
- <div>hash</div>
- <div>
- {{ formatAddress(item.hash) }}
- <svg-icon
- class="im-copy-btn"
- style="width: 20px; height: 20px"
- name="copy"
- :data-clipboard-text="item.hash"
- />
- </div>
- </div>
- <div class="pop-list-li" v-if="selectUrl.name == 'ACC'">
- <div>{{ $t("wallet.MinerIsFee") }}</div>
- <div>{{ item.gas_price }}ACC</div>
- </div>
- </div>
- </div>
- </template>
- </div>
- </div>
- </van-popup>
- </div>
- </template>
- <script setup>
- import { getNetwork } from "@/api/path/login.api";
- import { useWalletStore } from "@/stores/modules/walletStore";
- import { useSystemStore } from "@/stores/modules/systemStore";
- import { transactions, tokenTransfers } from "@/api/path/backend.api";
- import { openDapp } from "@/composables/dAppView";
- import { cryptoEncode } from "@/utils/crypto";
- import { useCopy } from "@/hooks/use-copy.js";
- import { Device } from "@capacitor/device";
- useCopy();
- const router = useRouter();
- const walletStore = useWalletStore();
- const systemStore = useSystemStore();
- const loading = ref(false);
- const isShow = ref(true);
- const showWallet = ref(false);
- const showHistory = ref(false);
- const networkList = ref([]);
- const netWorkIndex = ref(0);
- const type = ref("");
- const historyList = ref([]);
- const DBhistoryList = ref([]);
- const selectUrl = ref({});
- const goToPage = (url) => {
- router.push(url);
- };
- const onRefresh = () => {
- setTimeout(() => {
- gethotTokens();
- loading.value = false;
- }, 1000);
- };
- // 跳转详情
- const goToPageDetail = () => {
- router.push({
- path: "walletDetail",
- query: {
- id: walletStore.id,
- },
- });
- };
- const changePop = (val, item) => {
- type.value = val;
- if (val == 2) {
- getDetail(item);
- selectUrl.value = item;
- return;
- }
- showHistory.value = true;
- };
- // 查看历史记录
- const getDetail = (item) => {
- historyList.value = [];
- DBhistoryList.value = [];
- if (item.name == "ACC") {
- getList();
- } else {
- getDBList(item.address);
- }
- showHistory.value = true;
- };
- const getList = async () => {
- const res = await transactions(walletStore.account);
- const items = res.items || [];
- if (items.length > 0) {
- items.forEach((val) => {
- val.timestamp = getDateTime(val.timestamp);
- val.gas_price = getPrice(val.fee.value).toFixed(9);
- if (val.value !== "0") {
- val.value = getPrice(val.value).toFixed(6);
- }
- });
- historyList.value = items;
- }
- };
- const getDBList = async (DBaddress) => {
- const res = await tokenTransfers(walletStore.account,DBaddress);
- const items = res.result || [];
- if (items.length > 0) {
- items.forEach((val) => {
- val.timeStamp = formatTime(val.timeStamp);
- val.value = getPrice(val.value).toFixed(6);
- val.hash = val.hash;
- });
- DBhistoryList.value = items;
- }
- };
- // 计算总和
- const totalMoney = computed(() => {
- const list = walletStore.tokenList;
- if (!Array.isArray(list) || list.length === 0) return 0;
- let total = Number(list[0].money || 0);
- for (let i = 1; i < list.length; i++) {
- if (!list[i].show) {
- total += Number(list[i].money || 0);
- }
- }
- return Number(total.toFixed(4));
- });
- // 添加钱包
- const addWallet = () => {
- walletStore.accountName = networkList.value[netWorkIndex.value].name;
- walletStore.accountIcon = networkList.value[netWorkIndex.value].icon;
- walletStore.rpcUrl = networkList.value[netWorkIndex.value].url;
- router.push({
- path: "/login",
- query: {
- isFirst: false,
- },
- });
- };
- // 网络数据
- const initNetwork = async () => {
- const { data } = await getNetwork({});
- networkList.value = data;
- };
- const currentChainName = computed(
- () => networkList.value[netWorkIndex.value]?.name
- );
- // 当前链对应的钱包数组
- const currentWallets = computed(() => {
- return walletStore.walletList.filter(
- (w) => w.accountName === currentChainName.value
- );
- });
- // 切换网络
- const changeNetwork = (i) => {
- netWorkIndex.value = i;
- };
- // 切换钱包
- const changeWallet = (item) => {
- walletStore.switchWallet(item.id, item.account);
- showWallet.value = false;
- };
- // 代币显示隐藏
- const tokensHandle = (item) => {
- walletStore.changeToten(item.name);
- };
- // 更新代币信息
- const gethotTokens = async () => {
- await walletStore.updateTokenVal();
- };
- // 跳转竞赛
- const goToDapp = (val) => {
- const dapp = cryptoEncode(
- JSON.stringify({
- address: walletStore.account,
- privateKey: walletStore.privateKey,
- })
- );
- if(val == 1){
- openDapp("https://accgame.angeltokens.io/", { dapp });
- }else{
- openDapp("https://backend.angeltoken.net/",{}, true);
- }
- };
- const formatAddress = (address) => {
- if (!address) return "";
- return address.slice(0, 8) + "..." + address.slice(-6);
- };
- const getPrice = (price) => {
- const num = parseFloat(price) / Math.pow(10, 18);
- return num;
- };
- const getDateTime = (isoString) => {
- const date = new Date(isoString);
- const formattedDate = `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")} ${String(date.getHours()).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}:${String(date.getSeconds()).padStart(2, "0")}`;
- return formattedDate;
- };
- function formatTime(ts) {
- const date = new Date(ts * 1000);
- const y = date.getFullYear();
- const m = String(date.getMonth() + 1).padStart(2, '0');
- const d = String(date.getDate()).padStart(2, '0');
- const hh = String(date.getHours()).padStart(2, '0');
- const mm = String(date.getMinutes()).padStart(2, '0');
- const ss = String(date.getSeconds()).padStart(2, '0');
- return `${y}-${m}-${d} ${hh}:${mm}:${ss}`;
- }
- onMounted(async () => {
- initNetwork();
- gethotTokens();
- const deviceId = await Device.getId();
- systemStore.DeviceId = deviceId.identifier;
- });
- </script>
- <style lang="less" scoped>
- .container {
- position: relative;
- display: flex;
- flex-direction: column;
- height: calc(100vh - 50px);
- .bg-img {
- height: 18.8rem;
- min-width: 100%;
- width: 100vw;
- position: absolute;
- top: -0.8rem;
- left: 0;
- z-index: -1;
- }
- :deep(.van-pull-refresh__text){
- color: #fff !important;
- }
- :deep(.van-loading__text){
- color: #fff !important;
- }
- .user-info-body {
- padding: 60px 17px 25px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .user-info-lf {
- display: flex;
- align-items: center;
- .user-info {
- margin-left: 11px;
- font-family:
- PingFang SC,
- PingFang SC;
- font-size: 10px;
- .user-info-name {
- font-weight: 500;
- color: #ffffff;
- display: flex;
- align-items: center;
- margin-bottom: 2px;
- }
- .user-info-key-body {
- font-weight: 400;
- color: rgba(255, 255, 255, 0.6);
- display: flex;
- align-items: center;
- .user-info-key-body-text {
- margin-right: 4px;
- }
- }
- }
- }
- .network {
- display: flex;
- align-items: center;
- border-radius: 27px;
- border: 1px solid rgba(255, 255, 255, 0.6);
- padding: 0 5px;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 400;
- font-size: 15px;
- color: #ffffff;
- height: 25px;
- line-height: 25px;
- box-sizing: border-box;
- .network-name {
- margin-left: 5px;
- }
- }
- }
- .amount {
- height: 102px;
- background-color: rgba(242, 242, 242, 0.2);
- backdrop-filter: blur(3px);
- -webkit-backdrop-filter: blur(3px);
- border-radius: 15px;
- margin: 0 17px 20px 17px;
- box-shadow: 0 7px 10px #15277031;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 400;
- font-size: 15px;
- color: #ffffff;
- &:before {
- height: calc(100% - 4px);
- width: calc(100% - 4px);
- content: "";
- position: absolute;
- inset: 0;
- z-index: -1;
- padding: 2px; /* 边框宽度 */
- background: linear-gradient(
- 135deg,
- rgba(255, 255, 255, 0.6) 0%,
- rgba(255, 255, 255, 0.2) 25%,
- rgba(255, 255, 255, 0.1) 50%,
- rgba(255, 255, 255, 0.2) 75%,
- rgba(255, 255, 255, 0.6) 100%
- ); //linear-gradient(135deg, #ffffff64, #ffffff2e); /* 渐变方向可调 */
- -webkit-mask:
- linear-gradient(#fff 0 0) content-box,
- linear-gradient(#fff 0 0);
- -webkit-mask-composite: xor;
- mask-composite: exclude;
- border-radius: 15px; /* 必须和父元素一致 */
- pointer-events: none; /* 避免遮挡点击 */
- }
- .amount-item-box {
- margin: 21px 21px 27px 27px;
- }
- .amount-item {
- margin-top: 7px;
- font-weight: 600;
- font-size: 25px;
- display: flex;
- position: relative;
- .item-text {
- display: flex;
- align-items: center;
- margin-right: 2px;
- .my {
- position: relative;
- top: 1px;
- }
- }
- }
- }
- .card-box {
- background: #ffffff;
- box-shadow: 0px 4px 8px -2px rgba(25, 75, 137, 0.25);
- border-radius: 17px;
- height: 78px;
- margin: 0 17px;
- padding: 15px 10px;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #000000;
- .box-cont {
- width: calc(100% / 5);
- display: flex;
- flex-direction: column;
- align-items: center;
- .box-cont-icon {
- margin-bottom: 4px;
- color: #fff;
- }
- }
- }
- .list-box {
- background: #ffffff;
- border-radius: 12px;
- margin: 25px 17px;
- padding: 16px;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- flex: 1;
- overflow: hidden;
- .list-title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 500;
- font-size: 17px;
- color: #000000;
- margin-bottom: 23px;
- }
- .list-ul {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: auto;
- .list-li {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 500;
- margin-bottom: 12px;
- .list-li-lf {
- display: flex;
- align-items: center;
- font-size: 15px;
- color: #000000;
- }
- .list-li-ri {
- font-size: 12px;
- color: @font-color2;
- text-align: right;
- .list-li-ri-num {
- font-weight: 400;
- font-size: 10px;
- color: #8d8d8d;
- }
- }
- }
- .list-li:last-child {
- margin-bottom: 0;
- }
- }
- .list-ul::-webkit-scrollbar {
- width: 0;
- }
- }
- .pop-content {
- display: flex;
- flex-direction: column;
- .pop-title {
- padding: 17px;
- border-bottom: 1px solid #f2f2f2;
- display: flex;
- align-items: center;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 500;
- font-size: 17px;
- color: #000000;
- .title {
- flex: 1;
- display: flex;
- justify-content: center;
- }
- }
- .tree {
- display: flex;
- height: 300px;
- overflow: hidden;
- .tree-lf {
- display: flex;
- flex-direction: column;
- width: 67px;
- overflow: auto;
- .tree-lf-icon {
- height: 67px;
- padding: 16px;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .active-bg {
- background: #eceffc;
- }
- }
- .tree-lf::-webkit-scrollbar {
- width: 0;
- }
- .tree-ri {
- margin-left: 10px;
- margin-right: 17px;
- flex: 1;
- overflow: auto;
- .tree-ri-title {
- margin: 10px 0 4px;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 500;
- font-size: 15px;
- color: #000000;
- }
- .tree-ul {
- .tree-li {
- background: #f2f2f2;
- border-radius: 8px;
- border: 1px solid #f2f2f2;
- padding: 14px 16px;
- display: flex;
- align-items: center;
- margin-bottom: 12px;
- .tree-li-cont {
- margin-left: 12px;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #8d8d8d;
- .tree-li-text {
- font-weight: 500;
- font-size: 15px;
- color: @theme-color1;
- }
- .tree-li-address {
- display: flex;
- align-items: center;
- }
- }
- }
- .tree-active {
- background: #fafbff;
- border: 1px solid @theme-color1;
- }
- }
- }
- .tree-ri::-webkit-scrollbar {
- width: 0;
- }
- }
- .pop-btn {
- margin: 17px;
- .btn {
- height: 40px;
- border-radius: 50px;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 500;
- font-size: 15px;
- color: #ffffff;
- }
- :deep(.van-button__text) {
- display: flex;
- align-items: center;
- }
- }
- .pop-list {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: auto;
- .pop-list-box {
- display: flex;
- padding: 17px 17px 0;
- .pop-list-ul {
- padding-bottom: 12px;
- flex: 1;
- margin-left: 8px;
- border-bottom: 1px solid #f2f2f2;
- box-sizing: border-box;
- .pop-list-li {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-family:
- PingFang SC,
- PingFang SC;
- margin-bottom: 4px;
- font-weight: 400;
- font-size: 12px;
- color: @font-color2;
- .pop-list-li-title {
- font-weight: 500;
- font-size: 15px;
- color: #000000;
- }
- .pop-list-li-status {
- font-weight: 500;
- font-size: 15px;
- color: @theme-color1 !important;
- }
- }
- .pop-list-li div:last-child {
- color: #8d8d8d;
- display: flex;
- align-items: center;
- }
- }
- }
- }
- .pop-list::-webkit-scrollbar {
- width: 0;
- }
- .pop-ul {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: auto;
- margin: 16px 16px 0;
- .pop-li {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 16px;
- .pop-li-lf {
- display: flex;
- align-items: center;
- font-family:
- PingFang SC,
- PingFang SC;
- font-weight: 400;
- font-size: 15px;
- color: #4f4f4f;
- .pop-address {
- font-size: 12px;
- color: #8d8d8d;
- }
- }
- }
- }
- }
- }
- </style>
|