|
@@ -28,8 +28,8 @@
|
|
|
<u-section title="课程预告" sub-title="查看更多" sub-color="#000000" @click="toPage('/pages/goOnEdu/index')"></u-section>
|
|
|
</template>
|
|
|
<template v-slot:body>
|
|
|
- <lg-swiper v-if="courseList.length!=0"
|
|
|
- :sildeItems="courseList"
|
|
|
+ <lg-swiper v-if="courseList.length!=0"
|
|
|
+ :sildeItems="courseList"
|
|
|
@swiperClick="swiperClick"
|
|
|
image="courseImg" title="courseName"></lg-swiper>
|
|
|
<u-empty text="暂无内容" mode="data" v-else></u-empty>
|
|
@@ -105,9 +105,9 @@
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
<!-- 与包裹页面所有内容的元素u-page同级,且在它的下方 -->
|
|
|
- <u-tabbar v-model="tabbarCurrentIndex"
|
|
|
- :list="tabbarList" icon-size="50"
|
|
|
- :active-color="tabbarActiveColor"
|
|
|
+ <u-tabbar v-model="tabbarCurrentIndex"
|
|
|
+ :list="tabbarList" icon-size="50"
|
|
|
+ :active-color="tabbarActiveColor"
|
|
|
:inactive-color="tabbarInactiveColor"></u-tabbar>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -151,7 +151,7 @@
|
|
|
const tabbarActiveColor = computed(() => {
|
|
|
return tabbarStore.activeColor
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
const backgroundColor = computed(() => {
|
|
|
return tabbarStore.backgroundColor
|
|
|
})
|
|
@@ -160,7 +160,7 @@
|
|
|
return tabbarStore.inactiveColor
|
|
|
})
|
|
|
const tabbarCurrentIndex = 0
|
|
|
-
|
|
|
+
|
|
|
const authStore = useAuthStore()
|
|
|
// 屏幕状态栏高度
|
|
|
const statusBarHeight = ref(0)
|
|
@@ -314,7 +314,7 @@
|
|
|
return
|
|
|
}
|
|
|
uni.navigateTo({
|
|
|
- url: "/pages/swiperDetail/swiperDetail?id=" + data.id
|
|
|
+ url: "/pages/swiperDetail/swiperDetail?id=" + data.id
|
|
|
})
|
|
|
}
|
|
|
const swiperClick = (data) => {
|
|
@@ -371,7 +371,7 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
function toReport(id, title){
|
|
|
if (!authStore.isAuthenticated) {
|
|
|
loginModal.value = true
|
|
@@ -381,7 +381,7 @@
|
|
|
url:"/pages/reportDetail/reportDetail?id="+id+"&title="+title
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
onReady(() => {
|
|
|
uni.getSystemInfo({
|
|
|
success(e) {
|
|
@@ -411,11 +411,11 @@
|
|
|
isMember.value = authStore.userInfo.isMember==='0'?false:true;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
.container {
|
|
|
width: 100vw;
|
|
|
// background-color: $uni-bg-color;
|
|
@@ -592,7 +592,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.item-button {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
@@ -600,48 +600,48 @@
|
|
|
font-size: $uni-font-size-2;
|
|
|
font-weight: bold;
|
|
|
margin-top: 10rpx;
|
|
|
-
|
|
|
+
|
|
|
.func-box {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.button {
|
|
|
text-align: center;
|
|
|
width: 130rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.price {
|
|
|
color: $uni-color-error;
|
|
|
font-size: $uni-title-font-size-3;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.not-member-price {
|
|
|
font-size: $uni-font-size-4;
|
|
|
color: $uni-text-color-grey;
|
|
|
text-align: end;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.buy {
|
|
|
padding: 6rpx 25rpx;
|
|
|
background-color: $uni-color-error;
|
|
|
border-radius: $uni-card-border-radius;
|
|
|
color: $uni-text-color-inverse;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.free {
|
|
|
padding: 6rpx 25rpx;
|
|
|
background-color: $uni-color-primary;
|
|
|
border-radius: $uni-card-border-radius;
|
|
|
color: $uni-text-color-inverse;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.member-free {
|
|
|
padding: 10rpx 20rpx;
|
|
|
@include backgroundImg('http://www.gzrea.org.cn:8543/icon/wxmp/bg-label.png');
|
|
|
color: $uni-text-color;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|