Commit 539c06db authored by youjie's avatar youjie

no message

parent 348f4b13
......@@ -135,7 +135,7 @@
},
getFontSize(title) {
let size = 30;
if (title.length > 80) {
if (title&&title.length>0&&title.length > 80) {
var tempSize = Number(80) / Number(title.length);
tempSize = tempSize * 30;
size = tempSize.toFixed(1);
......
......@@ -905,12 +905,12 @@
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 != '') {
dadian[0].img = jiao[0].img;
}
details = dadian;
} else if (jiao.length > 0) {
if (j == this.tripList.length - 1) {
let obj = {
title: '温暖的家',
......
......@@ -204,7 +204,7 @@
getFontSize(title) {
if (!title) return
let size = 30;
if (title.length > 80) {
if (title&&title.length>0&&title.length > 80) {
var tempSize = Number(80) / Number(title.length);
tempSize = tempSize * 30;
size = tempSize.toFixed(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