Commit 2ab3ecdc authored by Steven杜宇's avatar Steven杜宇

// 预览

parent 01a58b69
......@@ -508,21 +508,13 @@ private extension YHPreviewViewModel {
// let tmp6 = YHPreviewQuestionAndAnswerModel(question: "学位类型:", answer: model.degree_type)
var title = ""
var title = "--"
if let item = model.school_address {
if item.country.contains("中国") {
if !item.country.isEmpty {
title = item.country
if item.area.count > 1 {
title = title + item.area[0] + "/" + item.area[1]
}
} else {
title = item.country + "-" + item.foreign
}
} else {
title = "--"
}
let tmp7 = YHPreviewQuestionAndAnswerModel(question: "上课城市:", answer:title)
let arr = [tmp5,tmp0,tmp1,tmp2,tmp3,tmp4,tmp7]
let addationIndex = arr0.count > 1 ? String(index + 1) : ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment