12345678910111213141516171819202122232425262728 |
- <template>
- <div class="flex w-full flex-col items-center justify-center">
- <h1 class="my-[20px] font-black text-[30px]">
- {{title}}
- </h1>
- <div class="w-[1000px]">
- <p v-html="list">
- </p>
- </div>
- </div>
- </template>
- <script lang="ts" setup>
- import axios from 'axios'
- let list = ref('')
- let title =ref('')
- const postListIDFn = async () => {
- localStorage.getItem('hryk-id')
- // console.log('localStorage.getItem',localStorage.getItem('hryk-id'))
- let z: any = await axios.get(`https://official.webapi.bicredit.xin/api/news/detail/${localStorage.getItem('hryk-id')}`)
- console.log('zzz', z)
- // if(z.msg == '成功'){
- list.value = z.data.data.content
- title.value =z.data.data.title
- // console.log('list',list.value)
- // }
- }
- postListIDFn()
- </script>
|