Commit 32826774 authored by 王建威's avatar 王建威

bug fix

parent a8d3ba38
...@@ -199,6 +199,7 @@ ...@@ -199,6 +199,7 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
sizeType: ['compress'], sizeType: ['compress'],
count:1,
success: (res) => { success: (res) => {
const tempFilePaths = res.tempFilePaths; const tempFilePaths = res.tempFilePaths;
uni.showLoading({ uni.showLoading({
...@@ -280,6 +281,7 @@ ...@@ -280,6 +281,7 @@
qualification_id: this.qualification_id qualification_id: this.qualification_id
}, },
success: (res) => { success: (res) => {
this.submitFlag = true;
if(res.data.code === 0) { if(res.data.code === 0) {
uni.setStorage({ uni.setStorage({
key: 'installment', key: 'installment',
...@@ -294,7 +296,6 @@ ...@@ -294,7 +296,6 @@
} }
}) })
} else { } else {
this.submitFlag = true;
uni.hideToast(); uni.hideToast();
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
......
...@@ -170,6 +170,7 @@ ...@@ -170,6 +170,7 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
sizeType: ['compress'], sizeType: ['compress'],
count:1,
success: (res) => { success: (res) => {
uni.showLoading({ uni.showLoading({
title: '上传中', title: '上传中',
...@@ -239,12 +240,12 @@ ...@@ -239,12 +240,12 @@
...this.data ...this.data
}, },
success: (res) => { success: (res) => {
this.submitFlag = true;
if(res.data.code === 0) { if(res.data.code === 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/apply/applypage3' url: '/pages/apply/applypage3'
}); });
} else { } else {
this.submitFlag = true;
uni.hideToast(); uni.hideToast();
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
......
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
sizeType: ['compress'], sizeType: ['compress'],
count:1,
success: (res) => { success: (res) => {
uni.showLoading({ uni.showLoading({
title: '上传中' title: '上传中'
...@@ -129,12 +130,12 @@ ...@@ -129,12 +130,12 @@
...this.data ...this.data
}, },
success: (res) => { success: (res) => {
this.submitFlag = true;
if(res.data.code === 0) { if(res.data.code === 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/signcontract/signcontract' url: '/pages/signcontract/signcontract'
}); });
} else { } else {
this.submitFlag = true;
uni.hideToast(); uni.hideToast();
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
......
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
sizeType: ['compress'], sizeType: ['compress'],
count:1,
success: (res) => { success: (res) => {
uni.showLoading({ uni.showLoading({
title: '上传中' title: '上传中'
......
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