Commit caade696 by 前端

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

2 parents a9594bdb a4333cf3
Showing 50 changed files with 877 additions and 200 deletions
import http from "../request/http";
module.exports = {
/**获取APP更新 */
findSoureList(data) {
return http.post({
method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: "boutique",
...data,
});
}
}
\ No newline at end of file \ No newline at end of file
...@@ -10,10 +10,11 @@ module.exports = { ...@@ -10,10 +10,11 @@ module.exports = {
}); });
}, },
// 查询接待素材 // 查询接待素材
findSoureList () { findSoureList (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList", method: "dj.api.smartcarlife.recepiton.soure.findSoureList",
projectName: "boutique", projectName: "boutique",
...data
}); });
}, },
// 查询门店支付配置 // 查询门店支付配置
...@@ -25,7 +26,7 @@ module.exports = { ...@@ -25,7 +26,7 @@ module.exports = {
...data, ...data,
}); });
}, },
// 查询门店支付配置 // 接待客户信息保存
saveRecCustomer (data) { saveRecCustomer (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer", method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer",
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
import commonApi from './common' import commonApi from './common'
import systemApi from './systemApi' import systemApi from './systemApi'
import userApi from './userApi' import userApi from './userApi'
import boutiqueApi from './boutique'
module.exports = { module.exports = {
commonApi, commonApi,
systemApi, systemApi,
userApi userApi,
boutiqueApi
} }
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1434rpx 774rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -882rpx -588rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -636rpx -588rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -924rpx -588rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -1210rpx -464rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -1316rpx -464rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: 0rpx -588rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -106rpx -588rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -966rpx -588rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -694rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -694rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1008rpx -588rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -1290rpx -294rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1050rpx -588rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -360rpx -694rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1092rpx -588rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1134rpx -588rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -892rpx -294rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1176rpx -588rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1218rpx -588rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1260rpx -588rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1302rpx -588rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1344rpx -588rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -722rpx -294rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -1386rpx -588rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -212rpx -588rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -442rpx -694rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -722rpx -464rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -844rpx -464rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -966rpx -464rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -1088rpx -464rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -516rpx -694rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -1030rpx -294rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -1160rpx -294rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -774rpx -588rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -694rpx;}
.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 -694rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -318rpx -588rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -424rpx -588rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -832rpx -588rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -636rpx -648rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -530rpx -588rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -590rpx -694rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -660rpx -694rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -730rpx -694rpx;}
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 974rpx 920rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -742rpx -794rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -742rpx -734rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -784rpx -794rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -820rpx -610rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -734rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -106rpx -734rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -212rpx -734rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -826rpx -794rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -410rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -840rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -840rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -868rpx -794rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -820rpx 0rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -730rpx -840rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -360rpx -840rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -772rpx -840rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -814rpx -840rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -644rpx -410rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -856rpx -840rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -898rpx -840rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -942rpx 0rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -942rpx -42rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -942rpx -84rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -474rpx -410rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -942rpx -126rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -318rpx -734rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -442rpx -840rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -820rpx -122rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -820rpx -244rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -820rpx -366rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -820rpx -488rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -516rpx -840rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -490rpx -596rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -620rpx -596rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -750rpx -666rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -840rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -840rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -424rpx -734rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -530rpx -734rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -880rpx -734rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -942rpx -168rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -636rpx -734rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -750rpx -596rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -590rpx -840rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -660rpx -840rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -410rpx 0rpx;}
\ No newline at end of file \ 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
No preview for this file type

1.26 MB | W: | H:

917 KB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -98,8 +98,8 @@ ...@@ -98,8 +98,8 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import Employee from './Employee.vue' import Employee from '@/components/Employee.vue'
import CarBrands from './CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
const phoneRex = /^[1]([3-9])[0-9]{9}$/; const phoneRex = /^[1]([3-9])[0-9]{9}$/;
export default { export default {
......
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
<!-- </template> --> <!-- </template> -->
</view> </view>
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
<slot name="detail" />
</view> </view>
<!-- 未点击开始接待,弹窗 --> <!-- 未点击开始接待,弹窗 -->
<MessageBox <MessageBox
...@@ -170,6 +171,7 @@ ...@@ -170,6 +171,7 @@
<kf-box ref="kfRef" /> <kf-box ref="kfRef" />
<!-- 设置弹框 --> <!-- 设置弹框 -->
<setting-box ref="settingRef" /> <setting-box ref="settingRef" />
<slot name="content" />
</view> </view>
</template> </template>
<script> <script>
...@@ -177,6 +179,9 @@ import KfBox from "./components/KfBox"; ...@@ -177,6 +179,9 @@ import KfBox from "./components/KfBox";
import SettingBox from "./components/SettingBox"; import SettingBox from "./components/SettingBox";
export default { export default {
components: { KfBox, SettingBox }, components: { KfBox, SettingBox },
props:{
id: [String, Number],
},
data () { data () {
return { return {
userInfo: {}, userInfo: {},
...@@ -193,6 +198,7 @@ export default { ...@@ -193,6 +198,7 @@ export default {
], ],
tabIndex: 0, tabIndex: 0,
dateKey: null, dateKey: null,
}; };
}, },
mounted () { mounted () {
...@@ -211,6 +217,12 @@ export default { ...@@ -211,6 +217,12 @@ export default {
y = Math.floor(Math.random() * maxY); y = Math.floor(Math.random() * maxY);
return `transform:translate(${x}px,${y}px);${dateKey};`; return `transform:translate(${x}px,${y}px);${dateKey};`;
}, },
previewRef () {
return this.$refs.previewRef
},
finishRef(){
return this.$refs.finish
}
}, },
onBackPress (options) { onBackPress (options) {
if (options.from === "backbutton") { if (options.from === "backbutton") {
......
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 2; const index = 1;
/** /**
* *
0本地 0本地
......
...@@ -195,6 +195,7 @@ export default { ...@@ -195,6 +195,7 @@ export default {
}, 1000 * 10); }, 1000 * 10);
}, },
handleTouchStart() { handleTouchStart() {
console.log('handleTouchStart')
this.times = 0; this.times = 0;
}, },
}, },
......
{
"dependencies": {
"dayjs": "^1.11.11",
"webpack-spritesmith": "^1.1.0"
}
}
...@@ -72,6 +72,13 @@ ...@@ -72,6 +72,13 @@
} }
}, },
{ {
"path": "pages/boutique/membranes",
"style": {
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "pages/boutique/history", "path": "pages/boutique/history",
"style": { "style": {
"navigationStyle": "custom", "navigationStyle": "custom",
......
<template>
<uni-popup
ref="customer"
type="center"
:is-mask-click="false"
animation
>
<view class="box">
<view class="title flex">
<view class="text">请选择当前洽谈的客户类型</view>
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="16"
color="#1A1A1A"
></uni-icons>
</view>
</view>
<view class="content flex">
<template v-for="(i,index) in typeList">
<view
class="item flex"
:key="index"
>
<view :class="['sprite-icon',i.icon]"></view>
<view class="item-title">{{i.title}}</view>
<text class="item-describe">{{i.describe}}</text>
</view>
</template>
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
typeList: [
{
title: '回店客户',
describe: '客户已领精品券且已上牌完成\n交付安排客户当日回店提车',
icon: 'icon-customer-1'
}, {
title: '现场客户',
describe: '客户未领取精品券\n首次到店',
icon: 'icon-customer-2'
}
]
}
},
mounted () {
},
methods: {
open () {
this.$refs.customer.open();
},
close () {
this.$refs.customer.close();
}
}
}
</script>
<style scoped lang='scss'>
.box {
width: 1920rpx;
height: 1120rpx;
background: #ffffff;
border-radius: 48rpx;
.title {
width: 100%;
height: 160rpx;
background-image: url("@/assets/images/boutique/customer-type-bg.webp");
background-size: 100%;
position: relative;
.text {
font-weight: 500;
font-size: 40rpx;
color: #1a1a1a;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.icon-close-box {
height: 100%;
margin-left: auto;
padding: 0 48rpx;
}
}
.content {
padding: 16rpx 80rpx 72rpx;
width: 100%;
height: calc(100% - 160rpx);
gap: 0 64rpx;
.item {
width: calc(50% - 32rpx);
height: 100%;
background: #ffffff;
box-shadow: 0 12rpx 24rpx 0 #2c66f726;
border-radius: 48rpx;
flex-direction: column;
box-sizing: border-box;
padding-top: 112rpx;
position: relative;
&::before,
&::after {
content: "";
position: absolute;
left: 0;
width: 100%;
background: #EDF5FF;
filter: blur(40rpx);
}
&::before {
top: 0;
height: 62rpx;
}
&::after {
bottom: 0;
height: 126rpx;
}
&-title {
font-weight: 500;
font-size: 40rpx;
color: #1a1a1a;
padding: 32rpx 0 16rpx;
}
&-describe {
font-size: 32rpx;
color: #808291;
text-align: center;
}
&:first-child {
&::before,&::after {
background: #f7f5ff;
}
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="layout">
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file \ No newline at end of file
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-05-31 16:07:23
-->
<template>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="32"
></uni-icons>
</view>
</view>
<template v-for="(item, index) in media">
<view
:class="['view', { showView: id == item.id }]"
:key="index"
>
<component
:is="componentName"
:views="item.receptionSourceDetailList || []"
:ref="'media'+item.id"
:title="item.detailTitle || ''"
:madiaId="item.id"
/>
<!-- <membranes :id="id"></membranes> -->
</view>
</template>
<template v-if="type != 'preview'">
<tool-box
ref="toolRef"
:data="media"
:type="type"
@choose="choose"
@finish="open"
:id="id"
/>
</template>
<finish-step
ref="stepRef"
@submit="done"
/>
</view>
</template>
<script>
import ToolBox from "@/components/ToolBox.vue";
import myClick from "@/mixin/click";
import FinishStep from '@/components/FinishStep.vue';
import Membranes from "./membranes.vue";
import Reception from './components/Reception.vue'
import { mapMutations } from "vuex";
export default {
components: {
ToolBox,
FinishStep,
Membranes,
Reception
},
mixins: [myClick],
props: {
id: [String, Number],
media: Array,
type: {
type: String,
default: 'preview'
}
},
data () {
return {
finishVisible: false,
};
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
componentName () {
let { id } = this,
name = ''
if (id == 7) name = 'reception'
else if ([8, 10, 11].includes(id)) name = 'membranes'
else ''
return name
}
},
mounted () {
},
methods: {
...mapMutations("audio", ["setReceptionStatus"]),
open () {
this.$refs.stepRef.open()
},
/**切换素材 */
choose (e) {
if (this.id == 1) this.$refs.media1[0].closeAllPopup()
this.$emit('update:id', e.id)
if (e.id == 2 || e.id == 4) {
console.log(this.$refs[`media${e.id}`][0].$refs)
this.$refs[`media${e.id}`][0].$refs.tabs.init()
}
},
back () {
this.$refs?.toolRef?.hide()
this.$emit('back')
},
done (e) {
this.$refs.toolRef.hide()
this.$refs.stepRef.close()
this.$emit('done', e)
},
pageonReachBottom () {
},
},
};
</script>
<style scoped lang="scss">
.detail-box {
position: relative;
}
.nav-bar {
position: fixed;
width: 100%;
height: 96rpx;
left: 0;
top: 48rpx;
z-index: 9;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
}
.view {
position: fixed;
width: 100%;
height: 100%;
z-index: -1;
top: 0;
left: 0;
visibility: hidden;
// display: none;
}
.showView {
position: absolute;
z-index: 1;
visibility: visible;
// display: block;
animation: show-content-left 0.15s forwards;
}
.pen-box {
position: fixed;
right: 40rpx;
top: 5%;
width: 120rpx;
height: 120rpx;
z-index: 10;
box-shadow: 0 4px 12px 0 #00000033;
border-radius: 16rpx;
overflow: hidden;
image {
width: 100%;
height: 100%;
}
}
@keyframes show-content-left {
0% {
left: 100%;
}
100% {
left: 0;
}
}
</style>
<template> <template>
<home-frame @handleTouchStart="handleTouchStart"> <home-frame
@handleTouchStart="handleTouchStart"
@preview="preview"
@start="$refs.customerTypeRef.open()"
ref="home"
:id="id"
@openStep="openStep"
@backHome="backHome"
>
<view <view
class="module-box" class="module-box"
slot="module" slot="module"
...@@ -8,45 +16,34 @@ ...@@ -8,45 +16,34 @@
<template v-for="(i,index) in moduleList"> <template v-for="(i,index) in moduleList">
<view <view
:key="index" :key="index"
:class="['item',i.type]" :class="['item',i.class]"
:style="i.style" :style="i.style"
@click="toDetail(i)"
> >
<template v-if="i.icon"> <image
<image class="item-img"
:src="i.icon" :src="i.thumbnail"
class="icon" mode="scaleToFill"
/> />
</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">
<img
class="preview-img"
:src="i.previewImg.url"
:style="i.previewImg.style"
>
</template>
</view> </view>
</template> </template>
</view> </view>
<template slot="record"> <template slot="record">
<record-list ref="recordRef" /> <record-list ref="recordRef" />
</template> </template>
<template slot="detail">
<detail
:id.sync="id"
:media="moduleList"
:type.sync="type"
@back="back"
@done="done"
ref="detail"
/>
</template>
<template slot="content">
<customer-type ref="customerTypeRef" />
</template>
</home-frame> </home-frame>
</template> </template>
...@@ -54,91 +51,105 @@ ...@@ -54,91 +51,105 @@
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import HomeFrame from '../../components/HomeFrame/index.vue' import HomeFrame from '../../components/HomeFrame/index.vue'
import RecordList from '../home/components/RecordList.vue'; import RecordList from '../home/components/RecordList.vue';
const caseImgUrl = require('@/assets/images/boutique/case.webp') import detail from './detail.vue'
import CustomerType from './components/CustomerType.vue';
import { mapMutations } from "vuex";
export default { export default {
mixins: [myClick], mixins: [myClick],
components: { HomeFrame, RecordList }, components: { HomeFrame, RecordList, detail, CustomerType },
name: 'boutique', name: 'boutique',
data () { data () {
return { return {
moduleList: [ moduleList: [
{
type: 'landscape',
style: 'width:936rpx;background-image: linear-gradient(270deg, #E8F2FF 0%, #E3E9FF 100%);',
previewImg: {
url: require('@/assets/images/boutique/preview-1.webp'),
style: 'width: 516rpx;height: 312rpx;'
},
title: '问界·精品加装服务说明',
description: ['精品礼券|汽车贴膜|汽车精品']
},
{
type: 'landscape',
style: 'width:690rpx;',
previewImg: {
url: require('@/assets/images/boutique/preview-2.webp'),
style: 'width: 400rpx;height: 312rpx;'
},
title: '问界·套餐专区',
description: ['车窗膜|改色膜', '车衣|天窗冰甲']
},
{
type: 'square',
bg: caseImgUrl,
style: 'background:transparent;',
title: '客户案例'
},
{
type: 'vertical',
previewImg: {
url: require('@/assets/images/boutique/preview-4.webp'),
style: 'width: 474rpx;height: 360rpx;'
},
title: '问界·膜类专区',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板']
},
{
type: 'vertical',
previewImg: {
url: require('@/assets/images/boutique/preview-5.webp'),
style: 'width: 474rpx;height: 396rpx;'
},
title: '问界·专属精品',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板']
},
{
type: 'vertical',
previewImg: {
url: require('@/assets/images/boutique/preview-6.webp'),
style: 'width: 474rpx;height: 396rpx;'
},
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '历史成交记录',
description: ['问界M5|问界M7|问界M9']
},
{
type: 'vertical',
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '客户邀约记录',
description: ['问界M5|问界M7|问界M9']
}
], ],
moduleKey: Date.now() moduleKey: Date.now(),
chooseItem: {},
id: '',
type: ''
} }
}, },
mounted () { mounted () {
this.init()
this.moduleList.map((e, index) => { this.moduleList.map((e, index) => {
e.icon = require(`@/assets/images/boutique/${index + 1}.png`) e.icon = require(`@/assets/images/boutique/${index + 1}.png`)
e.id = index + 1
}) })
this.moduleKey = Date.now() this.moduleKey = Date.now()
}, },
methods: { 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();
},
cancel () {
this.$refs.home.previewRef.close();
},
preview () {
let { id } = this.chooseItem;
this.type = "preview";
this.id = id;
this.cancel()
},
back () {
if (!this.id) return uni.navigateBack();
if (this.type != "preview") return this.$refs.home.finishRef.open();
this.backHome();
},
backHome () {
this.stopAudio();
this.$refs.home.finishRef.close();
this.id = "";
this.type = "";
this.clearHistory();
// this.init();
},
async start () {
// const result = await this.$permision.requestAndroidPermission(
// "android.permission.RECORD_AUDIO"
// );
// if (result !== 1) {
// uni.showToast({
// title: "为了记录语音通话,请打开录音权限",
// icon: "none",
// });
// return;
// }
this.clearHistory();
this.startAudio();
this.id = this.moduleList[0].id
this.type = "edit"
},
clearHistory () {
// this.$store.dispatch("clearCustomerInfo");
this.$store.dispatch("clearHistory");
},
openStep () {
this.$refs.home.finishRef.close();
this.$refs.detail.open();
},
} }
} }
</script> </script>
...@@ -154,58 +165,23 @@ export default { ...@@ -154,58 +165,23 @@ export default {
flex-direction: column; flex-direction: column;
border-radius: 48rpx; border-radius: 48rpx;
position: relative; position: relative;
background: #edf4ff;
box-sizing: border-box; box-sizing: border-box;
padding: 40rpx 64rpx; &-img {
border: 4rpx solid #fff;
.bg {
position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
top: 0;
left: 0;
vertical-align: top; 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 { .landscape {
height: 312rpx; height: 312rpx;
.preview-img {
position: absolute;
right: 0;
top: 0;
}
} }
.square { .square {
width: 318rpx; width: 318rpx;
height: 312rpx; height: 312rpx;
.title {
color: #fff;
}
} }
.vertical { .vertical {
width: 474rpx; width: 474rpx;
height: 624rpx; height: 624rpx;
.preview-img {
position: absolute;
left: 0;
bottom: 0;
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
<!--
* @Description: 膜类专区
* @Author: huyue
* @Date: 2024-05-30 14:40:39
* @LastEditors: huyue
* @LastEditTime: 2024-05-31 18:06:10
-->
<template>
<view style="position: relative;">
<view class="bg"></view>
<!-- <view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="32"></uni-icons>
</view>
<view class="title">膜类专区</view>
</view> -->
<view class="wrapper">
<view class="wrapper-content">
<view class="first-tab">
<view
class="tab-item"
v-for="(i, index) in firstNav"
:key="index"
@click="changeIndex(index, 'firstIndex')"
>
<view
class="sprite-icon"
:class="[firstIndex == index ? `icon-${i.class} active` : '']"
:style="{ left: i.left }"
></view>
{{ i.name }}
</view>
</view>
<view class="content">
<view class="second-tab">
<view
v-for="(item, ind) in secondNav"
:key="ind"
class="tab-item"
@click="changeIndex(ind, 'secondIndex')"
>
<view
class="text"
:class="[secondIndex == ind ? 'active' : '']"
>{{ item }}</view
>
</view>
</view>
<view class="product-list">
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
</view>
</view>
</view>
</view>
<image
:src="animationList[firstIndex]"
mode="scaleToFill"
class="img-animate"
:key="firstIndex"
/>
</view>
</template>
<script type="text/ecmascript-6">
export default {
name: 'Membranes',
data () {
return {
firstIndex: 0,
firstNav: [
{
name: '问界M5',
left: '0rpx',
class: 'first-nav'
},
{
name: '问界M7',
left: '352rpx',
class: 'second-nav'
},
{
name: '问界M9',
left: '756rpx',
class: 'second-nav'
}
],
secondIndex: 0,
secondNav: ['车窗膜', '改色膜', '车衣', '天窗冰甲'],
// animationList: ['m5', 'm7', 'm9']
animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')]
}
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
watch: {
watchStatus () {
this.firstIndex = 0
}
},
mounted () {
},
methods: {
changeIndex (index, name) {
this[name] = index
},
async findSoureList () {
console.log(1111)
const data = await uni.$api.boutiqueApi.findSoureList({})
console.log(data)
},
back () {
console.log('back')
}
}
}
</script>
<style scoped lang="scss">
.nav-bar {
position: fixed;
width: 100%;
height: 96rpx;
left: 0;
top: 48rpx;
z-index: 9;
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
}
.title {
width: 100%;
text-align: center;
}
}
.bg {
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
background-image: url("../../assets/images/boutique/membranes-bg.webp");
background-size: 100% 100%;
z-index: -1;
}
.wrapper {
box-sizing: border-box;
padding: 168rpx 64rpx 64rpx;
&-content {
background-color: #fff;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 48rpx;
padding: 4rpx;
height: 1296rpx;
box-sizing: border-box;
}
// filter: blur(8rpx);
.first-tab {
position: relative;
display: flex;
width: 100%;
background-color: #eef4fe;
height: 176rpx;
line-height: 128rpx;
border-radius: 48rpx 48rpx 0 0;
z-index: 0;
.tab-item {
width: 400rpx;
text-align: center;
font-weight: 500;
font-size: 40rpx;
color: #1f2133;
.active {
position: absolute;
top: 0;
z-index: -1;
}
}
}
.content {
position: relative;
background-color: #fff;
width: 100%;
padding: 64rpx 0;
margin-top: -48rpx;
border-radius: 48rpx;
.second-tab {
display: inline-flex;
background: #f2f2f2;
border-radius: 16rpx;
height: 84rpx;
align-items: center;
margin-left: 64rpx;
.tab-item {
display: inline-block;
height: 100%;
.text {
display: flex;
align-items: center;
margin: 4rpx;
width: auto;
height: 100%;
padding: 0 48rpx;
&.active {
background-color: #fff;
// margin: 4rpx 0;
border-radius: 16rpx;
height: calc(100% - 8rpx);
}
}
}
}
.product-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 48rpx;
margin-top: 48rpx;
height: 908rpx;
padding: 0 64rpx;
// height: 998rpx;
overflow-y: auto;
.product-item {
text-align: center;
background: #FFFFFF;
box-shadow: 0 16rpx 24rpx 0 #2c66f71a;
border-radius: 24rpx;
.product-img {
width: 486rpx;
height: 486rpx;
}
.product-name {
padding-bottom: 48rpx;
}
}
}
}
}
@keyframes moveAndFade {
0% {
transform: translate(100%, -100%) scale(0.2); /* 移动到右上角并缩小 */
filter: blur(2px); /* 设置模糊 */
opacity: 0;
}
100% {
transform: translate(0, 0) scale(1); /* 移动到正常位置并恢复大小 */
filter: blur(0); /* 清晰 */
opacity: 1;
}
}
.img-animate {
animation: moveAndFade 2s ease-in-out forwards; /* 应用动画,持续时间2秒,缓动函数,停留在最后一帧 */
position: absolute; /* 确保图片可以移动 */
top: 0;
right: 0;
}
</style>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{{item.sceneName}} {{item.sceneName}}
</view> </view>
<view class="shop_no"> <view class="shop_no">
商户号:{{item.sceneDesc}} {{item.sceneDesc}}
</view> </view>
</view> </view>
</view> </view>
...@@ -30,13 +30,13 @@ export default { ...@@ -30,13 +30,13 @@ export default {
sceneList: [ sceneList: [
{ {
sceneName: '轻改', sceneName: '轻改',
sceneDesc: '太阳膜升级转化下单', sceneDesc: '太阳膜升级转化',
sceneType: 1, sceneType: 1,
actived: false actived: false
}, },
{ {
sceneName: '延保', sceneName: '延保',
sceneDesc: '延保升级下单', sceneDesc: '延保升级',
sceneType: 0, sceneType: 0,
actived: false actived: false
}, },
......
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import Employee from './Employee.vue' import Employee from '@/components/Employee.vue'
import CarBrands from './CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
export default { export default {
components: { Employee, CarBrands }, components: { Employee, CarBrands },
props: { props: {
......
...@@ -70,13 +70,13 @@ ...@@ -70,13 +70,13 @@
</view> </view>
</template> </template>
<script> <script>
import ToolBox from "./components/ToolBox.vue"; import ToolBox from "@/components/ToolBox.vue";
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import Media_1 from "./components/Media_1.vue"; import Media_1 from "./components/Media_1.vue";
import MediaComponent from "./components/MediaComponent.vue"; import MediaComponent from "./components/MediaComponent.vue";
import Media_6 from "./components/Media_6.vue"; import Media_6 from "./components/Media_6.vue";
import payPop from "./components/payPop.vue"; import payPop from "./components/payPop.vue";
import FinishStep from './components/FinishStep.vue'; import FinishStep from '@/components/FinishStep.vue';
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
export default { export default {
components: { components: {
......
...@@ -75,7 +75,7 @@ const INFO_LIST = [ ...@@ -75,7 +75,7 @@ const INFO_LIST = [
]; ];
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
import FinishStep from "../detail/components/FinishStep.vue"; import FinishStep from "@/components/FinishStep.vue";
export default { export default {
components: { FinishStep }, components: { FinishStep },
mixins: [myClick], mixins: [myClick],
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
this.stopAudio(); this.stopAudio();
this.infoList = INFO_LIST.map((item) => delete item.imgUrl); this.infoList = INFO_LIST.map((item) => delete item.imgUrl);
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.reLaunch({
url: "/pages/home/home", url: "/pages/home/home",
}); });
}, 1500); }, 1500);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!