index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <template>
  2. <div class="container">
  3. <svg-icon name="wallet-bg" class="bg-img" />
  4. <div class="user-info-body">
  5. <div class="user-info-lf">
  6. <van-image
  7. width="28px"
  8. height="28px"
  9. round
  10. :src="walletStore.avatar"
  11. />
  12. <div class="user-info">
  13. <div class="user-info-name" @click="showWallet = true">
  14. <div>{{ walletStore.username }}</div>
  15. <svg-icon style="width: 16px; height: 16px;margin-left: 3px;" name="down" />
  16. </div>
  17. <div class="user-info-key-body">
  18. <span class="user-info-key-body-text">{{ formatAddress(walletStore.account) }}</span>
  19. <svg-icon class="im-copy-btn" style="width: 16px; height: 16px;" name="copy" :data-clipboard-text="walletStore.account"/>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="network">
  24. <van-image width="20px" height="20px" round :src="walletStore.accountIcon"/>
  25. <div class="network-name">{{ walletStore.accountName }}</div>
  26. </div>
  27. </div>
  28. <div class="amount">
  29. <div class="amount-item-box">
  30. <div>Total assets</div>
  31. <div class="amount-item">
  32. <div class="item-text">
  33. <svg-icon class="my" style="width: 28px; height: 28px;" name="my" />
  34. <div>{{isShow?totalMoney:'****'}}</div>
  35. </div>
  36. <svg-icon style="width: 16px; height: 16px;" :name="isShow?'eyes':'seyes'" @click="isShow = !isShow"/>
  37. </div>
  38. </div>
  39. <svg-icon style="width: 24px; height: 24px; margin-right: 27px;" name="right" @click="goToPageDetail"/>
  40. </div>
  41. <div class="card-box">
  42. <div class="box-cont" @click="goToPage('exchange')">
  43. <svg-icon class="box-cont-icon" style="width: 30px; height: 30px;" name="1" />
  44. <div>元宝兑换</div>
  45. </div>
  46. <div class="box-cont" @click="goToPage('proceeds')">
  47. <svg-icon class="box-cont-icon" style="width: 30px; height: 30px;" name="2" />
  48. <div>收款</div>
  49. </div>
  50. <div class="box-cont" @click="goToPage('transferDetail')">
  51. <svg-icon class="box-cont-icon" style="width: 30px; height: 30px;" name="3" />
  52. <div>转账</div>
  53. </div>
  54. <div class="box-cont" @click="goToDapp">
  55. <svg-icon class="box-cont-icon" style="width: 30px; height: 30px;" name="4" />
  56. <div>竞赛</div>
  57. </div>
  58. <div class="box-cont">
  59. <svg-icon class="box-cont-icon" style="width: 30px; height: 30px;" name="5" />
  60. <div>区块浏览器</div>
  61. </div>
  62. </div>
  63. <div class="list-box">
  64. <div class="list-title">
  65. <div>代币</div>
  66. <svg-icon style="width: 24px; height: 24px;" name="add" @click="changePop(1)"/>
  67. </div>
  68. <div class="list-ul">
  69. <template v-for="(item,i) in walletStore.tokenList" :key="i">
  70. <div class="list-li" v-if="item.name == 'ACC' || !item.show" @click="changePop(2,item)">
  71. <div class="list-li-lf">
  72. <van-image width="30px" height="30px" round :src="item.logo"/>
  73. <div style="margin-left: 8px;">{{item.name}}</div>
  74. </div>
  75. <div class="list-li-ri">
  76. <div>{{item.balance}}</div>
  77. <div class="list-li-ri-num">${{item.money}}</div>
  78. </div>
  79. </div>
  80. </template>
  81. </div>
  82. </div>
  83. <van-popup v-model:show="showWallet" position="bottom" round>
  84. <div class="pop-content">
  85. <div class="pop-title">
  86. <svg-icon style="width: 24px; height: 24px;" name="left-arrow" @click="showWallet = false"/>
  87. <div class="title">选择钱包</div>
  88. </div>
  89. <div class="tree">
  90. <div class="tree-lf">
  91. <div class="tree-lf-icon" v-for="(item,i) in networkList" :class="netWorkIndex == i?'active-bg':''" @click="changeNetwork(i)">
  92. <van-image lazy-load class="network-item-icon" :src="item.icon" />
  93. </div>
  94. </div>
  95. <div class="tree-ri">
  96. <div class="tree-ri-title">{{networkList[netWorkIndex]?.name}}</div>
  97. <div class="tree-ul">
  98. <div class="tree-li"
  99. v-for="(item,i) in currentWallets"
  100. :class="item.id == walletStore.id?'tree-active':''" @click="changeWallet(item)">
  101. <van-image
  102. width="37px"
  103. height="37px"
  104. round
  105. :src="item.avatar"
  106. />
  107. <div class="tree-li-cont">
  108. <div class="tree-li-text">{{ item.username }}</div>
  109. <div class="tree-li-address">
  110. <span>{{ formatAddress(item.account) }}</span>
  111. <svg-icon
  112. class="im-copy-btn"
  113. style="width: 16px; height: 16px;margin-left: 2px;"
  114. name="copy" :data-clipboard-text="item.account"
  115. />
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <div class="pop-btn" @click="addWallet">
  123. <van-button class="btn" type="primary" size="large" color="#4765DD">
  124. <svg-icon style="width: 24px; height: 24px;margin-right: 4px;" name="add1" />添加钱包
  125. </van-button>
  126. </div>
  127. </div>
  128. </van-popup>
  129. <van-popup v-model:show="showHistory" position="bottom" round style="height:500px">
  130. <div class="pop-content" style="height:500px">
  131. <div class="pop-title">
  132. <svg-icon style="width: 24px; height: 24px;" name="left-arrow" @click="showHistory = false"/>
  133. <div class="title">{{ type == 1?'添加代币':'历史记录' }}</div>
  134. </div>
  135. <!-- 1 -->
  136. <div class="pop-ul" v-if="type == 1">
  137. <div class="pop-li" v-for="(item,i) in walletStore.tokenList">
  138. <div class="pop-li-lf" v-if="item.name != 'ACC'">
  139. <van-image
  140. width="32px"
  141. height="32px"
  142. round
  143. :src="item.logo"
  144. />
  145. <div style="margin-left: 6px;">
  146. <div>{{item.name}}</div>
  147. <div class="pop-address">{{ formatAddress(item.address) }}</div>
  148. </div>
  149. </div>
  150. <svg-icon v-if="item.name != 'ACC'" style="width: 20px; height: 20px;" :name="item.show?'add-icon':'del-icon'" @click="tokensHandle(item)"/>
  151. </div>
  152. </div>
  153. <!-- 2 -->
  154. <div class="pop-list" v-if="type == 2">
  155. <div class="pop-list-box" v-for="(item,i) in historyList">
  156. <svg-icon style="width: 24px; height: 24px;color: #fff;" :name="item.from?.hash == walletStore.account?'fs':'js'" />
  157. <div class="pop-list-ul">
  158. <div class="pop-list-li">
  159. <div class="pop-list-li-title">{{item.from?.hash == walletStore.account?'发送':'接收'}}</div>
  160. <div class="pop-list-li-status">成功</div>
  161. </div>
  162. <div class="pop-list-li">
  163. <div>转账金额</div>
  164. <div>{{item.value}}{{selectUrl.name}}</div>
  165. </div>
  166. <div class="pop-list-li">
  167. <div>{{item.from?.hash == walletStore.account?'发送':'接收'}}时间</div>
  168. <div>{{item.timestamp}}</div>
  169. </div>
  170. <div class="pop-list-li">
  171. <div>收款地址</div>
  172. <div>{{formatAddress(item.to?.hash)}}
  173. <svg-icon class="im-copy-btn" style="width: 16px; height: 16px;" name="copy" :data-clipboard-text="item.to?.hash"/>
  174. </div>
  175. </div>
  176. <div class="pop-list-li">
  177. <div>hash</div>
  178. <div>{{formatAddress(item.hash)}}
  179. <svg-icon class="im-copy-btn" style="width: 16px; height: 16px;" name="copy" :data-clipboard-text="item.hash"/>
  180. </div>
  181. </div>
  182. <div class="pop-list-li" v-if="selectUrl.name == 'ACC'">
  183. <div>矿工费</div>
  184. <div>{{item.gas_price}}ACC</div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </van-popup>
  191. </div>
  192. </template>
  193. <script setup>
  194. import { useRouter } from 'vue-router'
  195. import { getNetwork } from '@/api/path/login.api'
  196. import { useWalletStore } from "@/stores/modules/walletStore";
  197. import { useSystemStore } from "@/stores/modules/systemStore";
  198. import { transactions, tokenTransfers } from "@/api/path/backend.api";
  199. import { openDapp } from "@/composables/dAppView";
  200. import { cryptoEncode } from "@/utils/crypto";
  201. import { useCopy } from "@/hooks/use-copy.js";
  202. useCopy();
  203. const router = useRouter();
  204. const walletStore = useWalletStore();
  205. const systemStore = useSystemStore();
  206. const isShow = ref(true);
  207. const showWallet = ref(false);
  208. const showHistory = ref(false);
  209. const networkList = ref([]);
  210. const netWorkIndex = ref(0);
  211. const type = ref('');
  212. const historyList = ref([]);
  213. const selectUrl = ref({});
  214. const goToPage = (url) => {
  215. router.push(url)
  216. }
  217. // 跳转详情
  218. const goToPageDetail = () => {
  219. router.push({
  220. path: 'walletDetail',
  221. query:{
  222. id:walletStore.id
  223. }
  224. })
  225. }
  226. const changePop = (val,item) => {
  227. type.value = val;
  228. if(val == 2){
  229. getDetail(item);
  230. selectUrl.value = item;
  231. return;
  232. };
  233. showHistory.value = true;
  234. }
  235. // 查看历史记录
  236. const getDetail = (item) => {
  237. if(item.name == 'ACC'){
  238. getList();
  239. }else{
  240. getDBList(item.address);
  241. }
  242. showHistory.value = true;
  243. }
  244. const getList = async () => {
  245. const res = await transactions(walletStore.account);
  246. const items = res.items || []
  247. if (items.length > 0) {
  248. items.forEach(val => {
  249. val.timestamp = getDateTime(val.timestamp)
  250. val.gas_price = getPrice(val.fee.value).toFixed(9)
  251. if (val.value !== '0') {
  252. val.value = getPrice(val.value).toFixed(6)
  253. }
  254. })
  255. historyList.value = items
  256. }
  257. }
  258. const getDBList = async (DBaddress) => {
  259. const res = await tokenTransfers(walletStore.account,{
  260. params: {
  261. type: 'ERC-20,ERC-721,ERC-1155',
  262. filter: 'to | from',
  263. token: DBaddress
  264. }
  265. })
  266. const items = res.items || []
  267. if (items.length > 0) {
  268. items.forEach(val => {
  269. val.timestamp = getDateTime(val.timestamp)
  270. val.value = getPrice(val.total.value).toFixed(6)
  271. val.hash = val.transaction_hash
  272. })
  273. historyList.value = items
  274. }
  275. }
  276. // 计算总和
  277. const totalMoney = computed(() => {
  278. const list = walletStore.tokenList
  279. if (!Array.isArray(list) || list.length === 0) return 0
  280. let total = Number(list[0].money || 0)
  281. for (let i = 1; i < list.length; i++) {
  282. if (!list[i].show) {
  283. total += Number(list[i].money || 0)
  284. }
  285. }
  286. return Number(total.toFixed(4))
  287. })
  288. // 添加钱包
  289. const addWallet = () => {
  290. walletStore.accountName = networkList.value[netWorkIndex.value].name
  291. walletStore.accountIcon = networkList.value[netWorkIndex.value].icon
  292. walletStore.rpcUrl = networkList.value[netWorkIndex.value].url
  293. router.push({
  294. path: '/login',
  295. query:{
  296. isFirst:false
  297. }
  298. })
  299. }
  300. // 网络数据
  301. const initNetwork = async () => {
  302. const { data } = await getNetwork({})
  303. networkList.value = data
  304. }
  305. const currentChainName = computed(() => networkList.value[netWorkIndex.value]?.name)
  306. // 当前链对应的钱包数组
  307. const currentWallets = computed(() => {
  308. return walletStore.walletList.filter(w => w.accountName === currentChainName.value)
  309. })
  310. // 切换网络
  311. const changeNetwork = (i) => {
  312. netWorkIndex.value = i;
  313. }
  314. // 切换钱包
  315. const changeWallet = (item) => {
  316. walletStore.switchWallet(item.id,item.account);
  317. showWallet.value = false;
  318. }
  319. // 代币显示隐藏
  320. const tokensHandle = (item)=>{
  321. walletStore.changeToten(item.name)
  322. }
  323. // 更新代币信息
  324. const gethotTokens = async () => {
  325. await walletStore.updateTokenVal();
  326. }
  327. // 跳转竞赛
  328. const goToDapp = () => {
  329. const dapp = cryptoEncode(
  330. JSON.stringify({
  331. address: walletStore.account,
  332. privateKey: walletStore.privateKey,
  333. })
  334. );
  335. openDapp('http://192.168.0.70:8088/#/', { dapp });
  336. }
  337. const formatAddress = (address) => {
  338. if (!address) return '';
  339. return address.slice(0, 8) + '...' + address.slice(-6);
  340. };
  341. const getPrice = (price)=>{
  342. const num = (parseFloat(price) / Math.pow(10, 18));
  343. return num
  344. }
  345. const getDateTime=(isoString)=>{
  346. const date = new Date(isoString);
  347. 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')}`;
  348. return formattedDate;
  349. }
  350. onMounted(async ()=>{
  351. initNetwork();
  352. gethotTokens();
  353. })
  354. </script>
  355. <style lang="less" scoped>
  356. .container{
  357. position: relative;
  358. display: flex;
  359. flex-direction: column;
  360. height: calc(100vh - 50px);
  361. .bg-img{
  362. height: 18.8rem;
  363. min-width: 100%;
  364. width: 100vw;
  365. position: absolute;
  366. top: -0.8rem;
  367. left: 0;
  368. z-index: -1;
  369. }
  370. .user-info-body{
  371. padding: 60px 17px 25px;
  372. display: flex;
  373. align-items: center;
  374. justify-content: space-between;
  375. .user-info-lf{
  376. display: flex;
  377. align-items: center;
  378. .user-info{
  379. margin-left: 11px;
  380. font-family: PingFang SC, PingFang SC;
  381. font-size: 10px;
  382. .user-info-name{
  383. font-weight: 500;
  384. color: #FFFFFF;
  385. display: flex;
  386. align-items: center;
  387. margin-bottom: 2px;
  388. }
  389. .user-info-key-body{
  390. font-weight: 400;
  391. color: rgba(255,255,255,0.6);
  392. display: flex;
  393. align-items: center;
  394. .user-info-key-body-text{
  395. margin-right: 4px;
  396. }
  397. }
  398. }
  399. }
  400. .network{
  401. display: flex;
  402. align-items: center;
  403. border-radius: 27px;
  404. border: 1px solid rgba(255,255,255,0.6);
  405. padding: 0 5px;
  406. font-family: PingFang SC, PingFang SC;
  407. font-weight: 400;
  408. font-size: 15px;
  409. color: #FFFFFF;
  410. height: 25px;
  411. line-height: 25px;
  412. box-sizing: border-box;
  413. .network-name{
  414. margin-left: 5px;
  415. }
  416. }
  417. }
  418. .amount{
  419. height: 102px;
  420. background-color: rgba(242, 242, 242, 0.2);
  421. backdrop-filter: blur(3px);
  422. -webkit-backdrop-filter: blur(3px);
  423. border-radius: 15px;
  424. margin: 0 17px 20px 17px;
  425. box-shadow:0 7px 10px #15277031;
  426. box-sizing: border-box;
  427. display: flex;
  428. align-items: center;
  429. justify-content: space-between;
  430. font-family: PingFang SC, PingFang SC;
  431. font-weight: 400;
  432. font-size: 15px;
  433. color: #FFFFFF;
  434. &:before {
  435. height: calc(100% - 4px);
  436. width: calc(100% - 4px);
  437. content: "";
  438. position: absolute;
  439. inset: 0;
  440. z-index: -1;
  441. padding: 2px; /* 边框宽度 */
  442. 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); /* 渐变方向可调 */
  443. -webkit-mask:
  444. linear-gradient(#fff 0 0) content-box,
  445. linear-gradient(#fff 0 0);
  446. -webkit-mask-composite: xor;
  447. mask-composite: exclude;
  448. border-radius: 15px; /* 必须和父元素一致 */
  449. pointer-events: none; /* 避免遮挡点击 */
  450. }
  451. .amount-item-box{
  452. margin: 21px 21px 27px 27px;
  453. }
  454. .amount-item{
  455. margin-top: 7px;
  456. font-weight: 600;
  457. font-size: 25px;
  458. display: flex;
  459. position: relative;
  460. .item-text{
  461. display: flex;
  462. align-items: center;
  463. margin-right: 2px;
  464. .my{
  465. position: relative;
  466. top:1px;
  467. }
  468. }
  469. }
  470. }
  471. .card-box{
  472. background: #FFFFFF;
  473. box-shadow: 0px 4px 8px -2px rgba(25,75,137,0.25);
  474. border-radius: 17px;
  475. height: 78px;
  476. margin: 0 17px;
  477. padding: 15px 10px;
  478. box-sizing: border-box;
  479. display: flex;
  480. align-items: center;
  481. font-family: PingFang SC, PingFang SC;
  482. font-weight: 400;
  483. font-size: 12px;
  484. color: #000000;
  485. .box-cont{
  486. width: calc(100% / 5);
  487. display: flex;
  488. flex-direction: column;
  489. align-items: center;
  490. .box-cont-icon{
  491. margin-bottom: 4px;
  492. color: #fff;
  493. }
  494. }
  495. }
  496. .list-box{
  497. background: #FFFFFF;
  498. border-radius: 12px;
  499. margin: 25px 17px;
  500. padding: 16px;
  501. box-sizing: border-box;
  502. display: flex;
  503. flex-direction: column;
  504. flex: 1;
  505. overflow: hidden;
  506. .list-title{
  507. display: flex;
  508. justify-content: space-between;
  509. align-items: center;
  510. font-family: PingFang SC, PingFang SC;
  511. font-weight: 500;
  512. font-size: 17px;
  513. color: #000000;
  514. margin-bottom: 23px;
  515. }
  516. .list-ul{
  517. flex: 1;
  518. display: flex;
  519. flex-direction: column;
  520. overflow: auto;
  521. .list-li{
  522. display: flex;
  523. align-items: center;
  524. justify-content: space-between;
  525. font-family: PingFang SC, PingFang SC;
  526. font-weight: 500;
  527. margin-bottom: 12px;
  528. .list-li-lf{
  529. display: flex;
  530. align-items: center;
  531. font-size: 15px;
  532. color: #000000;
  533. }
  534. .list-li-ri{
  535. font-size: 12px;
  536. color: @font-color2;
  537. text-align: right;
  538. .list-li-ri-num{
  539. font-weight: 400;
  540. font-size: 10px;
  541. color: #8D8D8D;
  542. }
  543. }
  544. }
  545. .list-li:last-child{
  546. margin-bottom: 0;
  547. }
  548. }
  549. .list-ul::-webkit-scrollbar{
  550. width: 0;
  551. }
  552. }
  553. .pop-content{
  554. display: flex;
  555. flex-direction: column;
  556. .pop-title{
  557. padding: 17px;
  558. border-bottom: 1px solid #F2F2F2;
  559. display: flex;
  560. align-items: center;
  561. font-family: PingFang SC, PingFang SC;
  562. font-weight: 500;
  563. font-size: 17px;
  564. color: #000000;
  565. .title{
  566. flex: 1;
  567. display: flex;
  568. justify-content: center;
  569. }
  570. }
  571. .tree{
  572. display: flex;
  573. height: 300px;
  574. overflow: hidden;
  575. .tree-lf{
  576. display: flex;
  577. flex-direction: column;
  578. width: 67px;
  579. overflow: auto;
  580. .tree-lf-icon{
  581. height: 67px;
  582. padding: 16px;
  583. box-sizing: border-box;
  584. display: flex;
  585. align-items: center;
  586. justify-content: center;
  587. }
  588. .active-bg{
  589. background: #ECEFFC;
  590. }
  591. }
  592. .tree-lf::-webkit-scrollbar{
  593. width: 0;
  594. }
  595. .tree-ri{
  596. margin-left: 10px;
  597. margin-right: 17px;
  598. flex: 1;
  599. overflow: auto;
  600. .tree-ri-title{
  601. margin: 10px 0 4px;
  602. font-family: PingFang SC, PingFang SC;
  603. font-weight: 500;
  604. font-size: 15px;
  605. color: #000000;
  606. }
  607. .tree-ul{
  608. .tree-li{
  609. background: #F2F2F2;
  610. border-radius: 8px;
  611. border: 1px solid #F2F2F2;
  612. padding: 14px 16px;
  613. display: flex;
  614. align-items: center;
  615. margin-bottom: 12px;
  616. .tree-li-cont{
  617. margin-left: 12px;
  618. font-family: PingFang SC, PingFang SC;
  619. font-weight: 400;
  620. font-size: 12px;
  621. color: #8D8D8D;
  622. .tree-li-text{
  623. font-weight: 500;
  624. font-size: 15px;
  625. color: @theme-color1;
  626. }
  627. .tree-li-address{
  628. display: flex;
  629. align-items: center;
  630. }
  631. }
  632. }
  633. .tree-active{
  634. background: #FAFBFF;
  635. border: 1px solid @theme-color1;
  636. }
  637. }
  638. }
  639. .tree-ri::-webkit-scrollbar{
  640. width: 0;
  641. }
  642. }
  643. .pop-btn{
  644. margin: 17px;
  645. .btn{
  646. height: 40px;
  647. border-radius: 50px;
  648. font-family: PingFang SC, PingFang SC;
  649. font-weight: 500;
  650. font-size: 15px;
  651. color: #FFFFFF;
  652. }
  653. :deep(.van-button__text) {
  654. display: flex;
  655. align-items: center;
  656. }
  657. }
  658. .pop-list{
  659. flex: 1;
  660. display: flex;
  661. flex-direction: column;
  662. overflow: auto;
  663. .pop-list-box{
  664. display: flex;
  665. padding: 17px 17px 0;
  666. .pop-list-ul{
  667. padding-bottom: 12px;
  668. flex: 1;
  669. margin-left: 8px;
  670. border-bottom: 1px solid #F2F2F2;
  671. box-sizing: border-box;
  672. .pop-list-li{
  673. display: flex;
  674. align-items: center;
  675. justify-content: space-between;
  676. font-family: PingFang SC, PingFang SC;
  677. margin-bottom: 4px;
  678. font-weight: 400;
  679. font-size: 12px;
  680. color: @font-color2;
  681. .pop-list-li-title{
  682. font-weight: 500;
  683. font-size: 15px;
  684. color: #000000;
  685. }
  686. .pop-list-li-status{
  687. font-weight: 500;
  688. font-size: 15px;
  689. color: @theme-color1 !important;
  690. }
  691. }
  692. .pop-list-li div:last-child{
  693. color: #8D8D8D;
  694. }
  695. }
  696. }
  697. }
  698. .pop-list::-webkit-scrollbar{
  699. width: 0;
  700. }
  701. .pop-ul{
  702. flex: 1;
  703. display: flex;
  704. flex-direction: column;
  705. overflow: auto;
  706. margin: 16px 16px 0;
  707. .pop-li{
  708. display: flex;
  709. align-items: center;
  710. justify-content: space-between;
  711. margin-bottom: 16px;
  712. .pop-li-lf{
  713. display: flex;
  714. align-items: center;
  715. font-family: PingFang SC, PingFang SC;
  716. font-weight: 400;
  717. font-size: 15px;
  718. color: #4F4F4F;
  719. .pop-address{
  720. font-size: 12px;
  721. color: #8D8D8D;
  722. }
  723. }
  724. }
  725. }
  726. }
  727. }
  728. </style>