Commit eb9bec74 by 李伟康

commit 提交

1 parent 12c0f6cb
...@@ -22,6 +22,14 @@ ...@@ -22,6 +22,14 @@
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -892rpx -726rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -892rpx -726rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -934rpx -726rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -934rpx -726rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1196rpx -294rpx;} .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-active { width: 120rpx; height: 120rpx; background-position: -628rpx -588rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -758rpx -588rpx;} .icon-pen { width: 120rpx; height: 120rpx; background-position: -758rpx -588rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1376rpx -588rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -1376rpx -588rpx;}
...@@ -30,21 +38,13 @@ ...@@ -30,21 +38,13 @@
.icon-record-month { width: 712rpx; height: 284rpx; background-position: 0rpx -294rpx;} .icon-record-month { width: 712rpx; height: 284rpx; background-position: 0rpx -294rpx;}
.icon-record-week { width: 712rpx; height: 284rpx; background-position: -722rpx 0rpx;} .icon-record-week { width: 712rpx; height: 284rpx; background-position: -722rpx 0rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -848rpx;} .icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -848rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -976rpx -726rpx;} .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-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-file { width: 60rpx; height: 60rpx; background-position: -360rpx -848rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -430rpx -848rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -430rpx -848rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -500rpx -848rpx;} .icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -500rpx -848rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1376rpx -646rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -588rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -722rpx -294rpx;} .icon-first-nav { width: 464rpx; height: 176rpx; background-position: -722rpx -294rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -1018rpx -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-scene-0 { width: 96rpx; height: 96rpx; background-position: -1252rpx -480rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -122rpx -726rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -228rpx -726rpx;}
\ No newline at end of file \ No newline at end of file
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -588rpx;}
\ No newline at end of file \ No newline at end of file
No preview for this file type

1.28 MB | W: | H:

1.28 MB | 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
...@@ -177,6 +178,9 @@ import KfBox from "./components/KfBox"; ...@@ -177,6 +178,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 +197,7 @@ export default { ...@@ -193,6 +197,7 @@ export default {
], ],
tabIndex: 0, tabIndex: 0,
dateKey: null, dateKey: null,
}; };
}, },
mounted () { mounted () {
...@@ -211,6 +216,12 @@ export default { ...@@ -211,6 +216,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;
}, },
}, },
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 18:23:43
-->
<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"
>
{{id}}
</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 { mapMutations } from "vuex";
export default {
components: {
ToolBox,
FinishStep
},
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
},
},
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="start"
ref="home"
:id="id"
@openStep="openStep"
@backHome="backHome"
>
<view <view
class="module-box" class="module-box"
slot="module" slot="module"
...@@ -10,6 +18,7 @@ ...@@ -10,6 +18,7 @@
:key="index" :key="index"
:class="['item',i.type]" :class="['item',i.type]"
:style="i.style" :style="i.style"
@click="toDetail(i)"
> >
<template v-if="i.icon"> <template v-if="i.icon">
<image <image
...@@ -35,7 +44,7 @@ ...@@ -35,7 +44,7 @@
/> />
</template> </template>
<template v-if="i.previewImg"> <template v-if="i.previewImg">
<img <image
class="preview-img" class="preview-img"
:src="i.previewImg.url" :src="i.previewImg.url"
:style="i.previewImg.style" :style="i.previewImg.style"
...@@ -47,6 +56,16 @@ ...@@ -47,6 +56,16 @@
<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>
</home-frame> </home-frame>
</template> </template>
...@@ -54,10 +73,18 @@ ...@@ -54,10 +73,18 @@
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';
import detail from './detail.vue'
import { mapMutations } from "vuex";
const caseImgUrl = require('@/assets/images/boutique/case.webp') 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 { export default {
mixins: [myClick], mixins: [myClick],
components: { HomeFrame, RecordList }, components: { HomeFrame, RecordList, detail },
name: 'boutique', name: 'boutique',
data () { data () {
return { return {
...@@ -66,79 +93,143 @@ export default { ...@@ -66,79 +93,143 @@ export default {
type: 'landscape', type: 'landscape',
style: 'width:936rpx;background-image: linear-gradient(270deg, #E8F2FF 0%, #E3E9FF 100%);', style: 'width:936rpx;background-image: linear-gradient(270deg, #E8F2FF 0%, #E3E9FF 100%);',
previewImg: { previewImg: {
url: require('@/assets/images/boutique/preview-1.webp'), url: preview1,
style: 'width: 516rpx;height: 312rpx;' style: 'width: 516rpx;height: 312rpx;'
}, },
title: '问界·精品加装服务说明', title: '问界·精品加装服务说明',
description: ['精品礼券|汽车贴膜|汽车精品'] description: ['精品礼券|汽车贴膜|汽车精品'],
id: 1
}, },
{ {
type: 'landscape', type: 'landscape',
style: 'width:690rpx;', style: 'width:690rpx;',
previewImg: { previewImg: {
url: require('@/assets/images/boutique/preview-2.webp'), url: preview2,
style: 'width: 400rpx;height: 312rpx;' style: 'width: 400rpx;height: 312rpx;'
}, },
title: '问界·套餐专区', title: '问界·套餐专区',
description: ['车窗膜|改色膜', '车衣|天窗冰甲'] description: ['车窗膜|改色膜', '车衣|天窗冰甲'],
id: 2
}, },
{ {
type: 'square', type: 'square',
bg: caseImgUrl, bg: caseImgUrl,
style: 'background:transparent;', style: 'background:transparent;',
title: '客户案例' title: '客户案例',
id: 3
}, },
{ {
type: 'vertical', type: 'vertical',
previewImg: { previewImg: {
url: require('@/assets/images/boutique/preview-4.webp'), url: preview4,
style: 'width: 474rpx;height: 360rpx;' style: 'width: 474rpx;height: 360rpx;'
}, },
title: '问界·膜类专区', title: '问界·膜类专区',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板'] description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板'],
id: 4
}, },
{ {
type: 'vertical', type: 'vertical',
previewImg: { previewImg: {
url: require('@/assets/images/boutique/preview-5.webp'), url: preview5,
style: 'width: 474rpx;height: 396rpx;' style: 'width: 474rpx;height: 396rpx;'
}, },
title: '问界·专属精品', title: '问界·专属精品',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板'] description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板'],
id: 5
}, },
{ {
type: 'vertical', type: 'vertical',
previewImg: { previewImg: {
url: require('@/assets/images/boutique/preview-6.webp'), url: preview6,
style: 'width: 474rpx;height: 396rpx;' style: 'width: 474rpx;height: 396rpx;'
}, },
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);', style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '历史成交记录', title: '历史成交记录',
description: ['问界M5|问界M7|问界M9'] description: ['问界M5|问界M7|问界M9'],
id: 6
}, },
{ {
type: 'vertical', type: 'vertical',
previewImg: {
url: preview7,
style: 'width: 474rpx;height: 396rpx;'
},
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);', style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '客户邀约记录', title: '客户邀约记录',
description: ['问界M5|问界M7|问界M9'] description: ['问界M5|问界M7|问界M9'],
id: 7
} }
], ],
moduleKey: Date.now() moduleKey: Date.now(),
chooseItem: {},
id: '',
type: ''
} }
}, },
mounted () { mounted () {
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"]),
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>
......
...@@ -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!