Browse Source

feat

master
fave3722 3 years ago
parent
commit
ad5995fc4f
  1. 13
      src/components/footer.vue
  2. 8
      src/components/row-search.vue
  3. 2
      src/components/table/dBase/bkRow.vue
  4. 2
      src/components/table/dBase/hpRow.vue
  5. 48
      src/utils/test.js

13
src/components/footer.vue

@ -6,22 +6,17 @@
<!-- 左侧 -->
<div class="flex flex-row text-[15px] text-gray-BBB">
<div class="w-[134px]">
<p
class="pb-[22px] cursor-pointer text-white"
@click="jumpRoute('BitcNFT')"
>
Tokens
</p>
<p class="pb-[22px] cursor-pointer text-white">Tokens</p>
<p class="pb-[22px] cursor-pointer" @click="jumpRoute('VNFT')">NFT</p>
<p class="pb-[22px] cursor-pointer" @click="jumpRoute('VNFT')">
VNFT
</p>
<p class="pb-[22px] cursor-pointer" @click="jumpRoute('VNFT')">
<!-- <p class="pb-[22px] cursor-pointer" @click="jumpRoute('VNFT')">
KNFT
</p>
</p> -->
<p
class="pb-[22px] cursor-pointer text-green-1DE9B6"
@click="jumpRoute('VNFT')"
@click="jumpRoute('/tokens')"
>
More
</p>

8
src/components/row-search.vue

@ -1,7 +1,10 @@
<template>
<div class="mobile:hidden">
<div class="flex flex-row px-[120px] justify-between items-center">
<div class="flex flex-1 justify-start items-center">
<div
class="flex flex-1 justify-start items-center cursor-pointer"
@click="handleBackHomePage"
>
<img :src="iconList.label" class="w-[60px] h-[33px]" />
<span class="text-[34px] font-semibold text-white ml-[11.5px]"
>MetaForce Scan</span
@ -154,6 +157,9 @@ const searchRequest = async () => {
console.log(data)
} catch (error) {}
}
const handleBackHomePage = () => {
router.push('/')
}
</script>
<style scoped>

2
src/components/table/dBase/bkRow.vue

@ -1,7 +1,7 @@
<template>
<div
:class="last ? 'rounded-b-[10px]' : ''"
class="flex flex-1 flex-row bg-black-19191A hover:bg-black-272728 items-center py-[24px] px-[34px]"
class="flex flex-1 flex-row bg-black-19191A hover:bg-black-272728 items-center py-[24px] px-[34px] cursor-pointer"
>
<div
class="flex flex-1 justify-start"

2
src/components/table/dBase/hpRow.vue

@ -1,7 +1,7 @@
<template>
<div
:class="last ? 'rounded-b-[10px]' : ''"
class="flex flex-1 flex-row bg-black-19191A hover:bg-black-272728 items-center py-[24px] px-[34px]"
class="flex flex-1 flex-row bg-black-19191A hover:bg-black-272728 items-center py-[24px] px-[34px] cursor-pointer"
>
<div
class="flex flex-1 justify-start cursor-pointer"

48
src/utils/test.js

@ -1,48 +0,0 @@
let getInfo = (data) => {
if (!data) return null
let result = []
for (let i = 1; i <= 20; i++) {
try {
let item = {}
if (data['temp' + i]) {
item['temp'] = data['temp' + i]
if (JSON.stringify(tilesState.max) !== '{}')
if (tilesState.max['temp' + i])
item['maxTemp'] = tilesState.max['temp' + i]
if (JSON.stringify(tilesState.min) !== '{}')
if (tilesState.min['temp' + i])
item['minTemp'] = tilesState.min['temp' + i]
if (JSON.stringify(tilesState.avg) !== '{}')
if (tilesState.avg['temp' + i])
item['avgTemp'] = tilesState.avg['temp' + i]
}
if (data['humidity' + i]) {
item['humidity'] = data['humidity' + i]
if (JSON.stringify(tilesState.max) !== '{}')
if (tilesState.max['humidity' + i])
item['maxHumidity'] = tilesState.max['humidity' + i]
if (JSON.stringify(tilesState.min) !== '{}')
if (tilesState.min['humidity' + i])
item['minHumidity'] = tilesState.min['humidity' + i]
if (JSON.stringify(tilesState.avg) !== '{}')
if (tilesState.avg['humidity' + i])
item['avgHumidity'] = tilesState.avg['humidity' + i]
}
if (JSON.stringify(item) !== '{}') {
item['title'] = 'Temperature-Humidity-' + i
result.push(item)
}
} catch (e) {
console.log(e)
}
}
console.log(result)
return result
}
Loading…
Cancel
Save