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