Commit a0eddf62 authored by liudong1993's avatar liudong1993

Merge branch 'master' of http://gitlab.oytour.com/youjie/thinkapp

parents b7c63260 949be250
...@@ -18,7 +18,7 @@ export function login(data) { ...@@ -18,7 +18,7 @@ export function login(data) {
*/ */
export function parsePhone(data) { export function parsePhone(data) {
return request({ return request({
url: '/AppletLogin/GetGuestWeiXinMobile', url: '/Login/LoginByAuthorize',
method: 'post', method: 'post',
data data
}) })
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
let methods = { let methods = {
JobDetails() { JobDetails() {
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/workSituation?tabNme=' + '作业情况' url: '/pages/index/jobDetails?tabNme=' + '作业情况'
}); });
} }
} }
......
...@@ -93,6 +93,11 @@ ...@@ -93,6 +93,11 @@
this.$parent.getStuHomeWorkAndExam(item.courseId); this.$parent.getStuHomeWorkAndExam(item.courseId);
this.currentCourse = item; this.currentCourse = item;
data.showItems = false data.showItems = false
setTimeout(()=>{
uni.reLaunch({
url: '/pages/index/workSituation?tabNme=' + '作业情况' +'&courseId=' + item.courseId
});
},500)
}, },
//计算完成百分比 //计算完成百分比
calcPercentage(item) { calcPercentage(item) {
...@@ -160,6 +165,8 @@ ...@@ -160,6 +165,8 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
margin-bottom: 20rpx; margin-bottom: 20rpx;
height: 80rpx;
overflow: hidden;
} }
.course-card .course-item .course-progress { .course-card .course-item .course-progress {
......
...@@ -278,6 +278,8 @@ ...@@ -278,6 +278,8 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
margin-bottom: 20rpx; margin-bottom: 20rpx;
height: 80rpx;
overflow: hidden;
} }
.course-card .course-item .course-progress { .course-card .course-item .course-progress {
......
<template> <template>
<view class="examList-box"> <view class="examList-box">
<view class="examList-import" @click="ImportInformation"> <view class="examList-import" @click.stop="ImportInformation">
<van-icon name="plus" /> <van-icon name="plus" />
<text>导入考试信息</text> <text>导入考试信息</text>
</view> </view>
<view class="examList activeOne" v-for="(item,index) in dataList" :key="index"> <view class="examList activeOne" v-for="(item,index) in dataList" :key="index">
<view class="examList-center-box" @click="examDetails"> <view class="examList-center-box" @click="examDetails(item.ExamId)">
<view class="examList-center-line"></view> <view class="examList-center-line"></view>
<view class="examList-center flex"> <view class="examList-center flex">
<view class="examList-left"> <view class="examList-left">
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</view> </view>
</view> </view>
<view class="examList-hint-right"> <view class="examList-hint-right">
<view>重新导入</view> <view @click="clickReimport(item)">重新导入</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -109,24 +109,23 @@ ...@@ -109,24 +109,23 @@
}); });
let methods = { let methods = {
examDetails(){ examDetails(item){
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/examDetails' url: '/pages/index/examDetails?examId=' + item
}); });
}, },
//获取考试信息列表
getExamPageList(){
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => {
data.dataList = res.Data;
})
},
ImportInformation(){ ImportInformation(){
this.show = true data.show = true
}, },
uploadFilesBefore(){ uploadFilesBefore(){
}, },
// 重新导入
clickReimport(item){
},
// 添加导入
customUpload(event){ customUpload(event){
let host = '' let host = ''
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
......
<template> <template>
<view class="operation-box"> <view class="operation-box">
<view class="operation activeOne"> <view class="operation activeOne"
v-for="(item,index) in dataList" :key="index">
<view class="operation-center-box" @click="JobDetails"> <view class="operation-center-box" @click="JobDetails">
<view class="operation-center-line"></view> <view class="operation-center-line"></view>
<view class="operation-center flex"> <view class="operation-center flex">
<view class="operation-left"> <view class="operation-left">
<view class="operation-name">高一作业</view> <view class="operation-name">{{item.HomeWorkTitle}}</view>
<view class="operation-state flex"> <view class="operation-state flex">
<view class="operation-state-point"></view> <view class="operation-state-point"></view>
<view class="operation-state-text">进行中</view> <view class="operation-state-text">{{item.Status==0?'未开始':(item.Status==1?'进行中':'已结束')}}</view>
</view> </view>
</view> </view>
<view class="operation-right flex"> <view class="operation-right flex">
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">学生数</view> <view class="homework-score-title">学生数</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
86 {{item.StuNum}}
</view> </view>
</view> </view>
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">已提交</view> <view class="homework-score-title">已提交</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
86 {{item.SubmitNum}}
</view> </view>
</view> </view>
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">已批阅</view> <view class="homework-score-title">已批阅</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
86 {{item.ReviewNum}}
</view> </view>
</view> </view>
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">优 秀</view> <view class="homework-score-title">优 秀</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
66 {{item.ExcellentNum}}
</view> </view>
</view> </view>
</view> </view>
...@@ -53,18 +54,13 @@ ...@@ -53,18 +54,13 @@
export default { export default {
props: { props: {
dataList:[]
}, },
components: {}, components: {},
setup() { setup(props) {
let data = reactive({ let data = reactive({
obj: { dataList: props.dataList
Name: '',
Photo: '',
},
showPhone: false,
showLogin: true, //多次点击
}); });
let methods = { let methods = {
JobDetails(){ JobDetails(){
...@@ -77,7 +73,7 @@ ...@@ -77,7 +73,7 @@
...toRefs(data), ...toRefs(data),
...methods ...methods
}; };
}, }
}; };
</script> </script>
<style scoped> <style scoped>
......
<template> <template>
<view class="studentList-box flex"> <view class="studentList-box flex">
<view class="studentList-content"> <view class="studentList-content" v-for="(item,index) in dataList" :key="index">
<view class="studentList flex"> <view class="studentList flex">
<view class="studentList-img"> <view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img" <van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" /> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894192000_645.png" />
</view> </view>
<text> <text>
周杰伦 {{item.StuName}}
</text>
</view>
</view>
<view class="studentList-content">
<view class="studentList flex">
<view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
</view>
<text>
周杰伦
</text>
</view>
</view>
<view class="studentList-content">
<view class="studentList flex">
<view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
</view>
<text>
周杰伦
</text>
</view>
</view>
<view class="studentList-content">
<view class="studentList flex">
<view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
</view>
<text>
周杰伦
</text> </text>
</view> </view>
</view> </view>
...@@ -57,10 +24,10 @@ ...@@ -57,10 +24,10 @@
export default { export default {
props: { props: {
dataList: []
}, },
components: {}, components: {},
setup() { setup(props) {
let data = reactive({ let data = reactive({
obj: { obj: {
...@@ -69,6 +36,7 @@ ...@@ -69,6 +36,7 @@
}, },
showPhone: false, showPhone: false,
showLogin: true, //多次点击 showLogin: true, //多次点击
dataList: props.dataList
}); });
let methods = { let methods = {
JobDetails(){ JobDetails(){
......
...@@ -145,30 +145,27 @@ ...@@ -145,30 +145,27 @@
}); });
data.showLogin = false; //防止多次点击登录 data.showLogin = false; //防止多次点击登录
let res = await parsePhone({ let res = await parsePhone({
code,
encryptedData, encryptedData,
iv, iv
code
}) })
if (res && res.Data.phoneNumber) { console.log(res)
console.log('dsadas', res) if (res && res.Data.UserMobile) {
data.obj.phoneNum = res.Data.phoneNumber // console.log('dsadas', res)
// data.obj.phoneNum = '18328620563' // data.obj.phoneNum = res.Data.UserMobile
data.obj.openid = res.Data.openid // that.phoneNumLogin()
data.obj.unionid = res.Data.unionid // let obj = {
that.phoneNumLogin() // Account: data.obj.phoneNum,
let obj = { // WeChatName: data.obj.Name,
Account: data.obj.phoneNum, // WeChatPhoto: data.obj.Photo,
WeChatName: data.obj.Name, // OpenId: data.obj.openid,
WeChatPhoto: data.obj.Photo, // unionid: data.obj.unionid,
OpenId: data.obj.openid, // }
unionid: data.obj.unionid, uni.setStorageSync("userInfo", res.Data);
} uni.reLaunch({
try { url:'/pages/index/index'
uni.setStorageSync("temporarydh", obj); })
} catch (e) {
console.log(e, 'eeeeeee')
}
} else { } else {
Toast.fail("授权失败,请重新授权") Toast.fail("授权失败,请重新授权")
data.showLogin = true; //防止多次点击登录 data.showLogin = true; //防止多次点击登录
...@@ -176,40 +173,40 @@ ...@@ -176,40 +173,40 @@
} }
}, },
//手机号授权登录 //手机号授权登录
async phoneNumLogin() { // async phoneNumLogin() {
let res = await phoneLogin({ // let res = await phoneLogin({
Account: data.obj.phoneNum, // Account: data.obj.phoneNum,
OpenId: data.obj.openid, // OpenId: data.obj.openid,
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;
uni.setStorageSync("userInfo", res.Data); // uni.setStorageSync("userInfo", res.Data);
Toast.success("登录成功"); // Toast.success("登录成功");
setTimeout(()=>{ // setTimeout(()=>{
emit('success') // emit('success')
},1000) // },1000)
data.showPhone = false // data.showPhone = false
uni.showTabBar() // uni.showTabBar()
} else { // } else {
data.showLogin = true; //防止多次点击登录 // data.showLogin = true; //防止多次点击登录
data.showPhone = false // data.showPhone = false
if (currentRoute == "pages/index/index") { // if (currentRoute == "pages/index/index") {
uni.showTabBar() //手机授权弹窗出现 隐藏tabbar // 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);
} // }
} // }
} // }
}; };
onMounted(() => { onMounted(() => {
......
<template> <template>
<view class="workSituationpage"> <view class="workSituationpage">
<navbar class="navbarSticky" bg="#F6F6F6"> <navbar class="navbarSticky" bg="#F6F6F6">
<view class="index-header-box"> <view class="index-header-box" @click="back">
<view class="index-header-img"> <view class="index-header-img">
<van-image width="100%" height="100%" fit="cover" class="img" <van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" /> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
@scrolltolower="lower" @scrolltolower="lower"
v-if="dataList.length > 0" v-if="dataList.length > 0"
> >
<operation v-if="tabNme=='作业情况'"></operation> <operation v-if="tabNme=='作业情况'" :dataList="dataList"></operation>
<studentList v-if="tabNme=='学生列表'"></studentList> <studentList v-if="tabNme=='学生列表'" :dataList="dataList"></studentList>
<examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList> <examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList>
<Loadmore :state="pageState" /> <Loadmore :state="pageState" />
</scroll-view> </scroll-view>
...@@ -95,20 +95,24 @@ ...@@ -95,20 +95,24 @@
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
titleList:[ titleList:[
{name:'学生列表',num:18}, {name:'学生列表',num:0},
{name:'作业情况',num:5}, {name:'作业情况',num:0},
{name:'考试信息',num:18}, {name:'考试信息',num:0},
], ],
tabNme:'考试信息', tabNme:'作业情况',
Msg:{ Msg:{
PageIndex: 1, PageIndex: 1,
PageSize: 10, PageSize: 10,
ExamName:'' ExamName:'',
courseId:''
}, },
OperationMsg:{
courseId:''
},
pageCount: 0, pageCount: 0,
timer: null, //防抖 timer: null, //防抖
dataList:[], dataList:[],
pageState: "more" pageState: "more",
}); });
let methods = { let methods = {
...@@ -119,49 +123,40 @@ ...@@ -119,49 +123,40 @@
}, },
toggleTitle(t) { toggleTitle(t) {
data.tabNme = t data.tabNme = t
if(this.tabNme=='学生列表'){ data.dataList = []
this.GetExamStuList() if(data.tabNme=='学生列表'){
}else if(this.tabNme=='作业情况'){ that.getCourseStuList()
}else if(data.tabNme=='作业情况'){
that.getGetCourseHomeWorkList()
}else{ }else{
this.getExamPageList() that.getExamPageList()
} }
}, },
//获取学生列表 //获取学生列表
getCourseStuList(){ getCourseStuList(){
proxy.$request("/Teacher/GetCourseStu", data.Msg).then(res => { proxy.$request("/Teacher/GetCourseStu", data.OperationMsg).then(res => {
if(res){ if(res){
if (data.timer) data.timer = null; data.titleList.forEach(item => {
if (data.Msg.PageIndex === 1) { if(item.name=='学生列表'){
data.dataList = res.Data.PageData; item.num = res.Data.length
} else { }
data.dataList = [...res.Data.PageData, ...data.dataList]; });
} data.dataList = res.Data;
data.pageCount = res.Data.PageCount; data.pageState = "none";
if (data.Msg.PageIndex >= res.Data.PageCount) {
data.pageState = "none";
} else {
data.pageState = "more";
}
} }
}) })
}, },
//获取作业情况列表 //获取作业情况列表
getGetCourseHomeWorkList(){ getGetCourseHomeWorkList(){
proxy.$request("/Teacher/GetCourseHomeWork", data.Msg).then(res => { proxy.$request("/Teacher/GetCourseHomeWork", data.OperationMsg).then(res => {
if(res){ if(res){
if (data.timer) data.timer = null; data.titleList.forEach(item => {
if (data.Msg.PageIndex === 1) { if(item.name=='作业情况'){
data.dataList = res.Data.PageData; item.num = res.Data.length
} else { }
data.dataList = [...res.Data.PageData, ...data.dataList]; });
} data.dataList = res.Data;
data.pageCount = res.Data.PageCount; data.pageState = "none";
if (data.Msg.PageIndex >= res.Data.PageCount) {
data.pageState = "none";
} else {
data.pageState = "more";
}
} }
}) })
}, },
...@@ -169,6 +164,11 @@ ...@@ -169,6 +164,11 @@
getExamPageList(){ getExamPageList(){
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => { proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => {
if(res){ if(res){
data.titleList.forEach(item => {
if(item.name=='考试信息'){
item.num = res.Data.RowsCount
}
});
if (data.timer) data.timer = null; if (data.timer) data.timer = null;
if (data.Msg.PageIndex === 1) { if (data.Msg.PageIndex === 1) {
data.dataList = res.Data.PageData; data.dataList = res.Data.PageData;
...@@ -190,12 +190,12 @@ ...@@ -190,12 +190,12 @@
data.Msg.PageIndex++; data.Msg.PageIndex++;
if (data.timer) clearTimeout(data.timer); if (data.timer) clearTimeout(data.timer);
data.timer = setTimeout(() => { data.timer = setTimeout(() => {
if(this.tabNme=='学生列表'){ if(data.tabNme=='学生列表'){
this.getCourseStuList() that.getCourseStuList()
}else if(this.tabNme=='作业情况'){ }else if(data.tabNme=='作业情况'){
this.getGetCourseHomeWorkList() that.getGetCourseHomeWorkList()
}else{ }else{
this.getExamPageList() that.getExamPageList()
} }
}, 1000); }, 1000);
} else { } else {
...@@ -207,6 +207,7 @@ ...@@ -207,6 +207,7 @@
onMounted(() => { onMounted(() => {
}); });
let that = methods;
return { return {
...toRefs(data), ...toRefs(data),
...methods, ...methods,
...@@ -214,9 +215,11 @@ ...@@ -214,9 +215,11 @@
}, },
onLoad(option) { onLoad(option) {
this.tabNme = option.tabNme this.tabNme = option.tabNme
this.OperationMsg.courseId = option.courseId
this.Msg.courseId = option.courseId
}, },
onShow() { onShow() {
this.userData = uni.getStorageSync('userInfo'); this.dataList = []
if(this.tabNme=='学生列表'){ if(this.tabNme=='学生列表'){
this.getCourseStuList() this.getCourseStuList()
}else if(this.tabNme=='作业情况'){ }else if(this.tabNme=='作业情况'){
...@@ -224,6 +227,7 @@ ...@@ -224,6 +227,7 @@
}else{ }else{
this.getExamPageList() this.getExamPageList()
} }
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
......
...@@ -13,22 +13,38 @@ ...@@ -13,22 +13,38 @@
<view class="login-title"> <view class="login-title">
账号登录 账号登录
</view> </view>
<view style="margin:60rpx auto;text-align: center;">
<div style="display: inline-block;" @click="changeTypeHandler(1)">
<image :class="{'login-grey-avatar':userLoginType==2}" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894192000_645.png" mode="widthFix" style="width:142rpx;"></image>
<view style="color: #282828;font-size: 24rpx;font-weight: 800;">
学员
</view>
</div>
<div style="display: inline-block;margin-left:148rpx;" @click="changeTypeHandler(2)">
<image :class="{'login-grey-avatar':userLoginType==1}" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png" mode="widthFix" style="width:142rpx;"></image>
<view style="color: #282828;font-size: 24rpx;font-weight: 800;">
教师
</view>
</div>
</view>
<view class="main"> <view class="main">
<van-cell-group> <van-cell-group>
<van-field :value="Account" placeholder="请输入用户名" clearable input-align="center" @input="usernameInput"> <van-field :value="Account" placeholder="请输入预留手机号" clearable input-align="center" @input="usernameInput">
</van-field> </van-field>
<van-field :value="Password" password placeholder="请输入密码" clearable input-align="center" @input="passwordInput"> <van-field :value="Password" v-if="userLoginType==2" password placeholder="请输入密码" clearable input-align="center" @input="passwordInput">
</van-field> </van-field>
</van-cell-group> </van-cell-group>
</view> </view>
<view class="btnBox" @click="login"> <view class="btnBox" @click="login">
立即登录 <van-loading color="#f5f5f5" v-if="loading" />
<text v-else>立即登录</text>
</view> </view>
<view class="login-bottom"> <view class="login-bottom">
<view class="login-bottom-text" @click="back">返回</view> <view class="login-bottom-text" @click="back">返回</view>
<!-- <view class="login-bottom-text">忘记密码</view> --> <!-- <view class="login-bottom-text">忘记密码</view> -->
</view> </view>
</view> </view>
<van-toast id="van-toast" />
</view> </view>
</template> </template>
...@@ -71,9 +87,17 @@ ...@@ -71,9 +87,17 @@
openid: "", openid: "",
code: "", code: "",
show: false, show: false,
userLoginType:1, //1为学员,2为老师
loading:false
}); });
let methods = { let methods = {
changeTypeHandler(t){
data.userLoginType=t
if(t==1){
msg.Password =''
}
},
usernameInput(val) { usernameInput(val) {
msg.Account = val.detail; msg.Account = val.detail;
}, },
...@@ -87,31 +111,43 @@ ...@@ -87,31 +111,43 @@
}, },
jumpPage() { jumpPage() {
uni.reLaunch({ uni.reLaunch({
url: "/pages/index/index", url: data.userLoginType==1?"/pages/index/index":'/pages/index/workSituation',
}); });
clearTimeout(); //clearTimeout();
}, },
async login() { async login() {
if(data.loading) return;
data.loading=true
if (msg.Account == "" || !msg.Account) { if (msg.Account == "" || !msg.Account) {
Toast.fail("请输入账号"); Toast.fail("请输入账号");
data.loading=true
return; return;
} }
if (msg.Password == "" || !msg.Password) { if ((msg.Password == "" || !msg.Password) && data.userLoginType==2) {
Toast.fail("请输入密码"); Toast.fail("请输入密码");
data.loading=true
return; return;
} }
let res = await this.$request('/Login/Login', msg).then(res=>{ let url=data.userLoginType==2?'/Login/Login':'/Login/LoginByAccount'
let res = await this.$request(url, msg).then(res=>{
if(res.Code==1){ if(res.Code==1){
res.Data.Account = msg.Account; if((res.Data.AccountType==1 && data.userLoginType==2) ||res.Data.AccountType==2 && data.userLoginType==1){
uni.setStorageSync("userInfo", res.Data); res.Data.Account = msg.Account;
Toast.success("登录成功"); uni.setStorageSync("userInfo", res.Data);
setTimeout(() => { Toast.success("登录成功");
let data = uni.getStorageSync("userInfo"); setTimeout(() => {
if (data) { let data = uni.getStorageSync("userInfo");
that.jumpPage(); if (data) {
} that.jumpPage();
}, 1000); }
}, 1000);
}else{
data.loading=false
Toast.fail("账号类型选择错误,请根据真实身份选择")
}
} }
}).catch(e=>{
data.loading=false
}) })
}, },
}; };
...@@ -166,7 +202,7 @@ ...@@ -166,7 +202,7 @@
display: inline-block; display: inline-block;
} }
.login-bottom{ .login-bottom{
margin-bottom: 136rpx; margin-bottom: 100rpx;
text-align: center; text-align: center;
} }
.login-title{ .login-title{
...@@ -198,11 +234,17 @@ ...@@ -198,11 +234,17 @@
background: -ms-linear-gradient(top, #C41726 0%,#831D1C 100%); background: -ms-linear-gradient(top, #C41726 0%,#831D1C 100%);
background: linear-gradient(top bottom, #C41726 0%,#831D1C 100%); background: linear-gradient(top bottom, #C41726 0%,#831D1C 100%);
} }
.login-grey-avatar{
-webkit-filter: grayscale(100%);
}
.main { .main {
height: 250rpx; height: 250rpx;
box-sizing: border-box; box-sizing: border-box;
vertical-align: middle;
padding: 0 0; padding: 0 0;
display: flex;
flex-direction: column;
justify-content: center;
} }
/deep/.van-cell { /deep/.van-cell {
height: 88rpx; height: 88rpx;
...@@ -217,12 +259,15 @@ ...@@ -217,12 +259,15 @@
overflow: hidden; overflow: hidden;
margin: 0 auto; margin: 0 auto;
margin-top: 26rpx; margin-top: 26rpx;
margin-bottom: 110rpx; margin-bottom: 30rpx;
background-color: #C91727; background-color: #C91727;
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
line-height: 88rpx; /* line-height: 88rpx; */
display: flex;
flex-direction: column;
justify-content: center;
} }
</style> </style>
...@@ -32,9 +32,9 @@ let request = (param) => { ...@@ -32,9 +32,9 @@ let request = (param) => {
icon: "none", icon: "none",
}); });
uni.removeStorageSync('userInfo'); uni.removeStorageSync('userInfo');
// uni.reLaunch({ uni.reLaunch({
// url:"/pages/login/login" url:"/pages/login/login"
// }) })
reject() reject()
}else{ }else{
uni.showToast({ uni.showToast({
......
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