Commit 149af23f authored by 林文清's avatar 林文清

学习首页-考试样式

parent 8e054c1c
<template> <template>
<view class="study"> <view class="study">
<u-navbar <u-navbar :is-back="false" background="{background: transparent}" :border-bottom="false" :is-fixed="false">
:is-back="false"
background="{background: transparent}"
:border-bottom="false"
:is-fixed="false"
>
<text class="title-view">学习</text> <text class="title-view">学习</text>
</u-navbar> </u-navbar>
<image :src="bannerImage" mode="" class="banner"></image> <image :src="bannerImage" mode="" class="banner"></image>
<view> <view>
<u-tabs-swiper <u-tabs-swiper bg-color="#F4F5F7" inactive-color="#999999" font-size="28" ref="uTabs" :list="tabs"
bg-color="#F4F5F7" :current="current" @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
inactive-color="#999999"
font-size="28"
ref="uTabs"
:list="tabs"
:current="current"
@change="tabsChange"
:is-scroll="false"
swiperWidth="750"
></u-tabs-swiper>
</view> </view>
<swiper <swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish"
:current="swiperCurrent" style="height: 755rpx;">
@transition="transition"
@animationfinish="animationfinish"
style="height: 755rpx"
>
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
<scroll-view <scroll-view scroll-y style="height:796rpx;width:100%;" @scrolltolower="onreachBottom">
scroll-y
style="height: 796rpx; width: 100%"
@scrolltolower="onreachBottom"
>
<view class="standard" @click="goToPrint"> <view class="standard" @click="goToPrint">
<text>充电桩交付规范</text> <text>充电桩交付规范</text>
<text>></text> <text>></text>
...@@ -41,20 +19,13 @@ ...@@ -41,20 +19,13 @@
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
<scroll-view <scroll-view scroll-y style="height:100%;width:100%;" @scrolltolower="onreachBottom">
scroll-y <view v-for="item in list" :key="item.id" class="notice" @click="bbb(item)">
style="height: 100%; width: 100%" <view class="n-head">
@scrolltolower="onreachBottom" 《{{item.title}}》
> </view>
<view
v-for="item in list"
:key="item.id"
class="notice"
@click="bbb(item)"
>
<view class="n-head"> 《{{ item.title }}》 </view>
<view class="news" v-html="item.body"> <view class="news" v-html="item.body">
{{ item.body }} {{item.body}}
</view> </view>
</view> </view>
<view v-shou="isLoadMore"> <view v-shou="isLoadMore">
...@@ -63,116 +34,68 @@ ...@@ -63,116 +34,68 @@
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
<scroll-view scroll-y style="height: 100%; width: 100%"> <scroll-view scroll-y style="height:100%;width:100%;">
<view class="lean"> <view class="lean">
<view class="top"> <view class="top">
<view class="title u-margin-top-10 u-margin-bottom-30">通用课程</view>
<view class="currency-class"> <view class="currency-class">
<view class="title">通用课程</view> <view class="class1" @click=ccc(courselist[0].id)>
<view <image class="img" :src="courselist[0].pic" mode=""></image>
class="class1"
@click="ccc(courselist[0].id)"
>
<image
class="img"
:src="courselist[0].pic"
mode=""
></image>
<view class="right"> <view class="right">
<view class=""> <view class="u-font-32 font-bold">
{{ courselist[0].title }} {{ courselist[0].title }}
</view> </view>
<view class="intro"> <view class="u-font-24">
{{ courselist[0].desc }} {{ courselist[0].desc }}
</view> </view>
<view <view class="line-percent">
class="" <u-line-progress active-color="#2979ff" :percent="courselist[0].percent"
style=" :show-percent="false">
display: flex;
justify-content: space-between;
"
>
<u-line-progress
active-color="#2979ff"
:percent="courselist[0].percent"
style="width: 54%"
>
</u-line-progress> </u-line-progress>
<text <text class="font-default-color"
v-text="courselist[0].status" :class="{'font-active-color':courselist[0].percent}"
></text> v-text="courselist[0].status"></text>
</view> </view>
</view> </view>
</view> </view>
<view <view class="class1 u-margin-top-40" @click=ccc(courselist[1].id)>
class="class1" <image class="img" :src="courselist[1].pic" mode=""></image>
@click="ccc(courselist[1].id)"
>
<image
class="img"
:src="courselist[1].pic"
mode=""
></image>
<view class="right"> <view class="right">
<view class=""> <view class="u-font-32 font-bold">
{{ courselist[1].title }} {{ courselist[1].title }}
</view> </view>
<view class=""> <view class="u-font-24">
{{ courselist[1].desc }} {{ courselist[1].desc }}
</view> </view>
<view <view class="line-percent">
class="" <u-line-progress active-color="#2979ff" :percent="courselist[1].percent"
style=" :show-percent="false">
display: flex;
justify-content: space-between;
"
>
<u-line-progress
active-color="#2979ff"
:percent="courselist[1].percent"
style="width: 54%"
>
</u-line-progress> </u-line-progress>
<text <text class="font-default-color"
v-text="courselist[1].status" :class="{'font-active-color':courselist[1].percent}"
></text> v-text="courselist[1].status"></text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="title u-margin-top-50 u-margin-bottom-30">技能课程</view>
<view class="currency-class"> <view class="currency-class">
<view class="title">技能课程</view> <view class="class1" @click=ccc(courselist[2].id)>
<view <image class="img" :src="courselist[2].pic" mode=""></image>
class="class1"
@click="ccc(courselist[2].id)"
>
<image
class="img"
:src="courselist[2].pic"
mode=""
></image>
<view class="right"> <view class="right">
<view class=""> <view class="u-font-32 font-bold">
{{ courselist[2].title }} {{ courselist[2].title }}
</view> </view>
<view class=""> <view class="u-font-24">
{{ courselist[2].desc }} {{ courselist[2].desc }}
</view> </view>
<view <view class="line-percent" style="display:flex;justify-content: space-between;">
class="" <u-line-progress active-color="#2979ff" :percent="courselist[2].percent"
style=" :show-percent="false">
display: flex;
justify-content: space-between;
"
>
<u-line-progress
active-color="#2979ff"
:percent="courselist[2].percent"
style="width: 54%"
>
</u-line-progress> </u-line-progress>
<text <text class="font-default-color"
v-text="courselist[2].status" :class="{'font-active-color':courselist[2].percent}"
></text> v-text="courselist[2].status"></text>
</view> </view>
</view> </view>
</view> </view>
...@@ -182,91 +105,55 @@ ...@@ -182,91 +105,55 @@
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
<swiper-item> <swiper-item>
<scroll-view <scroll-view scroll-y style="height:100%;width:100%;" @scrolltolower="onreachBottom">
scroll-y
style="height: 100%; width: 100%"
@scrolltolower="onreachBottom"
>
<view class="lean"> <view class="lean">
<view class="top"> <view class="top">
<view class="title u-margin-top-10 u-margin-bottom-30">通用认证</view>
<view class="currency-class"> <view class="currency-class">
<text class="title">通用认证</text>
<view class="class1" @click="aaa"> <view class="class1" @click="aaa">
<image <image class="img" src="../../static/logo.png" mode=""></image>
class="img"
src="../../static/logo.png"
mode=""
></image>
<view class="right"> <view class="right">
<view class=""> 服务规范 </view> <view class="u-font-32 font-bold">
<view class=""> 服务规范
</view>
<view class="u-font-24">
通过本认证,是接单的前提条件 通过本认证,是接单的前提条件
</view> </view>
<view <view class="" style="display:flex;justify-content: space-between;">
class="" <text style="color: #a69999;">随机20题,及格20题</text>
style="
display: flex;
justify-content: space-between;
"
>
<text style="color: #a69999"
>随机20题,及格20题</text
>
<text>通过</text> <text>通过</text>
</view> </view>
</view> </view>
</view> </view>
<view class="class1" @click="aaa"> <view class="class1 u-margin-top-40" @click="aaa">
<image <image class="img" src="../../static/logo.png" mode=""></image>
class="img"
src="../../static/logo.png"
mode=""
></image>
<view class="right"> <view class="right">
<view class=""> 接单操作 </view> <view class="u-font-32 font-bold">
<view class=""> 接单操作
</view>
<view class="u-font-24">
快速认证,是否具备接单操作能力 快速认证,是否具备接单操作能力
</view> </view>
<view <view class="" style="display:flex;justify-content: space-between;">
class="" <text style="color: #a69999">随机20题,及格16题</text>
style="
display: flex;
justify-content: space-between;
"
>
<text style="color: #a69999"
>随机20题,及格16题</text
>
<text>未通过</text> <text>未通过</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="title u-margin-top-50 u-margin-bottom-30">技能认证</view>
<view class="currency-class"> <view class="currency-class">
<text class="title">技能认证</text>
<view class="class1" @click="aaa"> <view class="class1" @click="aaa">
<image <image class="img" src="../../static/logo.png" mode=""></image>
class="img"
src="../../static/logo.png"
mode=""
></image>
<view class="right"> <view class="right">
<view class=""> <view class="u-font-32 font-bold">
从0-1学习充电桩安装服务 从0-1学习充电桩安装服务
</view> </view>
<view class=""> <view class="u-font-24">
通过本认证后,可接充电桩业务单 通过本认证后,可接充电桩业务单
</view> </view>
<view <view class="" style="display:flex;justify-content: space-between;">
class="" <text style="color: #a69999;">随机30题,及格25题</text>
style="
display: flex;
justify-content: space-between;
"
>
<text style="color: #a69999"
>随机30题,及格25题</text
>
<text>未通过</text> <text>未通过</text>
</view> </view>
</view> </view>
...@@ -281,430 +168,453 @@ ...@@ -281,430 +168,453 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
msg: "赣南吴彦祖", msg: "赣南吴彦祖",
tabs: [ tabs: [{
{ name: "交付规范",
name: "交付规范", },
}, {
{ name: "培训通知",
name: "培训通知", },
}, {
{ name: "在线学习",
name: "在线学习", },
}, {
{ name: "考核认证",
name: "考核认证", },
],
current: 0,
swiperCurrent: 0,
params: {
start: 0,
}, },
], list: [],
current: 0, courselist: [{
swiperCurrent: 0, title: '服务规范',
params: { desc: '为用户提供更好服务,自己赚更多钱',
start: 0, percent: 0,
status: '',
pic: process.uniEnv.qn_base_url + "guifan1@3x.png",
id: 173
},
{
title: '接单操作',
desc: '快速学习,使用APP 接单、抢单',
percent: 0,
status: '',
pic: process.uniEnv.qn_base_url + "guifan2@3x.png",
id: 173
},
{
title: '从0-1学习充电桩安装服务',
desc: '让你全面了解充电桩市场及服务规范',
percent: 0,
status: '',
pic: process.uniEnv.qn_base_url + "kecehng1@3x.png",
id: 173
}
],
loadStatus: "loading", //加载样式:loadMore-加载前样式,loading-加载加载中样式,nomore-没有数据样式
isLoadMore: false, //是否加载中
course_id: "course_id_=173",
exam: null,
};
},
onLoad() {
// this.getList();
// this.getCourseList();
// this.getUserExamInfo();
},
computed: {
bannerImage() {
return process.uniEnv.qn_base_url + "banner-xx@3x.png";
}, },
list: [],
courselist: [
{
title: "服务规范",
desc: "为用户提供更好服务,自己赚更多钱",
percent: 0,
status: "",
pic: process.uniEnv.qn_base_url + "guifan1@3x.png",
id: 173,
},
{
title: "接单操作",
desc: "快速学习,使用APP 接单、抢单",
percent: 0,
status: "",
pic: process.uniEnv.qn_base_url + "guifan2@3x.png",
id: 173,
},
{
title: "从0-1学习充电桩安装服务",
desc: "让你全面了解充电桩市场及服务规范",
percent: 0,
status: "",
pic: process.uniEnv.qn_base_url + "kecehng1@3x.png",
id: 173,
},
],
loadStatus: "loading", //加载样式:loadMore-加载前样式,loading-加载加载中样式,nomore-没有数据样式
isLoadMore: false, //是否加载中
course_id: "course_id_=173",
exam: null,
};
},
onLoad() {
// this.getList();
// this.getCourseList();
// this.getUserExamInfo();
},
computed: {
bannerImage() {
return process.uniEnv.qn_base_url + "banner-xx@3x.png";
}, },
}, methods: {
methods: { getList() {
getList() { this.$u.api
this.$u.api .getTrainingNoticeList(this.params)
.getTrainingNoticeList(this.params) .then((res) => {
.then((res) => { if (res.code == 200) {
if (res.code == 200) { if (res.data) {
if (res.data) { this.list = this.list.concat(res.data);
this.list = this.list.concat(res.data); if (res.data.length < 5) {
if (res.data.length < 5) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
//判断接口返回数据量小于请求数据量,则表示此为最后一页 this.isLoadMore = true;
this.loadStatus = "nomore";
} else {
this.isLoadMore = false;
}
} else {
this.isLoadMore = true; this.isLoadMore = true;
this.loadStatus = "nomore"; this.loadStatus = "nomore";
} else {
this.isLoadMore = false;
} }
} else { } else {
this.isLoadMore = true; //接口请求失败的处理
this.loadStatus = "nomore"; uni.showToast({
title: res.message,
icon: "none",
});
this.isLoadMore = false;
if (this.params.start > 0) {
this.page -= 5;
}
} }
} else { })
//接口请求失败的处理 .catch((err) => {
uni.showToast({ uni.showToast({
title: res.message, title: err,
icon: "none", icon: "none",
}); });
this.isLoadMore = false; this.isLoadMore = false;
if (this.params.start > 0) { if (this.params.start > 0) {
this.page -= 5; this.page -= 5;
} }
}
})
.catch((err) => {
uni.showToast({
title: err,
icon: "none",
}); });
this.isLoadMore = false; },
if (this.params.start > 0) { getTypeName(percent) {
this.page -= 5; if (percent == 0) {
} return '未开始';
}); } else if (percent == '100') {
}, return '已完成';
getTypeName(percent) { } else {
if (percent == 0) { return '继续';
return "未开始"; }
} else if (percent == "100") { },
return "已完成"; //在线学习通用课程信息
} else { getCourseList() {
return "继续"; let courseLength = this.courselist.length;
} for (let i = 0; i < courseLength; i++) {
}, let param = {
//在线学习通用课程信息 course_id: this.courselist[i].id
getCourseList() { };
let courseLength = this.courselist.length; this.$u.api
for (let i = 0; i < courseLength; i++) { .CourseList(param)
let param = { .then((res) => {
course_id: this.courselist[i].id, if (res.code == 200) {
}; if (res.data) {
this.$u.api res.data.learnedInfo.learnPercent *= 100;
.CourseList(param) this.courselist[i].status = this.getTypeName(res.data.learnedInfo.learnPercent);
.then((res) => { this.courselist[i].percent = res.data.learnedInfo.learnPercent;
if (res.code == 200) { }
if (res.data) {
this.courselist[i].status = this.getTypeName(
res.data.learnedInfo.learnPercent
);
this.courselist[i].percent =
res.data.learnedInfo.learnPercent;
} }
} })
}) .catch((err) => {
.catch((err) => { uni.showToast({
uni.showToast({ title: err,
title: err, icon: "none",
icon: "none", });
}); });
}); }
} },
}, //tabs通知swiper切换
//tabs通知swiper切换 tabsChange(index) {
tabsChange(index) { this.swiperCurrent = index;
this.swiperCurrent = index; switch (index) {
switch (index) { case 1:
case 1: this.params.start = 0;
this.params.start = 0; this.list = [];
this.list = []; this.getList();
this.getList(); break;
break; case 2:
case 2: this.getCourseList();
this.getCourseList(); console.log('重新加载学习进度');
console.log("重新加载学习进度"); break;
break; case 3:
case 3: this.getUserExamInfo();
this.getUserExamInfo(); break;
break; }
} },
}, //swiper-item左右移动,通知tabs的滑块跟随移动
//swiper-item左右移动,通知tabs的滑块跟随移动 transition(e) {
transition(e) { let dx = e.detail.dx;
let dx = e.detail.dx; this.$refs.uTabs.setDx(dx);
this.$refs.uTabs.setDx(dx); },
}, animationfinish(e) {
animationfinish(e) { let current = e.detail.current;
let current = e.detail.current; this.$refs.uTabs.setFinishCurrent(current);
this.$refs.uTabs.setFinishCurrent(current); this.swiperCurrent = current;
this.swiperCurrent = current; this.current = current;
this.current = current; },
}, //跳转到assessment页面
//跳转到assessment页面 aaa() {
aaa() { var id = this.exam.id;
var id = this.exam.id; if (this.exam.examStatus == 0) {
if (this.exam.examStatus == 0) { console.log("这是个标识符", this.exam.id);
console.log("这是个标识符", this.exam.id);
wx.navigateTo({ wx.navigateTo({
url: "./answer?userExamId=" + id, url: "./answer?userExamId=" + id,
}); });
} else if (this.exam.examStatus == 1) { } else if (this.exam.examStatus == 1) {
wx.navigateTo({ wx.navigateTo({
url: "./result?userExamId=" + id, url: "./result?userExamId=" + id,
}); });
} else if (this.exam.examStatus == 2) { } else if (this.exam.examStatus == 2) {
wx.navigateTo({ wx.navigateTo({
url: "./assessment", url: "./assessment",
});
}
},
//跳转到课程介绍
ccc(id) {
uni.navigateTo({
url: "./curriculum?course_id=" + id,
}); });
} },
}, //跳转到
//跳转到课程介绍 bbb(e) {
ccc(id) { var news = {
uni.navigateTo({ body: e.body,
url: "./curriculum?course_id=" + id, id: e.id,
}); level: e.level,
}, title: e.title,
//跳转到 };
bbb(e) { // console.log(news)
var news = {
body: e.body,
id: e.id,
level: e.level,
title: e.title,
};
// console.log(news)
uni.navigateTo({ uni.navigateTo({
url: "./news-details", url: "./news-details",
}); });
setTimeout(() => { setTimeout(() => {
uni.$emit("news", news), console.log("发送数据"); uni.$emit("news", news), console.log("发送数据");
}, 500); }, 500);
console.log("跳转结束11111111"); console.log("跳转结束11111111");
}, },
//scroll-view到底部加载更多 //scroll-view到底部加载更多
onreachBottom() { onreachBottom() {
console.log("上拉触底函数"); console.log("上拉触底函数");
//上拉触底函数 //上拉触底函数
if (!this.isLoadMore) { if (!this.isLoadMore) {
this.isLoadMore = true; this.isLoadMore = true;
this.params.start += 5; this.params.start += 5;
if (this.loadStatus !== "nomore") { if (this.loadStatus !== "nomore") {
this.getList(); this.getList();
}
} }
} },
}, //跳转到拍照小程序首页
//跳转到拍照小程序首页 goToPrint() {
goToPrint() { console.log("111111");
console.log("111111"); uni.navigateToMiniProgram({
uni.navigateToMiniProgram({ appId: "wxd1d6eede324b0465",
appId: "wxd1d6eede324b0465", success(res) {
success(res) { //打开成功
//打开成功 console.log("success", res);
console.log("success", res); },
}, fail(err) {
fail(err) { console.log("err", err);
console.log("err", err); },
}, });
}); },
}, //考核认证,通用认证,考试通过or未通过查询接口请求
//考核认证,通用认证,考试通过or未通过查询接口请求 getUserExamInfo() {
getUserExamInfo() { uni.showLoading({
uni.showLoading({ title: "请稍候",
title: "请稍候", });
});
let that = this; let that = this;
uni.request({ let token = uni.getStorageSync('lifeData').vuex_token;
url: uni.request({
"http://192.168.1.22" + url: "http://192.168.1.22" +
"/wxh-worker-rest/rest/exam" + "/wxh-worker-rest/rest/exam" +
"/serviceRule/userExamInfo/" + "/serviceRule/userExamInfo/" +
that.vuex_token + token +
"?examId=" + "?examId=" +
2, 2,
method: "POST", method: "POST",
data: { data: {
//examId:this.examId, //examId:this.examId,
}, },
header: { header: {
"Content-Type": "application/x-www-form-urlencoded", "Content-Type": "application/x-www-form-urlencoded",
}, },
success: (res) => { success: (res) => {
console.log(res.data); console.log(res.data);
uni.hideLoading(); uni.hideLoading();
if (!res.data) { if (!res.data) {
return;
}
if (res.data.code == 401 || res.data.code == 403) {
// uni.navigateTo({
// url: '/pages/login/wxlogin'
// })
// return
console.log("洪塘张学友");
}
if (res.data.code == 200) {
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
that.exam = res.data.data;
console.log(that.exam);
if (res.data.data.examStatus == 2) {
that.applyExam();
return; return;
} }
if (res.data.data.examStatus == 1) { if (res.data.code == 401 || res.data.code == 403) {
console.log("111111111111111111111111111"); // uni.navigateTo({
that.isComplete = true; // url: '/pages/login/wxlogin'
that.examScore = res.data.data.examScore; // })
that.postResult(); // return
return; console.log("洪塘张学友");
} }
if (res.data.data.examStatus == 0) { if (res.data.code == 200) {
that.userExamId = res.data.data.id; //examStatus 用户考试状态 0考试中 1考试完成 2未参与
that.getNext(); that.exam = res.data.data;
console.log(that.exam);
if (res.data.data.examStatus == 2) {
that.applyExam();
return;
}
if (res.data.data.examStatus == 1) {
console.log("111111111111111111111111111");
that.isComplete = true;
that.examScore = res.data.data.examScore;
that.postResult();
return;
}
if (res.data.data.examStatus == 0) {
that.userExamId = res.data.data.id;
that.getNext();
}
} else {
uni.showToast({
icon: "none",
title: res.data.message,
});
} }
} else { },
fail: (e) => {
uni.hideLoading();
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: res.data.message, title: "获取考试信息失败",
}); });
} },
}, });
fail: (e) => { },
uni.hideLoading();
uni.showToast({
icon: "none",
title: "获取考试信息失败",
});
},
});
}, },
}, };
};
</script> </script>
<style> <style>
.study { .study {
height: 100vh; height: 100vh;
background-color: #f4f5f7; background-color: #f4f5f7;
padding: 0rpx 30rpx 0 30rpx; padding: 0rpx 30rpx 0 30rpx;
} }
.title-view {
color: #333333;
font-weight: bold;
font-size: 40rpx;
}
.banner {
width: 690rpx;
height: 240rpx;
margin-top: 10rpx;
}
/* //交付规范 */
.standard {
width: 656rpx;
display: flex;
justify-content: space-between;
border-bottom: 1rpx solid #82848a;
padding: 0 34rpx;
margin: 72rpx auto;
}
/* //培训通知 */
.notice {
border: #808080 solid 2rpx;
width: 100%;
height: 400rpx;
margin-top: 36rpx;
overflow: hidden;
}
.n-head {
text-align: center;
margin: 32rpx 0;
}
.title-view { .news {}
color: #333333;
font-weight: bold;
font-size: 40rpx;
}
.banner { /* //在线学习 */
width: 690rpx; .currency-class {
height: 240rpx; width: 100%;
margin-top: 10rpx; /* height: 340rpx; */
} background: #ffffff;
padding: 30rpx;
/* margin-bottom: 11px; */
border-radius: 12rpx;
}
/* //交付规范 */ .title {
.standard { font-size: 32rpx;
width: 656rpx; font-weight: bold;
display: flex; font-family: PingFang-SC-Bold, PingFang-SC;
justify-content: space-between; }
border-bottom: 1rpx solid #82848a;
padding: 0 34rpx;
margin: 72rpx auto;
}
/* //培训通知 */ .class1 {
.notice { display: -webkit-box;
border: #808080 solid 2rpx; display: -webkit-flex;
width: 100%; display: flex;
height: 400rpx; -webkit-box-pack: justify;
margin-top: 36rpx; -webkit-justify-content: space-between;
overflow: hidden; justify-content: space-between;
} }
.n-head { .img {
text-align: center; width: 160rpx;
margin: 32rpx 0; height: 120rpx;
} /* display: block; */
/* margin-right: 0rpx; */
}
.news { .right {
} width: 434rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* //在线学习 */ .intro {
.currency-class { color: #9999a6;
width: 100%; }
background: #ffffff;
padding: 18rpx;
margin-bottom: 11px;
border-radius: 12rpx;
}
.title { .tab {
font-size: 32rpx; background: #fff;
font-weight: bold; height: 82rpx;
font-family: PingFang-SC-Bold, PingFang-SC; margin: 0 0;
} }
.class1 { .text {
display: flex; margin: 0 40rpx;
justify-content: space-between; line-height: 82rpx;
padding-top: 22rpx; color: #667eb5;
margin-top: 28rpx; }
border-top: 1rpx solid #808080;
}
.img { .content {
width: 201rpx; margin: 5px 0;
height: 201rpx; height: 485rpx;
display: block; background: #fff;
margin-right: 0rpx; }
}
.right { swiper {
width: 428rpx; height: 691rpx;
display: flex; }
flex-direction: column;
justify-content: space-between;
}
.intro { .line-percent {
color: #9999a6; display: flex;
} justify-content: space-between;
line-height: 24rpx;
font-size: 24rpx;
color: #999999;
}
.tab { .u-progress {
background: #fff; width: 280rpx !important;
height: 82rpx; height: 12rpx !important;
margin: 0 0; background-color: #ececec;
} }
.text { .font-bold {
margin: 0 40rpx; font-weight: bold;
line-height: 82rpx; }
color: #667eb5;
}
.content { .font-default-color {
margin: 5px 0; color: #999999;
height: 485rpx; }
background: #fff;
}
swiper { .font-active-color {
height: 691rpx; color: #2272FF;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment