Skip to content

Commit

Permalink
feat(接口): 更换
Browse files Browse the repository at this point in the history
  • Loading branch information
Eug620 committed Apr 22, 2024
1 parent 7091fca commit ca86eff
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/components/base-carousel/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @Author : eug yyh3531@163.com
* @Date : 2023-03-28 09:58:02
* @LastEditors : eug yyh3531@163.com
* @LastEditTime : 2023-03-30 09:37:55
* @LastEditTime : 2024-04-22 18:21:41
* @FilePath : /micro-base/src/components/base-carousel/index.vue
* @Description : filename
*
Expand All @@ -15,11 +15,11 @@
<template #title>
{{ carouselList[moveCurrent - 1] && carouselList[moveCurrent - 1].title }}
</template>
<template #extra>{{ carouselList[moveCurrent - 1] && carouselList[moveCurrent - 1].info.pingfen }} </template>
<template #extra>{{ carouselList[moveCurrent - 1] && carouselList[moveCurrent - 1].hot }} </template>
<a-carousel v-model:current="moveCurrent" indicator-position="outer" animation-name="card" class="w-full h-3/4"
:auto-play="true" indicator-type="dot" show-arrow="hover">
<a-carousel-item class="cursor-pointer" v-for="item in carouselList" :key="item.title">
<img :src="item?.info?.imgurl" class="h-full m-auto" @click="useToLink(item)" />
<img :src="item?.mobilUrl" class="h-full m-auto" @click="useToLink(item)" />
</a-carousel-item>
</a-carousel>
<!-- <div class="h-1/6 text-center animate__animated animate__fadeIn">
Expand All @@ -33,13 +33,13 @@ import { Ref, ref } from "vue"
const carouselList: Ref<any[]> = ref([])
const moveCurrent = ref(1)
const init = () => {
fetch('https://api.vvhan.com/api/douban').then(async (res: any) => {
fetch('https://api.vvhan.com/api/hotlist/douban').then(async (res: any) => {
const result: any = await res.json()
carouselList.value = result.data
})
}
const useToLink = (item: any) => {
window.open(item?.info?.url)
window.open(item?.mobilUrl)
}

init()
Expand Down
10 changes: 5 additions & 5 deletions src/components/base-typed/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @Author : eug yyh3531@163.com
* @Date : 2023-03-28 09:42:36
* @LastEditors : eug yyh3531@163.com
* @LastEditTime : 2023-03-30 10:18:16
* @LastEditTime : 2024-04-22 18:22:46
* @FilePath : /micro-base/src/components/base-typed/index.vue
* @Description : filename
*
Expand Down Expand Up @@ -63,10 +63,10 @@ const initTyped = () => {
}
const useResetTyped = () => {
try {
fetch('https://api.vvhan.com/api/ian?type=json').then(async res => {
fetch('https://api.vvhan.com/api/ian/rand?type=json').then(async res => {
let result = await res.json()
ian.value = result.data.vhan
source.value = result.data.source
ian.value = result.data.content
source.value = result.data.form
initTyped()
})
} catch (err) {
Expand Down Expand Up @@ -103,7 +103,7 @@ onActivated(() => {
<style lang="scss">
.base-typed {
&-container {
color: rgb(var(--primary-3)) !important;
// color: rgb(var(--primary-3)) !important;
font-size: 1rem;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/base-weibo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author : eug yyh3531@163.com
* @Date : 2023-07-12 10:51:53
* @LastEditors : eug yyh3531@163.com
* @LastEditTime : 2023-08-11 11:39:01
* @LastEditTime : 2024-04-22 18:23:42
* @FilePath : /micro-base/src/components/base-weibo/index.vue
* @Description : filename
*
Expand Down
6 changes: 3 additions & 3 deletions src/components/base-wordcloud/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author : eug yyh3531@163.com
* @Date : 2023-08-14 15:45:08
* @LastEditors : eug yyh3531@163.com
* @LastEditTime : 2023-08-14 17:16:07
* @LastEditTime : 2024-04-22 18:24:35
* @FilePath : /micro-base/src/components/base-wordcloud/index.vue
* @Description : filename
*
Expand All @@ -23,7 +23,7 @@ onMounted(() => {
chartInstance.value = echarts.init(document.getElementById('base-wordcloud'));
const maskImage = new Image()
maskImage.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVAAAAEdCAYAAABaLj9rAAAACXBIWXMAABcSAAAXEgFnn9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78q4ee7SRAPw/S9GX6n8oEE8OW1kQf9fXAt8K8/dK48Nfa5sEQTUs3jv749vsUpr9oEQYkTRTNmnjs8Yiq9OmX/qUKVDXKuKrOA+G50cXm0dtXVaCqUcZRRc101zcOzyfvwlKBbl6NmqmnJGlS1FjnFt32de7Csg50C3U1OqtuNyCwbpRcpQv96YhuxWzivE5DG3tPddsFaDONnRo6VaU/aQ0y63qelvqojZ7P6ZNNx4cF6O6NfhTV6LHWIIPu+tnI7mHvlQBt8OoVQbqvNejYm6g6rzSFAC09SGeV8VG6kcY55yaIBOjQQjSNj57GS5DSNMuSBKgghS2Cc26CSIAKUhCcAhRBSmvSGOdCcApQPg/TWXW7jtSsPQ8Fp8khAcoaQXoSFal1pOO2etbO3HIkAcrmQXoQFemJ7v2opPHNs+iqWwAvQNkxSPciRFNVeqhFButNhKat5QQoLYXpUQSpqnRY1ea5broApdswnUWQPtcaRVmNbZ7ZGUmAkk8XX5jmH5rnuugCFGGK0ESADj5Mp3cC1Zhp+9KzspbV7WSQ7rkAZUCBehRBmkLVGtPmqsxlVJpLE0EI0PEE6jTCVKBuHpjLCExVJgKUD4F6FIGafrql9LZLfhmBeSkwEaCsG6h79wL1oBr2Qv6LCMurCMulbwEClKaDdRWmq5+rvy5hkipVlO/uBmX6aewSAUou4boXr6P4x6t/VkXYtjE0cHHnr6/iVUXXu4qK0n3ltO6/AgwAJM21HORE7w8AAAAASUVORK5CYII='
fetch('https://api.vvhan.com/api/wbhot').then(async (res: any) => {
fetch('https://api.vvhan.com/api/hotlist/wbHot').then(async (res: any) => {
const result: any = await res.json()
console.log(result);
// console.log(maskImage);
Expand Down Expand Up @@ -116,7 +116,7 @@ onMounted(() => {
// Data is an array. Each array item must have name and value property.
data: result.data.map((v: any, idx: number) => {
return Object.assign(v, {
value: v.hot / 100,
value: v.hot.replace('万', '') * 10,
name: v.title
})
})
Expand Down

0 comments on commit ca86eff

Please sign in to comment.