修改icon字段为cover,部分title改为cover
This commit is contained in:
parent
6a891ae24b
commit
1cb80769a9
|
@ -5,7 +5,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item-container">
|
<view class="item-container">
|
||||||
<view class="thumb-box" v-for="(item, index) in data.child" :key="index" @click="clickItem(item.id)">
|
<view class="thumb-box" v-for="(item, index) in data.child" :key="index" @click="clickItem(item.id)">
|
||||||
<image class="item-menu-image" :src="item.icon" mode=""></image>
|
<image class="item-menu-image" :src="item.cover" mode=""></image>
|
||||||
<view class="item-menu-name limit-line clamp-1">{{ item.name }}</view>
|
<view class="item-menu-name limit-line clamp-1">{{ item.name }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="component-service-preview-item">
|
<view class="component-service-preview-item">
|
||||||
<image class="cover-image" mode="aspectFill" :src="data.icon" @click="clickItem(data.id)"></image>
|
<image class="cover-image" mode="aspectFill" :src="data.cover" @click="clickItem(data.id)"></image>
|
||||||
<view class="item-box" @click="clickItem(data.id)">
|
<view class="item-box" @click="clickItem(data.id)">
|
||||||
<view class="title limit-line clamp-1">{{ data.name }}</view>
|
<view class="title limit-line clamp-1">{{ data.name }}</view>
|
||||||
<view class="text-box"> 已服务{{ data.times }}次 </view>
|
<view class="text-box"> 已服务{{ data.times }}次 </view>
|
||||||
|
|
|
@ -39,9 +39,9 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="utils.toPage(item.page)"
|
@click="utils.toPage(item.page)"
|
||||||
>
|
>
|
||||||
<image class="service-icon" :src="item.icon" mode="scaleToFill" />
|
<image class="service-icon" :src="item.cover" mode="scaleToFill" />
|
||||||
<text class="service-name limit-line clamp-1">
|
<text class="service-name limit-line clamp-1">
|
||||||
{{ item.title }}
|
{{ item.name }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -55,9 +55,9 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="utils.toPage(item.page)"
|
@click="utils.toPage(item.page)"
|
||||||
>
|
>
|
||||||
<image class="service-icon" :src="item.icon" mode="scaleToFill" />
|
<image class="service-icon" :src="item.cover" mode="scaleToFill" />
|
||||||
<text class="service-name limit-line clamp-1">
|
<text class="service-name limit-line clamp-1">
|
||||||
{{ item.title }}
|
{{ item.name }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="utils.toPage(item.page)"
|
@click="utils.toPage(item.page)"
|
||||||
>
|
>
|
||||||
<image class="service-icon" :src="item.icon" mode="scaleToFill" />
|
<image class="service-icon" :src="item.cover" mode="scaleToFill" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -94,14 +94,14 @@ export default {
|
||||||
bussinessServiceList: [
|
bussinessServiceList: [
|
||||||
{
|
{
|
||||||
id: 14,
|
id: 14,
|
||||||
icon: require("@/static/temp/index/b1.png"),
|
cover: require("@/static/temp/index/b1.png"),
|
||||||
title: "工程安装",
|
name: "工程安装",
|
||||||
page: "/pages/service/other/project",
|
page: "/pages/service/other/project",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 15,
|
id: 15,
|
||||||
icon: require("@/static/temp/index/b2.png"),
|
cover: require("@/static/temp/index/b2.png"),
|
||||||
title: "企业合作安装",
|
name: "企业合作安装",
|
||||||
page: "/pages/service/other/business",
|
page: "/pages/service/other/business",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -140,8 +140,8 @@ export default {
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
this.installServiceList.push({
|
this.installServiceList.push({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
title: item.name,
|
name: item.name,
|
||||||
icon: item.more,
|
cover: item.more,
|
||||||
page: "",
|
page: "",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -152,8 +152,8 @@ export default {
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
this.aftermarketServiceList.push({
|
this.aftermarketServiceList.push({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
title: item.name,
|
name: item.name,
|
||||||
icon: item.more,
|
cover: item.more,
|
||||||
page: "",
|
page: "",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -73,13 +73,13 @@ export default {
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: "空调安装",
|
name: "空调安装",
|
||||||
icon: require("@/static/temp/cate/1.png"),
|
cover: require("@/static/temp/cate/1.png"),
|
||||||
buyNumber: 1,
|
buyNumber: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: "空调拆卸",
|
name: "空调拆卸",
|
||||||
icon: require("@/static/temp/cate/2.png"),
|
cover: require("@/static/temp/cate/2.png"),
|
||||||
buyNumber: 1,
|
buyNumber: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -76,13 +76,13 @@ export default {
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: "格力空调安装",
|
name: "格力空调安装",
|
||||||
icon: require("@/static/temp/cate/1.png"),
|
cover: require("@/static/temp/cate/1.png"),
|
||||||
buyNumber: 1,
|
buyNumber: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: "美的空调安装",
|
name: "美的空调安装",
|
||||||
icon: require("@/static/temp/cate/1.png"),
|
cover: require("@/static/temp/cate/1.png"),
|
||||||
buyNumber: 1,
|
buyNumber: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -94,7 +94,7 @@ export default {
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: "厨房下水道",
|
name: "厨房下水道",
|
||||||
icon: require("@/static/temp/cate/1.png"),
|
cover: require("@/static/temp/cate/1.png"),
|
||||||
buyNumber: 10,
|
buyNumber: 10,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -81,13 +81,13 @@ export default {
|
||||||
child.push({
|
child.push({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
icon: item.more,
|
cover: item.more,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.data.push({
|
this.data.push({
|
||||||
id: 0,
|
id: 0,
|
||||||
name: "热门推荐",
|
name: "热门推荐",
|
||||||
icon: "",
|
cover: "",
|
||||||
child: child,
|
child: child,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -106,13 +106,13 @@ export default {
|
||||||
child.push({
|
child.push({
|
||||||
id: v.id,
|
id: v.id,
|
||||||
name: v.name,
|
name: v.name,
|
||||||
icon: v.more,
|
cover: v.more,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.data.push({
|
this.data.push({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
icon: item.more,
|
cover: item.more,
|
||||||
child: child,
|
child: child,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -72,14 +72,14 @@ export default {
|
||||||
id: v.id,
|
id: v.id,
|
||||||
name: v.post_title,
|
name: v.post_title,
|
||||||
times: v.post_hits,
|
times: v.post_hits,
|
||||||
icon: v.thumbnail,
|
cover: v.thumbnail,
|
||||||
price: v.money,
|
price: v.money,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.data.push({
|
this.data.push({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
icon: item.more,
|
cover: item.more,
|
||||||
child: goods,
|
child: goods,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<text class="section-title">建材安装服务</text>
|
<text class="section-title">建材安装服务</text>
|
||||||
<view class="group g1">
|
<view class="group g1">
|
||||||
<view class="service-item" v-for="(item, index) in list" :key="index" @click="utils.toPage(item.page)">
|
<view class="service-item" v-for="(item, index) in list" :key="index" @click="utils.toPage(item.page)">
|
||||||
<image class="service-icon" :src="item.icon" mode="scaleToFill" />
|
<image class="service-icon" :src="item.cover" mode="scaleToFill" />
|
||||||
<text class="service-name limit-line clamp-1">
|
<text class="service-name limit-line clamp-1">
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
</text>
|
</text>
|
||||||
|
@ -24,49 +24,49 @@ export default {
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
icon: require("@/static/temp/index/1.png"),
|
cover: require("@/static/temp/index/1.png"),
|
||||||
title: "电器安装",
|
title: "电器安装",
|
||||||
page: "",
|
page: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
icon: require("@/static/temp/index/2.png"),
|
cover: require("@/static/temp/index/2.png"),
|
||||||
title: "卫浴吊顶安装",
|
title: "卫浴吊顶安装",
|
||||||
page: "",
|
page: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
icon: require("@/static/temp/index/3.png"),
|
cover: require("@/static/temp/index/3.png"),
|
||||||
title: "水电安装",
|
title: "水电安装",
|
||||||
page: "",
|
page: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
icon: require("@/static/temp/index/4.png"),
|
cover: require("@/static/temp/index/4.png"),
|
||||||
title: "烟道钻孔",
|
title: "烟道钻孔",
|
||||||
page: "",
|
page: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 5,
|
id: 5,
|
||||||
icon: require("@/static/temp/index/5.png"),
|
cover: require("@/static/temp/index/5.png"),
|
||||||
title: "家具安装",
|
title: "家具安装",
|
||||||
page: "",
|
page: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 6,
|
id: 6,
|
||||||
icon: require("@/static/temp/index/6.png"),
|
cover: require("@/static/temp/index/6.png"),
|
||||||
title: "门窗五金安装",
|
title: "门窗五金安装",
|
||||||
page: "",
|
page: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 7,
|
id: 7,
|
||||||
icon: require("@/static/temp/index/7.png"),
|
cover: require("@/static/temp/index/7.png"),
|
||||||
title: "地面墙体安装",
|
title: "地面墙体安装",
|
||||||
page: "",
|
page: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 8,
|
id: 8,
|
||||||
icon: require("@/static/temp/index/8.png"),
|
cover: require("@/static/temp/index/8.png"),
|
||||||
title: "其他安装",
|
title: "其他安装",
|
||||||
page: "/pages/service/more",
|
page: "/pages/service/more",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue