|
@@ -30,8 +30,18 @@
|
|
|
<view class="btn" @click="jumpPage">立即查看</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view>
|
|
|
+ <view class="my-list">
|
|
|
+ <view class="my-list__item my-list__item--course" @click="go('course')">
|
|
|
+ <image src="../../static/mycourse.png"></image>
|
|
|
+ <text>我的网课</text>
|
|
|
+ </view>
|
|
|
+ <view class="my-list__item my-list__item--bank" @click="go('bank')">
|
|
|
+ <image src="../../static/mybank.png"></image>
|
|
|
+ <text>我的题库</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<!-- 日历-->
|
|
|
+ <!-- <view>
|
|
|
<view class="calendar_card">
|
|
|
<view class="card_box">
|
|
|
<u-row gutter="16">
|
|
@@ -87,7 +97,7 @@
|
|
|
</u-row>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<u-tabs class="tabs" :current="tabCurrent" @change="tab" :list="menu" :activeStyle="{fontSize:'36rpx'}" :inactiveStyle="{color:'#EAEEF1',fontSize:'30rpx'}" sticky></u-tabs>
|
|
|
<view class="course-list" v-show="tabCurrent==0">
|
|
|
<navigator hover-class="none" class="item" v-for="(item,index) in list1" :key="index" :url="'/pages3/course/detail?id='+item.goodsId">
|
|
@@ -346,6 +356,35 @@ export default {
|
|
|
jumpPage(){
|
|
|
this.$navTo.togo('/pages2/msg/index')
|
|
|
},
|
|
|
+ go(type) {
|
|
|
+ if (!this.$method.isLogin()) {
|
|
|
+ this.$navTo.togo('/pages/login/login');
|
|
|
+ } else {
|
|
|
+ if(type == 'course') {
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pages2/wd/class'
|
|
|
+ })
|
|
|
+ } else if(type == 'bank') {
|
|
|
+ this.$api.lockLockStatus({
|
|
|
+ action:'bank'
|
|
|
+ }).then(res => {
|
|
|
+ if(res.data.code == 200) { //有其他端在操作,不能学习
|
|
|
+ uni.showToast({
|
|
|
+ icon:'none',
|
|
|
+ title:res.data.msg,
|
|
|
+ duration:3000,
|
|
|
+ })
|
|
|
+ } else if(res.data.code == 500) { //可以学习
|
|
|
+
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pages2/wd/question_bank'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
//课程
|
|
|
courseList() {
|
|
|
var self = this;
|
|
@@ -940,6 +979,45 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .my-list {
|
|
|
+ margin-top:16rpx;
|
|
|
+ display:flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ &__item {
|
|
|
+ width:351rpx;
|
|
|
+ height:96rpx;
|
|
|
+ position:relative;
|
|
|
+ padding:25rpx 0 0 25rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
+
|
|
|
+ &--bank {
|
|
|
+ text {
|
|
|
+ position: relative;
|
|
|
+ z-index: 2;
|
|
|
+ color:#00998A;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ &--course {
|
|
|
+ text {
|
|
|
+ position: relative;
|
|
|
+ z-index: 2;
|
|
|
+ color:#0062D9;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ image {
|
|
|
+ width:100%;
|
|
|
+ height:100%;
|
|
|
+ left:0;
|
|
|
+ top:0;
|
|
|
+ position:absolute;
|
|
|
+ z-index: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.date_dot {
|
|
|
width: 6rpx;
|