|
|
@@ -128,7 +128,8 @@
|
|
|
<view class="i-card-list"
|
|
|
:style="{ background: index % 2 === 0 ? 'linear-gradient(179deg, #FFD5FB 0%, #FFFFFF 40%)' : 'linear-gradient( 179deg, #F2FFBE 0%, #FFFFFF 40%)' }"
|
|
|
v-for="(item, index) in instructorList" :key="item.id">
|
|
|
- <view class="i-info" @click="RouterUtils.to_page(`/pages/index/instructorDetail/index?id=${item.id}`)">
|
|
|
+ <view class="i-info"
|
|
|
+ @click="RouterUtils.to_page(`/pages/index/instructorDetail/index?id=${item.id}`)">
|
|
|
<view class="header" :style="{ background: index % 2 === 0 ? '#FFB8F9' : '#C8FF0C' }">
|
|
|
<image class="head-img" :src="item.avatar" mode=""></image>
|
|
|
<image class="head-tag" src="/src/static/badge.png" mode=""></image>
|
|
|
@@ -137,7 +138,8 @@
|
|
|
<view class="name-tag">
|
|
|
<view class="name">
|
|
|
<view>
|
|
|
- <text class="textHidden" style="width: 130rpx;text-align: center;">{{ item.name }}</text>
|
|
|
+ <text class="textHidden" style="width: 130rpx;text-align: center;">{{ item.name
|
|
|
+ }}</text>
|
|
|
</view>
|
|
|
<image v-if="index % 2 === 0" src="/src/static/name_bg.png" mode=""></image>
|
|
|
<image v-else src="/src/static/name_bg1.png" mode=""></image>
|
|
|
@@ -147,12 +149,12 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="ascription textHidden">{{ item.orgName }}</view>
|
|
|
- <view class="sign textHidden">教学理念:{{ item.teachingPhilosophy||'暂无'}}</view>
|
|
|
+ <view class="sign textHidden">教学理念:{{ item.teachingPhilosophy || '暂无' }}</view>
|
|
|
</view>
|
|
|
<view class="type-icon">
|
|
|
<!-- https://national-motion.oss-cn-beijing.aliyuncs.com/opt/upFiles/dxVfKxD7aH2397154f377d68fb59a71226c9c2f078a9_1758071827887.png -->
|
|
|
<!-- https://national-motion.oss-cn-beijing.aliyuncs.com/opt/upFiles/uv0VmclIvXiJc1081e0e33e281a8a436d24ec9ca87c3_1758071769194.png -->
|
|
|
- <image :src="index % 2 === 0?hotInstructorImg1:hotInstructorImg2" mode=""></image>
|
|
|
+ <image :src="index % 2 === 0 ? hotInstructorImg1 : hotInstructorImg2" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="i-data">
|
|
|
@@ -177,7 +179,8 @@
|
|
|
</view>
|
|
|
<view class="num">已售{{ course.count || '0' }}</view>
|
|
|
</view>
|
|
|
- <view class="more" @click="RouterUtils.to_page(`/pages/index/instructorDetail/index?id=${item.id}`)">更多课程
|
|
|
+ <view class="more"
|
|
|
+ @click="RouterUtils.to_page(`/pages/index/instructorDetail/index?id=${item.id}`)">更多课程
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -194,10 +197,10 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import zsLoading from '@/components/zzx-loading/zzx-loading.vue'
|
|
|
-import { ref, onMounted, computed} from 'vue'
|
|
|
-import { onLoad, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
|
|
|
+import { ref, onMounted, computed } from 'vue'
|
|
|
+import { onLoad, onPageScroll, onPullDownRefresh, onShareAppMessage } from '@dcloudio/uni-app';
|
|
|
import zsEmpty from '@/components/zs-empty/index.vue'
|
|
|
-import { TipsUtils,RouterUtils } from '@/utils/util';
|
|
|
+import { TipsUtils, RouterUtils } from '@/utils/util';
|
|
|
import { http } from '@/utils/http'
|
|
|
import { useCacheStore } from '@/stores/cache'
|
|
|
const cache = useCacheStore()
|
|
|
@@ -216,6 +219,12 @@ onLoad(() => {
|
|
|
get_location()
|
|
|
console.log(token.value, 'token是否刷新')
|
|
|
})
|
|
|
+onShareAppMessage(() => {
|
|
|
+ return {
|
|
|
+ title: '邀请您加入',
|
|
|
+ path: `pages/index/userList/index`
|
|
|
+ }
|
|
|
+})
|
|
|
onPullDownRefresh(() => {
|
|
|
get_indexInfo()
|
|
|
get_message()
|
|
|
@@ -282,6 +291,12 @@ const get_logininfo = (item: string) => {
|
|
|
cache.remove('COURSE_ID')
|
|
|
}, 500)
|
|
|
}
|
|
|
+ if (cache.get('PLACE_ID') && token.value) {
|
|
|
+ gotoPage(`/pages/index/submitOrder/index?id=${cache.get('PLACE_ID')}`)
|
|
|
+ setTimeout(() => {
|
|
|
+ cache.remove('PLACE_ID')
|
|
|
+ }, 500)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -793,6 +808,7 @@ const searchInfoBtn = () => {
|
|
|
align-items: center;
|
|
|
justify-content: space-around;
|
|
|
gap: 20rpx;
|
|
|
+
|
|
|
.header {
|
|
|
width: 150rpx;
|
|
|
height: 150rpx;
|
|
|
@@ -853,17 +869,19 @@ const searchInfoBtn = () => {
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
|
overflow: auto;
|
|
|
+
|
|
|
.tag {
|
|
|
font-size: 24rpx;
|
|
|
color: #AAAAAA;
|
|
|
flex-shrink: 0;
|
|
|
- margin-right: 10rpx;
|
|
|
+ margin-right: 10rpx;
|
|
|
|
|
|
&:last-child {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.tags-container::-webkit-scrollbar {
|
|
|
display: none;
|
|
|
}
|