|
|
@@ -193,13 +193,13 @@
|
|
|
<script setup lang="ts">
|
|
|
import zsLoading from '@/components/zzx-loading/zzx-loading.vue'
|
|
|
import { ref, onMounted, computed } from 'vue'
|
|
|
-import { onShow, onLoad, onPageScroll, onPullDownRefresh, onShareAppMessage } from '@dcloudio/uni-app';
|
|
|
+import {onLoad, onPageScroll, onPullDownRefresh, onShareAppMessage } from '@dcloudio/uni-app';
|
|
|
import zsEmpty from '@/components/zs-empty/index.vue'
|
|
|
import { TipsUtils, RouterUtils } from '@/utils/util';
|
|
|
import { http } from '@/utils/http'
|
|
|
import { useCacheStore } from '@/stores/cache'
|
|
|
+import QQMapWX from '@/libs/qqmap-wx-jssdk.js';
|
|
|
const cache = useCacheStore()
|
|
|
-import QQMapWX from '@/libs/qqmap-wx-jssdk.js'
|
|
|
const token = computed(() => cache.token)
|
|
|
const navBarHeight = ref(0);
|
|
|
const statusBarHeight = ref(0);
|
|
|
@@ -210,21 +210,6 @@ const instructorList = ref();
|
|
|
const indexLoading = ref(true);
|
|
|
const hotInstructorImg1 = ref('https://national-motion.oss-cn-beijing.aliyuncs.com/opt/upFiles/dxVfKxD7aH2397154f377d68fb59a71226c9c2f078a9_1758071827887.png')
|
|
|
const hotInstructorImg2 = ref('https://national-motion.oss-cn-beijing.aliyuncs.com/opt/upFiles/uv0VmclIvXiJc1081e0e33e281a8a436d24ec9ca87c3_1758071769194.png')
|
|
|
-const list = ref([{
|
|
|
- src: "https://cdn.pixabay.com/photo/2020/05/19/13/32/cartoon-5190837_1280.jpg"
|
|
|
-},
|
|
|
-{
|
|
|
- src: "https://cdn.pixabay.com/photo/2020/05/19/13/35/cartoon-5190860_1280.jpg"
|
|
|
-},
|
|
|
-{
|
|
|
- src: "https://cdn.pixabay.com/photo/2022/03/31/14/53/camp-7103189_1280.png"
|
|
|
-}
|
|
|
-],)
|
|
|
-// onShow(() => {
|
|
|
-// get_indexInfo()
|
|
|
-// get_message()
|
|
|
-// get_searchList()
|
|
|
-// })
|
|
|
onLoad(() => {
|
|
|
get_location()
|
|
|
console.log(token.value, 'token是否刷新')
|
|
|
@@ -409,7 +394,7 @@ const openSellocation = () => {
|
|
|
const gyCourseList = ref()
|
|
|
const stCourseList = ref()
|
|
|
const get_indexInfo = () => {
|
|
|
- http.get('/home/homeInfo').then((res) => {
|
|
|
+ http.get('/home/homeInfo',{loading:true}).then((res) => {
|
|
|
indexLoading.value = false
|
|
|
bannerList.value = res.result.bannerList
|
|
|
// item.priceType === 0精品,1免费
|
|
|
@@ -913,7 +898,7 @@ const searchInfoBtn = () => {
|
|
|
}
|
|
|
|
|
|
.i-skill {
|
|
|
- width: 700rpx;
|
|
|
+ width: 680rpx;
|
|
|
margin-top: 20rpx;
|
|
|
font-size: 24rpx;
|
|
|
color: #AAAAAA;
|