Commit c6621814 by 前端

记录

1 parent 61c5fae3
<template>
<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="input-box">
<input
......@@ -25,81 +19,57 @@
@scroll="scroll"
>
<view class="list">
<template v-if="flag">
<template v-if="list.length">
<template v-for="item in list">
<view class="item" :key="item.id">
<view class="item-autio"></view>
<view class="item-desc">{{ item.title }}</view>
<template v-if="list.length">
<template v-for="item in list">
<view class="item" :key="item.id">
<view class="item-autio">
<image :src="item.detailUrl" class="cover-box"></image>
<image
src="../../assets/images/boutique/play.png"
class="play-box"
></image>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无接待记录
<view class="item-desc">{{ item.tabName }}</view>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image class="icon" src="../../assets/images/home/nothing.webp" />
暂无数据
</view>
</template>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
import utils from "@/utils/utils";
export default {
name: '',
data () {
return {
name:'',
dateIndex: 0,
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
list: [],
}
},
methods: {
//下拉分页
pageonReachBottom () {
let { pageNum, total, nothing, pageSize } = this
if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1
this.getList()
} else {
this.nothing = true
props: {
views: {
type: Array,
default: () => []
}
},
},
mounted() {
// this.list = utils.deepClone(this.views)
console.log(this.views)
this.list = this.views
},
methods: {
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>
......@@ -112,32 +82,6 @@ export default {
height: 100vh;
background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
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 {
padding: 64rpx;
margin-top: 120rpx;
......@@ -165,6 +109,18 @@ export default {
border-radius: 48rpx;
.item-autio {
height: 404rpx;
position: relative;
.cover-box {
width: 100%;
height: 100%;
}
.play-box {
width: 48rpx;
height: 48rpx;
position: absolute;
left: 32rpx;
bottom: 32rpx;
}
}
.item-desc {
height: 140rpx;
......
......@@ -8,26 +8,17 @@
<template>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="24"
></uni-icons>
<view class="back" @click="back">
<uni-icons type="left" :size="24"></uni-icons>
</view>
<view class="title">{{title}}</view>
<view class="title">{{ title }}</view>
</view>
<template v-for="(item, index) in media">
<view
:class="['view', { showView: id == item.id }]"
:key="index"
>
<view :class="['view', { showView: id == item.id }]" :key="index">
<component
:is="componentName(item.id)"
:views="item.receptionSourceDetailList || []"
:ref="'media'+item.id"
:ref="'media' + item.id"
:title="item.detailTitle || ''"
:madiaId="item.id"
:customerType="customerType"
......@@ -57,18 +48,20 @@
<script>
import ToolBox from "@/components/ToolBox.vue";
import myClick from "@/mixin/click";
import FinishStep from '@/components/FinishStep.vue';
import FinishStep from "@/components/FinishStep.vue";
import Membranes from "./membranes.vue";
import Reception from './components/Reception.vue'
import Reception from "./components/Reception.vue";
import { mapMutations } from "vuex";
import invitation from './invitation.vue';
import invitation from "./invitation.vue";
import Case from "./case.vue";
export default {
components: {
ToolBox,
FinishStep,
Membranes,
Reception,
invitation
invitation,
Case,
},
mixins: [myClick],
props: {
......@@ -76,64 +69,62 @@ export default {
media: Array,
type: {
type: String,
default: 'preview'
default: "preview",
},
customerType: Number
customerType: Number,
},
data () {
return {
};
data() {
return {};
},
computed: {
title () {
title() {
let { id } = this,
name = this.media.find(e => e.id == id)?.shortTitle || ''
return name
name = this.media.find((e) => e.id == id)?.shortTitle || "";
return name;
},
watchStatus () {
return this.$store.state.user.historyStatus
watchStatus() {
return this.$store.state.user.historyStatus;
},
},
mounted () {
},
mounted() {},
methods: {
...mapMutations("audio", ["setReceptionStatus"]),
componentName (id) {
let name = ''
if ([8, 10, 11].includes(id)) name = 'membranes'
else name = {
7: 'reception',
13: 'invitation'
}[id]
return name
componentName(id) {
let name = "";
if ([8, 10, 11].includes(id)) name = "membranes";
else
name = {
7: "reception",
13: "invitation",
9: "Case",
}[id];
return name;
},
open () {
this.$refs.stepRef.open()
open() {
this.$refs.stepRef.open();
},
/**切换素材 */
choose (e) {
if (this.id == 7) this.$refs.media7[0].closeAllPopup()
this.$emit('update:id', e.id)
choose(e) {
if (this.id == 7) this.$refs.media7[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)
back() {
this.$refs?.toolRef?.hide();
this.$emit("back");
},
jumpPage (id) {
this.$emit('update:id', Number(id))
done(e) {
this.$refs.toolRef.hide();
this.$refs.stepRef.close();
this.$emit("done", e);
},
pageonReachBottom () {
jumpPage(id) {
this.$emit("update:id", Number(id));
},
pageonReachBottom() {},
},
};
</script>
......
<template>
<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="data-tabs-box">
<view class="data-tabs">
......@@ -33,13 +27,27 @@
<view class="item" :key="item.id">
<image
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"
/>
<view class="name">
{{ item.customerName }}
{{ item.customerName || "-" }}
</view>
<view class="goods-name">
{{ item.goodsList[0].goodsName }}
<view class="goods-name flex">
{{
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>
<template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind">
......@@ -48,13 +56,14 @@
item[k.key] || "-"
}}</view>
</view>
<view class="info">
<view class="label">实收金额</view>
<view class="value bold"
>¥ <text>{{ item.totalPrice }}</text></view
>
</view>
</template>
<view class="info flex">
<view class="label">实收金额</view>
<view class="value bold"
>¥ <text>{{ item.totalPrice }}</text></view
>
</view>
</view>
</template>
</template>
......@@ -74,6 +83,27 @@
</template>
</scroll-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>
</template>
<script type="text/ecmascript-6">
......@@ -85,6 +115,7 @@ export default {
return {
imageUrl: require('@/assets/images/noviceGuide/step1-1.webp'),
groupIndex:1,
goodsList:[],
name: '',
dateList: [
{ text: '车窗膜',id:1 },
......@@ -110,6 +141,10 @@ export default {
this.getRecordList()
} else this.nothing = true
},
handleLook(data) {
this.$refs.historyRef.open()
this.goodsList = data
},
changeIndex(index) {
if (this.groupIndex == index) return
this.flag = false
......@@ -258,6 +293,7 @@ export default {
box-sizing: border-box;
padding: 24rpx 32rpx;
position: relative;
box-shadow: inset 0 0 16rpx 0 #ffffff;
z-index: 11;
.status {
position: absolute;
......@@ -293,6 +329,11 @@ export default {
font-size: 32rpx;
color: #2c66f7;
margin-top: 16rpx;
.image-look {
width: 40rpx;
height: 40rpx;
margin-left: 10rpx;
}
}
.image-box {
width: 250rpx;
......@@ -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 {
width: 100vw;
flex-direction: column;
......
<template>
<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="input-box">
<input
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!