Commit d55f4bf6 authored by 罗超's avatar 罗超

2

parent 56cc89a1
...@@ -170,7 +170,6 @@ ...@@ -170,7 +170,6 @@
unionid: data.obj.unionid, unionid: data.obj.unionid,
}) })
if (res.Code==1) { if (res.Code==1) {
uni.hideLoading(); uni.hideLoading();
data.showLogin = true; //防止多次点击登录 data.showLogin = true; //防止多次点击登录
res.Data.Account = data.obj.phoneNum; res.Data.Account = data.obj.phoneNum;
...@@ -181,16 +180,18 @@ ...@@ -181,16 +180,18 @@
uni.showTabBar() uni.showTabBar()
}else{ }else{
data.showLogin = true; //防止多次点击登录 data.showLogin = true; //防止多次点击登录
data.showPhone = false data.showPhone = false
uni.showTabBar() if(currentRoute=="pages/index/index"){
uni.showTabBar()//手机授权弹窗出现 隐藏tabbar
}
uni.hideLoading(); uni.hideLoading();
if(res.Data.Error==-1){//如果没找到电话号码 就跳入登录 if(res.Data.Error==-1){//如果没找到电话号码 就跳入登录
setTimeout(() => { // setTimeout(() => {
uni.reLaunch({ // uni.reLaunch({
url: '/pages/login/login' // url: '/pages/login/login'
}); // });
}, 1000); // }, 1000);
} }
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<view class="wordDuration" style="visibility: hidden;"> <view class="wordDuration" style="visibility: hidden;">
预计用时10分钟 预计用时10分钟
</view> </view>
<view class="wordBtn" v-if="(pageData.Words.NextWord==0||!pageData.Words.NextWord)&&(pageData.Words.ReviewWord==0||!pageData.Words.ReviewWord)"> 暂无新词</view> <view style="text-align: center;font-size: 22rpx;color: #4C50E7;" v-if="(pageData.Words.NextWord==0||!pageData.Words.NextWord)&&(pageData.Words.ReviewWord==0||!pageData.Words.ReviewWord)"> 暂无新词</view>
<view class="wordBtn" v-else <view class="wordBtn" v-else
@click="jumpPage(`/pages/word/word?CourseId=${pageData.Words.CourseId||0}&&ChapterId=${pageData.Words.NextCourseNo||0}&&ReviewChapterId=${pageData.Words.ReviewCourseNo||0}&&ClassId=${pageData.Words.ClassId||0}`)"> @click="jumpPage(`/pages/word/word?CourseId=${pageData.Words.CourseId||0}&&ChapterId=${pageData.Words.NextCourseNo||0}&&ReviewChapterId=${pageData.Words.ReviewCourseNo||0}&&ClassId=${pageData.Words.ClassId||0}`)">
开始学习 开始学习
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
width: 100%; width: 100%;
height: 300rpx; height: 300rpx;
border-radius: 20rpx; border-radius: 20rpx;
margin-bottom: 50rpx; margin: 40rpx 0 60rpx 0;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
padding: 0 30rpx; padding: 0 30rpx;
...@@ -417,8 +417,8 @@ ...@@ -417,8 +417,8 @@
box-sizing: border-box; box-sizing: border-box;
/* height: 390rpx; */ /* height: 390rpx; */
background-color: #EBEBEB; background-color: #EBEBEB;
padding: 30rpx; padding: 60rpx 30rpx;
margin-bottom: 50rpx; margin-bottom: 80rpx;
} }
.wordTitle { .wordTitle {
...@@ -492,7 +492,7 @@ ...@@ -492,7 +492,7 @@
box-sizing: border-box; box-sizing: border-box;
padding: 10rpx; padding: 10rpx;
position: relative; position: relative;
margin-bottom: 50rpx; margin-bottom: 80rpx;
} }
.courseInnerBox { .courseInnerBox {
...@@ -574,14 +574,14 @@ ...@@ -574,14 +574,14 @@
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #666666; color: #666666;
margin-bottom: 15rpx; margin-bottom: 30rpx;
} }
.learningGardenTitle { .learningGardenTitle {
font-size: 46rpx; font-size: 46rpx;
font-weight: 800; font-weight: 800;
color: #111111; color: #111111;
margin-bottom: 35rpx; margin-bottom: 50rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -591,7 +591,7 @@ ...@@ -591,7 +591,7 @@
width: 680rpx; width: 680rpx;
height: 455rpx; height: 455rpx;
border-radius: 24rpx; border-radius: 24rpx;
margin-bottom: 30rpx; margin-bottom: 60rpx;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
......
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
.person .info { .person .info {
height: 160rpx; height: 160rpx;
padding: 0 35rpx; padding: 10rpx 35rpx;
} }
.person .info .left { .person .info .left {
...@@ -240,8 +240,8 @@ ...@@ -240,8 +240,8 @@
.person .orderInfo { .person .orderInfo {
height: 195rpx; height: 195rpx;
padding: 0 35rpx; padding: 10rpx 35rpx;
margin-bottom: 50rpx; margin-bottom: 70rpx;
} }
.person .orderItem { .person .orderItem {
...@@ -280,20 +280,20 @@ ...@@ -280,20 +280,20 @@
/* height: 535rpx; */ /* height: 535rpx; */
background-color: #ebebeb; background-color: #ebebeb;
padding: 35rpx; padding: 35rpx;
margin-bottom: 50rpx; margin-bottom: 70rpx;
} }
.courseInfo .title { .courseInfo .title {
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
color: #111111; color: #111111;
margin-bottom: 30rpx; margin-bottom: 40rpx;
} }
.statistic { .statistic {
/* height: 70rpx; */ /* height: 70rpx; */
display: flex; display: flex;
margin-bottom: 50rpx; margin-bottom: 70rpx;
} }
.statisticItem { .statisticItem {
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #666666; color: #666666;
margin-bottom: 20rpx; margin-bottom: 30rpx;
} }
.serviceItem { .serviceItem {
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
height: 185rpx; height: 185rpx;
background-color: #ffffff; background-color: #ffffff;
border-radius: 24rpx; border-radius: 24rpx;
margin-top: 30rpx; margin-top: 40rpx;
display: flex; display: flex;
/* justify-content: space-between; */ /* justify-content: space-between; */
align-items: center; align-items: center;
......
...@@ -36,14 +36,14 @@ ...@@ -36,14 +36,14 @@
} }
.box_t { .box_t {
padding: 18px; padding: 40rpx 36rpx;
} }
.box_tb { .box_tb {
height: 388rpx; height: 388rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 12px; border-radius: 24rpx;
padding: 15px; padding: 30rpx;
} }
.box_tb_c { .box_tb_c {
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-top: 5px; margin-top: 10rpx;
} }
.box_tb_b .btn { .box_tb_b .btn {
...@@ -150,14 +150,12 @@ ...@@ -150,14 +150,12 @@
} }
.examination { .examination {
margin-top: 25px; margin-top: 60rpx;
} }
.examination-box { .examination-box {
background: #FFF; background: #FFF;
margin: 40rpx 0;
margin: 10px 0;
} }
.examination-box-c { .examination-box-c {
...@@ -172,7 +170,7 @@ ...@@ -172,7 +170,7 @@
width: 200rpx; width: 200rpx;
/* height: 100%; */ /* height: 100%; */
display: inline-block; display: inline-block;
padding: 10px 0; padding: 40rpx 0;
box-sizing: border-box; box-sizing: border-box;
/* border-right: 1px solid #E2E2E2; */ /* border-right: 1px solid #E2E2E2; */
} }
...@@ -308,7 +306,7 @@ ...@@ -308,7 +306,7 @@
</view> </view>
<view class="box_tb_b"> <view class="box_tb_b">
<view style="font-size: 22rpx;color: #999999;visibility: hidden;">预计用时10分钟</view> <view style="font-size: 22rpx;color: #999999;visibility: hidden;">预计用时10分钟</view>
<view class="btn" <view style="text-align: center;font-size: 22rpx;color: #4C50E7;"
v-if="(InfoData.Words.NextWord==0||!InfoData.Words.NextWord)&&(InfoData.Words.ReviewWord==0||!InfoData.Words.ReviewWord)"> v-if="(InfoData.Words.NextWord==0||!InfoData.Words.NextWord)&&(InfoData.Words.ReviewWord==0||!InfoData.Words.ReviewWord)">
暂无新词</view> 暂无新词</view>
<view class="btn" @click="jumpStudyPage()" v-else>立即学习</view> <view class="btn" @click="jumpStudyPage()" v-else>立即学习</view>
...@@ -388,7 +386,7 @@ ...@@ -388,7 +386,7 @@
<view v-if="InfoData.ExamList.length>0"> <view v-if="InfoData.ExamList.length>0">
<view v-for="(x,y) in InfoData.ExamList" :key='y'> <view v-for="(x,y) in InfoData.ExamList" :key='y'>
<view class="examination-box"> <view class="examination-box">
<view style="padding: 20px;"> <view style="padding: 60rpx 40rpx;">
<view style="font-size: 36rpx;font-weight: bold;color: #111111;">{{x.PaperName}} <view style="font-size: 36rpx;font-weight: bold;color: #111111;">{{x.PaperName}}
</view> </view>
<!-- <view style="font-size: 24rpx;font-weight: 500;color: #999999;margin-top: 9px;"> <!-- <view style="font-size: 24rpx;font-weight: 500;color: #999999;margin-top: 9px;">
......
...@@ -41,7 +41,7 @@ let request = (param) => { ...@@ -41,7 +41,7 @@ let request = (param) => {
uni.showToast({ uni.showToast({
title: res.data.Message, title: res.data.Message,
duration: 2000, duration: 2000,
icon: "error", icon: "none",
success() { success() {
if(res.data.Code === 0 && res.data.Data.Error==-1){//如果电话号码没有 if(res.data.Code === 0 && res.data.Data.Error==-1){//如果电话号码没有
resolve(res.data) resolve(res.data)
......
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