Commit c6621814 by 前端

记录

1 parent 61c5fae3
<template> <template>
<view class="container"> <view class="container">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="32"></uni-icons>
</view>
<view class="nav-title">客户案例中心</view>
</view>
<view class="box"> <view class="box">
<view class="input-box"> <view class="input-box">
<input <input
...@@ -25,81 +19,57 @@ ...@@ -25,81 +19,57 @@
@scroll="scroll" @scroll="scroll"
> >
<view class="list"> <view class="list">
<template v-if="flag">
<template v-if="list.length"> <template v-if="list.length">
<template v-for="item in list"> <template v-for="item in list">
<view class="item" :key="item.id"> <view class="item" :key="item.id">
<view class="item-autio"></view> <view class="item-autio">
<view class="item-desc">{{ item.title }}</view> <image :src="item.detailUrl" class="cover-box"></image>
<image
src="../../assets/images/boutique/play.png"
class="play-box"
></image>
</view>
<view class="item-desc">{{ item.tabName }}</view>
</view> </view>
</template> </template>
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image <image class="icon" src="../../assets/images/home/nothing.webp" />
class="icon" 暂无数据
src="../../assets/images/home/nothing.webp"
/>
暂无接待记录
</view> </view>
</template> </template>
</template>
</view> </view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import utils from "@/utils/utils";
export default { export default {
name: '', name: '',
data () { data () {
return { return {
name:'', name:'',
dateIndex: 0, list: [],
pageNum: 1,
total: 0,
list: [{
id:1,
carModel:1,
title: 'AITO问界 低盘护板套件(M7)加装效果',
receptionStatus:1
}],
itemObject: [
{ label: '客户电话', key: 'phoneNumber' },
{ label: '客户车型', key: 'salesName' },
{ label: '礼券名称', key: 'duration' },
{ label: '领券时间', key: 'startTime' },
{ label: '销售顾问', key: 'endTime' },
],
flag: true,
nothing: false,
pageSize: 18,
total:0,
sticky: false
} }
}, },
methods: { props: {
//下拉分页 views: {
pageonReachBottom () { type: Array,
let { pageNum, total, nothing, pageSize } = this default: () => []
if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1
this.getList()
} else {
this.nothing = true
} }
}, },
mounted() {
// this.list = utils.deepClone(this.views)
console.log(this.views)
this.list = this.views
},
methods: {
input(e) { input(e) {
console.log(e.detail.value) this.name = e.detail.value
this.list = this.views.filter(i=>i.tabName.includes(this.name))
}, },
getList() {
const {pageNum} = this
}
}, },
} }
</script> </script>
...@@ -112,32 +82,6 @@ export default { ...@@ -112,32 +82,6 @@ export default {
height: 100vh; height: 100vh;
background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%); background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
overflow: hidden; overflow: hidden;
.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;
}
.nav-title {
font-weight: 600;
font-size: 32rpx;
color: #1a1a1a;
text-align: center;
line-height: 100%;
flex: 1;
}
}
.box { .box {
padding: 64rpx; padding: 64rpx;
margin-top: 120rpx; margin-top: 120rpx;
...@@ -165,6 +109,18 @@ export default { ...@@ -165,6 +109,18 @@ export default {
border-radius: 48rpx; border-radius: 48rpx;
.item-autio { .item-autio {
height: 404rpx; height: 404rpx;
position: relative;
.cover-box {
width: 100%;
height: 100%;
}
.play-box {
width: 48rpx;
height: 48rpx;
position: absolute;
left: 32rpx;
bottom: 32rpx;
}
} }
.item-desc { .item-desc {
height: 140rpx; height: 140rpx;
......
...@@ -8,26 +8,17 @@ ...@@ -8,26 +8,17 @@
<template> <template>
<view class="detail-box"> <view class="detail-box">
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="back">
class="back" <uni-icons type="left" :size="24"></uni-icons>
@click="back"
>
<uni-icons
type="left"
:size="24"
></uni-icons>
</view> </view>
<view class="title">{{title}}</view> <view class="title">{{ title }}</view>
</view> </view>
<template v-for="(item, index) in media"> <template v-for="(item, index) in media">
<view <view :class="['view', { showView: id == item.id }]" :key="index">
:class="['view', { showView: id == item.id }]"
:key="index"
>
<component <component
:is="componentName(item.id)" :is="componentName(item.id)"
:views="item.receptionSourceDetailList || []" :views="item.receptionSourceDetailList || []"
:ref="'media'+item.id" :ref="'media' + item.id"
:title="item.detailTitle || ''" :title="item.detailTitle || ''"
:madiaId="item.id" :madiaId="item.id"
:customerType="customerType" :customerType="customerType"
...@@ -57,18 +48,20 @@ ...@@ -57,18 +48,20 @@
<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 FinishStep from '@/components/FinishStep.vue'; import FinishStep from "@/components/FinishStep.vue";
import Membranes from "./membranes.vue"; import Membranes from "./membranes.vue";
import Reception from './components/Reception.vue' import Reception from "./components/Reception.vue";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
import invitation from './invitation.vue'; import invitation from "./invitation.vue";
import Case from "./case.vue";
export default { export default {
components: { components: {
ToolBox, ToolBox,
FinishStep, FinishStep,
Membranes, Membranes,
Reception, Reception,
invitation invitation,
Case,
}, },
mixins: [myClick], mixins: [myClick],
props: { props: {
...@@ -76,64 +69,62 @@ export default { ...@@ -76,64 +69,62 @@ export default {
media: Array, media: Array,
type: { type: {
type: String, type: String,
default: 'preview' default: "preview",
}, },
customerType: Number customerType: Number,
}, },
data () { data() {
return { return {};
};
}, },
computed: { computed: {
title () { title() {
let { id } = this, let { id } = this,
name = this.media.find(e => e.id == id)?.shortTitle || '' name = this.media.find((e) => e.id == id)?.shortTitle || "";
return name return name;
}, },
watchStatus () { watchStatus() {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus;
}, },
}, },
mounted () { mounted() {},
},
methods: { methods: {
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
componentName (id) { componentName(id) {
let name = '' let name = "";
if ([8, 10, 11].includes(id)) name = 'membranes' if ([8, 10, 11].includes(id)) name = "membranes";
else name = { else
7: 'reception', name = {
13: 'invitation' 7: "reception",
}[id] 13: "invitation",
return name 9: "Case",
}, }[id];
open () { return name;
this.$refs.stepRef.open() },
open() {
this.$refs.stepRef.open();
}, },
/**切换素材 */ /**切换素材 */
choose (e) { choose(e) {
if (this.id == 7) this.$refs.media7[0].closeAllPopup() if (this.id == 7) this.$refs.media7[0].closeAllPopup();
this.$emit('update:id', e.id) this.$emit("update:id", e.id);
if (e.id == 2 || e.id == 4) { if (e.id == 2 || e.id == 4) {
// console.log(this.$refs[`media${e.id}`][0].$refs) // console.log(this.$refs[`media${e.id}`][0].$refs)
// this.$refs[`media${e.id}`][0].$refs.tabs.init() // this.$refs[`media${e.id}`][0].$refs.tabs.init()
} }
}, },
back () { back() {
this.$refs?.toolRef?.hide() this.$refs?.toolRef?.hide();
this.$emit('back') this.$emit("back");
},
done (e) {
this.$refs.toolRef.hide()
this.$refs.stepRef.close()
this.$emit('done', e)
}, },
jumpPage (id) { done(e) {
this.$emit('update:id', Number(id)) this.$refs.toolRef.hide();
this.$refs.stepRef.close();
this.$emit("done", e);
}, },
pageonReachBottom () { jumpPage(id) {
this.$emit("update:id", Number(id));
}, },
pageonReachBottom() {},
}, },
}; };
</script> </script>
......
<template> <template>
<view class="container"> <view class="container">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="32"></uni-icons>
</view>
<view class="nav-title">历史成交记录</view>
</view>
<view class="box"> <view class="box">
<view class="data-tabs-box"> <view class="data-tabs-box">
<view class="data-tabs"> <view class="data-tabs">
...@@ -33,13 +27,27 @@ ...@@ -33,13 +27,27 @@
<view class="item" :key="item.id"> <view class="item" :key="item.id">
<image <image
class="image-box" class="image-box"
v-if="item.payVouchers.length"
:src="item.payVouchers[0].payVoucher"
/>
<image
v-else
class="image-box"
src="../../assets/images/boutique/photos.png" src="../../assets/images/boutique/photos.png"
/> />
<view class="name"> <view class="name">
{{ item.customerName }} {{ item.customerName || "-" }}
</view> </view>
<view class="goods-name"> <view class="goods-name flex">
{{ item.goodsList[0].goodsName }} {{
item.goodsList.length ? item.goodsList[0].goodsName : "-"
}}
<image
v-if="item.goodsList.length > 1"
@click="handleLook(item.goodsList)"
class="image-look"
src="../../assets/images/boutique/look.png"
/>
</view> </view>
<template v-for="(k, ind) in itemObject"> <template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind"> <view class="info flex" :key="ind">
...@@ -48,13 +56,14 @@ ...@@ -48,13 +56,14 @@
item[k.key] || "-" item[k.key] || "-"
}}</view> }}</view>
</view> </view>
<view class="info"> </template>
<view class="info flex">
<view class="label">实收金额</view> <view class="label">实收金额</view>
<view class="value bold" <view class="value bold"
>¥ <text>{{ item.totalPrice }}</text></view >¥ <text>{{ item.totalPrice }}</text></view
> >
</view> </view>
</template>
</view> </view>
</template> </template>
</template> </template>
...@@ -74,6 +83,27 @@ ...@@ -74,6 +83,27 @@
</template> </template>
</scroll-view> </scroll-view>
</view> </view>
<MessageBox
ref="historyRef"
title="订单商品"
:popupW="1120"
:isFooter="false"
>
<view class="popup-body">
<table class="tabel-box" cellspacing="0" border="0" cellpadding="0">
<tr>
<th>商品名称</th>
<th>部位</th>
<th>件数</th>
</tr>
<tr v-for="i in goodsList">
<td>{{ i.goodsName }}</td>
<td>{{ i.goodsPosition }}</td>
<td>{{ i.number }}</td>
</tr>
</table>
</view>
</MessageBox>
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
...@@ -85,6 +115,7 @@ export default { ...@@ -85,6 +115,7 @@ export default {
return { return {
imageUrl: require('@/assets/images/noviceGuide/step1-1.webp'), imageUrl: require('@/assets/images/noviceGuide/step1-1.webp'),
groupIndex:1, groupIndex:1,
goodsList:[],
name: '', name: '',
dateList: [ dateList: [
{ text: '车窗膜',id:1 }, { text: '车窗膜',id:1 },
...@@ -110,6 +141,10 @@ export default { ...@@ -110,6 +141,10 @@ export default {
this.getRecordList() this.getRecordList()
} else this.nothing = true } else this.nothing = true
}, },
handleLook(data) {
this.$refs.historyRef.open()
this.goodsList = data
},
changeIndex(index) { changeIndex(index) {
if (this.groupIndex == index) return if (this.groupIndex == index) return
this.flag = false this.flag = false
...@@ -258,6 +293,7 @@ export default { ...@@ -258,6 +293,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
position: relative; position: relative;
box-shadow: inset 0 0 16rpx 0 #ffffff;
z-index: 11; z-index: 11;
.status { .status {
position: absolute; position: absolute;
...@@ -293,6 +329,11 @@ export default { ...@@ -293,6 +329,11 @@ export default {
font-size: 32rpx; font-size: 32rpx;
color: #2c66f7; color: #2c66f7;
margin-top: 16rpx; margin-top: 16rpx;
.image-look {
width: 40rpx;
height: 40rpx;
margin-left: 10rpx;
}
} }
.image-box { .image-box {
width: 250rpx; width: 250rpx;
...@@ -325,6 +366,45 @@ export default { ...@@ -325,6 +366,45 @@ export default {
} }
} }
} }
.popup-body {
.tabel-box {
margin-top: 50rpx;
width: 100%;
tr {
border-radius: 16rpx;
&:first-child {
margin-bottom: 10rpx;
}
td,
th {
color: #333333;
font-weight: 500;
height: 96rpx;
background: #edf2ff;
text-align: left;
padding-left: 30rpx;
border: 1rpx solid #fff;
&:first-child {
width: 60%;
}
&:nth-child(2) {
width: 20%;
}
&:nth-child(3) {
width: 20%;
}
}
th {
border-bottom: 20rpx solid #fff;
}
td {
height: 96rpx;
background: #f7f7f7;
}
}
}
}
.nothing { .nothing {
width: 100vw; width: 100vw;
flex-direction: column; flex-direction: column;
......
<template> <template>
<view class="container"> <view class="container">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="32"></uni-icons>
</view>
<view class="nav-title">客户邀约</view>
</view>
<view class="box"> <view class="box">
<view class="input-box"> <view class="input-box">
<input <input
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!