|
@ -10,8 +10,7 @@ |
|
|
<swiper-item v-for="item in list" :key="item.id" style="display: inline-block;"> |
|
|
<swiper-item v-for="item in list" :key="item.id" style="display: inline-block;"> |
|
|
<view class="swiper-item"> |
|
|
<view class="swiper-item"> |
|
|
<view class="swiper-item-content"> |
|
|
<view class="swiper-item-content"> |
|
|
<!-- todo: check img url? --> |
|
|
|
|
|
<image class="img" src="@/pages_order/static/temp-1.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
|
<image class="img" :src="item.image" mode="widthFix"></image> |
|
|
|
|
|
|
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<view> |
|
|
<view> |
|
@ -69,12 +68,11 @@ |
|
|
let result = await this.$fetch('getPersonalized') |
|
|
let result = await this.$fetch('getPersonalized') |
|
|
|
|
|
|
|
|
this.list = result.map(item => { |
|
|
this.list = result.map(item => { |
|
|
const { id, title, subTitle, info, btnTxt, paperId } = item |
|
|
|
|
|
|
|
|
const { id, title, subTitle, info, image, btnTxt, paperId } = item |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
id, |
|
|
id, |
|
|
// todo: check img url? |
|
|
|
|
|
// url |
|
|
|
|
|
|
|
|
image, |
|
|
arr: [ |
|
|
arr: [ |
|
|
{ text: title, class: 'font1' }, |
|
|
{ text: title, class: 'font1' }, |
|
|
{ text: subTitle, class: 'font2' }, |
|
|
{ text: subTitle, class: 'font2' }, |
|
|