1
|
<template>
|
1
|
<template>
|
2
|
- <view class="content">
|
|
|
3
|
- <view class="studentMsg">
|
|
|
4
|
- <view class="item">
|
|
|
5
|
- <view class="title">姓名</view>
|
|
|
6
|
- <input type="text" v-model="username" class="inpt" placeholder="请输入姓名" placeholder-style="color:rgba(189,196,206,1);font-size:28rpx;">
|
|
|
7
|
- </view>
|
|
|
8
|
- <view class="item">
|
|
|
9
|
- <view class="title">邮箱</view>
|
|
|
10
|
- <input type="text" v-model="email" class="inpt" placeholder="请输入邮箱" placeholder-style="color:rgba(189,196,206,1);font-size:28rpx;">
|
|
|
11
|
- </view>
|
|
|
12
|
- <view class="item" style="border-bottom:none">
|
|
|
13
|
- <view class="title">头像</view>
|
|
|
14
|
- <image @click="upload" class="photo" :src="isUpload ? image : '../../static/touxiang_img@2x.png'"></image>
|
|
|
15
|
- </view>
|
|
|
16
|
- </view>
|
|
|
17
|
- <view class="schoolTitle">高中信息</view>
|
|
|
18
|
- <view class="studentMsg">
|
|
|
19
|
- <view class="item" @click="selhigh">
|
|
|
20
|
- <view class="title">高中</view>
|
|
|
21
|
- <view class="selectBtn">{{isHighShow? name : '请选择就读高中'}}<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view>
|
|
|
22
|
- </view>
|
|
|
23
|
- <view class="item">
|
|
|
24
|
- <view class="title">毕业年份</view>
|
|
|
25
|
- <!-- <view class="selectBtn">请选择毕业年份<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view> -->
|
|
|
26
|
- <view @click="selDate" style="display: flex;justify-content: space-between;align-items: center;">
|
|
|
27
|
- <picker mode="date" :value="date" start="2000-01-01" @change="bindTimeChange">
|
|
|
28
|
- <view class="selectBtn">{{isDateShow? date : '请选择毕业年份'}}</view>
|
|
|
29
|
- </picker>
|
|
|
30
|
- <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
31
|
- </view>
|
|
|
32
|
- </view>
|
|
|
33
|
- <view class="item" @click="subPopupShow">
|
|
|
34
|
- <view class="title">选考科目</view>
|
|
|
35
|
- <view class="selectBtn">{{subid.toString()!='' ? subname.toString() : "请选择选考科目"}}<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view>
|
|
|
36
|
- </view>
|
|
|
37
|
- <view class="item" style="border-bottom:none" @click="stylePopupShow">
|
|
|
38
|
- <view class="title">升学方式</view>
|
|
|
39
|
- <view class="selectBtn">{{isupnameshow? upname : "请选择升学方式"}}<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view>
|
|
|
40
|
- </view>
|
|
|
41
|
- </view>
|
|
|
42
|
- <view class="schoolTitle">大学信息</view>
|
|
|
43
|
- <view class="studentMsg">
|
|
|
44
|
- <view class="item" @click="selcollege">
|
|
|
45
|
- <view class="title">就读大学</view>
|
|
|
46
|
- <view class="selectBtn">{{isNameShow? collegename : '请选择就读大学'}}<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view>
|
|
|
47
|
- </view>
|
|
|
48
|
- <view class="item">
|
|
|
49
|
- <view class="title">所属学院</view>
|
|
|
50
|
- <view class="selectBtn" @click="tocollege">{{iscollgegshow? academyname : '请选择所属学院' }}<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view>
|
|
|
51
|
- </view>
|
|
|
52
|
- <view class="item" style="border-bottom:none" @click="tomajor">
|
|
|
53
|
- <view class="title">就读专业</view>
|
|
|
54
|
- <view class="selectBtn">{{ismajorshow? academyname : '请选择所属专业' }}<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view>
|
|
|
55
|
- </view>
|
|
|
56
|
- </view>
|
|
|
57
|
- <view class="okBtn" @click="collegeregister">注册</view>
|
|
|
58
|
- <view class="subPopup" v-if="isSubPopupShow">
|
|
|
59
|
- <view class="selectCard">
|
|
|
60
|
- <view class="buttonBox">
|
|
|
61
|
- <view class="closeBtn" @click="subPopupHide">取消</view>
|
|
|
62
|
- <view class="confimBtn" @click="subPopupHide">确定</view>
|
|
|
63
|
- </view>
|
|
|
64
|
- <view class="subBox">
|
|
|
65
|
- <view class="subject" @click="selsub" :class="{active:subid.indexOf(item.id)!=-1}" v-for="(item,index) in sublist" :key="index" :data-id="item.id" :data-name="item.name">{{item.name}}</view>
|
|
|
66
|
- </view>
|
|
|
67
|
- </view>
|
|
|
68
|
- </view>
|
|
|
69
|
- <view class="stylePopup" v-if="isStylePopupShow">
|
|
|
70
|
- <view class="styleCard">
|
|
|
71
|
- <view class="buttonBox">
|
|
|
72
|
- <view class="closeBtn" @click="stylePopupHide">取消</view>
|
|
|
73
|
- <view class="confimBtn" @click="stylePopupHide">确定</view>
|
|
|
74
|
- </view>
|
|
|
75
|
- <view class="subBox">
|
|
|
76
|
- <view class="subject" :class="{active:upid==item.id}" @click="selup" v-for="(item,index) in uplist" :key="index" :data-id="item.id" :data-name="item.name">{{item.name}}</view>
|
|
|
77
|
- </view>
|
|
|
78
|
- </view>
|
|
|
79
|
- </view>
|
|
|
80
|
- </view>
|
2
|
+ <view class="content">
|
|
|
3
|
+ <view class="studentMsg">
|
|
|
4
|
+ <view class="item">
|
|
|
5
|
+ <view class="title">姓名</view>
|
|
|
6
|
+ <input type="text" v-model="username" class="inpt" placeholder="请输入姓名" placeholder-style="color:rgba(189,196,206,1);font-size:28rpx;" />
|
|
|
7
|
+ </view>
|
|
|
8
|
+ <view class="item">
|
|
|
9
|
+ <view class="title">邮箱</view>
|
|
|
10
|
+ <input type="text" v-model="email" class="inpt" placeholder="请输入邮箱" placeholder-style="color:rgba(189,196,206,1);font-size:28rpx;" />
|
|
|
11
|
+ </view>
|
|
|
12
|
+ <view class="item" style="border-bottom:none">
|
|
|
13
|
+ <view class="title">头像</view>
|
|
|
14
|
+ <image @click="upload" class="photo" :src="isUpload ? uploadImg : '../../static/touxiang_img@2x.png'"></image>
|
|
|
15
|
+ </view>
|
|
|
16
|
+ </view>
|
|
|
17
|
+ <view class="schoolTitle">高中信息</view>
|
|
|
18
|
+ <view class="studentMsg">
|
|
|
19
|
+ <view class="item" @click="selhigh">
|
|
|
20
|
+ <view class="title">高中</view>
|
|
|
21
|
+ <view class="selectBtn">
|
|
|
22
|
+ {{ isHighShow ? name : '请选择就读高中' }}
|
|
|
23
|
+ <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
24
|
+ </view>
|
|
|
25
|
+ </view>
|
|
|
26
|
+ <view class="item">
|
|
|
27
|
+ <view class="title">毕业年份</view>
|
|
|
28
|
+ <!-- <view class="selectBtn">请选择毕业年份<image class="icon" src="../../static/zhuandao_icon@2x.png"></image></view> -->
|
|
|
29
|
+ <view @click="selDate" style="display: flex;justify-content: space-between;align-items: center;">
|
|
|
30
|
+ <picker mode="date" :value="date" start="2000-01-01" @change="bindTimeChange">
|
|
|
31
|
+ <view class="selectBtn">{{ isDateShow ? date : '请选择毕业年份' }}</view>
|
|
|
32
|
+ </picker>
|
|
|
33
|
+ <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
34
|
+ </view>
|
|
|
35
|
+ </view>
|
|
|
36
|
+ <view class="item" @click="subPopupShow">
|
|
|
37
|
+ <view class="title">选考科目</view>
|
|
|
38
|
+ <view class="selectBtn">
|
|
|
39
|
+ {{ subid.toString() != '' ? subname.toString() : '请选择选考科目' }}
|
|
|
40
|
+ <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
41
|
+ </view>
|
|
|
42
|
+ </view>
|
|
|
43
|
+ <view class="item" style="border-bottom:none" @click="stylePopupShow">
|
|
|
44
|
+ <view class="title">升学方式</view>
|
|
|
45
|
+ <view class="selectBtn">
|
|
|
46
|
+ {{ isupnameshow ? upname : '请选择升学方式' }}
|
|
|
47
|
+ <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
48
|
+ </view>
|
|
|
49
|
+ </view>
|
|
|
50
|
+ </view>
|
|
|
51
|
+ <view class="schoolTitle">大学信息</view>
|
|
|
52
|
+ <view class="studentMsg">
|
|
|
53
|
+ <view class="item" @click="selcollege">
|
|
|
54
|
+ <view class="title">就读大学</view>
|
|
|
55
|
+ <view class="selectBtn">
|
|
|
56
|
+ {{ isNameShow ? collegename : '请选择就读大学' }}
|
|
|
57
|
+ <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
58
|
+ </view>
|
|
|
59
|
+ </view>
|
|
|
60
|
+ <view class="item">
|
|
|
61
|
+ <view class="title">所属学院</view>
|
|
|
62
|
+ <view class="selectBtn" @click="tocollege">
|
|
|
63
|
+ {{ iscollgegshow ? academyname : '请选择所属学院' }}
|
|
|
64
|
+ <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
65
|
+ </view>
|
|
|
66
|
+ </view>
|
|
|
67
|
+ <view class="item" style="border-bottom:none" @click="tomajor">
|
|
|
68
|
+ <view class="title">就读专业</view>
|
|
|
69
|
+ <view class="selectBtn">
|
|
|
70
|
+ {{ ismajorshow ? academyname : '请选择所属专业' }}
|
|
|
71
|
+ <image class="icon" src="../../static/zhuandao_icon@2x.png"></image>
|
|
|
72
|
+ </view>
|
|
|
73
|
+ </view>
|
|
|
74
|
+ </view>
|
|
|
75
|
+ <view class="okBtn" @click="collegeregister">注册</view>
|
|
|
76
|
+ <view class="subPopup" v-if="isSubPopupShow">
|
|
|
77
|
+ <view class="selectCard">
|
|
|
78
|
+ <view class="buttonBox">
|
|
|
79
|
+ <view class="closeBtn" @click="subPopupHide">取消</view>
|
|
|
80
|
+ <view class="confimBtn" @click="subPopupHide">确定</view>
|
|
|
81
|
+ </view>
|
|
|
82
|
+ <view class="subBox">
|
|
|
83
|
+ <view
|
|
|
84
|
+ class="subject"
|
|
|
85
|
+ @click="selsub"
|
|
|
86
|
+ :class="{ active: subid.indexOf(item.id) != -1 }"
|
|
|
87
|
+ v-for="(item, index) in sublist"
|
|
|
88
|
+ :key="index"
|
|
|
89
|
+ :data-id="item.id"
|
|
|
90
|
+ :data-name="item.name"
|
|
|
91
|
+ >
|
|
|
92
|
+ {{ item.name }}
|
|
|
93
|
+ </view>
|
|
|
94
|
+ </view>
|
|
|
95
|
+ </view>
|
|
|
96
|
+ </view>
|
|
|
97
|
+ <view class="stylePopup" v-if="isStylePopupShow">
|
|
|
98
|
+ <view class="styleCard">
|
|
|
99
|
+ <view class="buttonBox">
|
|
|
100
|
+ <view class="closeBtn" @click="stylePopupHide">取消</view>
|
|
|
101
|
+ <view class="confimBtn" @click="stylePopupHide">确定</view>
|
|
|
102
|
+ </view>
|
|
|
103
|
+ <view class="subBox">
|
|
|
104
|
+ <view
|
|
|
105
|
+ class="subject"
|
|
|
106
|
+ :class="{ active: upid == item.id }"
|
|
|
107
|
+ @click="selup"
|
|
|
108
|
+ v-for="(item, index) in uplist"
|
|
|
109
|
+ :key="index"
|
|
|
110
|
+ :data-id="item.id"
|
|
|
111
|
+ :data-name="item.name"
|
|
|
112
|
+ >
|
|
|
113
|
+ {{ item.name }}
|
|
|
114
|
+ </view>
|
|
|
115
|
+ </view>
|
|
|
116
|
+ </view>
|
|
|
117
|
+ </view>
|
|
|
118
|
+ </view>
|
81
|
</template>
|
119
|
</template>
|
82
|
|
120
|
|
83
|
<script>
|
121
|
<script>
|
84
|
- import app from "../../App.vue"
|
122
|
+import app from '../../App.vue';
|
85
|
|
123
|
|
86
|
export default {
|
124
|
export default {
|
87
|
- data(){
|
|
|
88
|
- return{
|
|
|
89
|
- isSubPopupShow:false,
|
|
|
90
|
- isStylePopupShow:false,
|
|
|
91
|
- username:'',
|
|
|
92
|
- image:'',
|
|
|
93
|
- isUpload:false,
|
|
|
94
|
- date: '请选择毕业年份',
|
|
|
95
|
- isDateShow: false,
|
|
|
96
|
- uplist:[],
|
|
|
97
|
- upid:'1',
|
|
|
98
|
- subid:[],
|
|
|
99
|
- sublist:[],
|
|
|
100
|
- collegename:'请选择就读大学',
|
|
|
101
|
- isNameShow:false,
|
|
|
102
|
- isHighShow:false,
|
|
|
103
|
- name:'请选择就读高中',
|
|
|
104
|
- subname:[],
|
|
|
105
|
- issubnameshow:false,
|
|
|
106
|
- upname:'请选择升学方式',
|
|
|
107
|
- isupnameshow:false,
|
|
|
108
|
- school_id:'',
|
|
|
109
|
- uni_id:'',
|
|
|
110
|
- academyname:'请选择所属学院',
|
|
|
111
|
- iscollgegshow:false,
|
|
|
112
|
- majorname:'请选择所属专业',
|
|
|
113
|
- ismajorshow:false,
|
|
|
114
|
- email:'',
|
|
|
115
|
- majorid:'',
|
|
|
116
|
- academyid:'',
|
|
|
117
|
- chuanimg:''
|
|
|
118
|
-
|
|
|
119
|
- }
|
|
|
120
|
- },
|
|
|
121
|
- methods:{
|
|
|
122
|
- selDate(){
|
|
|
123
|
- this.isDateShow=true
|
|
|
124
|
- },
|
|
|
125
|
- subPopupShow(){
|
|
|
126
|
- this.isSubPopupShow=true
|
|
|
127
|
- },
|
|
|
128
|
- subPopupHide(){
|
|
|
129
|
- this.isSubPopupShow=false
|
|
|
130
|
- },
|
|
|
131
|
- stylePopupShow(){
|
|
|
132
|
- this.isStylePopupShow=true
|
|
|
133
|
- },
|
|
|
134
|
- stylePopupHide(){
|
|
|
135
|
- this.isStylePopupShow=false
|
|
|
136
|
- },
|
|
|
137
|
- // toSchoolmate(){
|
125
|
+ data() {
|
|
|
126
|
+ return {
|
|
|
127
|
+ isSubPopupShow: false,
|
|
|
128
|
+ isStylePopupShow: false,
|
|
|
129
|
+ username: '',
|
|
|
130
|
+ image: '',
|
|
|
131
|
+ isUpload: false,
|
|
|
132
|
+ date: '请选择毕业年份',
|
|
|
133
|
+ isDateShow: false,
|
|
|
134
|
+ uplist: [],
|
|
|
135
|
+ upid: '1',
|
|
|
136
|
+ subid: [],
|
|
|
137
|
+ sublist: [],
|
|
|
138
|
+ collegename: '请选择就读大学',
|
|
|
139
|
+ isNameShow: false,
|
|
|
140
|
+ isHighShow: false,
|
|
|
141
|
+ name: '请选择就读高中',
|
|
|
142
|
+ subname: [],
|
|
|
143
|
+ issubnameshow: false,
|
|
|
144
|
+ upname: '请选择升学方式',
|
|
|
145
|
+ isupnameshow: false,
|
|
|
146
|
+ school_id: '',
|
|
|
147
|
+ uni_id: '',
|
|
|
148
|
+ academyname: '请选择所属学院',
|
|
|
149
|
+ iscollgegshow: false,
|
|
|
150
|
+ majorname: '请选择所属专业',
|
|
|
151
|
+ ismajorshow: false,
|
|
|
152
|
+ email: '',
|
|
|
153
|
+ majorid: '',
|
|
|
154
|
+ academyid: '',
|
|
|
155
|
+ chuanimg: '',
|
|
|
156
|
+ baseUrl: app.globalData.imageBaseUrl,
|
|
|
157
|
+ uploadImg: ''
|
|
|
158
|
+ };
|
|
|
159
|
+ },
|
|
|
160
|
+ methods: {
|
|
|
161
|
+ selDate() {
|
|
|
162
|
+ this.isDateShow = true;
|
|
|
163
|
+ },
|
|
|
164
|
+ subPopupShow() {
|
|
|
165
|
+ this.isSubPopupShow = true;
|
|
|
166
|
+ },
|
|
|
167
|
+ subPopupHide() {
|
|
|
168
|
+ this.isSubPopupShow = false;
|
|
|
169
|
+ },
|
|
|
170
|
+ stylePopupShow() {
|
|
|
171
|
+ this.isStylePopupShow = true;
|
|
|
172
|
+ },
|
|
|
173
|
+ stylePopupHide() {
|
|
|
174
|
+ this.isStylePopupShow = false;
|
|
|
175
|
+ },
|
138
|
|
176
|
|
139
|
- // wx.navigateTo({
|
|
|
140
|
- // url: "/pages/schoolmate/schoolmate?type="+2
|
|
|
141
|
- // })
|
|
|
142
|
- // },
|
|
|
143
|
- upload(){
|
|
|
144
|
- var that = this;
|
|
|
145
|
- uni.chooseImage({
|
|
|
146
|
- count: 1,
|
|
|
147
|
- sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
148
|
- sourceType: ['album'], //从相册选择
|
|
|
149
|
- success: function (res) {
|
|
|
150
|
- const tempFilePaths = res.tempFilePaths;
|
|
|
151
|
- that.image = tempFilePaths[0];
|
|
|
152
|
- app.upload('image',res.tempFilePaths[0],"post").then((res)=>{
|
|
|
153
|
- // let newimage=that.image
|
|
|
154
|
- that.image=res.url;
|
|
|
155
|
- that.chuanimg=res.kurl
|
|
|
156
|
- console.log(res)
|
|
|
157
|
- console.log(that.image)
|
|
|
158
|
- console.log(res.url)
|
|
|
159
|
- // newimage.push(res.url)
|
|
|
160
|
- that.isUpload=true
|
|
|
161
|
- }).catch((err)=>{
|
|
|
162
|
- console.log(err)
|
|
|
163
|
- })
|
|
|
164
|
- // console.log("tempFilePaths[0]",tempFilePaths[0]) //能够打印出选中的图片
|
|
|
165
|
- // console.log(res)
|
|
|
166
|
- // that.head_image=tempFilePaths[0]
|
|
|
167
|
- // that.iconcheck = 1;//点击后图片更改状态由0变成1
|
|
|
168
|
- },
|
|
|
169
|
- error : function(e){
|
|
|
170
|
- console.log(e);
|
|
|
171
|
- }
|
|
|
172
|
- });
|
|
|
173
|
- },
|
|
|
174
|
- bindTimeChange: function(e) {
|
|
|
175
|
- this.date = e.target.value
|
|
|
176
|
- },
|
|
|
177
|
- getUpType(){
|
|
|
178
|
- var that = this
|
|
|
179
|
- var url = "university/getAllUp"
|
|
|
180
|
- var params = {}
|
|
|
181
|
- app.post(url,params,"get").then((res)=>{
|
|
|
182
|
- console.log(res)
|
|
|
183
|
- that.uplist=res
|
|
|
184
|
- }).catch((err)=>{
|
|
|
185
|
- console.log(err)
|
|
|
186
|
- })
|
|
|
187
|
- },
|
|
|
188
|
- getAllSub(){
|
|
|
189
|
- var that=this
|
|
|
190
|
- var url = "university/listSubject"
|
|
|
191
|
- var params ={}
|
|
|
192
|
- app.post(url,params,"get").then((res)=>{
|
|
|
193
|
- that.sublist=res
|
|
|
194
|
- console.log(res)
|
|
|
195
|
- }).catch((err)=>{
|
|
|
196
|
- console.log(err)
|
|
|
197
|
- })
|
|
|
198
|
- },
|
|
|
199
|
- selup(e){
|
|
|
200
|
- this.isupnameshow=true
|
|
|
201
|
- console.log(e.currentTarget.dataset)
|
|
|
202
|
- this.upid=e.currentTarget.dataset.id
|
|
|
203
|
- this.upname=e.currentTarget.dataset.name
|
|
|
204
|
- },
|
|
|
205
|
- selsub(e){
|
|
|
206
|
- Array.prototype.remove = function(val) {
|
|
|
207
|
- var index = this.indexOf(val);
|
|
|
208
|
- if (index > -1) {
|
|
|
209
|
- this.splice(index, 1);
|
|
|
210
|
- }
|
|
|
211
|
- };
|
|
|
212
|
- this.issubnameshow=true
|
|
|
213
|
- if(this.subid.indexOf(e.currentTarget.dataset.id)!=-1){
|
|
|
214
|
- this.subid.remove(e.currentTarget.dataset.id)
|
|
|
215
|
- this.subname.remove(e.currentTarget.dataset.name)
|
|
|
216
|
- }else{
|
|
|
217
|
- this.subid.push(e.currentTarget.dataset.id)
|
|
|
218
|
- this.subname.push(e.currentTarget.dataset.name)
|
|
|
219
|
- }
|
|
|
220
|
- console.log(this.subid)
|
177
|
+ upload() {
|
|
|
178
|
+ var that = this;
|
|
|
179
|
+ uni.chooseImage({
|
|
|
180
|
+ count: 1,
|
|
|
181
|
+ sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
182
|
+ sourceType: ['album'], //从相册选择
|
|
|
183
|
+ success: function(res) {
|
|
|
184
|
+ const tempFilePaths = res.tempFilePaths;
|
|
|
185
|
+ that.image = tempFilePaths[0];
|
|
|
186
|
+ app.upload('image', res.tempFilePaths[0], 'post')
|
|
|
187
|
+ .then(res => {
|
|
|
188
|
+ that.image = res.url;
|
|
|
189
|
+ that.chuanimg = res.kurl;
|
|
|
190
|
+ that.uploadImg = that.baseUrl + res.kurl;
|
|
|
191
|
+ that.isUpload = true;
|
|
|
192
|
+ })
|
|
|
193
|
+ .catch(err => {
|
|
|
194
|
+ console.log(err);
|
|
|
195
|
+ });
|
|
|
196
|
+ },
|
|
|
197
|
+ error: function(e) {
|
|
|
198
|
+ console.log(e);
|
|
|
199
|
+ }
|
|
|
200
|
+ });
|
|
|
201
|
+ },
|
|
|
202
|
+ bindTimeChange: function(e) {
|
|
|
203
|
+ this.date = e.target.value;
|
|
|
204
|
+ },
|
|
|
205
|
+ getUpType() {
|
|
|
206
|
+ var that = this;
|
|
|
207
|
+ var url = 'university/getAllUp';
|
|
|
208
|
+ var params = {};
|
|
|
209
|
+ app.post(url, params, 'get')
|
|
|
210
|
+ .then(res => {
|
|
|
211
|
+ console.log(res);
|
|
|
212
|
+ that.uplist = res;
|
|
|
213
|
+ })
|
|
|
214
|
+ .catch(err => {
|
|
|
215
|
+ console.log(err);
|
|
|
216
|
+ });
|
|
|
217
|
+ },
|
|
|
218
|
+ getAllSub() {
|
|
|
219
|
+ var that = this;
|
|
|
220
|
+ var url = 'university/listSubject';
|
|
|
221
|
+ var params = {};
|
|
|
222
|
+ app.post(url, params, 'get')
|
|
|
223
|
+ .then(res => {
|
|
|
224
|
+ that.sublist = res;
|
|
|
225
|
+ console.log(res);
|
|
|
226
|
+ })
|
|
|
227
|
+ .catch(err => {
|
|
|
228
|
+ console.log(err);
|
|
|
229
|
+ });
|
|
|
230
|
+ },
|
|
|
231
|
+ selup(e) {
|
|
|
232
|
+ this.isupnameshow = true;
|
|
|
233
|
+ console.log(e.currentTarget.dataset);
|
|
|
234
|
+ this.upid = e.currentTarget.dataset.id;
|
|
|
235
|
+ this.upname = e.currentTarget.dataset.name;
|
|
|
236
|
+ },
|
|
|
237
|
+ selsub(e) {
|
|
|
238
|
+ Array.prototype.remove = function(val) {
|
|
|
239
|
+ var index = this.indexOf(val);
|
|
|
240
|
+ if (index > -1) {
|
|
|
241
|
+ this.splice(index, 1);
|
|
|
242
|
+ }
|
|
|
243
|
+ };
|
|
|
244
|
+ this.issubnameshow = true;
|
|
|
245
|
+ if (this.subid.indexOf(e.currentTarget.dataset.id) != -1) {
|
|
|
246
|
+ this.subid.remove(e.currentTarget.dataset.id);
|
|
|
247
|
+ this.subname.remove(e.currentTarget.dataset.name);
|
|
|
248
|
+ } else {
|
|
|
249
|
+ this.subid.push(e.currentTarget.dataset.id);
|
|
|
250
|
+ this.subname.push(e.currentTarget.dataset.name);
|
|
|
251
|
+ }
|
|
|
252
|
+ console.log(this.subid);
|
|
|
253
|
+ },
|
|
|
254
|
+ selcollege() {
|
|
|
255
|
+ this.isNameShow = true;
|
|
|
256
|
+ uni.navigateTo({
|
|
|
257
|
+ url: './selectCollege'
|
|
|
258
|
+ });
|
|
|
259
|
+ },
|
|
|
260
|
+ selhigh() {
|
|
|
261
|
+ this.isHighShow = true;
|
|
|
262
|
+ uni.navigateTo({
|
|
|
263
|
+ url: './selectSchool'
|
|
|
264
|
+ });
|
|
|
265
|
+ },
|
|
|
266
|
+ tocollege() {
|
|
|
267
|
+ this.iscollgegshow = true;
|
|
|
268
|
+ var school_id = this.uni_id;
|
|
|
269
|
+ console.log(school_id);
|
|
|
270
|
+ uni.navigateTo({
|
|
|
271
|
+ url: './selectAcademy?uni_id=' + school_id
|
|
|
272
|
+ });
|
|
|
273
|
+ },
|
|
|
274
|
+ tomajor() {
|
|
|
275
|
+ this.ismajorshow = true;
|
221
|
|
276
|
|
222
|
- },
|
|
|
223
|
- selcollege(){
|
|
|
224
|
- this.isNameShow=true
|
|
|
225
|
- uni.navigateTo({
|
|
|
226
|
- url:'./selectCollege'
|
|
|
227
|
- })
|
|
|
228
|
- },
|
|
|
229
|
- selhigh(){
|
|
|
230
|
- this.isHighShow=true
|
|
|
231
|
- uni.navigateTo({
|
|
|
232
|
- url:'./selectSchool'
|
|
|
233
|
- })
|
|
|
234
|
- },
|
|
|
235
|
- tocollege(){
|
|
|
236
|
- this.iscollgegshow=true
|
|
|
237
|
- var school_id = this.uni_id
|
|
|
238
|
- console.log(school_id)
|
|
|
239
|
- uni.navigateTo({
|
|
|
240
|
- url:'./selectAcademy?uni_id='+school_id
|
|
|
241
|
- })
|
|
|
242
|
- },
|
|
|
243
|
- tomajor(){
|
|
|
244
|
- this.ismajorshow=true
|
|
|
245
|
-
|
|
|
246
|
- uni.navigateTo({
|
|
|
247
|
- url:'./selectMajor'
|
|
|
248
|
- })
|
|
|
249
|
- },
|
|
|
250
|
- collegeregister(){
|
|
|
251
|
- var that = this
|
|
|
252
|
- if(that.username==''){
|
|
|
253
|
- uni.showToast({
|
|
|
254
|
- title:"姓名不能为空",
|
|
|
255
|
- icon:"none"
|
|
|
256
|
- })
|
|
|
257
|
- return false
|
|
|
258
|
- }
|
|
|
259
|
- var reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/ ;
|
|
|
260
|
- if(!reg.test(that.email)){
|
|
|
261
|
- uni.showToast({
|
|
|
262
|
- title:"请输入正确邮箱",
|
|
|
263
|
- icon:"none"
|
|
|
264
|
- })
|
|
|
265
|
- return false
|
|
|
266
|
- }
|
|
|
267
|
- if(that.image==''){
|
|
|
268
|
- uni.showToast({
|
|
|
269
|
- title:"请选择头像",
|
|
|
270
|
- icon:"none"
|
|
|
271
|
- })
|
|
|
272
|
- return false
|
|
|
273
|
- }
|
|
|
274
|
- if(that.name=='请选择就读高中'){
|
|
|
275
|
- uni.showToast({
|
|
|
276
|
- title:"请选择高中",
|
|
|
277
|
- icon:"none"
|
|
|
278
|
- })
|
|
|
279
|
- return false
|
|
|
280
|
- }
|
|
|
281
|
- if(that.date=='请选择毕业年份'){
|
|
|
282
|
- uni.showToast({
|
|
|
283
|
- title:"请选择毕业年份",
|
|
|
284
|
- icon:"none"
|
|
|
285
|
- })
|
|
|
286
|
- return false
|
|
|
287
|
- }
|
|
|
288
|
- if(that.subname=='请选择选考科目'){
|
|
|
289
|
- uni.showToast({
|
|
|
290
|
- title:"请选择选考科目",
|
|
|
291
|
- icon:"none"
|
|
|
292
|
- })
|
|
|
293
|
- return false
|
|
|
294
|
- }
|
|
|
295
|
- if(that.upname=='请选择升学方式'){
|
|
|
296
|
- uni.showToast({
|
|
|
297
|
- title:"请选择升学方式",
|
|
|
298
|
- icon:"none"
|
|
|
299
|
- })
|
|
|
300
|
- return false
|
|
|
301
|
- }
|
|
|
302
|
- if(that.collegename=='请选择就读大学'){
|
|
|
303
|
- uni.showToast({
|
|
|
304
|
- title:"请选择就读大学",
|
|
|
305
|
- icon:"none"
|
|
|
306
|
- })
|
|
|
307
|
- return false
|
|
|
308
|
- }
|
|
|
309
|
- if(that.academyname=='请选择所属学院'){
|
|
|
310
|
- uni.showToast({
|
|
|
311
|
- title:"请选择所属学院",
|
|
|
312
|
- icon:"none"
|
|
|
313
|
- })
|
|
|
314
|
- return false
|
|
|
315
|
- }
|
|
|
316
|
- if(that.majorname=='请选择所属专业'){
|
|
|
317
|
- uni.showToast({
|
|
|
318
|
- title:"请选择所属专业",
|
|
|
319
|
- icon:"none"
|
|
|
320
|
- })
|
|
|
321
|
- return false
|
|
|
322
|
- }
|
|
|
323
|
- var url = "register/register"
|
|
|
324
|
- var token = uni.getStorageSync('token')
|
|
|
325
|
- var params = {
|
|
|
326
|
- token:token,
|
|
|
327
|
- level:2,
|
|
|
328
|
- nickname:that.username,
|
|
|
329
|
- head_image:that.chuanimg,
|
|
|
330
|
- school_id:that.school_id,
|
|
|
331
|
- email:that.email,
|
|
|
332
|
- endtime:that.date,
|
|
|
333
|
- subject_ids:that.subid.toString(),
|
|
|
334
|
- up_id:that.upid,
|
|
|
335
|
- university_id:that.uni_id,
|
|
|
336
|
- graduated_id:that.majorid,
|
|
|
337
|
- college_id:that.academyid
|
|
|
338
|
-
|
|
|
339
|
- }
|
|
|
340
|
- app.post(url,params,"post").then((res)=>{
|
|
|
341
|
- console.log(res)
|
|
|
342
|
- // console.log(res)
|
|
|
343
|
- uni.showToast({
|
|
|
344
|
- title:"注册成功",
|
|
|
345
|
- icon:"none"
|
|
|
346
|
- })
|
|
|
347
|
- setTimeout(() => {
|
|
|
348
|
- uni.navigateTo({
|
|
|
349
|
- url: "/pages/schoolmate/schoolmate?type="+2
|
|
|
350
|
- })
|
|
|
351
|
- }, 1500);
|
|
|
352
|
- }).catch((err)=>{
|
|
|
353
|
- console.log(err)
|
|
|
354
|
- if(err.code==0){
|
|
|
355
|
- uni.showToast({
|
|
|
356
|
- title:err.msg,
|
|
|
357
|
- icon:'none'
|
|
|
358
|
- })
|
|
|
359
|
- }
|
|
|
360
|
-
|
|
|
361
|
- })
|
|
|
362
|
- }
|
|
|
363
|
-
|
|
|
364
|
- },
|
|
|
365
|
- onLoad(){
|
|
|
366
|
- this.getUpType()
|
|
|
367
|
- this.getAllSub()
|
|
|
368
|
- }
|
|
|
369
|
-
|
|
|
370
|
-}
|
277
|
+ uni.navigateTo({
|
|
|
278
|
+ url: './selectMajor'
|
|
|
279
|
+ });
|
|
|
280
|
+ },
|
|
|
281
|
+ collegeregister() {
|
|
|
282
|
+ var that = this;
|
|
|
283
|
+ if (that.username == '') {
|
|
|
284
|
+ uni.showToast({
|
|
|
285
|
+ title: '姓名不能为空',
|
|
|
286
|
+ icon: 'none'
|
|
|
287
|
+ });
|
|
|
288
|
+ return false;
|
|
|
289
|
+ }
|
|
|
290
|
+ var reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
|
|
|
291
|
+ if (!reg.test(that.email)) {
|
|
|
292
|
+ uni.showToast({
|
|
|
293
|
+ title: '请输入正确邮箱',
|
|
|
294
|
+ icon: 'none'
|
|
|
295
|
+ });
|
|
|
296
|
+ return false;
|
|
|
297
|
+ }
|
|
|
298
|
+ if (that.image == '') {
|
|
|
299
|
+ uni.showToast({
|
|
|
300
|
+ title: '请选择头像',
|
|
|
301
|
+ icon: 'none'
|
|
|
302
|
+ });
|
|
|
303
|
+ return false;
|
|
|
304
|
+ }
|
|
|
305
|
+ if (that.name == '请选择就读高中') {
|
|
|
306
|
+ uni.showToast({
|
|
|
307
|
+ title: '请选择高中',
|
|
|
308
|
+ icon: 'none'
|
|
|
309
|
+ });
|
|
|
310
|
+ return false;
|
|
|
311
|
+ }
|
|
|
312
|
+ if (that.date == '请选择毕业年份') {
|
|
|
313
|
+ uni.showToast({
|
|
|
314
|
+ title: '请选择毕业年份',
|
|
|
315
|
+ icon: 'none'
|
|
|
316
|
+ });
|
|
|
317
|
+ return false;
|
|
|
318
|
+ }
|
|
|
319
|
+ if (that.subname == '请选择选考科目') {
|
|
|
320
|
+ uni.showToast({
|
|
|
321
|
+ title: '请选择选考科目',
|
|
|
322
|
+ icon: 'none'
|
|
|
323
|
+ });
|
|
|
324
|
+ return false;
|
|
|
325
|
+ }
|
|
|
326
|
+ if (that.upname == '请选择升学方式') {
|
|
|
327
|
+ uni.showToast({
|
|
|
328
|
+ title: '请选择升学方式',
|
|
|
329
|
+ icon: 'none'
|
|
|
330
|
+ });
|
|
|
331
|
+ return false;
|
|
|
332
|
+ }
|
|
|
333
|
+ if (that.collegename == '请选择就读大学') {
|
|
|
334
|
+ uni.showToast({
|
|
|
335
|
+ title: '请选择就读大学',
|
|
|
336
|
+ icon: 'none'
|
|
|
337
|
+ });
|
|
|
338
|
+ return false;
|
|
|
339
|
+ }
|
|
|
340
|
+ if (that.academyname == '请选择所属学院') {
|
|
|
341
|
+ uni.showToast({
|
|
|
342
|
+ title: '请选择所属学院',
|
|
|
343
|
+ icon: 'none'
|
|
|
344
|
+ });
|
|
|
345
|
+ return false;
|
|
|
346
|
+ }
|
|
|
347
|
+ if (that.majorname == '请选择所属专业') {
|
|
|
348
|
+ uni.showToast({
|
|
|
349
|
+ title: '请选择所属专业',
|
|
|
350
|
+ icon: 'none'
|
|
|
351
|
+ });
|
|
|
352
|
+ return false;
|
|
|
353
|
+ }
|
|
|
354
|
+ var url = 'register/register';
|
|
|
355
|
+ var token = uni.getStorageSync('token');
|
|
|
356
|
+ var params = {
|
|
|
357
|
+ token: token,
|
|
|
358
|
+ level: 2,
|
|
|
359
|
+ nickname: that.username,
|
|
|
360
|
+ head_image: that.chuanimg,
|
|
|
361
|
+ school_id: that.school_id,
|
|
|
362
|
+ email: that.email,
|
|
|
363
|
+ endtime: that.date,
|
|
|
364
|
+ subject_ids: that.subid.toString(),
|
|
|
365
|
+ up_id: that.upid,
|
|
|
366
|
+ university_id: that.uni_id,
|
|
|
367
|
+ graduated_id: that.majorid,
|
|
|
368
|
+ college_id: that.academyid
|
|
|
369
|
+ };
|
|
|
370
|
+ app.post(url, params, 'post')
|
|
|
371
|
+ .then(res => {
|
|
|
372
|
+ console.log(res);
|
|
|
373
|
+ // console.log(res)
|
|
|
374
|
+ uni.showToast({
|
|
|
375
|
+ title: '注册成功',
|
|
|
376
|
+ icon: 'none'
|
|
|
377
|
+ });
|
|
|
378
|
+ setTimeout(() => {
|
|
|
379
|
+ uni.navigateTo({
|
|
|
380
|
+ url: '/pages/schoolmate/schoolmate?type=' + 2
|
|
|
381
|
+ });
|
|
|
382
|
+ }, 1500);
|
|
|
383
|
+ })
|
|
|
384
|
+ .catch(err => {
|
|
|
385
|
+ console.log(err);
|
|
|
386
|
+ if (err.code == 0) {
|
|
|
387
|
+ uni.showToast({
|
|
|
388
|
+ title: err.msg,
|
|
|
389
|
+ icon: 'none'
|
|
|
390
|
+ });
|
|
|
391
|
+ }
|
|
|
392
|
+ });
|
|
|
393
|
+ }
|
|
|
394
|
+ },
|
|
|
395
|
+ onLoad() {
|
|
|
396
|
+ this.getUpType();
|
|
|
397
|
+ this.getAllSub();
|
|
|
398
|
+ }
|
|
|
399
|
+};
|
371
|
</script>
|
400
|
</script>
|
372
|
|
401
|
|
373
|
<style lang="less">
|
402
|
<style lang="less">
|
374
|
-.content{
|
|
|
375
|
- padding: 32rpx;
|
|
|
376
|
- background:rgba(249,249,249,1);
|
|
|
377
|
- font-size: 28rpx;
|
|
|
378
|
- .studentMsg{
|
|
|
379
|
- background-color: #fff;
|
|
|
380
|
- padding: 0rpx 32rpx;
|
|
|
381
|
- border-radius:20rpx;
|
|
|
382
|
- .item{
|
|
|
383
|
- height: 114rpx;
|
|
|
384
|
- display: flex;
|
|
|
385
|
- justify-content: space-between;
|
|
|
386
|
- align-items: center;
|
|
|
387
|
- border-bottom: 1rpx solid rgba(238,238,238,1);
|
|
|
388
|
- font-size: 28rpx;
|
|
|
389
|
- .title{
|
|
|
390
|
- // line-height: 114px;
|
|
|
391
|
- padding: 30rpx 0;
|
|
|
392
|
- // box-sizing: border-box;
|
|
|
393
|
- }
|
|
|
394
|
- .selectBtn{
|
|
|
395
|
- color:rgba(189,196,206,1);
|
|
|
396
|
- line-height: 114rpx;
|
|
|
397
|
-
|
|
|
398
|
- }
|
|
|
399
|
- .icon{
|
|
|
400
|
- width: 13rpx;
|
|
|
401
|
- height: 24rpx;
|
|
|
402
|
- margin-left: 8rpx;
|
|
|
403
|
- }
|
|
|
404
|
- .inpt{
|
|
|
405
|
- height: 114rpx;
|
|
|
406
|
- text-align: right;
|
|
|
407
|
- // width: 250rpx;
|
|
|
408
|
- }
|
|
|
409
|
- .photo{
|
|
|
410
|
- width: 64rpx;
|
|
|
411
|
- height: 64rpx;
|
|
|
412
|
- margin-top: 20rpx;
|
|
|
413
|
- border-radius: 50%;
|
|
|
414
|
- }
|
|
|
415
|
- }
|
|
|
416
|
- }
|
|
|
417
|
- .schoolTitle{
|
|
|
418
|
- font-size:32rpx;
|
|
|
419
|
- color:rgba(45,85,117,1);
|
|
|
420
|
- margin-top: 44rpx;
|
|
|
421
|
- margin-bottom: 12rpx;
|
|
|
422
|
- }
|
|
|
423
|
- .okBtn{
|
|
|
424
|
- width:686rpx;
|
|
|
425
|
- height:80rpx;
|
|
|
426
|
- background:rgba(45,85,117,1);
|
|
|
427
|
- opacity:1;
|
|
|
428
|
- border-radius:8rpx;
|
|
|
429
|
- font-size: 28rpx;
|
|
|
430
|
- color: #fff;
|
|
|
431
|
- line-height: 80rpx;
|
|
|
432
|
- text-align: center;
|
|
|
433
|
- margin-top: 56rpx;
|
|
|
434
|
- }
|
|
|
435
|
- .subPopup{
|
|
|
436
|
- width: 100%;
|
|
|
437
|
- height: 100%;
|
|
|
438
|
- background-color: rgba(0, 0, 0, 0.5);
|
|
|
439
|
- position: fixed;
|
|
|
440
|
- top: 0;
|
|
|
441
|
- left: 0;
|
|
|
442
|
- right: 0;
|
|
|
443
|
- z-index: 999;
|
|
|
444
|
- .selectCard{
|
|
|
445
|
- width: 750rpx;
|
|
|
446
|
- height: 426rpx;
|
|
|
447
|
- background:rgba(255,255,255,1);
|
|
|
448
|
- // opacity:1;
|
|
|
449
|
- border-radius:20px 20px 0px 0px;
|
|
|
450
|
- position: absolute;
|
|
|
451
|
- bottom: 0;
|
|
|
452
|
- .buttonBox{
|
|
|
453
|
- display: flex;
|
|
|
454
|
- justify-content: space-between;
|
|
|
455
|
- padding: 28rpx 30rpx;
|
|
|
456
|
- font-size: 28rpx;
|
|
|
457
|
- .closeBtn{
|
|
|
458
|
- color:rgba(140,145,152,1);
|
|
|
459
|
- }
|
|
|
460
|
- .confimBtn{
|
|
|
461
|
- color:rgba(45,85,117,1);
|
|
|
462
|
- }
|
|
|
463
|
- }
|
|
|
464
|
- .subBox{
|
|
|
465
|
- display: flex;
|
|
|
466
|
- flex-wrap: wrap;
|
|
|
467
|
- justify-content: space-between;
|
|
|
468
|
- padding: 16rpx 32rpx;
|
|
|
469
|
- .active{
|
|
|
470
|
- background:rgba(129,195,191,1);
|
|
|
471
|
- border:2rpx solid rgba(129,195,191,1);
|
|
|
472
|
- color: #fff;
|
|
|
473
|
- }
|
|
|
474
|
- }
|
|
|
475
|
- .subject{
|
|
|
476
|
- width:28%;
|
|
|
477
|
- height:56rpx;
|
|
|
478
|
- background: #fff;
|
|
|
479
|
- border:1rpx solid rgba(6,18,30,1);
|
|
|
480
|
- opacity:1;
|
|
|
481
|
- border-radius:40rpx;
|
|
|
482
|
- text-align: center;
|
|
|
483
|
- line-height: 56rpx;
|
|
|
484
|
- color:rgba(6,18,30,1);
|
|
|
485
|
- font-size: 28rpx;
|
|
|
486
|
- margin-bottom: 36rpx;
|
|
|
487
|
- }
|
|
|
488
|
- }
|
|
|
489
|
- }
|
|
|
490
|
- .stylePopup{
|
|
|
491
|
- width: 100%;
|
|
|
492
|
- height: 100%;
|
|
|
493
|
- background-color: rgba(0, 0, 0, 0.5);
|
|
|
494
|
- position: fixed;
|
|
|
495
|
- top: 0;
|
|
|
496
|
- left: 0;
|
|
|
497
|
- right: 0;
|
|
|
498
|
- z-index: 999;
|
|
|
499
|
- .styleCard{
|
|
|
500
|
- width: 750rpx;
|
|
|
501
|
- height: 228rpx;
|
|
|
502
|
- background:rgba(255,255,255,1);
|
|
|
503
|
- // opacity:1;
|
|
|
504
|
- border-radius:20px 20px 0px 0px;
|
|
|
505
|
- position: absolute;
|
|
|
506
|
- bottom: 0;
|
|
|
507
|
- .buttonBox{
|
|
|
508
|
- display: flex;
|
|
|
509
|
- justify-content: space-between;
|
|
|
510
|
- padding: 28rpx 30rpx;
|
|
|
511
|
- font-size: 28rpx;
|
|
|
512
|
- .closeBtn{
|
|
|
513
|
- color:rgba(140,145,152,1);
|
|
|
514
|
- }
|
|
|
515
|
- .confimBtn{
|
|
|
516
|
- color:rgba(45,85,117,1);
|
|
|
517
|
- }
|
|
|
518
|
- }
|
|
|
519
|
- .subBox{
|
|
|
520
|
- display: flex;
|
|
|
521
|
- flex-wrap: wrap;
|
|
|
522
|
- justify-content: space-around;
|
|
|
523
|
- padding: 16rpx 32rpx;
|
|
|
524
|
- .active{
|
|
|
525
|
- background:rgba(129,195,191,1);
|
|
|
526
|
- border:2rpx solid rgba(129,195,191,1);
|
|
|
527
|
- color: #fff;
|
|
|
528
|
- }
|
|
|
529
|
- }
|
|
|
530
|
- .subject{
|
|
|
531
|
- width:28%;
|
|
|
532
|
- height:56rpx;
|
|
|
533
|
- background: #fff;
|
|
|
534
|
- border:1rpx solid rgba(6,18,30,1);
|
|
|
535
|
- opacity:1;
|
|
|
536
|
- border-radius:40rpx;
|
|
|
537
|
- text-align: center;
|
|
|
538
|
- line-height: 56rpx;
|
|
|
539
|
- color:rgba(6,18,30,1);
|
|
|
540
|
- font-size: 28rpx;
|
|
|
541
|
- margin-bottom: 36rpx;
|
|
|
542
|
- }
|
|
|
543
|
- }
|
|
|
544
|
- }
|
403
|
+.content {
|
|
|
404
|
+ padding: 32rpx;
|
|
|
405
|
+ background: rgba(249, 249, 249, 1);
|
|
|
406
|
+ font-size: 28rpx;
|
|
|
407
|
+ .studentMsg {
|
|
|
408
|
+ background-color: #fff;
|
|
|
409
|
+ padding: 0rpx 32rpx;
|
|
|
410
|
+ border-radius: 20rpx;
|
|
|
411
|
+ .item {
|
|
|
412
|
+ height: 114rpx;
|
|
|
413
|
+ display: flex;
|
|
|
414
|
+ justify-content: space-between;
|
|
|
415
|
+ align-items: center;
|
|
|
416
|
+ border-bottom: 1rpx solid rgba(238, 238, 238, 1);
|
|
|
417
|
+ font-size: 28rpx;
|
|
|
418
|
+ .title {
|
|
|
419
|
+ // line-height: 114px;
|
|
|
420
|
+ padding: 30rpx 0;
|
|
|
421
|
+ // box-sizing: border-box;
|
|
|
422
|
+ }
|
|
|
423
|
+ .selectBtn {
|
|
|
424
|
+ color: rgba(189, 196, 206, 1);
|
|
|
425
|
+ line-height: 114rpx;
|
|
|
426
|
+ }
|
|
|
427
|
+ .icon {
|
|
|
428
|
+ width: 13rpx;
|
|
|
429
|
+ height: 24rpx;
|
|
|
430
|
+ margin-left: 8rpx;
|
|
|
431
|
+ }
|
|
|
432
|
+ .inpt {
|
|
|
433
|
+ height: 114rpx;
|
|
|
434
|
+ text-align: right;
|
|
|
435
|
+ // width: 250rpx;
|
|
|
436
|
+ }
|
|
|
437
|
+ .photo {
|
|
|
438
|
+ width: 64rpx;
|
|
|
439
|
+ height: 64rpx;
|
|
|
440
|
+ margin-top: 20rpx;
|
|
|
441
|
+ border-radius: 50%;
|
|
|
442
|
+ }
|
|
|
443
|
+ }
|
|
|
444
|
+ }
|
|
|
445
|
+ .schoolTitle {
|
|
|
446
|
+ font-size: 32rpx;
|
|
|
447
|
+ color: rgba(45, 85, 117, 1);
|
|
|
448
|
+ margin-top: 44rpx;
|
|
|
449
|
+ margin-bottom: 12rpx;
|
|
|
450
|
+ }
|
|
|
451
|
+ .okBtn {
|
|
|
452
|
+ width: 686rpx;
|
|
|
453
|
+ height: 80rpx;
|
|
|
454
|
+ background: rgba(45, 85, 117, 1);
|
|
|
455
|
+ opacity: 1;
|
|
|
456
|
+ border-radius: 8rpx;
|
|
|
457
|
+ font-size: 28rpx;
|
|
|
458
|
+ color: #fff;
|
|
|
459
|
+ line-height: 80rpx;
|
|
|
460
|
+ text-align: center;
|
|
|
461
|
+ margin-top: 56rpx;
|
|
|
462
|
+ }
|
|
|
463
|
+ .subPopup {
|
|
|
464
|
+ width: 100%;
|
|
|
465
|
+ height: 100%;
|
|
|
466
|
+ background-color: rgba(0, 0, 0, 0.5);
|
|
|
467
|
+ position: fixed;
|
|
|
468
|
+ top: 0;
|
|
|
469
|
+ left: 0;
|
|
|
470
|
+ right: 0;
|
|
|
471
|
+ z-index: 999;
|
|
|
472
|
+ .selectCard {
|
|
|
473
|
+ width: 750rpx;
|
|
|
474
|
+ height: 426rpx;
|
|
|
475
|
+ background: rgba(255, 255, 255, 1);
|
|
|
476
|
+ // opacity:1;
|
|
|
477
|
+ border-radius: 20px 20px 0px 0px;
|
|
|
478
|
+ position: absolute;
|
|
|
479
|
+ bottom: 0;
|
|
|
480
|
+ .buttonBox {
|
|
|
481
|
+ display: flex;
|
|
|
482
|
+ justify-content: space-between;
|
|
|
483
|
+ padding: 28rpx 30rpx;
|
|
|
484
|
+ font-size: 28rpx;
|
|
|
485
|
+ .closeBtn {
|
|
|
486
|
+ color: rgba(140, 145, 152, 1);
|
|
|
487
|
+ }
|
|
|
488
|
+ .confimBtn {
|
|
|
489
|
+ color: rgba(45, 85, 117, 1);
|
|
|
490
|
+ }
|
|
|
491
|
+ }
|
|
|
492
|
+ .subBox {
|
|
|
493
|
+ display: flex;
|
|
|
494
|
+ flex-wrap: wrap;
|
|
|
495
|
+ justify-content: space-between;
|
|
|
496
|
+ padding: 16rpx 32rpx;
|
|
|
497
|
+ .active {
|
|
|
498
|
+ background: rgba(129, 195, 191, 1);
|
|
|
499
|
+ border: 2rpx solid rgba(129, 195, 191, 1);
|
|
|
500
|
+ color: #fff;
|
|
|
501
|
+ }
|
|
|
502
|
+ }
|
|
|
503
|
+ .subject {
|
|
|
504
|
+ width: 28%;
|
|
|
505
|
+ height: 56rpx;
|
|
|
506
|
+ background: #fff;
|
|
|
507
|
+ border: 1rpx solid rgba(6, 18, 30, 1);
|
|
|
508
|
+ opacity: 1;
|
|
|
509
|
+ border-radius: 40rpx;
|
|
|
510
|
+ text-align: center;
|
|
|
511
|
+ line-height: 56rpx;
|
|
|
512
|
+ color: rgba(6, 18, 30, 1);
|
|
|
513
|
+ font-size: 28rpx;
|
|
|
514
|
+ margin-bottom: 36rpx;
|
|
|
515
|
+ }
|
|
|
516
|
+ }
|
|
|
517
|
+ }
|
|
|
518
|
+ .stylePopup {
|
|
|
519
|
+ width: 100%;
|
|
|
520
|
+ height: 100%;
|
|
|
521
|
+ background-color: rgba(0, 0, 0, 0.5);
|
|
|
522
|
+ position: fixed;
|
|
|
523
|
+ top: 0;
|
|
|
524
|
+ left: 0;
|
|
|
525
|
+ right: 0;
|
|
|
526
|
+ z-index: 999;
|
|
|
527
|
+ .styleCard {
|
|
|
528
|
+ width: 750rpx;
|
|
|
529
|
+ height: 228rpx;
|
|
|
530
|
+ background: rgba(255, 255, 255, 1);
|
|
|
531
|
+ // opacity:1;
|
|
|
532
|
+ border-radius: 20px 20px 0px 0px;
|
|
|
533
|
+ position: absolute;
|
|
|
534
|
+ bottom: 0;
|
|
|
535
|
+ .buttonBox {
|
|
|
536
|
+ display: flex;
|
|
|
537
|
+ justify-content: space-between;
|
|
|
538
|
+ padding: 28rpx 30rpx;
|
|
|
539
|
+ font-size: 28rpx;
|
|
|
540
|
+ .closeBtn {
|
|
|
541
|
+ color: rgba(140, 145, 152, 1);
|
|
|
542
|
+ }
|
|
|
543
|
+ .confimBtn {
|
|
|
544
|
+ color: rgba(45, 85, 117, 1);
|
|
|
545
|
+ }
|
|
|
546
|
+ }
|
|
|
547
|
+ .subBox {
|
|
|
548
|
+ display: flex;
|
|
|
549
|
+ flex-wrap: wrap;
|
|
|
550
|
+ justify-content: space-around;
|
|
|
551
|
+ padding: 16rpx 32rpx;
|
|
|
552
|
+ .active {
|
|
|
553
|
+ background: rgba(129, 195, 191, 1);
|
|
|
554
|
+ border: 2rpx solid rgba(129, 195, 191, 1);
|
|
|
555
|
+ color: #fff;
|
|
|
556
|
+ }
|
|
|
557
|
+ }
|
|
|
558
|
+ .subject {
|
|
|
559
|
+ width: 28%;
|
|
|
560
|
+ height: 56rpx;
|
|
|
561
|
+ background: #fff;
|
|
|
562
|
+ border: 1rpx solid rgba(6, 18, 30, 1);
|
|
|
563
|
+ opacity: 1;
|
|
|
564
|
+ border-radius: 40rpx;
|
|
|
565
|
+ text-align: center;
|
|
|
566
|
+ line-height: 56rpx;
|
|
|
567
|
+ color: rgba(6, 18, 30, 1);
|
|
|
568
|
+ font-size: 28rpx;
|
|
|
569
|
+ margin-bottom: 36rpx;
|
|
|
570
|
+ }
|
|
|
571
|
+ }
|
|
|
572
|
+ }
|
545
|
}
|
573
|
}
|
546
|
-</style> |
|
|
|
|
574
|
+</style> |