|
|
|
@ -15,16 +15,8 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="list"> |
|
|
|
<view class="list-item" @click="jumpToDetail('other_service')"> |
|
|
|
<!-- <image class="list-item-bg" :src="configList.config_image_service" mode="scaleToFill"></image> --> |
|
|
|
<image class="list-item-bg" src="@/static/image/bg-other-serve.png" mode="widthFix"></image> |
|
|
|
<view class="flex list-item-fg"> |
|
|
|
<image class="icon" src="@/static/image/icon-other-serve.png" mode="widthFix"></image> |
|
|
|
<view class="info"> |
|
|
|
<view class="title">其他服务</view> |
|
|
|
<view class="desc">Other services</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="list-item" v-for="item in list" :key="item.id" @click="jumpToDetail(item.id)"> |
|
|
|
<image class="list-item-bg" :src="item.image" mode="widthFix"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -35,14 +27,18 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import utils from '@/utils/utils' |
|
|
|
import mixinsList from '@/mixins/list.js' |
|
|
|
|
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
mixins: [mixinsList], |
|
|
|
components: { |
|
|
|
tabber, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
mixinsListApi: 'queryOtherArticleList', |
|
|
|
style: '', |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -50,9 +46,9 @@ |
|
|
|
this.style = `padding-top: calc(${utils.getNavHeight()}px - 16rpx)` |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
jumpToDetail(paramCode) { |
|
|
|
jumpToDetail(articleId) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages_order/center/serve?paramCode=${paramCode}` |
|
|
|
url: `/pages_order/center/serve?articleId=${articleId}` |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -157,11 +153,12 @@ |
|
|
|
&-item { |
|
|
|
position: relative; |
|
|
|
width: 100%; |
|
|
|
height: 170rpx; |
|
|
|
// height: 170rpx; |
|
|
|
height: auto; |
|
|
|
font-size: 0; |
|
|
|
border-radius: 10rpx; |
|
|
|
overflow: hidden; |
|
|
|
background: linear-gradient(to right, rgba($color: #E2DDFF, $alpha: 0.26), rgba($color: #C8C3FD, $alpha: 0.26)); |
|
|
|
// background: linear-gradient(to right, rgba($color: #E2DDFF, $alpha: 0.26), rgba($color: #C8C3FD, $alpha: 0.26)); |
|
|
|
box-shadow: 4rpx 4rpx 6rpx 0rpx rgba(0,0,0,0.15); |
|
|
|
|
|
|
|
& + & { |
|
|
|
@ -169,11 +166,11 @@ |
|
|
|
} |
|
|
|
|
|
|
|
&-bg { |
|
|
|
// $w: calc(100vw - 18rpx*2); |
|
|
|
// width: $w; |
|
|
|
// height: calc(#{$w} * 179 / 714); |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
$w: calc(100vw - 38rpx*2); |
|
|
|
width: $w; |
|
|
|
height: calc(#{$w} * 179 / 714); |
|
|
|
// width: 100%; |
|
|
|
// height: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
&-fg { |
|
|
|
|