Commit 0fb17c6b by 胡悦

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents e6840450 5323cc87
......@@ -10,10 +10,11 @@ module.exports = {
});
},
// 查询接待素材
findSoureList () {
findSoureList (data) {
return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList",
projectName: "boutique",
...data
});
},
// 查询门店支付配置
......@@ -25,7 +26,7 @@ module.exports = {
...data,
});
},
// 查询门店支付配置
// 接待客户信息保存
saveRecCustomer (data) {
return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer",
......
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1434rpx 928rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -472rpx -726rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -334rpx -726rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -514rpx -726rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -722rpx -480rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -828rpx -480rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -934rpx -480rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1040rpx -480rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -556rpx -726rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -722rpx -294rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -848rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -848rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -598rpx -726rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -888rpx -588rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -640rpx -726rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -1358rpx -480rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -682rpx -726rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -724rpx -726rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -490rpx -588rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -766rpx -726rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -808rpx -726rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -850rpx -726rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -892rpx -726rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -934rpx -726rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1196rpx -294rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -976rpx -726rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -1146rpx -480rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -1366rpx -294rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -1010rpx -588rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -1132rpx -588rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -1254rpx -588rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: 0rpx -726rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -1366rpx -368rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -628rpx -588rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -758rpx -588rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1376rpx -588rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -848rpx;}
.icon-record-day { width: 712rpx; height: 284rpx; background-position: 0rpx 0rpx;}
.icon-record-month { width: 712rpx; height: 284rpx; background-position: 0rpx -294rpx;}
.icon-record-week { width: 712rpx; height: 284rpx; background-position: -722rpx 0rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -848rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -1252rpx -480rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -122rpx -726rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1376rpx -646rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -588rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -1018rpx -726rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -228rpx -726rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -360rpx -848rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -430rpx -848rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -500rpx -848rpx;}
\ No newline at end of file
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 954rpx 664rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -474rpx -138rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -212rpx -478rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -516rpx -138rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -244rpx -356rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -350rpx -356rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -456rpx -356rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -562rpx -356rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -558rpx -138rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx 0rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -584rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -584rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -600rpx -138rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -568rpx -186rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -642rpx -138rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -880rpx -356rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -684rpx -138rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -726rpx -138rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -170rpx -186rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -768rpx -138rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -810rpx -138rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -852rpx -138rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -894rpx -138rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -458rpx -478rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: 0rpx -186rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -500rpx -478rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -668rpx -356rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -360rpx -584rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -690rpx -186rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -812rpx -186rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: 0rpx -356rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -122rpx -356rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -434rpx -584rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -308rpx -186rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -438rpx -186rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -350rpx -478rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -584rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -584rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -774rpx -356rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: 0rpx -478rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -408rpx -478rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: -474rpx 0rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -542rpx -478rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -106rpx -478rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -508rpx -584rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -578rpx -584rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -648rpx -584rpx;}
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

1.28 MB | W: | H:

526 KB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -16,40 +16,15 @@
<template v-for="(i,index) in moduleList">
<view
:key="index"
:class="['item',i.type]"
:class="['item',i.class]"
:style="i.style"
@click="toDetail(i)"
>
<template v-if="i.icon">
<image
:src="i.icon"
class="icon"
/>
</template>
<template v-if="i.title">
<view class="title">{{i.title}}</view>
</template>
<template v-if="i.description">
<template v-for="item in i.description">
<view
class="description"
:key="item"
>{{item}}</view>
</template>
</template>
<template v-if="i.bg">
<image
:src="i.bg"
class="bg"
/>
</template>
<template v-if="i.previewImg">
<image
class="preview-img"
:src="i.previewImg.url"
:style="i.previewImg.style"
>
</template>
<image
class="item-img"
:src="i.thumbnail"
mode="scaleToFill"
/>
</view>
</template>
</view>
......@@ -75,13 +50,6 @@ import HomeFrame from '../../components/HomeFrame/index.vue'
import RecordList from '../home/components/RecordList.vue';
import detail from './detail.vue'
import { mapMutations } from "vuex";
const caseImgUrl = require('@/assets/images/boutique/case.webp')
const preview1 = require('@/assets/images/boutique/preview-1.webp')
const preview2 = require('@/assets/images/boutique/preview-2.webp')
const preview4 = require('@/assets/images/boutique/preview-4.webp')
const preview5 = require('@/assets/images/boutique/preview-5.webp')
const preview6 = require('@/assets/images/boutique/preview-6.webp')
const preview7 = require('@/assets/images/boutique/preview-7.webp')
export default {
mixins: [myClick],
components: { HomeFrame, RecordList, detail },
......@@ -89,81 +57,6 @@ export default {
data () {
return {
moduleList: [
{
type: 'landscape',
style: 'width:936rpx;background-image: linear-gradient(270deg, #E8F2FF 0%, #E3E9FF 100%);',
previewImg: {
url: preview1,
style: 'width: 516rpx;height: 312rpx;'
},
title: '问界·精品加装服务说明',
description: ['精品礼券|汽车贴膜|汽车精品'],
id: 1
},
{
type: 'landscape',
style: 'width:690rpx;',
previewImg: {
url: preview2,
style: 'width: 400rpx;height: 312rpx;'
},
title: '问界·套餐专区',
description: ['车窗膜|改色膜', '车衣|天窗冰甲'],
id: 2
},
{
type: 'square',
bg: caseImgUrl,
style: 'background:transparent;',
title: '客户案例',
id: 3
},
{
type: 'vertical',
previewImg: {
url: preview4,
style: 'width: 474rpx;height: 360rpx;'
},
title: '问界·膜类专区',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板'],
id: 4
},
{
type: 'vertical',
previewImg: {
url: preview5,
style: 'width: 474rpx;height: 396rpx;'
},
title: '问界·专属精品',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板'],
id: 5
},
{
type: 'vertical',
previewImg: {
url: preview6,
style: 'width: 474rpx;height: 396rpx;'
},
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '历史成交记录',
description: ['问界M5|问界M7|问界M9'],
id: 6
},
{
type: 'vertical',
previewImg: {
url: preview7,
style: 'width: 474rpx;height: 396rpx;'
},
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '客户邀约记录',
description: ['问界M5|问界M7|问界M9'],
id: 7
}
],
moduleKey: Date.now(),
chooseItem: {},
......@@ -172,6 +65,7 @@ export default {
}
},
mounted () {
this.init()
this.moduleList.map((e, index) => {
e.icon = require(`@/assets/images/boutique/${index + 1}.png`)
})
......@@ -179,6 +73,28 @@ export default {
},
methods: {
...mapMutations("audio", ["setReceptionStatus"]),
init () {
this.getSoure()
},
// 查询素材
async getSoure () {
const moduleList = await uni.$api.commonApi.findSoureList({
bussinessType: 2
});
moduleList.map((e, index) => {
if (index < 2) {
e.class = 'landscape'
e.style = {
0: 'width:936rpx;',
1: 'width:690rpx;'
}[index]
} else if (index == 2) e.class = 'square'
else e.class = 'vertical'
})
this.moduleList = moduleList
console.log(moduleList)
// this.skeletonStatus = false
},
toDetail (item) {
this.chooseItem = item
this.$refs.home.previewRef.open();
......@@ -225,7 +141,7 @@ export default {
// this.$store.dispatch("clearCustomerInfo");
// this.$store.dispatch("clearHistory");
},
openStep() {
openStep () {
this.$refs.home.finishRef.close();
this.$refs.detail.open();
},
......@@ -245,58 +161,23 @@ export default {
flex-direction: column;
border-radius: 48rpx;
position: relative;
background: #edf4ff;
box-sizing: border-box;
padding: 40rpx 64rpx;
border: 4rpx solid #fff;
.bg {
position: absolute;
&-img {
width: 100%;
height: 100%;
top: 0;
left: 0;
vertical-align: top;
z-index: -1;
}
.icon {
width: 64rpx;
height: 64rpx;
}
.title {
font-weight: 500;
font-size: 36rpx;
color: #1a1a1a;
margin: 20rpx 0 8rpx;
}
.description {
font-size: 24rpx;
color: #808291;
line-height: 34rpx;
}
}
.landscape {
height: 312rpx;
.preview-img {
position: absolute;
right: 0;
top: 0;
}
}
.square {
width: 318rpx;
height: 312rpx;
.title {
color: #fff;
}
}
.vertical {
width: 474rpx;
height: 624rpx;
.preview-img {
position: absolute;
left: 0;
bottom: 0;
}
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!