Commit 2a2f0b6d authored by linxin's avatar linxin

add

parent a7e11343
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
<list-item :item-height="120"> <list-item :item-height="120">
<item> <item>
<div slot="name" class="item-pic"> <div slot="name" class="item-pic">
<img src="@/assets/homePage/WechatIMG2 Copy@2x.png" alt=""> <!-- <img src="@/assets/homePage/WechatIMG2 Copy@2x.png" alt=""> -->
<img :src="list.url">
</div> </div>
<div slot="content" class="item-content"> <div slot="content" class="item-content">
<div class="top">{{ list.product_name }}</div> <div class="top">{{ list.product_name }}</div>
...@@ -65,7 +66,7 @@ ...@@ -65,7 +66,7 @@
</template> </template>
<script> <script>
import functionState from './functionState' import functionState from './functionState'
import noImg from '../../assets/productQuery/none.png'
export default { export default {
name: 'HomePage', name: 'HomePage',
data () { data () {
...@@ -180,6 +181,9 @@ export default { ...@@ -180,6 +181,9 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.guessingList = res.lists vm.guessingList = res.lists
vm.guessingList.forEach(item => {
item['url'] = item.product_attachment_id ? process.env.filePath + 'attachment_id=' + item.product_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -369,10 +373,12 @@ export default { ...@@ -369,10 +373,12 @@ export default {
.item-pic { .item-pic {
width: 110px; width: 110px;
height: 110px; height: 110px;
display: flex;
justify-content: center;
align-items: center;
img { img {
width: 100%; width: 100%;
height: 100%; // height: 100%;
} }
} }
......
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