更改随机名字

This commit is contained in:
GaoHao
2024-12-23 19:38:39 +08:00
parent b4be77303e
commit 6d72021f87
128 changed files with 11752 additions and 2333 deletions

View File

@@ -1,11 +1,11 @@
<template>
<view>
<view class="wrap">
<view class="head">
<view class="wrap-DEghTTorsp">
<view class="headDEghTTorsp">
<scroll-view scroll-x class="bg nav bg-white u-border-bottom">
<view class="flex text-center">
<view class="cu-item flex-sub text-bold" :class="item.name===TabCur?' cur ':'text-black'"
v-for="(item,index) in tabList" :key="index" :data-id="item.name" @tap="tabSelect">
v-for="(item,index) in tabList" :key="index" :data-id="item.name" @tap="tabSelectDEghTTorsp">
{{item.name}}
<view v-if="item.name===TabCur"
style="width: 64rpx;height: 8rpx;;background: #5074FF;margin: -20rpx auto;border-radius: 10rpx;">
@@ -14,11 +14,11 @@
</view>
</scroll-view>
</view>
<view class="headLen">
<view class="headLenDEghTTorsp">
<view v-if="TabCur === tabList[0].name">
<view class="page-box" v-if="latelyCourseList.length && userId">
<view class="orderView" v-for="(item, index) in latelyCourseList" :key="index"
@click="goCourseDet(item)">
<view class="page-box-DEghTTorsp" v-if="latelyCourseList.length && userId">
<view class="orderView-DEghTTorsp" v-for="(item, index) in latelyCourseList" :key="index"
@click="goCourseDetDEghTTorsp(item)">
<view class="item">
<view class="left">
<image :src="item.titleImg" mode="aspectFill"
@@ -43,9 +43,9 @@
<noLogin v-if="userId === ''"></noLogin>
</view>
<view v-if="TabCur == tabList[1].name">
<view class="page-box" v-if="selectCourseList.length && userId">
<view class="page-box-DEghTTorsp" v-if="selectCourseList.length && userId">
<view class="order" v-for="(item, index) in selectCourseList" :key="index"
@click="goCourseDet(item)">
@click="goCourseDetDEghTTorsp(item)">
<view class="item">
<view class="left">
<image :src="item.titleImg" mode="aspectFill"
@@ -70,8 +70,8 @@
<noLogin v-if="userId === ''"></noLogin>
</view>
<view v-if="TabCur == tabList[2].name">
<view class="page-box" v-if="collectList.length && userId">
<view class="orderView" v-for="(item,index) in collectList" :key='index' @click="goCourseDet(item)">
<view class="page-box-DEghTTorsp" v-if="collectList.length && userId">
<view class="orderView-DEghTTorsp" v-for="(item,index) in collectList" :key='index' @click="goCourseDetDEghTTorsp(item)">
<view class="item">
<view class="left">
<image :src="item.titleImg" mode="aspectFill"
@@ -154,13 +154,13 @@
// this.latelyCourseList = []
// this.selectCourseList = []
// this.collectList = []
this.getLatelyCourse()
this.getSelectCourse()
this.getCollectList()
this.getLatelyCourseDEghTTorsp()
this.getSelectCourseDEghTTorsp()
this.getCollectListDEghTTorsp()
}
},
methods: {
tabSelect(e) {
tabSelectDEghTTorsp(e) {
// console.log(e.currentTarget.dataset)
this.TabCur = e.currentTarget.dataset.id;
this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
@@ -169,21 +169,21 @@
switch (this.TabCur) {
case '最近学习': //最近学习
this.latelyCoursePage = 1
this.getLatelyCourse()
this.getLatelyCourseDEghTTorsp()
break;
case '已购资源': //已购资源
this.selectCoursePage = 1
this.getSelectCourse()
this.getSelectCourseDEghTTorsp()
break;
case '收藏资源': //已购资源
this.collectPage = 1;
this.getCollectList()
this.getCollectListDEghTTorsp()
break;
}
}
},
// 最近学习
getLatelyCourse() {
getLatelyCourseDEghTTorsp() {
uni.showLoading({
title: '加载中'
})
@@ -219,7 +219,7 @@
})
},
// 已购资源
getSelectCourse() {
getSelectCourseDEghTTorsp() {
uni.showLoading({
title: '加载中'
})
@@ -254,7 +254,7 @@
})
},
// 获取收藏信息
getCollectList() {
getCollectListDEghTTorsp() {
uni.showLoading({
title: '加载中'
})
@@ -284,15 +284,15 @@
})
},
// 查看资源详情
goCourseDet(e) {
goCourseDetDEghTTorsp(e) {
let userId = uni.getStorageSync('userId')
if (userId) {
uni.navigateTo({
url: '/pages/index/course/courseDet?id=' + e.courseId
url: '/pages/index/mggghRAnkh/courseDet?id=' + e.courseId
});
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
@@ -320,7 +320,7 @@
return
} else {
this.latelyCoursePage = this.latelyCoursePage + 1;
this.getLatelyCourse()
this.getLatelyCourseDEghTTorsp()
}
} else if (this.TabCur == '已购资源') { //已购资源
if (this.totalCount == this.selectCourseList.length) {
@@ -331,7 +331,7 @@
return
} else {
this.selectCoursePage = this.selectCoursePage + 1;
this.getSelectCourse()
this.getSelectCourseDEghTTorsp()
}
} else if (this.TabCur == '收藏资源') { //收藏资源
if (this.totalCount == this.collectList.length) {
@@ -342,21 +342,21 @@
return
} else {
this.collectPage = this.collectPage + 1;
this.getCollectList()
this.getCollectListDEghTTorsp()
}
}
// switch (this.TabCur) {
// case '最近学习': //最近学习
// this.latelyCoursePage = this.latelyCoursePage + 1;
// this.getLatelyCourse()
// this.getLatelyCourseDEghTTorsp()
// break;
// case '已购资源': //已购资源
// this.selectCoursePage = this.selectCoursePage + 1;
// this.getSelectCourse()
// this.getSelectCourseDEghTTorsp()
// break;
// case '收藏资源': //评论
// this.collectPage = this.collectPage + 1;
// this.getCollectList()
// this.getCollectListDEghTTorsp()
// break;
// }
}
@@ -373,7 +373,7 @@
return
} else {
this.latelyCoursePage = 1
this.getLatelyCourse()
this.getLatelyCourseDEghTTorsp()
}
} else if (this.TabCur == '已购资源') { //已购资源
if (this.totalCount == this.selectCourseList.length) {
@@ -384,7 +384,7 @@
return
} else {
this.selectCoursePage = 1
this.getSelectCourse()
this.getSelectCourseDEghTTorsp()
}
} else if (this.TabCur == '收藏资源') { //收藏资源
if (this.totalCount == this.collectList.length) {
@@ -395,24 +395,24 @@
return
} else {
this.collectPage = 1
this.getCollectList()
this.getCollectListDEghTTorsp()
}
}
// switch (this.TabCur) {
// case '最近学习': //最近学习
// this.latelyCoursePage = 1
// // this.latelyCourseList = []
// this.getLatelyCourse()
// this.getLatelyCourseDEghTTorsp()
// break;
// case '已购资源': //已购资源
// this.selectCoursePage = 1
// // this.selectCourseList = []
// this.getSelectCourse()
// this.getSelectCourseDEghTTorsp()
// break;
// case '收藏资源': //已购资源
// this.collectPage = 1;
// // this.collectList = []
// this.getCollectList()
// this.getCollectListDEghTTorsp()
// break;
// }
}
@@ -431,7 +431,7 @@
</style>
<style lang="scss" scoped>
.head {
.headDEghTTorsp {
position: fixed;
/* #ifdef H5 */
top: 0rpx;
@@ -444,7 +444,7 @@
z-index: 999;
}
.headLen {
.headLenDEghTTorsp {
/* #ifdef H5 */
margin-top: 80rpx;
/* #endif */
@@ -453,11 +453,11 @@
/* #endif */
}
.page-box {
.page-box-DEghTTorsp {
padding-bottom: 100px;
}
.orderView {
.orderView-DEghTTorsp {
width: 700rpx;
background-color: #ffffff;
margin: 20rpx auto;
@@ -509,106 +509,18 @@
text-overflow: ellipsis;
}
.buttom {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #E6E6E6;
.price {
font-size: 18px;
font-weight: bold;
color: #FF8211;
}
.number {
font-size: 14px;
color: #999999;
line-height: 24px;
}
}
.head1 {
position: relative;
left: -5px;
}
.head2 {
position: relative;
left: -10px;
}
.number {
line-height: 50rpx;
}
}
}
.total {
margin-top: 20rpx;
text-align: right;
font-size: 24rpx;
.total-price {
font-size: 32rpx;
}
}
.bottom {
display: flex;
margin-top: 40rpx;
padding: 0 10rpx;
justify-content: space-between;
align-items: center;
.btn {
line-height: 52rpx;
width: 160rpx;
border-radius: 26rpx;
border: 2rpx solid $u-border-color;
font-size: 26rpx;
text-align: center;
color: $u-type-info-dark;
}
.evaluate {
color: $u-type-warning-dark;
border-color: $u-type-warning-dark;
}
}
}
.centre {
text-align: center;
margin: 200rpx auto;
font-size: 32rpx;
image {
width: 360rpx;
height: 360rpx;
// margin-bottom: 20rpx;
margin: 0 auto 20rpx;
border: 1px dotted #000000;
}
.tips {
font-size: 40rpx;
color: #5074FF;
margin-top: 20rpx;
}
.btn {
margin: 80rpx auto;
width: 600rpx;
border-radius: 32rpx;
line-height: 90rpx;
color: #ffffff;
font-size: 34rpx;
background: #5074FF;
}
}
.wrap {
.wrap-DEghTTorsp {
display: flex;
flex-direction: column;
height: calc(100vh - var(--window-top));
@@ -616,13 +528,6 @@
}
.swiper-box {
flex: 1;
}
.swiper-item {
height: 100%;
}
.btn {
width: 150upx;