Commit 47080697 by 李伟康

commit 修改样式

1 parent f6e02a3a
<template>
<view
class="case-item"
class="case-item-component"
@click="jumpDetail(item)"
>
<image
......@@ -96,7 +96,7 @@ export default {
</script>
<style scoped lang='scss'>
.case-item {
.case-item-component {
width: 100%;
height: 100%;
background: #ffffff;
......
......@@ -651,7 +651,8 @@ export default {
gap: toRpx(40) toRpx(44);
padding: toRpx(40) 0 toRpx(20) toRpx(64);
.item {
width: toRpx(608);
width: 30.8%;
// width: 608rpx;
background: #ffffff;
box-sizing: border-box;
padding: toRpx(24) toRpx(32);
......@@ -764,13 +765,13 @@ export default {
}
}
.case-item {
width: toRpx(444);
width: 22.8%;
height: toRpx(552);
}
}
}
.add-btn {
width: toRpx(2040);
width: calc(100% - #{toRpx(60)});
height: toRpx(200);
background-image: url('@/assets/images/common/customer-btn.webp');
background-size: 100%;
......@@ -871,7 +872,6 @@ export default {
justify-content: center;
font-size: toRpx(28);
color: #666666;
line-height: toRpx(44);
transition: all 0.15s;
}
.active {
......
......@@ -368,7 +368,7 @@ export default {
position: absolute;
top: toRpx(80);
left: toRpx(240);
width: toRpx(2042);
width: 87.04%;
height: toRpx(1376);
background: #ffffff59;
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
......
......@@ -96,8 +96,10 @@ export default {
display: flex;
flex-direction: column;
position: relative;
width: toRpx(240);
flex-shrink: 0;
.left-tabs {
width: toRpx(240);
width: 100%;
height: toRpx(1080);
display: flex;
flex-direction: column;
......@@ -169,13 +171,13 @@ export default {
}
}
.user-info {
width: toRpx(240);
width: toRpx(184);
box-sizing: border-box;
padding-top: toRpx(92);
flex-direction: column;
text-align: center;
position: relative;
z-index: 2;
text-align: center;
.account-change {
width: toRpx(136);
height: toRpx(32);
......
<template>
<view class="record-box">
<view class="record-content" v-if="showRecord">
<view
class="record-content"
v-if="showRecord"
>
<view class="data-box">
<template v-for="(i, index) in dataList">
<view :class="['data-item', i.type]" :key="index">
<image :src="i.icon" class="data-item-bg" />
<view
:class="['data-item', i.type]"
:key="index"
>
<image
:src="i.icon"
class="data-item-bg"
/>
<view class="title">{{ dateList[index].text }}</view>
<view class="content">
<view class="total">
......@@ -28,35 +37,74 @@
</view>
<view class="data-container">
<view :class="['type-box']">
<view class="tab-item" v-for="(i, index) in typeList" :key="index" @click="changeType(index, 'firstIndex')">
<view class="sprite-icon" :class="[firstIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"></view>
<view class="text" :class="[firstIndex == index ? `active` : '']">
<view
class="tab-item"
v-for="(i, index) in typeList"
:key="index"
@click="changeType(index, 'firstIndex')"
>
<view
class="sprite-icon"
:class="[firstIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"
></view>
<view
class="text"
:class="[firstIndex == index ? `active` : '']"
>
{{ i.tabName }}
<template v-if="index == 1 && i.num && recordFailList.length > 0">({{ recordFailList.length }})</template>
<template v-if="index == 2 && i.num && preRecordFailList.length > 0">({{ preRecordFailList.length }})</template>
<div class="dot" v-if="index == 2 && i.num && preRecordFailList.length > 0"></div>
<div
class="dot"
v-if="index == 2 && i.num && preRecordFailList.length > 0"
></div>
</view>
</view>
</view>
<view class="tabs-bottom"></view>
<view v-if="firstIndex == 0" class="data-tabs-box">
<view
v-if="firstIndex == 0"
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>
<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-list', { 'type-1': firstIndex == 1 }]" scroll-y @scrolltolower="pageonReachBottom" @scroll="scroll">
<div class="record-tips" v-if="firstIndex == 2 && list.length && list[0] && list[0].length">以下非正常结束的接待记录,需要进行信息确认后才能提交到系统。</div>
<scroll-view
:class="['record-list', { 'type-1': firstIndex == 1 }]"
scroll-y
@scrolltolower="pageonReachBottom"
@scroll="scroll"
>
<div
class="record-tips"
v-if="firstIndex == 2 && list.length && list[0] && list[0].length"
>以下非正常结束的接待记录,需要进行信息确认后才能提交到系统。</div>
<view class="list">
<template v-if="flag">
<template v-if="list.length && list[0] && list[0].length">
<template v-for="i in list">
<template v-for="item in i">
<view class="item" :key="item.id" @click="jumpDetail(item)">
<view class="status flex disabled" v-if="item.receptionStatus === '' || item.receptionStatus === undefined">未知</view>
<view :class="['status flex', { deal: item.receptionStatus == 1 }]" v-else>
<view
class="item"
:key="item.id"
@click="jumpDetail(item)"
>
<view
class="status flex disabled"
v-if="item.receptionStatus === '' || item.receptionStatus === undefined"
>未知</view>
<view
:class="['status flex', { deal: item.receptionStatus == 1 }]"
v-else
>
{{
{
1: '成交',
......@@ -69,7 +117,10 @@
</view>
<view class="goods-name">{{ item.carModel ? item.carModel : '未选择车型' }}</view>
<template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind">
<view
class="info flex"
:key="ind"
>
<view class="label">{{ k.label }}</view>
<view class="value">{{ formatValue(item[k.key], k.key) || '-' }}</view>
</view>
......@@ -80,7 +131,10 @@
</template>
<template v-else>
<view class="nothing flex">
<image class="icon" src="../../../assets/images/home/nothing.webp" />
<image
class="icon"
src="../../../assets/images/home/nothing.webp"
/>
暂无接待记录
</view>
</template>
......@@ -92,7 +146,12 @@
</scroll-view>
</view>
</view>
<save-record v-else @cancel="handleCancel" @submit="handleSubmit" :customerInfoVal="customerInfo"></save-record>
<save-record
v-else
@cancel="handleCancel"
@submit="handleSubmit"
:customerInfoVal="customerInfo"
></save-record>
</view>
</template>
<script type="text/ecmascript-6">
......@@ -169,11 +228,11 @@ export default {
this.getPreRecordNum()
},
methods: {
formatValue(val,k) {
if(!val) return
if(k == 'phoneNumber') {
formatValue (val, k) {
if (!val) return
if (k == 'phoneNumber') {
val = val.toString()
return val.slice(0, 3) + " " + val.slice(3, 7) + " " + val.slice(7)
return val.slice(0, 3) + " " + val.slice(3, 7) + " " + val.slice(7)
}
return val
},
......@@ -594,7 +653,8 @@ export default {
gap: 0 toRpx(60);
// justify-content: space-between;
.data-item {
width: toRpx(640);
// width: toRpx(640);
width: 30.38%;
height: toRpx(200);
position: relative;
font-weight: 500;
......@@ -725,8 +785,11 @@ export default {
font-size: toRpx(32);
color: #1f2133;
z-index: 10;
opacity: 0.7;
}
.active {
opacity: 1;
font-weight: 500;
}
.active-btn {
position: absolute;
......
......@@ -181,6 +181,7 @@ export default {
.right-side {
flex: 1;
position: relative;
width: calc(100vw - #{toRpx(240)});
.right-content {
padding-top: toRpx(92);
height: 100vh;
......
......@@ -167,7 +167,7 @@
<script type="text/ecmascript-6">
import AudioComponent from './components/AudioComponent.vue'
import report from "@/mixin/report.js";
const view_padding_top = 88,
let view_padding_top = 88,
menuHeight = 68
export default {
components: {
......@@ -197,7 +197,9 @@ export default {
const query = uni.createSelectorQuery()
query.select(`#menu-${n}`).boundingClientRect((data) => {
let top = data.top - (view_padding_top + menuHeight) + this.menuScrollTop
this.blockTop = `transform:translateY(${top}px);`
// this.blockTop = `transform:translateY(${top}px);`
this.blockTop = `transform:translateY(${top * 2}rpx);`
}).exec()
}
},
......@@ -338,6 +340,13 @@ export default {
this.topList = topList
this.itemList = itemList
this.detailInfo = detailInfo
const query = uni.createSelectorQuery()
query.select('.title').boundingClientRect((box) => {
menuHeight = box.height
})
query.select('.case-content').boundingClientRect((box) => {
view_padding_top = box.top
}).exec()
if (!this.currentId) this.currentId = detailInfo[0].id
this.$forceUpdate()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!