Commit ce1547be authored by 黄奎's avatar 黄奎

页面修改

parent b888436d
......@@ -135,7 +135,7 @@
},
getFontSize(title) {
let size = 30;
if (title.length > 80) {
if (title && title != '' && title.length > 80) {
var tempSize = Number(80) / Number(title.length);
tempSize = tempSize * 30;
size = tempSize.toFixed(1);
......
......@@ -905,7 +905,7 @@
if (jin.length > 0) {
details = jin
} else if (dadian.length > 0) {
if ( dadian[0].img == '' && jiao[0].img != '') {
if (dadian[0].img && dadian[0].img == '' && jiao[0].img && jiao[0].img != '') {
dadian[0].img = jiao[0].img;
}
details = dadian;
......
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