Commit d6515bc0 by sunerhu

1.修改毕业院校无法填写问题

2.提交补充Html 文件
parent 7a93ee6c
...@@ -18,7 +18,6 @@ export default { ...@@ -18,7 +18,6 @@ export default {
const chartData = ref(props.chartData); const chartData = ref(props.chartData);
const tap = (e)=>{ const tap = (e)=>{
const index = e.currentIndex.index; const index = e.currentIndex.index;
console.log(e)
content.emit('getIndex',index) content.emit('getIndex',index)
} }
return {chartData,tap} return {chartData,tap}
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
this.ctx.lineWidth = 4; this.ctx.lineWidth = 4;
this.ctx.lineCap = 'round'; this.ctx.lineCap = 'round';
this.ctx.lineJoin = 'round'; this.ctx.lineJoin = 'round';
console.log(this.ctx)
}, },
//触摸开始,获取到起点 //触摸开始,获取到起点
touchstart(e) { touchstart(e) {
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
}; };
}, },
mounted() { mounted() {
console.log(this.lists, 1541515) console.log(this.lists)
}, },
onLoad() { onLoad() {
......
...@@ -124,7 +124,6 @@ ...@@ -124,7 +124,6 @@
} }
if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){ if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){
api.verificationCode(params).then((res)=>{ api.verificationCode(params).then((res)=>{
console.log(res)
if(res['success']){ if(res['success']){
this.delayTime() this.delayTime()
} }
...@@ -203,7 +202,6 @@ ...@@ -203,7 +202,6 @@
const params = { const params = {
...this.form ...this.form
} }
console.log(params)
api.resetPassword(params).then((res)=>{ api.resetPassword(params).then((res)=>{
if(res['success']){ if(res['success']){
uni.showToast({ uni.showToast({
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
return {} return {}
}, },
mounted() { mounted() {
console.log(this.minorMenuLists, 7412) console.log(this.minorMenuLists)
}, },
methods: { methods: {
goDetail(item) { goDetail(item) {
......
...@@ -168,11 +168,9 @@ ...@@ -168,11 +168,9 @@
// }); // });
const list = this.deepClone(this.list); const list = this.deepClone(this.list);
this.treeList = this.treeToArray(list); this.treeList = this.treeToArray(list);
console.log(this.treeList, '打印一下树')
}, },
async lazyLoad(name) { async lazyLoad(name) {
console.log(name, 115454)
return new Promise((res, rej) => { return new Promise((res, rej) => {
try { try {
setTimeout(() => { setTimeout(() => {
...@@ -201,8 +199,6 @@ ...@@ -201,8 +199,6 @@
} }
}, },
checkLazy(id) { checkLazy(id) {
console.log(id, 1515515)
console.log(this.lazyList, 1515)
return ~this.lazyList.findIndex(o => o === id); return ~this.lazyList.findIndex(o => o === id);
}, },
checkOpen(id) { checkOpen(id) {
......
...@@ -101,7 +101,6 @@ ...@@ -101,7 +101,6 @@
id: val.id id: val.id
} }
api.queryTeamDetail(CffpOrgInfoReqVO).then(res => { api.queryTeamDetail(CffpOrgInfoReqVO).then(res => {
console.log(res, 88855)
if (res['success']) { if (res['success']) {
// if (res.data.list.length == 0) { // if (res.data.list.length == 0) {
// // uni.showToast({ // // uni.showToast({
...@@ -129,7 +128,6 @@ ...@@ -129,7 +128,6 @@
} }
}, },
ckopennextlevel(index, val, list) { ckopennextlevel(index, val, list) {
console.log(index, val, list, 7897)
switch (val) { switch (val) {
case 1: case 1:
this.tableone = this.table_index == index ? !this.tableone : true this.tableone = this.table_index == index ? !this.tableone : true
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
}; };
}, },
mounted() { mounted() {
console.log(this.icon, 74741)
if(this.fields == "month"){ if(this.fields == "month"){
this.queryDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}` this.queryDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}`
}else if (this.fields == "year") { }else if (this.fields == "year") {
...@@ -39,7 +38,6 @@ ...@@ -39,7 +38,6 @@
}, },
methods: { methods: {
bindDateChange: function(e) { bindDateChange: function(e) {
console.log(e, 444144)
this.$emit('change', e.detail.value) this.$emit('change', e.detail.value)
this.queryDate = e.detail.value this.queryDate = e.detail.value
}, },
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
components:{}, components:{},
onLoad(options){ onLoad(options){
this.queryName = options.queryName; this.queryName = options.queryName;
console.log(this.queryName)
}, },
methods:{ methods:{
jumpToSystemMsg(){ jumpToSystemMsg(){
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
}, },
methods: { methods: {
navTo(item) { navTo(item) {
console.log(item ,1154)
if (item.link != this.currentPage) { if (item.link != this.currentPage) {
// uni.navigateTo({ // uni.navigateTo({
// url:`/pages/${item.link}/${item.link}` // url:`/pages/${item.link}/${item.link}`
......
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title class="title">[文件管理器]</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<style type="text/css">
.content {background: transparent;}
.btn {position: relative;top: 0;left: 0;bottom: 0;right: 0;}
.btn .file {position: fixed;z-index: 93;left: 0;right: 0;top: 0;bottom: 0;width: 100%;opacity: 0;}
</style>
</head>
<body>
<div id="content" class="content">
<div class="btn">
<input multiple @change="onChange" :accept="accept" ref="file" class="file" type="file" />
</div>
</div>
<script type="text/javascript" src="js/vue.min.js"></script>
<script type="text/javascript">
let _this;
var vm = new Vue({
el: '#content',
data: {
accept: '',
},
mounted() {
_this = this;
this.files = new Map();
document.addEventListener('plusready', (e)=>{
let {debug,instantly,prohibited} = plus.webview.currentWebview();
this.debug = debug;
this.instantly = instantly;
this.prohibited = prohibited;
this.accept = prohibited.accept;
location.href = 'callback?retype=updateOption';
}, false);
},
methods: {
toast(msg) {
plus.nativeUI.toast(msg);
},
clear(name) {
if (!name) {
this.files.clear();
return;
}
this.files.delete(name);
},
setData(option='{}') {
this.debug&&console.log('更新参数:'+option);
try{
_this.option = JSON.parse(option);
}catch(e){
console.error('参数设置错误');
console.error(e);
}
},
async upload(name=''){
if (name && this.files.has(name)) {
await this.createUpload(this.files.get(name));
}
else {
for (let item of this.files.values()) {
if (item.type === 'waiting' || item.type === 'fail') {
await this.createUpload(item);
}
}
}
},
onChange(e) {
let fileDom = this.$refs.file;
let file = fileDom.files[0];
let name = file.name;
fileDom.value = '';
this.debug&&console.log('文件名称',name,'大小',file.size);
if (file) {
// 限制文件格式
let suffix = name.substring(name.lastIndexOf(".")+1).toLowerCase();
let formats = this.prohibited.formats.toLowerCase();
if (formats&&!formats.includes(suffix)) {
this.toast(`不支持上传${suffix.toUpperCase()}格式文件`);
return;
}
console.log('this.size',this.prohibited.size);
// 限制文件大小
if (file.size > 1024 * 1024 * Math.abs(this.prohibited.size)) {
this.toast(`附件大小请勿超过${this.prohibited.size}M`)
return;
}
let path = URL.createObjectURL(file);
this.files.set(file.name,{file,path,name: file.name,size: file.size,progress: 0,type: 'waiting'});
this.callChange();
this.instantly&&this.upload();
}
},
/**
* @returns {Map} 已选择的文件Map集
*/
callChange() {
location.href = 'callback?retype=change&files=' + escape(JSON.stringify([...this.files]));
},
/**
* @returns {object} 正在处理的当前对象
*/
changeFilesItem(item,end='') {
this.files.set(item.name,item);
location.href = 'callback?retype=progress&end='+ end +'&item=' + escape(JSON.stringify(item));
},
createUpload(item) {
this.debug&&console.log('准备上传,option=:'+JSON.stringify(this.option));
item.type = 'loading';
delete item.responseText;
return new Promise((resolve,reject)=>{
let {url,name,method='POST',header={},formData={}} = this.option;
let form = new FormData();
for (let keys in formData) {
form.append(keys, JSON.stringify(formData[keys]))
}
form.append(name, item.file);
let xmlRequest = new XMLHttpRequest();
xmlRequest.open(method, url, true);
for (let keys in header) {
xmlRequest.setRequestHeader(keys, header[keys])
}
xmlRequest.upload.addEventListener(
'progress',
event => {
if (event.lengthComputable) {
let progress = Math.ceil((event.loaded * 100) / event.total)
if (progress <= 100) {
item.progress = progress;
this.changeFilesItem(item);
}
}
},
false
);
xmlRequest.ontimeout = () => {
console.error('请求超时')
item.type = 'fail';
this.changeFilesItem(item,true);
return resolve(false);
}
xmlRequest.onreadystatechange = ev => {
if (xmlRequest.readyState == 4) {
if (xmlRequest.status == 200) {
this.debug && console.log('上传完成:' + xmlRequest.responseText)
item['responseText'] = xmlRequest.responseText;
item.type = 'success';
this.changeFilesItem(item,true);
return resolve(true);
} else if (xmlRequest.status == 0) {
console.error('status = 0 :请检查请求头Content-Type与服务端是否匹配,服务端已正确开启跨域,并且nginx未拦截阻止请求')
}
console.error('--ERROR--:status = ' + xmlRequest.status)
item.type = 'fail';
this.changeFilesItem(item,true);
return resolve(false);
}
}
xmlRequest.send(form)
});
}
}
});
</script>
</body>
</html>
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
afterSalesFlag:this.afterSalesFlag afterSalesFlag:this.afterSalesFlag
} }
api.userAfterSalesDtl(params).then(res=>{ api.userAfterSalesDtl(params).then(res=>{
console.log('售后详情',res);
if(res['success']){ if(res['success']){
this.courseInfoItem = res['data']['userCourse']; this.courseInfoItem = res['data']['userCourse'];
if(this.courseInfoItem.orderStatus == '4'){ if(this.courseInfoItem.orderStatus == '4'){
......
...@@ -448,6 +448,6 @@ ...@@ -448,6 +448,6 @@
<style lang="scss"> <style lang="scss">
@import 'applyCommon.scss'; @import 'applyCommon.scss';
.form-control{ .form-control{
min-width: 200rpx; min-width: 400rpx;
} }
</style> </style>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<view class="contentItem"> <view class="contentItem">
<text>毕业学校</text> <text>毕业学校</text>
<input type="text" class="form-control" v-model="educationForm.lastGraduateSchool" <input type="text" class="form-control" v-model="educationForm.lastGraduateSchool"
placeholder="请输入毕业院校" :disabled="this.appStatus" /> placeholder="请输入毕业院校" :disabled="this.educationForm.approvalStatus!= 0 && this.educationForm.approvalStatus != 2" />
</view> </view>
<view class="contentItem" style="border:none;"> <view class="contentItem" style="border:none;">
<text>毕业证</text> <text>毕业证</text>
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
lastGraduateCertificationOssPath: '', lastGraduateCertificationOssPath: '',
approvalStatus: '' approvalStatus: ''
}, },
educationForm: {}, applyParam: {},
shareId: null, shareId: null,
appStatus: false, // appStatus: false,
dataForm: { dataForm: {
loginId: uni.getStorageSync('cffp_userId'), loginId: uni.getStorageSync('cffp_userId'),
targetType: "5", targetType: "5",
...@@ -161,9 +161,9 @@ ...@@ -161,9 +161,9 @@
} }
this.educationForm.approvalStatus = this.applyParam.approvalStatus this.educationForm.approvalStatus = this.applyParam.approvalStatus
uni.setStorageSync('educationForm',this.educationForm) uni.setStorageSync('educationForm',this.educationForm)
if (this.educationForm.approvalStatus != 0 && this.educationForm.approvalStatus != 2) { // if (this.educationForm.approvalStatus != 0 && this.educationForm.approvalStatus != 2) {
this.appStatus = false // this.appStatus = false
} // }
this.educationForm.id = this.applyParam.id this.educationForm.id = this.applyParam.id
for (let i = 0; i < this.educationLevelList.length; i++) { for (let i = 0; i < this.educationLevelList.length; i++) {
if (this.educationForm.lastGraduateGrade == this.educationLevelList[i].name) { if (this.educationForm.lastGraduateGrade == this.educationLevelList[i].name) {
......
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