This commit is contained in:
xyc 2025-04-17 10:02:46 +08:00
parent f4e040e0a8
commit b0e2af62e3
4 changed files with 168 additions and 157 deletions

View File

@ -7,7 +7,7 @@
</view>
<view class="group_4 flex-col">
<image style="width: 100%; height: 100%;" referrerpolicy="no-referrer"
:src="imagesUrl + '/' + schoolInfo.photo" />
:src="imagesUrl + '/' + schoolInfo.photo" v-if="schoolInfo.photo" />
<!-- src="/static/lanhu_jiaxiaoxiangqing/FigmaDDSSlicePNGcd54efcc9a8c89af0ef99c8275464828.png" -->
</view>
<view class="group_5 flex-col">
@ -276,7 +276,9 @@
//
const sortedList = res.data.records.sort((a, b) => b.seniority - a.seniority);
const coachId = auth.getCoachId()
const staffType = auth.getStaffType()
console.log(coachId, 'coachId');
if (coachId && staffType === '02') {
const coach = res.data.records.find(item => item.userId == coachId)
console.log(coach, 'coach');
if (coach) {
@ -286,6 +288,11 @@
this.schoolCoachList = sortedList.slice(0, 3);
this.total = res.data.total;
}
} else {
//
this.schoolCoachList = sortedList.slice(0, 3);
this.total = res.data.total;
}
}).catch(e => {
console.log(e);
})

View File

@ -158,7 +158,7 @@
setTimeout(function() {
//
uni.navigateTo({
uni.switchTab({
url: '/newPages/newIndex/index'
})
}, 2600); // 30003

View File

@ -6,10 +6,11 @@
</headers>
</view>
<view class="group_3 flex-col">
<image
style="width: 100%; height: 100%;"
:src="imagesUrl + '/' + courseDetails.photo"
/>
<image style="width: 100%; height: 100%;" :src="imagesUrl + '/' + courseDetails.photo"
v-if="courseDetails.photo" />
<u-empty mode="data" text='暂无图片' v-else>
</u-empty>
</view>
<view class="group_4 flex-col">
<view class="section_2 flex-row justify-between">
@ -39,20 +40,14 @@
<u-parse :content="courseDetails.remark"></u-parse>
</view>
<view class="u-content" v-else>
<u-empty
mode="list"
text="该课程没有简介..."
>
<u-empty mode="list" text="该课程没有简介...">
</u-empty>
</view>
</view>
<view class="group_6 flex-row">
<view class="image-text_1 flex-col justify-between" @click="zxkf()">
<image
class="label_2"
referrerpolicy="no-referrer"
src="/static/lanhu_kechengxiangqing/FigmaDDSSlicePNG283b4603035848d5dcc7209d10653327.png"
/>
<image class="label_2" referrerpolicy="no-referrer"
src="/static/lanhu_kechengxiangqing/FigmaDDSSlicePNG283b4603035848d5dcc7209d10653327.png" />
<text class="text-group_1">咨询客服</text>
</view>
<view class="text-wrapper_4 flex-col" @click="goRegisterNow()">
@ -64,11 +59,17 @@
<script>
import request from "@/utils/request";
import config from "@/config.js"
import {getLocalUserInfo, getUserInfo, getToken} from "@/utils/auth";
import {
getLocalUserInfo,
getUserInfo,
getToken
} from "@/utils/auth";
import headers from "@/components/header/headers.vue";
export default {
components: {headers},
components: {
headers
},
data() {
return {
courseId: undefined,
@ -150,6 +151,7 @@ export default {
<style lang='scss'>
@import '../common/common.scss';
@import './assets/style/index.rpx.scss';
.u-content {
margin-top: 20rpx;
padding: 10rpx;

View File

@ -4,7 +4,7 @@
<!-- #ifdef MP-WEIXIN -->
<!-- #ifdef MP-WEIXIN -->
<headers :titles="titles">
<uni-icons @click="goback()" type="left" color="#000000" size="22px"></uni-icons>
<uni-icons type="left" color="#000000" size="22px"></uni-icons>
</headers>
<!-- #endif -->
<!-- #endif -->
@ -248,8 +248,10 @@
this.tenantId = option.tenantId
this.userinfo = getLocalUserInfo()
this.localStaffType = getStaffType()
if (this.localStaffType === '02') {
this.localCoachId = getCoachId()
console.log('localCoachId', this.localCoachId);
}
},
onShow() {
this.getListAll()