提交 fdffcbc5899a8ca0dbbd47f9ebf1c61afd22d57e

作者 pangy
1 个父辈 d67cbe47

证书优化

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