Browse Source

feat: 修改小程序上传

L 3 tháng trước cách đây
mục cha
commit
0ae994d1f8
1 tập tin đã thay đổi với 1 bổ sung24 xóa
  1. 1 24
      pages/my/resumeUpload.vue

+ 1 - 24
pages/my/resumeUpload.vue

@@ -11,7 +11,6 @@
 			</view>
 		</view>
 
-		<!-- <nav-bar title="基本信息"></nav-bar> -->
 		<view class="contain flex flex-direction">
 		<!-- #ifdef APP-PLUS -->
 			<view 
@@ -65,28 +64,12 @@ export default {
 		// 获取状态栏高度
 		let systemInfo = uni.getSystemInfoSync();
 		this.statusBarHeight = systemInfo.statusBarHeight || 0;
-
-		this.getUserInfo()
-		// this.avatar = uni.getStorageSync('avatar')
 	},
 	methods: {
 		// 返回上一页
 		goBack() {
 			uni.navigateBack();
 		},
-		getUserInfo() {
-			this.$Request.get("/app/resumes/getAttachment").then(res => {
-				if (res.code == 0) {
-					res.data.forEach(function (item) {
-						const ext = item.attachmentName.split('.').pop().toLowerCase();
-						item.fileType = ext
-					})
-					this.content = res.data
-				}
-				uni.hideLoading();
-			});
-		},
-
 		// 保存
 		uploadResumes(e) {
 			var that = this
@@ -115,9 +98,7 @@ export default {
 										title: '上传成功',
 										icon: "none"
 									})
-									uni.navigateBack({
-										delta: 1
-									})
+									this.goBack()
 								} else {
 									uni.showToast({
 										title: res.msg,
@@ -280,11 +261,7 @@ export default {
 				position: absolute;
 				top: 0;
 				left: 0;
-		
-	
 			}
-
-			
 		}
 }