|
@@ -10,20 +10,12 @@
|
|
|
|
|
|
<view class="collpopul" v-if="popmsg">
|
|
<view class="collpopul" v-if="popmsg">
|
|
<view class="contxt">
|
|
<view class="contxt">
|
|
- <!-- <image :src="i.collAoff?img1:img2" mode="aspectFill" style="width: 30rpx;height: 30rpx;">
|
|
|
|
- </image> -->
|
|
|
|
登录成功
|
|
登录成功
|
|
- <!-- 收藏成功 -->
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <!-- <view class="inp">
|
|
|
|
- <view class="nc">昵称:</view>
|
|
|
|
- <input type="nickname" class="weui-input" :value="nickname" @blur="inpvalue" placeholder="请输入昵称" />
|
|
|
|
- </view> -->
|
|
|
|
|
|
|
|
<view class="mid">
|
|
<view class="mid">
|
|
- <!-- <radio value="r1" @click="radioCheck" size="10" :checked="isOK" /> -->
|
|
|
|
<view class="" style="position: relative;padding-left:30rpx;">
|
|
<view class="" style="position: relative;padding-left:30rpx;">
|
|
我已阅读并同意<text>《教育小程序服务条款》</text>和 <text>《 隐私协议》</text>新用户自动注册
|
|
我已阅读并同意<text>《教育小程序服务条款》</text>和 <text>《 隐私协议》</text>新用户自动注册
|
|
<view class="quan" @click="isDui">
|
|
<view class="quan" @click="isDui">
|
|
@@ -37,11 +29,6 @@
|
|
|
|
|
|
|
|
|
|
<button class="btn" @click="gotoIndex">一键登录</button>
|
|
<button class="btn" @click="gotoIndex">一键登录</button>
|
|
- <!-- <button class="btn" @click="gotoIndex2">一键登录</button> -->
|
|
|
|
- <!-- <view class="footer" @click="goto">
|
|
|
|
- <text>手机号登录/账号密码登录</text>
|
|
|
|
- </view> -->
|
|
|
|
-
|
|
|
|
|
|
|
|
<view class="popupBlock" v-if="popupShow">
|
|
<view class="popupBlock" v-if="popupShow">
|
|
<view class="shade" v-if="allShow" @click="hiddenShade">
|
|
<view class="shade" v-if="allShow" @click="hiddenShade">
|
|
@@ -81,34 +68,7 @@
|
|
<input type="text" class="inpSty" placeholder="请输入院校全称"
|
|
<input type="text" class="inpSty" placeholder="请输入院校全称"
|
|
placeholder-style="font-size: 28rpx; color: rgb(153, 153, 153);" v-model="stuName" />
|
|
placeholder-style="font-size: 28rpx; color: rgb(153, 153, 153);" v-model="stuName" />
|
|
</view>
|
|
</view>
|
|
- <!-- <view class="txtcell">
|
|
|
|
- <view class="" style="width: 100rpx;">
|
|
|
|
- <text class="dian">*</text><text class="celTit">学院</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="pickerBlock" @click="show">
|
|
|
|
- <view class="" style="position: relative;">
|
|
|
|
- <view class="">
|
|
|
|
- {{ !stuName?'请选择学院':stuName }}
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <view class="stuListSty" v-if="isshow">
|
|
|
|
- <view class="Usearch">
|
|
|
|
- <u-search placeholder="搜索学院" :showAction="false" shape="square"
|
|
|
|
- v-model="searchStudent"></u-search>
|
|
|
|
- <view class="UsearchBtn" @click.stop="typeIn(0)">
|
|
|
|
- 手动录入
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <scroll-view scroll-y="true" show-scrollbar="true" class="list">
|
|
|
|
- <view id="demo1" class="listcon" @click.stop="addStu" :data-item="i"
|
|
|
|
- v-for="(i,index) in colleges" :key="i">{{i.name}}</view>
|
|
|
|
- </scroll-view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <uni-icons type="right" class="icooo" size="20" color='rgba(0, 0, 0, 0.4)'></uni-icons>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- </view> -->
|
|
|
|
|
|
+
|
|
<view class="txtcell">
|
|
<view class="txtcell">
|
|
<view class="">
|
|
<view class="">
|
|
<text class="celTit">所在部门</text>
|
|
<text class="celTit">所在部门</text>
|
|
@@ -116,36 +76,7 @@
|
|
<input type="text" class="inpSty" placeholder="请输入所在部门"
|
|
<input type="text" class="inpSty" placeholder="请输入所在部门"
|
|
placeholder-style="font-size: 28rpx; color: rgb(153, 153, 153);" v-model="majorName" />
|
|
placeholder-style="font-size: 28rpx; color: rgb(153, 153, 153);" v-model="majorName" />
|
|
</view>
|
|
</view>
|
|
- <!-- <view class="txtcell">
|
|
|
|
- <view class="" style="width: 100rpx;">
|
|
|
|
- <text class="celTit">专业</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="pickerBlock" @click="majorshow">
|
|
|
|
- <view class="" style="position: relative;">
|
|
|
|
- <view class="">
|
|
|
|
- {{ !majorName?'请选择专业':majorName }}
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <view class="stuListSty" v-if="jorshow">
|
|
|
|
- <view class="Usearch">
|
|
|
|
- <u-search placeholder="搜索专业" :showAction="false" shape="square"
|
|
|
|
- v-model="searchMajor"></u-search>
|
|
|
|
- <view class="UsearchBtn" @click.stop="typeIn(1)">
|
|
|
|
- 手动录入
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <scroll-view scroll-y="true" show-scrollbar="true" class="list">
|
|
|
|
- <view class="listcon" v-if="!majorList.length">
|
|
|
|
- 此学院暂时没有专业分类哦
|
|
|
|
- </view>
|
|
|
|
- <view id="demo1" class="listcon" @click.stop="addmajor" :data-jor="i"
|
|
|
|
- v-for="(i,index) in majorList" :key="index">{{i.name}}</view>
|
|
|
|
- </scroll-view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <uni-icons type="right" class="icooo" size="20" color='rgba(0, 0, 0, 0.4)'></uni-icons>
|
|
|
|
- </view>
|
|
|
|
- </view> -->
|
|
|
|
|
|
+
|
|
<view class="txtcell">
|
|
<view class="txtcell">
|
|
<view class="">
|
|
<view class="">
|
|
<text class="celTit">职称</text><text
|
|
<text class="celTit">职称</text><text
|
|
@@ -159,9 +90,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <!-- <view :class="btnColor" @click="register">
|
|
|
|
- 完善信息并登录
|
|
|
|
- </view> -->
|
|
|
|
|
|
+
|
|
<view class="logbtn2" @click="register">
|
|
<view class="logbtn2" @click="register">
|
|
完善信息并登录
|
|
完善信息并登录
|
|
</view>
|
|
</view>
|
|
@@ -173,7 +102,6 @@
|
|
<u-popup :show="popupshow" mode="center" round="10" :closeable='true' @close="popupclose">
|
|
<u-popup :show="popupshow" mode="center" round="10" :closeable='true' @close="popupclose">
|
|
<view style="width: 600rpx;box-sizing: border-box;padding: 40px 20rpx; padding-bottom: 30px;">
|
|
<view style="width: 600rpx;box-sizing: border-box;padding: 40px 20rpx; padding-bottom: 30px;">
|
|
<view class="" style="display: flex;align-items: center;">
|
|
<view class="" style="display: flex;align-items: center;">
|
|
- <!-- <text>{{ typyInall?'专业':'学校' }} :</text> -->
|
|
|
|
<u--input :placeholder="typyInall?'请输入专业':'请输入学院'" border="surround" v-model="typyInCon"></u--input>
|
|
<u--input :placeholder="typyInall?'请输入专业':'请输入学院'" border="surround" v-model="typyInCon"></u--input>
|
|
</view>
|
|
</view>
|
|
<view style="display: flex;width: 100%;justify-content: space-around;margin-top: 20rpx;">
|
|
<view style="display: flex;width: 100%;justify-content: space-around;margin-top: 20rpx;">
|
|
@@ -262,11 +190,6 @@
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- // judgeNumber:{
|
|
|
|
- // handler(val){
|
|
|
|
-
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
searchMajor: {
|
|
searchMajor: {
|
|
handler(val) {
|
|
handler(val) {
|
|
// 模糊搜索专业
|
|
// 模糊搜索专业
|
|
@@ -347,25 +270,7 @@
|
|
this.jorshow = false
|
|
this.jorshow = false
|
|
this.allShow = false
|
|
this.allShow = false
|
|
},
|
|
},
|
|
- // typeInSch(){
|
|
|
|
- // if(!this.searchStudent) return
|
|
|
|
-
|
|
|
|
- // this.stuName = this.searchStudent
|
|
|
|
- // this.searchStudent=''
|
|
|
|
- // this.inpTxt=''
|
|
|
|
- // this.majorInpTxt=''
|
|
|
|
- // this.searchMajor=''
|
|
|
|
- // this.majorName=''
|
|
|
|
- // this.hiddenShade()
|
|
|
|
- // },
|
|
|
|
- // typeInMajor(){
|
|
|
|
- // if(!this.searchMajor) return
|
|
|
|
-
|
|
|
|
- // this.majorName = this.searchMajor
|
|
|
|
- // this.majorInpTxt=''
|
|
|
|
- // this.searchMajor=''
|
|
|
|
- // this.hiddenShade()
|
|
|
|
- // },
|
|
|
|
|
|
+
|
|
// 学校list显示与隐藏
|
|
// 学校list显示与隐藏
|
|
show() {
|
|
show() {
|
|
this.isshow = true
|
|
this.isshow = true
|
|
@@ -423,31 +328,18 @@
|
|
mid: e
|
|
mid: e
|
|
}
|
|
}
|
|
this.$request('/selectMajors', "get", data).then(res => {
|
|
this.$request('/selectMajors', "get", data).then(res => {
|
|
- // console.log('显示专业列表', res);
|
|
|
|
- // if (res[0].length === 0) {
|
|
|
|
- // this.majorList[0] = {
|
|
|
|
- // name: '此学校没有专业分类哦'
|
|
|
|
- // }
|
|
|
|
- // } else {
|
|
|
|
this.majorList = res[0]
|
|
this.majorList = res[0]
|
|
- // }
|
|
|
|
- // this.majorList = res[0]
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 判断手机号
|
|
// 判断手机号
|
|
handleInput(e) {
|
|
handleInput(e) {
|
|
- // console.log(e.target);
|
|
|
|
const {
|
|
const {
|
|
value
|
|
value
|
|
} = e.target
|
|
} = e.target
|
|
- // console.log(value);
|
|
|
|
const newValue = value.replace(/\s*/g, '') // 只允许输入数字
|
|
const newValue = value.replace(/\s*/g, '') // 只允许输入数字
|
|
- // console.log(newValue);
|
|
|
|
|
|
|
|
- // if (newValue.length <= 11) {
|
|
|
|
this.userData.tel = newValue
|
|
this.userData.tel = newValue
|
|
- // }
|
|
|
|
- // console.log(this.userData.tel);
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
// 失去焦点查询学号工号
|
|
// 失去焦点查询学号工号
|
|
judgeNum() {
|
|
judgeNum() {
|
|
@@ -462,7 +354,6 @@
|
|
let aaa = res[0][0]
|
|
let aaa = res[0][0]
|
|
console.log('aaaaaaaa',aaa);
|
|
console.log('aaaaaaaa',aaa);
|
|
if (aaa.cid !== null) {
|
|
if (aaa.cid !== null) {
|
|
- // console.log('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
|
|
|
this.inpTxt = aaa.cid
|
|
this.inpTxt = aaa.cid
|
|
}
|
|
}
|
|
if (aaa.sid !== null) {
|
|
if (aaa.sid !== null) {
|
|
@@ -534,41 +425,18 @@
|
|
|
|
|
|
// this.avatarUrl = avatarUrl
|
|
// this.avatarUrl = avatarUrl
|
|
},
|
|
},
|
|
- // 手机号一键登录
|
|
|
|
- gotoIndex2() {
|
|
|
|
- uni.getProvider({
|
|
|
|
- service: 'oauth',
|
|
|
|
- success: function(res) {
|
|
|
|
- console.log(res.provider) // ['qq', 'univerify']
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- uni.preLogin({
|
|
|
|
- provider: 'univerify',
|
|
|
|
- success() { //预登录成功
|
|
|
|
- // 显示一键登录选项
|
|
|
|
- },
|
|
|
|
- fail(res) { // 预登录失败
|
|
|
|
- // 不显示一键登录选项(或置灰)
|
|
|
|
- // 根据错误信息判断失败原因,如有需要可将错误提交给统计服务器
|
|
|
|
- console.log(res.errCode)
|
|
|
|
- console.log(res.errMsg)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
// 登录
|
|
// 登录
|
|
gotoIndex() {
|
|
gotoIndex() {
|
|
- if (this.avatarUrl ==
|
|
|
|
- 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'
|
|
|
|
- ) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择头像',
|
|
|
|
- icon: 'error',
|
|
|
|
- duration: 1000
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.avatarUrl ==
|
|
|
|
+ // 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'
|
|
|
|
+ // ) {
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: '请选择头像',
|
|
|
|
+ // icon: 'error',
|
|
|
|
+ // duration: 1000
|
|
|
|
+ // });
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (!this.isShow) return uni.showToast({
|
|
if (!this.isShow) return uni.showToast({
|
|
title: '请勾选条约',
|
|
title: '请勾选条约',
|
|
icon: 'error',
|
|
icon: 'error',
|
|
@@ -609,10 +477,7 @@
|
|
|
|
|
|
},
|
|
},
|
|
register() {
|
|
register() {
|
|
- // username: '',
|
|
|
|
- // tel: '',
|
|
|
|
- // sch: '请选择',
|
|
|
|
- // spe: '请选择',
|
|
|
|
|
|
+
|
|
if (!this.uname) return uni.showToast({
|
|
if (!this.uname) return uni.showToast({
|
|
title: '请输入姓名',
|
|
title: '请输入姓名',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
@@ -665,12 +530,7 @@
|
|
console.log(res);
|
|
console.log(res);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 跳转其他登录方式
|
|
|
|
- goto() {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/login_two/login_two"
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
// 勾选取消条约
|
|
// 勾选取消条约
|
|
isDui() {
|
|
isDui() {
|
|
this.isShow = !this.isShow
|
|
this.isShow = !this.isShow
|
|
@@ -682,7 +542,6 @@
|
|
success: (res) => {
|
|
success: (res) => {
|
|
// console.log("所有", res);
|
|
// console.log("所有", res);
|
|
this.avatarUrl = res.userInfo.avatarUrl; //获取微信头像
|
|
this.avatarUrl = res.userInfo.avatarUrl; //获取微信头像
|
|
-
|
|
|
|
},
|
|
},
|
|
fail() {}
|
|
fail() {}
|
|
})
|
|
})
|
|
@@ -712,7 +571,7 @@
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
this.avatarUrl =
|
|
this.avatarUrl =
|
|
- 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0';
|
|
|
|
|
|
+ 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/file-1720687971964.jpeg';
|
|
this.getdata()
|
|
this.getdata()
|
|
}
|
|
}
|
|
}
|
|
}
|