Tang vor 4 Jahren
Ursprung
Commit
df4276be50

+ 8 - 6
common/request.js

@@ -8,9 +8,10 @@ export const BASE_URL = 'https://api.xyyxt.net'//接口api
 export const BASE_IMG_URL = 'https://file.xyyxt.net/'//图片上传api
 export const tenantId = '867735392558919680'
 export const myRequest = (options) => {
-	// uni.showLoading({
-	// 	title:'拼命加载中...'
-	// })
+	 uni.showLoading({
+		title:'拼命加载中...'
+	}) 
+	
 	return new Promise((resolve, reject) => {
 		uni.request({
 			url: BASE_URL + options.url,
@@ -44,10 +45,11 @@ export const myRequest = (options) => {
 					icon: 'none'
 				})
 				reject(JSON.stringify(err))
+			},
+			complete:()=>{
+				uni.hideLoading()
+		//		uni.hideToast()
 			}
-			// complete:()=>{
-			// 	uni.hideLoading()
-			// }
 		})
 	})
 	async function doRequest(response) {

+ 3 - 0
components/home.vue

@@ -358,6 +358,9 @@ export default {
 			});
 		},
 		initList() {
+			this.paramList[0].pageNum = 1
+			this.paramList[1].pageNum = 1
+			this.paramList[2].pageNum = 1
 			this.list1 = []
 			this.list2 = []
 			this.list3 = []

+ 6 - 4
pages2/recruitment/detailsInfo.vue

@@ -200,10 +200,12 @@ export default {
 			};
 			this.$api.systemInterview(data).then(res => {
 				if (res.data.code === 200) {
-					uni.showToast({
-						title: '已投递',
-						icon: 'success'
-					});
+					setTimeout(()=>{
+						uni.showToast({
+							title: '已投递',
+							icon: 'success'
+						});
+					},500);
 					self.showTD = false;
 				} else {
 					uni.showToast({

+ 29 - 24
pages2/resume/addResume.vue

@@ -974,18 +974,20 @@ export default {
 				const awaitsMys = await this.$api.addrecruitresume(data);
 				uni.hideLoading();
 				if (awaitsMys.data.code === 200) {
-					uni.showToast({
-						title: '提交成功',
-						icon: 'success',
-						duration: 1000,
-						success: function() {
-							setTimeout(() => {
-								uni.navigateBack({
-									delta: 1
-								});
-							}, 1000);
-						}
-					});
+					setTimeout(()=>{
+						uni.showToast({
+							title: '提交成功',
+							icon: 'success',
+							duration: 1000,
+							success: function() {
+								setTimeout(() => {
+									uni.navigateBack({
+										delta: 1
+									});
+								}, 1000);
+							}
+						});
+					},500);
 				} else {
 					uni.showToast({
 						title: '提交失败',
@@ -998,18 +1000,21 @@ export default {
 				const awaitsMys = await this.$api.editrecruitresume(data);
 				uni.hideLoading();
 				if (awaitsMys.data.code === 200) {
-					uni.showToast({
-						title: '修改成功',
-						icon: 'success',
-						duration: 1000,
-						success: function() {
-							setTimeout(() => {
-								uni.navigateBack({
-									delta: 1
-								});
-							}, 1000);
-						}
-					});
+					setTimeout(()=>{
+						uni.showToast({
+							title: '修改成功',
+							icon: 'success',
+							duration: 1000,
+							success: function() {
+								setTimeout(() => {
+									uni.navigateBack({
+										delta: 1
+									});
+								}, 1000);
+							}
+						});
+					},500);
+					
 				} else {
 					uni.showToast({
 						title: '修改失败',

+ 20 - 9
pages2/wd/avatar.vue

@@ -65,13 +65,20 @@
 				});
 			},
 			uploadFile(options, int) {
+				var self = this;
 				return new Promise((resolve, reject) => {
-					var self = this;
 					var data = {
 						imageStatus: int
 					};
-					this.$api.aliyunpolicy(data).then(res => {
+					self.$api.aliyunpolicy(data).then(res => {
 						var ossToken = res.data.data.resultContent;
+						if(ossToken.host==null||ossToken.host==undefined){
+							uni.showToast({
+								title: '上传路径报错'+ossToken,
+								icon: 'none'
+							});
+							return
+						}
 						uni.uploadFile({
 							url: ossToken.host,
 							name: 'file',
@@ -92,7 +99,8 @@
 								if (result.statusCode === 200) {
 									uni.showToast({
 										title: '成功',
-										icon: 'none'
+										icon: 'none',
+										duration:2000
 									});
 									self.userInfo.avatar = ossToken.dir;
 									resolve();
@@ -106,7 +114,7 @@
 							},
 							fail: error => {
 								uni.showToast({
-									title: '上传接口报错',
+									title: '上传接口报错'+error,
 									icon: 'none'
 								});
 								return;
@@ -119,10 +127,13 @@
 				let self = this
 				this.$api.appuserInfo(this.userInfo).then(res => {
 					if (res.data.code === 200) {
-						uni.showToast({
-							title: '提交成功',
-							icon: 'none'
-						});
+						setTimeout(()=>{
+							uni.showToast({
+								title: '提交成功',
+								icon: 'none'
+							});
+						},500);
+						
 						self.$api.refreshUserInfo()
 					}
 				});
@@ -155,7 +166,7 @@
 				let that = this
 				uni.chooseImage({
 				    count: 1, //默认9
-				    sizeType: [ 'compressed'], //可以指定是原图还是压缩图,默认二者都有
+				    sizeType: [  'compressed'], //可以指定是原图还是压缩图,默认二者都有
 				    success: function (res) {
 						that.avatarUrl = res.tempFilePaths[0]
 				    }

+ 6 - 4
pages2/wd/edu_info.vue

@@ -231,10 +231,12 @@
 				this.schoolInfo.grade = this.dictObj['grade'][this.index_grade]
 				this.$api.updateSchoolInfo(this.schoolInfo).then(res => {
 					if (res.data.code === 200) {
-						uni.showToast({
-							title: '提交成功',
-							icon: 'none'
-						});
+						setTimeout(()=>{
+							uni.showToast({
+								title: '提交成功',
+								icon: 'none'
+							});
+						},500);
 					}
 				});
 			},

+ 6 - 4
pages2/wd/info.vue

@@ -305,10 +305,12 @@ export default {
 			};
 			this.$api.appuserInfo(data).then(res => {
 				if (res.data.code === 200) {
-					uni.showToast({
-						title: '提交成功',
-						icon: 'none'
-					});
+					setTimeout(()=>{
+						uni.showToast({
+							title: '提交成功',
+							icon: 'none'
+						});
+					},500);
 					self.$api.refreshUserInfo() 
 				}else{
 					uni.showToast({

+ 4 - 1
pages2/wd/ranking.vue

@@ -19,11 +19,14 @@
 					</view>
 				</view>
 				<view v-if="current == 1" class="right_mc" style="display: flex;justify-content: center;flex: 1;">
-					<view class="fie" style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
+					<view class="fie" v-if="info2.rank > 0" style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
 						<span>第{{ info2.rank }}名</span>
 						<view class="ics" style="margin: 0rpx 17rpx;width: 1rpx;height: 26rpx;background-color: #d9edff;border-radius: 1rpx;"></view>
 						<span>{{info2.hourse === null ? '0' : info2.hourse }}h</span>
 					</view>
+					<view v-else style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
+						暂未上榜
+					</view>
 				</view>
 
 				<!-- <u-row gutter="16" justify="center">