1 <img :src="imgSrc"> 2 3 props: ['resultTitle', 'resultFont', 'resultType'], 4 computed: { 5 imgSrc() { 6 switch (this.resultType) { 7 case 'BSX': 8 return require('./baoshou.png') 9 case 'JSX': 10 return require('./jinshen.png') 11 case 'JJX': 12 return require('./jiji.png') 13 case 'JQX': 14 return require('./jinqu.png') 15 case 'JINX': 16 return require('./jijin.png') 17 default: 18 return require('./baoshou.png') 19 }
} 20 }