Commit 985f4c6b authored by 罗超's avatar 罗超

1

parent d5d61012
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
/> />
</view> </view>
<view class="top-right flex_grow"> <view class="top-right flex_grow">
<view class="course-name"> {{ CourseName }} </view> <view class="course-name one_line"> {{ CourseName }} </view>
<view class="section-name"> {{ data.length }}个合同 </view> <view class="section-name one_line"> {{ data.length }}个合同 </view>
</view> </view>
</view> </view>
<van-empty description="暂无数据" v-if="data.length === 0" /> <van-empty description="暂无数据" v-if="data.length === 0" />
...@@ -125,6 +125,7 @@ export default { ...@@ -125,6 +125,7 @@ export default {
height: 100%; height: 100%;
} }
.course-name { .course-name {
box-sizing: border-box;
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
......
...@@ -204,9 +204,9 @@ export default { ...@@ -204,9 +204,9 @@ export default {
checkboxList: [], checkboxList: [],
checkboxListAll: [], checkboxListAll: [],
fileList: [ fileList: [
{ // {
url: "https://img.yzcdn.cn/vant/leaf.jpg", // url: "https://img.yzcdn.cn/vant/leaf.jpg",
}, // },
], ],
totalLeaveTimes: 0, totalLeaveTimes: 0,
leaveMsg: { leaveMsg: {
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
/> />
</view> </view>
<view class="top-right flex_grow"> <view class="top-right flex_grow">
<view class="course-name"> {{ CourseName }} </view> <view class="course-name one_line"> {{ CourseName }} </view>
<view class="section-name"> {{ data.length }}个章节 </view> <view class="section-name one_line"> {{ data.length }}个章节 </view>
</view> </view>
</view> </view>
<van-empty description="暂无课程" v-if="data.length === 0" /> <van-empty description="暂无课程" v-if="data.length === 0" />
...@@ -136,6 +136,7 @@ export default { ...@@ -136,6 +136,7 @@ export default {
height: 100%; height: 100%;
} }
.course-name { .course-name {
box-sizing: border-box;
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
...@@ -184,8 +185,9 @@ export default { ...@@ -184,8 +185,9 @@ export default {
background-color: #f7f8fc; background-color: #f7f8fc;
border-radius: 6rpx; border-radius: 6rpx;
margin-top: 20rpx; margin-top: 20rpx;
/* margin-left: 46rpx; */
padding-left: 30rpx; padding-left: 30rpx;
padding-right: 30rpx;
box-sizing: border-box;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
......
<template> <template>
<view> <view class="page-box">
<van-nav-bar :border="fasle" fixed :z-index="99"> <van-nav-bar :border="fasle" fixed :z-index="99">
<view slot="left" class="page-title" title="shouye">首页</view> <view slot="left" class="page-title" title="shouye">首页</view>
</van-nav-bar> </van-nav-bar>
...@@ -97,12 +97,11 @@ ...@@ -97,12 +97,11 @@
</view> </view>
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
<view class="mytest flex">
<view v-if="indexData.paperList.length == 0" <view v-if="indexData.paperList.length == 0"
><van-empty description="暂无数据" ><van-empty description="暂无数据"
/></view> /></view>
<view class="mytest flex" v-if="indexData.paperList.length > 0">
<view <view
v-if="indexData.paperList.length > 0"
v-for="(item, index) in indexData.paperList" v-for="(item, index) in indexData.paperList"
:key="index" :key="index"
class="test-item no_shrink" class="test-item no_shrink"
...@@ -287,9 +286,6 @@ export default { ...@@ -287,9 +286,6 @@ export default {
title: "首页", title: "首页",
}); });
}, },
onShow() {
// console.log("index Show");
},
}; };
</script> </script>
...@@ -297,7 +293,6 @@ export default { ...@@ -297,7 +293,6 @@ export default {
.con { .con {
box-sizing: border-box; box-sizing: border-box;
padding: 100rpx 30rpx 50rpx; padding: 100rpx 30rpx 50rpx;
/* padding-top: calc(140rpx + env(safe-area-inset-top)); */
} }
.page-title { .page-title {
font-size: 44rpx; font-size: 44rpx;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</van-cell-group> </van-cell-group>
</view> </view>
<van-button block custom-class="loginBtn" @click="login">登录</van-button> <van-button block custom-class="loginBtn" @click="login">登录</van-button>
<view class="auth" @click="authLogin"> 授权手机号一键登录 </view> <!-- <view class="auth" @click="authLogin"> 授权手机号一键登录 </view> -->
<van-toast id="van-toast" /> <van-toast id="van-toast" />
</view> </view>
</template> </template>
...@@ -130,9 +130,9 @@ export default { ...@@ -130,9 +130,9 @@ export default {
res.Data.Account = msg.Account; res.Data.Account = msg.Account;
// uni.clearStorage(); // uni.clearStorage();
try { try {
uni.setStorageSync('userInfo', res.Data); uni.setStorageSync("userInfo", res.Data);
} catch (e) { } catch (e) {
console.log(e,'eeeee'); console.log(e, "eeeee");
} }
Toast.success("登录成功"); Toast.success("登录成功");
setTimeout(() => { setTimeout(() => {
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
/> />
</view> </view>
<view class="top-right flex_grow"> <view class="top-right flex_grow">
<view class="course-name"> {{ CourseName }} </view> <view class="course-name one_line"> {{ CourseName }} </view>
<view class="section-name"> {{ data.length }}个章节 </view> <view class="section-name one_line"> {{ data.length }}个章节 </view>
</view> </view>
</view> </view>
<van-empty description="暂无数据" v-if="data.length === 0" /> <van-empty description="暂无数据" v-if="data.length === 0" />
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<view <view
v-for="(_item, _index) in item.ChapterTreeInfo.ChildList" v-for="(_item, _index) in item.ChapterTreeInfo.ChildList"
:key="_index" :key="_index"
class="course-list" class="course-list one_line"
> >
{{ _item.ChapterName }} {{ _item.ChapterName }}
</view> </view>
...@@ -69,20 +69,7 @@ export default { ...@@ -69,20 +69,7 @@ export default {
msg: { msg: {
ClassId: 0, ClassId: 0,
}, },
data: [ data: [],
{
name: "第一次课",
coursetime: "4课时",
children: [
{
name: "4.1 第一课活动篇****你好",
},
{
name: "4.2 第一课理解篇****平假名",
},
],
},
],
CourseName: "", CourseName: "",
}); });
let methods = { let methods = {
...@@ -147,6 +134,7 @@ export default { ...@@ -147,6 +134,7 @@ export default {
height: 100%; height: 100%;
} }
.course-name { .course-name {
box-sizing: border-box;
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
...@@ -195,8 +183,9 @@ export default { ...@@ -195,8 +183,9 @@ export default {
background-color: #f7f8fc; background-color: #f7f8fc;
border-radius: 6rpx; border-radius: 6rpx;
margin-top: 20rpx; margin-top: 20rpx;
/* margin-left: 46rpx; */
padding-left: 30rpx; padding-left: 30rpx;
padding-right: 30rpx;
box-sizing: border-box;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
/> />
</view> </view>
<view class="top-right flex_grow"> <view class="top-right flex_grow">
<view class="course-name"> {{ CourseName }} </view> <view class="course-name one_line"> {{ CourseName }} </view>
<view class="section-name"> {{ SurplusHours }}课时 </view> <view class="section-name one_line"> {{ SurplusHours }}课时 </view>
</view> </view>
</view> </view>
<van-empty description="暂无数据" v-if="data.length === 0" /> <van-empty description="暂无数据" v-if="data.length === 0" />
...@@ -153,6 +153,7 @@ export default { ...@@ -153,6 +153,7 @@ export default {
height: 100%; height: 100%;
} }
.course-name { .course-name {
box-sizing: border-box;
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
...@@ -190,6 +191,8 @@ export default { ...@@ -190,6 +191,8 @@ export default {
border-radius: 6rpx; border-radius: 6rpx;
margin-top: 20rpx; margin-top: 20rpx;
padding-left: 30rpx; padding-left: 30rpx;
padding-right: 30rpx;
box-sizing: border-box;
font-size: 22rpx; font-size: 22rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
......
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