提交 fdffcbc5899a8ca0dbbd47f9ebf1c61afd22d57e

作者 pangy
1 个父辈 d67cbe47

证书优化

@@ -185,6 +185,7 @@ Page({ @@ -185,6 +185,7 @@ Page({
185 }, 185 },
186 certificateDate: { 186 certificateDate: {
187 label: '证书名称', 187 label: '证书名称',
  188 + maxWidth: 460,
188 isrequre: true, 189 isrequre: true,
189 bindtype: 'certificate', 190 bindtype: 'certificate',
190 values: [], 191 values: [],
@@ -795,10 +796,13 @@ Page({ @@ -795,10 +796,13 @@ Page({
795 var edutypeData = this.data.edutypeData 796 var edutypeData = this.data.edutypeData
796 edutypeData.selected = "职业资格继续教育" 797 edutypeData.selected = "职业资格继续教育"
797 var edustyleData = this.data.edustyleData 798 var edustyleData = this.data.edustyleData
  799 + var certificateDate = this.data.certificateDate
798 if (data.education_type == 'major'){ 800 if (data.education_type == 'major'){
799 edustyleData.selected = "专业技术人员职业资格" 801 edustyleData.selected = "专业技术人员职业资格"
  802 + // certificateDate.values = this.major_cers // 网络延迟
800 } else if (data.education_type == 'profession'){ 803 } else if (data.education_type == 'profession'){
801 edustyleData.selected = "技能人员职业资格" 804 edustyleData.selected = "技能人员职业资格"
  805 + // certificateDate.values = this.profs_cers // 网络延迟
802 } 806 }
803 setData.edutypeData = edutypeData 807 setData.edutypeData = edutypeData
804 setData.edustyleData = edustyleData 808 setData.edustyleData = edustyleData
@@ -808,7 +812,6 @@ Page({ @@ -808,7 +812,6 @@ Page({
808 setData.applydate = applydate 812 setData.applydate = applydate
809 813
810 if (data.certification_name && data.certification_name.length) { 814 if (data.certification_name && data.certification_name.length) {
811 - var certificateDate = this.data.certificateDate  
812 certificateDate.selected = data.certification_name 815 certificateDate.selected = data.certification_name
813 setData.certificateDate = certificateDate 816 setData.certificateDate = certificateDate
814 } 817 }
@@ -1222,6 +1225,17 @@ Page({ @@ -1222,6 +1225,17 @@ Page({
1222 console.log('certification', res) 1225 console.log('certification', res)
1223 that.profs_cers = res.data.profession_certificates 1226 that.profs_cers = res.data.profession_certificates
1224 that.major_cers = res.data.major_certificates 1227 that.major_cers = res.data.major_certificates
  1228 +
  1229 + var certificateDate = that.data.certificateDate
  1230 + if (that.data.edustyleData.selected == "专业技术人员职业资格"){
  1231 + certificateDate.values = that.major_cers
  1232 + } else if (that.data.edustyleData.selected == '技能人员职业资格') {
  1233 + certificateDate.values = that.profs_cers
  1234 + }
  1235 + that.setData({
  1236 + certificateDate: certificateDate
  1237 + })
  1238 +
1225 }, 1239 },
1226 fail(res) { 1240 fail(res) {
1227 console.log(res) 1241 console.log(res)
注册登录 后发表评论