新生报到移动端V1.0
This commit is contained in:
17
api/arrivalinfoApi.js
Normal file
17
api/arrivalinfoApi.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function getOwnArrInfo(){
|
||||
return axios.get("/stureg/pickstation/info");
|
||||
}
|
||||
|
||||
export function addOwnArrInfo(data){
|
||||
return axios.post("/stureg/pickstation/info",data);
|
||||
}
|
||||
|
||||
export function getVehicle(){
|
||||
return axios.get("/system/dict/data/type/vehicle_types");
|
||||
}
|
||||
|
||||
export function updateArrInfo(){
|
||||
return axios.get("/stureg/pickstation/update");
|
||||
}
|
30
api/dormApi.js
Normal file
30
api/dormApi.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function listRoom(query){
|
||||
return axios.get("/dormitory/dms-dormitory-class/selectDormByStu",query)
|
||||
}
|
||||
|
||||
export function chooseBed(param){
|
||||
return axios.post("/dormitory/srs-dormitory-student/add",param)
|
||||
}
|
||||
|
||||
export function getBedsInfoByDormId(id){
|
||||
return axios.get("/dormitory/dms-dormitory-bed/info/"+id);
|
||||
}
|
||||
|
||||
export function cancelOwnBed(){
|
||||
return axios.del("/dormitory/srs-dormitory-student/cancel")
|
||||
}
|
||||
|
||||
|
||||
export function getOwnRoomInfo(){
|
||||
return axios.get("/dormitory/dms-dormitory-bed/getOwnRoomInfo")
|
||||
}
|
||||
|
||||
export function listOwnCanSelectDorm(){
|
||||
return axios.get("/dormitory/dms-dormitory-class/listOwnCanSelectDorm")
|
||||
}
|
||||
|
||||
export function getOwnDorm(){
|
||||
return axios.get("/dormitory/reg/getOwnDorm")
|
||||
}
|
5
api/feedbackApi.js
Normal file
5
api/feedbackApi.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function addFeedback(param){
|
||||
return axios.post("/system/feedback",param);
|
||||
}
|
37
api/helpFunc.js
Normal file
37
api/helpFunc.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import {
|
||||
BASE_URL
|
||||
} from "@/config/baseUrl.js";
|
||||
|
||||
let IMG_URL="http://zhxg.gxsdxy.cn/prod_api";
|
||||
export function isEmpty(obj) {
|
||||
if (obj == "" || obj == null || obj == undefined || obj.length == 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function getImgSrc(src) {
|
||||
if (isEmpty(src)) {
|
||||
return "http://greenfw.ah.hostadm.net/i/np2.gif";
|
||||
} else {
|
||||
return IMG_URL + src;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export function getRegStatus(status) {
|
||||
switch (status) {
|
||||
case "1":
|
||||
return "已缴费";
|
||||
case "2":
|
||||
return "已激活待缴费"
|
||||
case "3":
|
||||
return "已报到";
|
||||
case "4":
|
||||
return "在校";
|
||||
case "0":
|
||||
default:
|
||||
return "未激活";
|
||||
}
|
||||
}
|
12
api/information-check.js
Normal file
12
api/information-check.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function getCheckList(){
|
||||
return axios.get("/stureg/check/list")
|
||||
}
|
||||
|
||||
export function updateCheck(){
|
||||
return axios.get("/stureg/check/update")
|
||||
}
|
||||
export function getCheckksh(){
|
||||
return axios.get("/stureg/check/ksh")
|
||||
}
|
12
api/notifyApi.js
Normal file
12
api/notifyApi.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
|
||||
// 查询新生报到通知列表
|
||||
export function listNotify(query = null) {
|
||||
return axios.get('/system/notify/list', query)
|
||||
}
|
||||
|
||||
// 查询新生报到通知详细
|
||||
export function getNotify(id) {
|
||||
return axios.get('/system/notify/' + id)
|
||||
}
|
9
api/orderApi.js
Normal file
9
api/orderApi.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function toPay(){
|
||||
return axios.post("/system/order/toPay")
|
||||
}
|
||||
|
||||
export function getOrder(){
|
||||
return axios.post("/system/order/getOrderList")
|
||||
}
|
58
api/photo.js
Normal file
58
api/photo.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import request from '@/config/api.js'
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
//查询学生照片
|
||||
export function getOwnPhoto(){
|
||||
return axios.get("/stureg/photo/getOwnPhoto");
|
||||
}
|
||||
|
||||
|
||||
//提交学生照片
|
||||
export function submitOwnPhoto(data){
|
||||
return axios.post("/stureg/photo/submitOwnPhoto",data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 查询新生照片列表
|
||||
export function listPhoto(query) {
|
||||
return request({
|
||||
url: '/stureg/photo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询新生照片详细
|
||||
export function getPhoto(id) {
|
||||
return request({
|
||||
url: '/stureg/photo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增新生照片
|
||||
export function addPhoto(data) {
|
||||
return request({
|
||||
url: '/stureg/photo/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改新生照片
|
||||
export function updatePhoto(data) {
|
||||
return request({
|
||||
url: '/stureg/photo/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除新生照片
|
||||
export function delPhoto(id) {
|
||||
return request({
|
||||
url: '/stureg/photo/' + id,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
9
api/sizeApi.js
Normal file
9
api/sizeApi.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function getOwnSize(){
|
||||
return axios.get("/stureg/size/getOwnSize");
|
||||
}
|
||||
|
||||
export function submitOwnSize(data){
|
||||
return axios.post("/stureg/size/submitOwnSize",data)
|
||||
}
|
60
api/toApi.js
Normal file
60
api/toApi.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function listTodo(query = {}){
|
||||
return axios.get('/system/list/listAll',query)
|
||||
}
|
||||
|
||||
export function listOwnTodo(query = {}){
|
||||
return axios.get("/system/todo/listowntodo",query)
|
||||
}
|
||||
|
||||
export function listTask(query){
|
||||
return axios.get("/system/list/getList",query)
|
||||
}
|
||||
|
||||
export function listOwnTask(){
|
||||
return axios.get("/system/todo/listOwnTask")
|
||||
}
|
||||
|
||||
export function confirmRxxz(){
|
||||
return axios.post("/system/todo/confirmRxxz")
|
||||
}
|
||||
|
||||
export function getOwnTaskStatusByCode(code){
|
||||
return axios.get("/system/todo/getOwnTaskStatusByCode/"+code)
|
||||
}
|
||||
|
||||
export function confirmZyqr(){
|
||||
return axios.post("/system/todo/confirmZyqr")
|
||||
}
|
||||
|
||||
export function confirmZxxs(){
|
||||
return axios.post("/system/todo/confirmZxxs")
|
||||
}
|
||||
|
||||
//确定助学贷款
|
||||
export function confirmZxdk(data){
|
||||
return axios.post("/system/reg/stuInfo",data)
|
||||
}
|
||||
//号码确认
|
||||
export function confirmHmqr(){
|
||||
return axios.post("/system/todo/confirmHmqr")
|
||||
}
|
||||
//报道核验
|
||||
|
||||
export function confirmBdhy(){
|
||||
return axios.post("/system/todo/confirmBdhy")
|
||||
}
|
||||
|
||||
export function sendSmsUpdatePwd(data){
|
||||
return axios.post("/system/queue/sendSmsUpdatePwd",data)
|
||||
}
|
||||
//验证账号
|
||||
export function verifyPwd(data){
|
||||
return axios.post("/system/reg/verifyPwd",data);
|
||||
}
|
||||
//忘记密码
|
||||
checkPwd
|
||||
export function checkPwd(data){
|
||||
return axios.post("/system/reg/checkPwd",data);
|
||||
}
|
66
api/validApi.js
Normal file
66
api/validApi.js
Normal file
@@ -0,0 +1,66 @@
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
export function validToken(){
|
||||
return axios.post("/system/order/validToken")
|
||||
}
|
||||
|
||||
export function getUserInfo(){
|
||||
return axios.post("/system/reg/getOwnInfo")
|
||||
}
|
||||
|
||||
export function doLogin(data){
|
||||
return axios.post("/login",data);
|
||||
}
|
||||
|
||||
export function doAct(data){
|
||||
return axios.post("/system/reg/verifyXX",data)
|
||||
}
|
||||
|
||||
export function doSendMsg(data){
|
||||
return axios.post("/system/queue/sendSms",data)
|
||||
}
|
||||
|
||||
export function changePwd(data){
|
||||
return axios.post("/system/user/resetPwdUpdate",data)
|
||||
}
|
||||
|
||||
export function editInfo(data){
|
||||
return axios.post("/system/reg/stuInfo",data);
|
||||
}
|
||||
|
||||
export function getInfo(data){
|
||||
return axios.get("/system/reg/stuInfo");
|
||||
}
|
||||
|
||||
export function getOwnTodoInfo(id){
|
||||
return axios.get("/system/todo/getInfoByStudent/"+id);
|
||||
}
|
||||
|
||||
// 根据手机号获取手机验证码 更换手机号
|
||||
export function verifyPhone(data){
|
||||
return axios.post("/system/reg/verifyPhone",data);
|
||||
}
|
||||
//根据考生号获取考试原始信息
|
||||
export function getOwnInfo(data){
|
||||
return axios.post("/system/reg/getOwnInfo?ksh="+data);
|
||||
}
|
||||
|
||||
// 修改手机号发送验证码
|
||||
// sendSmsUpdatePhone
|
||||
export function sendSmsUpdatePhone(data){
|
||||
return axios.post("/system/queue/sendSmsUpdatePhone",data);
|
||||
}
|
||||
|
||||
//退出登录
|
||||
export function exitLogin(){
|
||||
return axios.post("/logout");
|
||||
}
|
||||
|
||||
//获取修改电话信息
|
||||
export function GetOwnInfo(){
|
||||
return axios.post("/stureg/checkphone/getOwnInfo");
|
||||
}
|
||||
//修改电话
|
||||
export function updateNumber(data){
|
||||
return axios.post("/stureg/checkphone/update",data);
|
||||
}
|
Reference in New Issue
Block a user