Commit a9594bdb by 前端

轻改

1 parent cb9d1183
......@@ -58,6 +58,27 @@
}
},
{
"path": "pages/boutique/invitation",
"style": {
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "pages/boutique/case",
"style": {
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "pages/boutique/history",
"style": {
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
"style": {
"disableScroll": true,
......
<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
type="text"
class="input"
:value="name"
placeholder="搜索图片/视频名称"
maxlength="50"
@blur="input($event)"
/>
</view>
<scroll-view
class="record-box"
scroll-y
@scrolltolower="pageonReachBottom"
@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>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无接待记录
</view>
</template>
</template>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
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
}
},
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
}
},
input(e) {
console.log(e.detail.value)
},
getList() {
const {pageNum} = this
}
},
}
</script>
<style scoped lang="scss">
.container {
position: absolute;
left: 0;
top: 0;
width: 100vw;
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;
.input-box {
.input {
padding-left: 30rpx;
height: 80rpx;
background: #ffffff;
border: 3rpx solid #a8c1ff;
border-radius: 16rpx;
width: 100%;
line-height: 80rpx;
}
}
.list {
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
padding-top: 48rpx;
.item {
width: 404rpx;
height: 544rpx;
background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #4673ff1a;
border-radius: 48rpx;
.item-autio {
height: 404rpx;
}
.item-desc {
height: 140rpx;
padding: 28rpx 32rpx;
font-size: 32rpx;
color: #333333;
}
}
}
}
}
</style>
<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">
<template v-for="(i, index) in dateList">
<view
:class="['tab flex', { active: dateIndex == index }]"
:key="index"
@click="changeIndex(index)"
>{{ i.text }}</view
>
</template>
<view :class="['active-btn', `active-btn-${dateIndex}`]"></view>
</view>
</view>
<scroll-view
class="record-box"
scroll-y
@scrolltolower="pageonReachBottom"
@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="[
'status flex',
{ deal: item.receptionStatus == 1 },
]"
>{{
{
1: "成交",
0: "战败",
}[item.receptionStatus]
}}</view
>
<view class="name">
{{ item.customerName }}
</view>
<template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind">
<view class="label">{{ k.label }}</view>
<view class="value">{{ item[k.key] || "-" }}</view>
</view>
</template>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无接待记录
</view>
</template>
</template>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
name: '',
data() {
return {
name: '',
dateIndex: 0,
pageNum: 1,
total: 0,
list: [{
id: 1,
carModel: 1,
customerName: '合适的甲方',
receptionStatus: 1
}],
dateList: [
{ text: '车窗膜' },
{ text: '其他精品' }
],
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: {
//下拉分页
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
},
changeIndex(index) {
if (this.dateIndex == index) return
this.flag = false
this.nothing = false
this.total = 0
this.list = []
this.pageNum = 1
this.dateIndex = index
this.getList()
},
input(e) {
console.log(e.detail.value)
},
getList() {
}
},
}
</script>
<style scoped lang="scss">
.container {
position: absolute;
left: 0;
top: 0;
width: 100vw;
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;
.data-tabs-box {
position: relative;
top: 0;
z-index: 3;
.data-tabs {
display: flex;
justify-content: space-between;
width: 784rpx;
height: 70rpx;
border-radius: 370rpx;
margin: 0 auto;
position: relative;
&::after {
position: absolute;
z-index: -2;
background: #ffffffb3;
width: 100%;
height: 100%;
border-radius: 370rpx;
left: 0;
top: 0;
content: "";
}
.tab {
width: 50%;
height: 70rpx;
justify-content: center;
font-weight: 500;
font-size: 32rpx;
color: #333333;
}
.active {
color: #ffffff;
}
.active-btn {
position: absolute;
width: 50%;
height: 70rpx;
background: #3b73ff;
border-radius: 360rpx;
top: 0;
z-index: -1;
transition: all 0.15s;
}
.active-btn-0 {
left: 0;
}
.active-btn-1 {
left: 50%;
}
}
}
.list {
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
padding-top: 48rpx;
.item {
width: 640rpx;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 24rpx 32rpx;
position: relative;
.status {
position: absolute;
top: 24rpx;
right: 32rpx;
width: 88rpx;
height: 44rpx;
background: #fdece9;
color: #f24724;
border-radius: 4rpx;
font-weight: 500;
font-size: 24rpx;
justify-content: center;
}
.deal {
background: #eaf9f1;
color: #35c376;
}
.name {
font-weight: 500;
font-size: 32rpx;
color: #292d33;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 70%;
}
.goods-name {
font-weight: 500;
font-size: 32rpx;
color: #2c66f7;
margin-top: 16rpx;
}
.info {
margin-top: 16rpx;
font-size: 24rpx;
color: #999ea8;
.value {
margin-left: auto;
color: #666666;
}
}
}
}
}
}
</style>
<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
type="text"
class="input"
:value="name"
placeholder="搜索客户姓名/电话"
maxlength="11"
@blur="input($event)"
/>
</view>
<scroll-view
class="record-box"
scroll-y
@scrolltolower="pageonReachBottom"
@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="[
'status flex',
{ deal: item.receptionStatus == 1 },
]"
>{{
{
1: "成交",
0: "战败",
}[item.receptionStatus]
}}</view
>
<view class="name">
{{ item.customerName }}
</view>
<template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind">
<view class="label">{{ k.label }}</view>
<view class="value">{{ item[k.key] || "-" }}</view>
</view>
</template>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无接待记录
</view>
</template>
</template>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
name: '',
data () {
return {
name:'',
dateIndex: 0,
pageNum: 1,
total: 0,
list: [{
id:1,
carModel:1,
customerName: '合适的甲方',
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: {
//下拉分页
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
},
input(e) {
console.log(e.detail.value)
},
getList() {
}
},
}
</script>
<style scoped lang="scss">
.container {
position: absolute;
left: 0;
top: 0;
width: 100vw;
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;
.input-box {
.input {
padding-left: 30rpx;
height: 80rpx;
background: #ffffff;
border: 3rpx solid #a8c1ff;
border-radius: 16rpx;
width: 100%;
line-height: 80rpx;
}
}
.list {
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
padding-top: 48rpx;
.item {
width: 640rpx;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 24rpx 32rpx;
position: relative;
.status {
position: absolute;
top: 24rpx;
right: 32rpx;
width: 88rpx;
height: 44rpx;
background: #fdece9;
color: #f24724;
border-radius: 4rpx;
font-weight: 500;
font-size: 24rpx;
justify-content: center;
}
.deal {
background: #eaf9f1;
color: #35c376;
}
.name {
font-weight: 500;
font-size: 32rpx;
color: #292d33;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 70%;
}
.goods-name {
font-weight: 500;
font-size: 32rpx;
color: #2c66f7;
margin-top: 16rpx;
}
.info {
margin-top: 16rpx;
font-size: 24rpx;
color: #999ea8;
.value {
margin-left: auto;
color: #666666;
}
}
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!