Просмотр исходного кода

feat(招聘小程序) 接口对接

xing.li лет назад: 4
Родитель
Сommit
02b03d780d
2 измененных файлов с 11 добавлено и 11 удалено
  1. 10 10
      pages/resume/resume.js
  2. 1 1
      pages/resume/resume.wxml

+ 10 - 10
pages/resume/resume.js

@@ -321,15 +321,15 @@ Page({
       })
       return;
     }
-    if(!this.data.resumeFileNow){
-      wx.showToast({
-        title: '请上传附件',
-        icon: 'none',
-        duration: 1000
-      })
-      return;
-    }
-   
+    // if(!this.data.resumeFileNow){
+    //   wx.showToast({
+    //     title: '请上传附件',
+    //     icon: 'none',
+    //     duration: 1000
+    //   })
+    //   return;
+    // }
+   var resumeFileName = this.data.resumeFileNow?this.data.resumeFileName:''
     var params = {
       userId:this.data.userId,
       name:this.data.name,
@@ -347,7 +347,7 @@ Page({
       nowSalary:this.data.nowSalary,
       hopeSalary:this.data.hopeSalary,
       resumeFile:this.data.resumeFileNow,
-      resumeFileName:this.data.resumeFileName,
+      resumeFileName:resumeFileName,
     };
      await recruitApi.saveUser(params);
 

+ 1 - 1
pages/resume/resume.wxml

@@ -154,7 +154,7 @@
   
   <view class="info" style="margin-bottom:100rpx" >
     <view class="info_left">
-      <view class="info_left_1">*</view>
+      <view class="info_left_1"></view>
       <view class="info_left_2">简历附件</view>
     </view>
     <view  class="info_right placeholder"  style="color:{{fileColor}};white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"  bindtap="chooseEnclosure" >{{resumeFileName}}</view>