Commit 171b507f authored by lizhan's avatar lizhan

📝 【TASK-20240816-01】TASK:兑换日志类型图片

parent 48d635b6
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="box-img"> <div class="box-img">
<image <image
class="imgs" class="imgs"
:src="item == 3 ? '../../static/img/log_type2.png' : '../../static/img/log_type1.png'" :src="locale === 'zh' ? item.imgZh : item.imgEn"
></image> ></image>
</div> </div>
<div class="box-content"> <div class="box-content">
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="box-img"> <div class="box-img">
<image <image
class="imgs" class="imgs"
:src="item == 3 ? '../../static/img/log_type2.png' : '../../static/img/log_type1.png'" :src="imgArr[item.sourceType]"
></image> ></image>
</div> </div>
<div class="box-content"> <div class="box-content">
...@@ -47,6 +47,18 @@ export default { ...@@ -47,6 +47,18 @@ export default {
computed: { computed: {
locale() { locale() {
return this.$lang.locale return this.$lang.locale
},
// 图片数组
imgArr() {
return {
'1': '../../static/img/log_type1.png',
'2': '../../static/img/log_type2.png',
'4': '../../static/img/log_type4.png',
'5': '../../static/img/log_type5.png',
'6': '../../static/img/log_type6.png',
'7': '../../static/img/log_type7.png',
'8': '../../static/img/log_type8.png',
}
} }
}, },
methods: { methods: {
......
src/static/img/log_type2.png

3.99 KB | W: | H:

src/static/img/log_type2.png

2.01 KB | W: | H:

src/static/img/log_type2.png
src/static/img/log_type2.png
src/static/img/log_type2.png
src/static/img/log_type2.png
  • 2-up
  • Swipe
  • Onion skin
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