Commit 08a13f23 by cen

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 1f2a2939 30c9091f

3.63 KB | W: | H:

2.55 KB | W: | H:

assets/images/studyCenter/Required.png
assets/images/studyCenter/Required.png
assets/images/studyCenter/Required.png
assets/images/studyCenter/Required.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -326,7 +326,7 @@ export default {
}
.uni-list-cell {
margin-left: toRpx(57.2);
margin-left: toRpx(48);
}
.radio-name {
......
......@@ -173,7 +173,6 @@ export default {
}
},
created () {
// 监听自定义事件
uni.$on('pageBack', () => {
console.log('pageBack')
......@@ -271,21 +270,6 @@ export default {
// let jumpUrl
if (item.isTrack) {
this.$emit('closeTips')
// try {
// jumpUrl = await this.findBeiSenSSOToken()
// this.jumpUrl = jumpUrl
// } catch (error) {
// }
// if (jumpUrl) {
// this.addTrack()
// this.startTrack()
// }
} else {
// this.leaveTrack()
// this.trackId = 0
// clearInterval(this.trackInterval)
// this.trackInterval = null
}
this.$emit('update:tabIndex', index)
this.$emit("changeTab", {
......@@ -299,21 +283,10 @@ export default {
},
async haveCustomerAccess (val) {
const { shopMerchantId, sceneType: scene } = val
// const res = await uni.$api.customerApi.haveCustomerAccess({
// merchantId: shopMerchantId
// })
// if (res)
// this.tabs.push({
// label: "客户档案",
// icon: "customer-file",
// name: 'CustomerFile'
// })
// this.$store.state.user.haveCustomerAccess = res
uni.$api.customerApi.saleOpen({
merchantId: shopMerchantId,
scene
}).then(result => {
// uni.$storage.set('isSaleOpen', result)
if (result) {
this.hasPerson = true
this.activityTabVisible = scene !== 7
......@@ -427,7 +400,7 @@ export default {
const userInfo = uni.$storage.get('userInfo')
const res = uni.$storage.get('studyCenterPermission')
if(!res){
uni.$api.commonApi.getStudyCenterPermission({yqMerchantIdList}).then(res => {
uni.$api.commonApi.getStudyCenterPermission({}).then(res => {
uni.$storage.set('studyCenterPermission', res)
console.log(res,'res')
})
......
......@@ -10,7 +10,7 @@
<!-- 当前有 3 个学习任务待完成,请及时处理。
坚持学习助您能力提升! -->
<template v-else-if="type=='study'">
<image class="message-bg" :src="require('@//assets/images/common/study-center-bg.webp')"></image>
<image class="message-bg" :src="require('@//assets/images/common/study-center-bg.png')"></image>
<view class="text text-first study-title">学习提醒</view>
<view class="text study-text">当前有{{messageData.count}}个学习任务待完成,请及时处理。</view>
<view class="text study-text">坚持学习助您能力提升!</view>
......
......@@ -37,13 +37,13 @@
<image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)"
mode="aspectFit" />
</view>
<text class="rating-text">{{ item.totalStar / 2 }}</text>
<text class="rating-text">{{ item.totalStar }}</text>
</view>
<!-- 学习人数 -->
<view v-if="!simplified && item.studentCount !== undefined" class="student-count">
<view class="student-count">
<image class="student-icon" :src="require('@/assets/images/studyCenter/rs.png')" mode="aspectFit" />
<text class="student-text">{{ item.studentCount }}人已学习</text>
<text class="student-text">{{ item.learnTotal == null ? '-' : item.learnTotal }}人已学习</text>
</view>
</view>
</view>
......@@ -138,22 +138,15 @@ export default {
}
const res = await uni.$api.commonApi.getALlCourse(params)
console.log(res, '全部课程')
// 临时添加测试数据字段
const listWithTestData = res.list.map((item, index) => ({
...item,
required: index % 3 === 0, // 每3个课程第1个是必修
courseType: index % 2 === 0 ? 'video' : 'document', // 交替显示视频/文档
rating: (Math.random() * 2 + 3).toFixed(1), // 随机评分 3.0-5.0
studentCount: Math.floor(Math.random() * 1000) + 100 // 随机学习人数 100-1100
}))
if (pageNum == 1) {
this.recommendCourseList = listWithTestData
this.recommendCourseList = res.list
} else {
this.recommendCourseList = this.recommendCourseList.concat(listWithTestData)
this.recommendCourseList = this.recommendCourseList.concat(res.list)
}
uni.hideLoading()
this.total = res.total
uni.$emit('update:totalCourseCount', res.total)
this.nothing = res.length ? true : false
} catch (error) {
uni.showToast({
......@@ -235,7 +228,7 @@ export default {
top: 0;
width: toRpx(94);
height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0;
border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2;
}
......@@ -268,7 +261,7 @@ export default {
.recommend-course-item-img {
width: 100%;
height: toRpx(180);
border-radius: toRpx(16) toRpx(16) 0 0;
border-radius: toRpx(24) toRpx(24) 0 0;
}
.recommend-course-content {
......
......@@ -310,7 +310,7 @@ export default {
.task-item-img {
width: 100%;
height: toRpx(180);
border-radius: toRpx(16) toRpx(16) 0 0;
border-radius: toRpx(24) toRpx(24) 0 0;
}
.task-item-content {
......
......@@ -177,13 +177,10 @@ export default {
firstLeft: ['first', 'second'],
firstClass: ['short-first-nav', 'short-second-nav'],
isBeisen: false, // 是否是有北森权限,true 有,false无
isFlag: true, // 当前驻店人员所关联的门店非鸿蒙智行或非延保业务
isHmzx: false, // 当前驻店人员所关联的门店是否是鸿蒙智行
isYb: false, // 当前驻店人员所关联的门店是否是延保业务
showMyTask: true, // 是否显示我的任务图标
// 筛选相关数据
totalCourseCount: 123,
totalCourseCount: 0,
searchKeyword: '', // 搜索关键词
// 对比上月数据(临时模拟数据)
......@@ -230,20 +227,17 @@ export default {
}
},
created() {
// 监听自定义事件
uni.$on('backStudyCenter', () => {
console.log('backStudyCenter', this.$refs.myTask)
const { tabIndex, finishIndex } = this.$refs.myTask
if (tabIndex === 0) {
this.$refs.myTask.getCourseTaskPage(tabIndex)
} else {
this.$refs.myTask.getCourseTaskPage(tabIndex, finishIndex)
}
// 监听课程数量更新事件
uni.$on('update:totalCourseCount', (count) => {
this.totalCourseCount = count
})
},
beforeDestroy() {
// 移除事件监听
uni.$off('update:totalCourseCount')
},
async mounted() {
const beisenToken = uni.$storage.get('beisenToken')
const studyCenterPermission = uni.$storage.get('studyCenterPermission')
console.log(beisenToken, 'beisenToken')
this.isBeisen = !!beisenToken
if (!beisenToken) {
......@@ -252,9 +246,6 @@ export default {
{ tabName: '我的任务', num: () => '' }
]
}
this.isHmzx = studyCenterPermission?.hmzxAuth
this.isYb = studyCenterPermission?.authorizedBusinessList && studyCenterPermission.authorizedBusinessList.includes(1)
// 检查是否显示我的任务
this.showMyTask = await this.checkStudyCenterPermission()
......@@ -399,8 +390,7 @@ export default {
// 如果缓存中没有,调用接口获取
if (!studyCenterPermission) {
const yqMerchantIdList = userInfo?.subLoginUser?.yqMerchantIdList || []
const res = await uni.$api.commonApi.getStudyCenterPermission({ yqMerchantIdList })
const res = await uni.$api.commonApi.getStudyCenterPermission({})
studyCenterPermission = res
uni.$storage.set('studyCenterPermission', res)
}
......@@ -419,6 +409,15 @@ export default {
// tab切换
changeType(index, tagIndex) {
this.firstIndex = index
if (index == 0) {
// 重置搜索条件
this.searchKeyword = ''
this.currentSortValue = 0
this.$refs.orderScreen.clear()
this.searchParams = {
sortType: 0
}
}
}
}
}
......@@ -752,7 +751,7 @@ export default {
z-index: 0;
.tab-item {
width: toRpx(400);
width: toRpx(388);
text-align: center;
font-weight: 500;
font-size: toRpx(34);
......
......@@ -166,7 +166,7 @@
<StudyPopup
:show.sync="showStudyPopup"
title="开始您的学习之旅"
:topImage="require('@/assets/images/common/study-center-bg.webp')"
:topImage="require('@/assets/images/common/study-center-bg.png')"
:topImageWidth="848"
:topImageHeight="248"
>
......@@ -486,6 +486,9 @@ export default {
}
} catch (error) {
console.error('查询考试结果失败:', error)
this.examPopInfo.isExamLoading = false
this.examPopInfo.showError = true
this.examPopInfo.confirmText = '重新确认'
uni.showToast({
title: '未查询到考试结果,请重新确认',
icon: 'none'
......
......@@ -49,7 +49,7 @@
<text class="price">¥{{ i.goods.price }}</text>
</view>
<template v-if="i.goods.serveName">
<view class="base-tips">(包含{{i.goods.serveName}})</view>
<view class="base-tips">包含{{i.goods.serveName}}</view>
</template>
</template>
<template v-if="i.goodsFlag == 2">
......@@ -74,7 +74,7 @@
</template>
</view>
<template v-if="sceneType == 0 && i.multipleSpecificationsGoods.goods && i.multipleSpecificationsGoods.goods.serveName">
<view class="base-tips">(包含{{i.multipleSpecificationsGoods.goods.serveName}})</view>
<view class="base-tips">包含{{i.multipleSpecificationsGoods.goods.serveName}}</view>
</template>
<template v-if="i.multipleSpecificationsGoods.specificationList && i.multipleSpecificationsGoods.specificationList.length">
<view class="package-list">
......@@ -564,6 +564,7 @@ export default {
.price {
margin-left: auto;
flex-shrink: 0;
font-weight: 600;
}
.title {
......
......@@ -95,7 +95,7 @@ export default {
}
.card-title {
font-size: toRpx(36);
font-size: toRpx(32);
font-weight: 500;
letter-spacing: 0;
line-height: toRpx(40);
......@@ -106,7 +106,7 @@ export default {
.description-text {
width: toRpx(640);
font-size: toRpx(32);
font-size: toRpx(28);
font-weight: 400;
letter-spacing: 0;
line-height: toRpx(48);
......
......@@ -896,7 +896,7 @@ export default {
}
.info {
display: flex;
padding: toRpx(16) toRpx(32);
padding: 0 toRpx(32) toRpx(16);
flex-wrap: wrap;
&-item {
width: 25%;
......@@ -908,7 +908,10 @@ export default {
color: #777777;
font-size: toRpx(24);
line-height: toRpx(48);
padding: toRpx(8) 0;
padding: toRpx(24) 0 toRpx(8);
}
&-value {
padding-bottom: toRpx(8);
}
}
.block {
......
......@@ -175,7 +175,7 @@ export default {
top: 0;
width: toRpx(94);
height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0;
border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2;
}
......@@ -222,7 +222,8 @@ export default {
font-size: toRpx(30);
color: #292D33;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
......
......@@ -288,7 +288,7 @@ export default {
top: 0;
width: toRpx(94);
height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0;
border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2;
}
......@@ -326,6 +326,7 @@ export default {
.task-item-content {
padding: toRpx(32);
width: toRpx(530) !important;
}
.task-item-title {
......@@ -333,10 +334,14 @@ export default {
color: #292D33;
font-weight: 500;
margin-bottom: toRpx(24);
width: toRpx(340);
// width: toRpx(340);
display: -webkit-box;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.task-item-text {
......
......@@ -38,13 +38,13 @@
<image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)"
mode="aspectFit" />
</view>
<text class="rating-text">{{ item.totalStar / 2 }}</text>
<text class="rating-text">{{ item.totalStar }}</text>
</view>
<!-- 学习人数 -->
<view class="student-count">
<image class="student-icon" :src="require('@/assets/images/studyCenter/rs.png')" mode="aspectFit" />
<text class="student-text">{{ item.learnTotal }}人已学习</text>
<text class="student-text">{{ item.learnTotal == null ? '-' : item.learnTotal }}人已学习</text>
</view>
</view>
</view>
......@@ -228,7 +228,7 @@ export default {
top: 0;
width: toRpx(94);
height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0;
border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2;
}
......
......@@ -24,7 +24,7 @@
<text class="tab-text">{{ tab.label }}</text>
</view>
</view>
<view class="median-text">学习时长中位数:{{ rank.median }}小时</view>
<view class="median-text">学习时长中位数:{{ rank.median == null ? '-' : rank.median }}小时</view>
</view>
<view class="rank-list">
......@@ -179,7 +179,6 @@ export default {
width: toRpx(1084);
height: toRpx(1312);
border-radius: toRpx(32);
opacity: 1;
background: #ffffffb3;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
......@@ -191,9 +190,11 @@ export default {
margin-bottom: toRpx(8);
.panel-image {
width: toRpx(1084);
// width: toRpx(1084);
width: 100%;
height: toRpx(128);
display: block;
// background-color: #ecf2ff;
}
}
......
......@@ -103,6 +103,9 @@
this.getStudyBoard()
})
},
beforeDestroy() {
uni.$off('backStudyCenter')
},
mounted() {
const beisenToken = uni.$storage.get('beisenToken')
const studyCenterPermission = uni.$storage.get('studyCenterPermission')
......@@ -325,7 +328,7 @@
z-index: 0;
.tab-item {
width: toRpx(400);
width: toRpx(388);
text-align: center;
font-weight: 500;
font-size: toRpx(34);
......
......@@ -724,7 +724,6 @@ export default {
userInfo,
carBandList
} = this
console.log(carBandList,'===')
let { value } = e.detail
if (value) {
let { key, max } = i,
......@@ -1043,7 +1042,7 @@ export default {
}
.info {
display: flex;
padding: toRpx(16) toRpx(32);
padding: 0 toRpx(32) toRpx(16);
flex-wrap: wrap;
&-item {
width: 25%;
......@@ -1055,7 +1054,10 @@ export default {
color: #777777;
font-size: toRpx(24);
line-height: toRpx(48);
padding: toRpx(8) 0;
padding: toRpx(24) 0 toRpx(8);
}
&-value {
padding-bottom: toRpx(8);
}
}
.block {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!