Commit f12effbc by 李伟康

commit 适配

1 parent 81ea7e63
Showing 59 changed files with 1288 additions and 1220 deletions
...@@ -111,7 +111,7 @@ body { ...@@ -111,7 +111,7 @@ body {
} }
page { page {
font-size: 28rpx; font-size: toRpx(28);
height: 100%; height: 100%;
min-height: 100%; min-height: 100%;
} }
...@@ -157,7 +157,7 @@ button { ...@@ -157,7 +157,7 @@ button {
margin: 0; margin: 0;
padding: 0; padding: 0;
line-height: 1.5; line-height: 1.5;
font-size: 28rpx; font-size: toRpx(28);
background-color: transparent; background-color: transparent;
border-radius: 0; border-radius: 0;
position: relative; position: relative;
...@@ -169,14 +169,14 @@ button::after { ...@@ -169,14 +169,14 @@ button::after {
// 指定按钮按下去的样式类 // 指定按钮按下去的样式类
.button-hover { .button-hover {
transform: translate(1rpx, 1rpx); transform: translate(toRpx(1), toRpx(1));
} }
.webview-container { .webview-container {
position: absolute; position: absolute;
width: 100rpx; width: toRpx(100);
height: 100rpx; height: toRpx(100);
top: 0rpx; top: 0;
left: 0rpx; left: 0;
} }
</style> </style>
...@@ -215,24 +215,24 @@ export default { ...@@ -215,24 +215,24 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.select-box { .select-box {
margin: 40rpx 0; margin: toRpx(40) 0;
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 32rpx; gap: toRpx(32);
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: toRpx(60);
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: toRpx(68);
line-height: 44rpx; line-height: toRpx(44);
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: toRpx(2) solid #dce0e6;
color: #333; color: #333;
font-size: 32rpx; font-size: toRpx(32);
border-radius: 8rpx; border-radius: toRpx(8);
&.checked { &.checked {
border: 2rpx solid #292d33; border: toRpx(2) solid #292d33;
} }
} }
} }
......
...@@ -97,21 +97,21 @@ export default { ...@@ -97,21 +97,21 @@ export default {
.customer-box { .customer-box {
position: absolute; position: absolute;
left: 0; left: 0;
top: 88rpx; top: toRpx(88);
width: 100%; width: 100%;
height: 352rpx; height: toRpx(352);
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
z-index: -1; z-index: -1;
opacity: 0; opacity: 0;
.customer-title { .customer-title {
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
line-height: 40rpx; line-height: toRpx(40);
padding: 16rpx 24rpx 8rpx; padding: toRpx(16) toRpx(24) toRpx(8);
} }
.scroll-box { .scroll-box {
height: calc(100% - 64rpx); height: calc(100% - #{toRpx(64)});
.loading { .loading {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -123,26 +123,26 @@ export default { ...@@ -123,26 +123,26 @@ export default {
.nothing { .nothing {
width: 100%; width: 100%;
height: 100%; height: 100%;
font-size: 24rpx; font-size: toRpx(24);
color: #c7ccd7; color: #c7ccd7;
flex-direction: column; flex-direction: column;
.icon { .icon {
margin-top: 52rpx; margin-top: toRpx(52);
width: 96rpx; width: toRpx(96);
height: 96rpx; height: toRpx(96);
background-image: url('@/assets/images/common/nothing.webp'); background-image: url('@/assets/images/common/nothing.webp');
background-size: 100%; background-size: 100%;
} }
} }
.item { .item {
width: 100%; width: 100%;
height: 48rpx; height: toRpx(48);
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
line-height: 40rpx; line-height: toRpx(40);
padding-left: 24rpx; padding-left: toRpx(24);
margin-bottom: 8rpx; margin-bottom: toRpx(8);
} }
.active { .active {
background: #ecf1ff; background: #ecf1ff;
......
...@@ -146,41 +146,41 @@ export default { ...@@ -146,41 +146,41 @@ export default {
overflow-y: scroll; overflow-y: scroll;
max-height: 60vh; max-height: 60vh;
position: relative; position: relative;
padding-bottom: 128rpx; padding-bottom: toRpx(128);
.select-group { .select-group {
margin: 32rpx 0; margin: toRpx(32) 0;
.select-title { .select-title {
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
margin-bottom: 10rpx; margin-bottom: toRpx(10);
} }
.select-box { .select-box {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 32rpx; gap: toRpx(32);
.select-item { .select-item {
text-align: center; text-align: center;
justify-content: center; justify-content: center;
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: toRpx(2) solid #dce0e6;
color: #333; color: #333;
font-size: 32rpx; font-size: toRpx(32);
border-radius: 8rpx; border-radius: toRpx(8);
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
padding: 13rpx 40rpx; padding: toRpx(13) toRpx(40);
word-break: break-all; word-break: break-all;
line-height: 44rpx; line-height: toRpx(44);
.sprite-icon { .sprite-icon {
display: none; display: none;
position: absolute; position: absolute;
right: -2rpx; right: toMinusRpx(2);
top: -2rpx; top: toMinusRpx(2);
} }
} }
.checked { .checked {
border: 2rpx solid #2c66f7; border: toRpx(2) solid #2c66f7;
background: #ecf1ff; background: #ecf1ff;
color: #2c66f7; color: #2c66f7;
.sprite-icon { .sprite-icon {
...@@ -195,23 +195,23 @@ export default { ...@@ -195,23 +195,23 @@ export default {
left: 0; left: 0;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 176rpx; height: toRpx(176);
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding-top: 32rpx; padding-top: toRpx(32);
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 0 34rpx; gap: 0 toRpx(34);
.btn { .btn {
width: 718rpx; width: toRpx(718);
height: 80rpx; height: toRpx(80);
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx; border-radius: toRpx(48);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #ffffff; color: #ffffff;
} }
.cancel { .cancel {
......
...@@ -74,24 +74,24 @@ export default { ...@@ -74,24 +74,24 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.select-box { .select-box {
margin: 40rpx 0; margin: toRpx(40) 0;
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 32rpx; gap: toRpx(32);
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: toRpx(60);
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: toRpx(68);
line-height: 44rpx; line-height: toRpx(44);
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: toRpx(2) solid #dce0e6;
color: #333; color: #333;
font-size: 32rpx; font-size: toRpx(32);
border-radius: 8rpx; border-radius: toRpx(8);
&.checked { &.checked {
border: 2rpx solid #292d33; border: toRpx(2) solid #292d33;
} }
} }
} }
......
...@@ -303,15 +303,15 @@ export default { ...@@ -303,15 +303,15 @@ export default {
.pop-tips { .pop-tips {
background: rgba(44, 102, 247, 0.1); background: rgba(44, 102, 247, 0.1);
color: #2c66f7; color: #2c66f7;
font-size: 28rpx; font-size: toRpx(28);
padding: 24rpx 80rpx 24rpx; padding: toRpx(24) toRpx(80) toRpx(24);
margin-top: 30rpx; margin-top: toRpx(30);
text-align: center; text-align: center;
} }
.error-tip { .error-tip {
font-size: 28rpx; font-size: toRpx(28);
padding: 32rpx 60rpx 24rpx; padding: toRpx(32) toRpx(60) toRpx(24);
margin-top: 30rpx; margin-top: toRpx(30);
text-align: center; text-align: center;
background-color: rgb(254, 237, 234); background-color: rgb(254, 237, 234);
color: #f45c3d; color: #f45c3d;
...@@ -319,44 +319,44 @@ export default { ...@@ -319,44 +319,44 @@ export default {
.form { .form {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 24rpx 0; gap: toRpx(24) 0;
padding-top: 30rpx; padding-top: toRpx(30);
&-item { &-item {
// flex: 50%; // flex: 50%;
display: flex; display: flex;
align-items: center; align-items: center;
color: #6c6c70; color: #6c6c70;
font-size: 30rpx; font-size: toRpx(30);
box-sizing: border-box; box-sizing: border-box;
margin: 0 auto; margin: 0 auto;
.label { .label {
position: relative; position: relative;
margin-left: auto; margin-left: auto;
flex-shrink: 0; flex-shrink: 0;
width: 124rpx; width: toRpx(124);
} }
.required { .required {
&::before { &::before {
content: '*'; content: '*';
color: #ff0000; color: #ff0000;
position: absolute; position: absolute;
left: -20rpx; left: toMinusRpx(20);
top: 50%; top: 50%;
transform: translate(0, -50%); transform: translate(0, -50%);
} }
} }
.value { .value {
width: 520rpx; width: toRpx(520);
height: 80rpx; height: toRpx(80);
border: 2rpx solid #e8e8ea; border: toRpx(2) solid #e8e8ea;
background: #ffffff; background: #ffffff;
margin-left: 32rpx; margin-left: toRpx(32);
box-sizing: border-box; box-sizing: border-box;
padding: 0 40rpx; padding: 0 toRpx(40);
border-radius: 8rpx; border-radius: toRpx(8);
&.error { &.error {
border: 2rpx solid #f24724; border: toRpx(2) solid #f24724;
border-radius: 8rpx; border-radius: toRpx(8);
} }
.input, .input,
.select { .select {
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
border: none !important; border: none !important;
outline: none; outline: none;
padding: 0 !important; padding: 0 !important;
font-size: 30rpx; font-size: toRpx(30);
&::placeholder { &::placeholder {
color: #c9c9c9; color: #c9c9c9;
} }
...@@ -378,7 +378,7 @@ export default { ...@@ -378,7 +378,7 @@ export default {
} }
} }
/deep/ .placeholder { /deep/ .placeholder {
font-size: 30rpx; font-size: toRpx(30);
color: #c9c9c9; color: #c9c9c9;
} }
} }
...@@ -398,15 +398,15 @@ export default { ...@@ -398,15 +398,15 @@ export default {
align-items: center; align-items: center;
.choose-item { .choose-item {
width: 100%; width: 100%;
height: 128rpx; height: toRpx(128);
border: 2rpx solid #e8e8e8; border: toRpx(2) solid #e8e8e8;
border-radius: 16rpx; border-radius: toRpx(16);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 24rpx; margin-top: toRpx(24);
.sprite-icon { .sprite-icon {
margin-right: 16rpx; margin-right: toRpx(16);
} }
} }
.success { .success {
......
...@@ -100,32 +100,32 @@ export default { ...@@ -100,32 +100,32 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a; box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a;
border-radius: 16rpx; border-radius: toRpx(16);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
.img { .img {
width: 100%; width: 100%;
height: 324rpx; height: toRpx(324);
} }
.case-name { .case-name {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
line-height: 48rpx; line-height: toRpx(48);
padding: 16rpx 32rpx 8rpx; padding: toRpx(16) toRpx(32) toRpx(8);
} }
.case-text { .case-text {
align-items: flex-start; align-items: flex-start;
font-size: 24rpx; font-size: toRpx(24);
color: #666666; color: #666666;
line-height: 40rpx; line-height: toRpx(40);
padding: 0 32rpx; padding: 0 toRpx(32);
margin-bottom: 4rpx; margin-bottom: toRpx(4);
} }
.case-label { .case-label {
width: 120rpx; width: toRpx(120);
flex-shrink: 0; flex-shrink: 0;
} }
} }
......
...@@ -366,27 +366,27 @@ export default { ...@@ -366,27 +366,27 @@ export default {
z-index: 9; z-index: 9;
.customer-info-box { .customer-info-box {
position: absolute; position: absolute;
top: 80rpx; top: toRpx(80);
left: 240rpx; left: toRpx(240);
width: 2042rpx; width: toRpx(2042);
height: 1376rpx; height: toRpx(1376);
background: #ffffff59; background: #ffffff59;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: 48rpx; border-radius: toRpx(48);
backdrop-filter: blur(8rpx); backdrop-filter: blur(toRpx(8));
pointer-events: auto; pointer-events: auto;
animation: show-info-box 0.25s forwards; animation: show-info-box 0.25s forwards;
.nav-bar { .nav-bar {
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
z-index: 9; z-index: 9;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
line-height: 96rpx; line-height: toRpx(96);
position: relative; position: relative;
margin-top: 16rpx; margin-top: toRpx(16);
.back { .back {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -400,44 +400,44 @@ export default { ...@@ -400,44 +400,44 @@ export default {
} }
.form-box { .form-box {
flex-wrap: wrap; flex-wrap: wrap;
padding: 32rpx 40rpx; padding: toRpx(32) toRpx(40);
justify-content: space-between; justify-content: space-between;
.form-item { .form-item {
width: 934rpx; width: toRpx(934);
height: 80rpx; height: toRpx(80);
margin-bottom: 48rpx; margin-bottom: toRpx(48);
font-size: 28rpx; font-size: toRpx(28);
} }
.label { .label {
width: 192rpx; width: toRpx(192);
color: #292d33; color: #292d33;
justify-content: center; justify-content: center;
.required { .required {
color: #f24724; color: #f24724;
font-size: 28rpx; font-size: toRpx(28);
} }
} }
.input, .input,
.select { .select {
width: 738rpx; width: toRpx(738);
height: 76rpx; height: toRpx(76);
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
border: 2rpx solid transparent !important; border: toRpx(2) solid transparent !important;
outline: none; outline: none;
color: #333333; color: #333333;
border-radius: 16rpx; border-radius: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
line-height: 76rpx; line-height: toRpx(76);
padding: 0 32rpx !important; padding: 0 toRpx(32) !important;
box-sizing: border-box; box-sizing: border-box;
font-size: 28rpx; font-size: toRpx(28);
&::placeholder { &::placeholder {
color: #33333333; color: #33333333;
} }
.value { .value {
max-width: 598rpx; max-width: toRpx(598);
} }
} }
.placeholderStyle { .placeholderStyle {
...@@ -449,22 +449,22 @@ export default { ...@@ -449,22 +449,22 @@ export default {
flex-shrink: 0; flex-shrink: 0;
} }
.error { .error {
border: 2rpx solid #f24724 !important; border: toRpx(2) solid #f24724 !important;
} }
} }
.btns { .btns {
justify-content: center; justify-content: center;
gap: 0 34rpx; gap: 0 toRpx(34);
.btn { .btn {
width: 718rpx; width: toRpx(718);
height: 80rpx; height: toRpx(80);
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx; border-radius: toRpx(48);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #ffffff; color: #ffffff;
} }
.cancel { .cancel {
...@@ -487,12 +487,12 @@ export default { ...@@ -487,12 +487,12 @@ export default {
left: 100%; left: 100%;
} }
100% { 100% {
left: 240rpx; left: toRpx(240);
} }
} }
@keyframes back { @keyframes back {
0% { 0% {
left: 240rpx; left: toRpx(240);
} }
100% { 100% {
left: 100%; left: 100%;
......
...@@ -76,82 +76,82 @@ export default { ...@@ -76,82 +76,82 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.kf-box { .kf-box {
position: relative; position: relative;
width: 864rpx; width: toRpx(864);
height: 478rpx; height: toRpx(478);
background: #ffffff; background: #ffffff;
border-radius: 32rpx; border-radius: toRpx(32);
padding: 0 48rpx; padding: 0 toRpx(48);
box-sizing: border-box; box-sizing: border-box;
.close { .close {
position: absolute; position: absolute;
width: 120rpx; width: toRpx(120);
height: 120rpx; height: toRpx(120);
top: 0; top: 0;
right: 0; right: 0;
justify-content: center; justify-content: center;
} }
.title { .title {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
padding: 46rpx 0; padding: toRpx(46) 0;
.sprite-icon { .sprite-icon {
margin-right: 16rpx; margin-right: toRpx(16);
} }
} }
.info { .info {
.name { .name {
position: relative; position: relative;
width: 480rpx; width: toRpx(480);
font-weight: 600; font-weight: 600;
font-size: 48rpx; font-size: toRpx(48);
align-items: baseline; align-items: baseline;
padding-bottom: 24rpx; padding-bottom: toRpx(24);
border-bottom: 2rpx solid #e6e6e6; border-bottom: toRpx(2) solid #e6e6e6;
.duty { .duty {
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: toRpx(28);
margin-left: 16rpx; margin-left: toRpx(16);
} }
&::after { &::after {
position: absolute; position: absolute;
left: 0; left: 0;
bottom: -2rpx; bottom: toMinusRpx(2);
width: 280rpx; width: toRpx(280);
height: 4rpx; height: toRpx(4);
background: #2c66f7; background: #2c66f7;
content: ""; content: "";
} }
} }
.content { .content {
padding: 28rpx 0; padding: toRpx(28) 0;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: toRpx(28);
} }
.tool { .tool {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
&-item { &-item {
flex: 50%; flex: 50%;
font-size: 28rpx; font-size: toRpx(28);
color: #666666; color: #666666;
margin-bottom: 20rpx; margin-bottom: toRpx(20);
.sprite-icon { .sprite-icon {
margin-right: 8rpx; margin-right: toRpx(8);
} }
} }
} }
} }
.qr-box { .qr-box {
margin-left: 48rpx; margin-left: toRpx(48);
flex-shrink: 0; flex-shrink: 0;
flex-direction: column; flex-direction: column;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: toRpx(28);
.qr { .qr {
width: 240rpx; width: toRpx(240);
height: 240rpx; height: toRpx(240);
margin-bottom: 8rpx; margin-bottom: toRpx(8);
} }
} }
} }
......
...@@ -6,27 +6,43 @@ ...@@ -6,27 +6,43 @@
</view> </view>
<view :class="['left-tabs', { three: tabs.length == 3 }]"> <view :class="['left-tabs', { three: tabs.length == 3 }]">
<template v-for="(i, index) in tabs"> <template v-for="(i, index) in tabs">
<view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index)"> <view
:class="['tab-item', { tabActive: tabIndex == index }]"
:key="index"
@click="changeIndex(index)"
>
<view class="icon-box"> <view class="icon-box">
<view :class="['sprite-icon', `icon-${i.icon}${tabIndex == index ? '-active' : ''}`]"></view> <view :class="['sprite-icon', `icon-${i.icon}${tabIndex == index ? '-active' : ''}`]"></view>
</view> </view>
{{ i.label }} {{ i.label }}
<view class="dot" v-if="i.icon == 'record' && perRecordNumber"></view> <view
class="dot"
v-if="i.icon == 'record' && perRecordNumber"
></view>
</view> </view>
</template> </template>
</view> </view>
<view class="left-footer"> <view class="left-footer">
<view class="btn" @click="$refs.kfRef.open()"> <view
class="btn"
@click="$refs.kfRef.open()"
>
<view class="sprite-icon icon-feedback"></view> <view class="sprite-icon icon-feedback"></view>
</view> </view>
<view class="btn" @click="$refs.settingRef.open()"> <view
class="btn"
@click="$refs.settingRef.open()"
>
<view class="sprite-icon icon-setting"></view> <view class="sprite-icon icon-setting"></view>
</view> </view>
</view> </view>
<!-- 客服弹框 --> <!-- 客服弹框 -->
<kf-box ref="kfRef" /> <kf-box ref="kfRef" />
<!-- 设置弹框 --> <!-- 设置弹框 -->
<setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" /> <setting-box
ref="settingRef"
@stopAudio="$emit('stopAudio')"
/>
</view> </view>
</template> </template>
...@@ -36,14 +52,14 @@ import SettingBox from "./SettingBox"; ...@@ -36,14 +52,14 @@ import SettingBox from "./SettingBox";
import { STORAGE_OBJECTkEY } from '@/utils/cache/constantData' import { STORAGE_OBJECTkEY } from '@/utils/cache/constantData'
export default { export default {
components: { KfBox, SettingBox }, components: { KfBox, SettingBox },
props:{ props: {
tabIndex:Number, tabIndex: Number,
userInfo:Object userInfo: Object
}, },
name: '', name: '',
data () { data () {
return { return {
tabs: [ tabs: [
{ {
label: "首页", label: "首页",
icon: "home", icon: "home",
...@@ -55,22 +71,22 @@ export default { ...@@ -55,22 +71,22 @@ export default {
], ],
} }
}, },
watch:{ watch: {
userInfo (n) { userInfo (n) {
if(n.shopMerchantId) this.haveCustomerAccess(n.shopMerchantId) if (n.shopMerchantId) this.haveCustomerAccess(n.shopMerchantId)
} }
}, },
computed: { computed: {
perRecordNumber() { perRecordNumber () {
return this.$store.state.audio.perRecordNumber return this.$store.state.audio.perRecordNumber
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
changeIndex (index) { changeIndex (index) {
if (this.tabIndex == index) return; if (this.tabIndex == index) return;
this.$emit('update:tabIndex',index) this.$emit('update:tabIndex', index)
this.$emit("changeTab", index) this.$emit("changeTab", index)
}, },
async haveCustomerAccess (merchantId) { async haveCustomerAccess (merchantId) {
...@@ -93,21 +109,21 @@ export default { ...@@ -93,21 +109,21 @@ export default {
flex-direction: column; flex-direction: column;
position: relative; position: relative;
.left-tabs { .left-tabs {
width: 240rpx; width: toRpx(240);
height: 1080rpx; height: toRpx(1080);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
// align-items: center; // align-items: center;
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx 0; padding: toRpx(16) 0;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 0; left: 0;
transform: translateY(-50%); transform: translateY(-50%);
margin: auto; margin: auto;
box-sizing: border-box; box-sizing: border-box;
padding-left: 32rpx; padding-left: toRpx(32);
&::after { &::after {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -120,24 +136,24 @@ export default { ...@@ -120,24 +136,24 @@ export default {
z-index: -1; z-index: -1;
} }
.tab-item { .tab-item {
width: 112rpx; width: toRpx(112);
font-size: 28rpx; font-size: toRpx(28);
color: #8a98b5; color: #8a98b5;
text-align: center; text-align: center;
padding-bottom: 96rpx; padding-bottom: toRpx(96);
position: relative; position: relative;
.dot { .dot {
width: 16rpx; width: toRpx(16);
height: 16rpx; height: toRpx(16);
background: #f24724; background: #f24724;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
right: 20rpx; right: toRpx(20);
top: 20rpx; top: toRpx(20);
} }
.icon-box { .icon-box {
width: 112rpx; width: toRpx(112);
height: 112rpx; height: toRpx(112);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
...@@ -161,57 +177,57 @@ export default { ...@@ -161,57 +177,57 @@ export default {
} }
.three { .three {
.tab-item { .tab-item {
padding-bottom: 64rpx; padding-bottom: toRpx(64);
} }
} }
.user-info { .user-info {
width: 240rpx; width: toRpx(240);
box-sizing: border-box; box-sizing: border-box;
padding-top: 92rpx; padding-top: toRpx(92);
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;
position: relative; position: relative;
z-index: 2; z-index: 2;
.account-change { .account-change {
width: 136rpx; width: toRpx(136);
height: 32rpx; height: toRpx(32);
background: #ffffff66; background: #ffffff66;
border-radius: 16rpx; border-radius: toRpx(16);
font-size: 20rpx; font-size: toRpx(20);
color: #9e9e9e; color: #9e9e9e;
justify-content: center; justify-content: center;
margin-top: 10rpx; margin-top: toRpx(10);
} }
} }
.user-avatar { .user-avatar {
width: 100rpx; width: toRpx(100);
height: 100rpx; height: toRpx(100);
border: 2rpx solid #ffffff; border: toRpx(2) solid #ffffff;
box-shadow: 0 4rpx 8rpx 0 #0000001a; box-shadow: 0 toRpx(4) toRpx(8) 0 #0000001a;
border-radius: 100%; border-radius: 100%;
} }
.user-name { .user-name {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: toRpx(28);
color: #292d33; color: #292d33;
margin-top: 16rpx; margin-top: toRpx(16);
padding: 0 24rpx; padding: 0 toRpx(24);
} }
.user-position { .user-position {
font-size: 20rpx; font-size: toRpx(20);
color: #9b9b9e; color: #9b9b9e;
margin-top: 8rpx; margin-top: toRpx(8);
} }
.left-footer { .left-footer {
margin-top: auto; margin-top: auto;
padding: 0 0 80rpx 0; padding: 0 0 toRpx(80) 0;
} }
.btn { .btn {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 48rpx auto 0; margin: toRpx(48) auto 0;
box-sizing: border-box; box-sizing: border-box;
padding-left: 60rpx; padding-left: toRpx(60);
} }
} }
</style> </style>
...@@ -156,10 +156,10 @@ export default { ...@@ -156,10 +156,10 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.setting-box { .setting-box {
position: relative; position: relative;
width: 720rpx; width: toRpx(720);
height: 880rpx; height: toRpx(880);
background: #ffffff; background: #ffffff;
border-radius: 40rpx; border-radius: toRpx(40);
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -168,8 +168,8 @@ export default { ...@@ -168,8 +168,8 @@ export default {
.close { .close {
position: absolute; position: absolute;
width: 120rpx; width: toRpx(120);
height: 120rpx; height: toRpx(120);
top: 0; top: 0;
right: 0; right: 0;
justify-content: center; justify-content: center;
...@@ -177,75 +177,75 @@ export default { ...@@ -177,75 +177,75 @@ export default {
.app-info { .app-info {
flex-direction: column; flex-direction: column;
font-size: 32rpx; font-size: toRpx(32);
color: #333333; color: #333333;
.sprite-icon { .sprite-icon {
margin-bottom: 12rpx; margin-bottom: toRpx(12);
box-shadow: 0 0 24rpx 0 #3682ef33; box-shadow: 0 0 toRpx(24) 0 #3682ef33;
border-radius: 40rpx; border-radius: toRpx(40);
} }
.version { .version {
margin-top: 8rpx; margin-top: toRpx(8);
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
} }
.check-box { .check-box {
width: 120rpx; width: toRpx(120);
padding: 10rpx 0rpx 4rpx; padding: toRpx(10) 0 toRpx(4);
background: #f2f2f2; background: #f2f2f2;
border-radius: 6rpx; border-radius: toRpx(6);
font-size: 22rpx; font-size: toRpx(22);
color: #999999; color: #999999;
text-align: center; text-align: center;
margin-top: 16rpx; margin-top: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
} }
} }
.btn-box { .btn-box {
margin-top: 120rpx; margin-top: toRpx(120);
.btn { .btn {
width: 384rpx; width: toRpx(384);
height: 64rpx; height: toRpx(64);
background: #3b73ff1a; background: #3b73ff1a;
border: 2rpx solid transparent; border: toRpx(2) solid transparent;
border-radius: 32rpx; border-radius: toRpx(32);
justify-content: center; justify-content: center;
font-size: 28rpx; font-size: toRpx(28);
color: #3b73ff; color: #3b73ff;
margin-bottom: 16rpx; margin-bottom: toRpx(16);
} }
.logout { .logout {
background: #ffffff; background: #ffffff;
color: #333333; color: #333333;
border: 2rpx solid #e8e8e8; border: toRpx(2) solid #e8e8e8;
} }
} }
.a { .a {
font-size: 24rpx; font-size: toRpx(24);
color: #2c66f7; color: #2c66f7;
margin: 48rpx 0 16rpx; margin: toRpx(48) 0 toRpx(16);
} }
.icp { .icp {
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
} }
.app-code { .app-code {
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
line-height: 40rpx; line-height: toRpx(40);
.icon-clone { .icon-clone {
width: 24rpx; width: toRpx(24);
height: 24rpx; height: toRpx(24);
} }
} }
} }
......
...@@ -182,36 +182,36 @@ export default { ...@@ -182,36 +182,36 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.error-tip { .error-tip {
font-size: 28rpx; font-size: toRpx(28);
padding: 32rpx 60rpx 24rpx; padding: toRpx(32) toRpx(60) toRpx(24);
margin-top: 100rpx; margin-top: toRpx(100);
margin-bottom: -80rpx; margin-bottom: toMinusRpx(80);
text-align: center; text-align: center;
background-color: rgb(254, 237, 234); background-color: rgb(254, 237, 234);
color: #f45c3d; color: #f45c3d;
} }
.data-container { .data-container {
background: #ffffff59; background: #ffffff59;
border-radius: 48rpx; border-radius: toRpx(48);
margin: 80rpx 66rpx 80rpx 0; margin: toRpx(80) toRpx(66) toRpx(80) 0;
height: calc(100% - 160rpx); height: calc(100% - #{toRpx(160)});
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border: 2rpx solid #fff; border: toRpx(2) solid #fff;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
.nav-bar { .nav-bar {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
left: 0; left: 0;
top: 28rpx; top: toRpx(28);
z-index: 9; z-index: 9;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
line-height: 96rpx; line-height: toRpx(96);
.back { .back {
position: absolute; position: absolute;
...@@ -228,25 +228,25 @@ export default { ...@@ -228,25 +228,25 @@ export default {
.form { .form {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 80rpx 160rpx; gap: toRpx(80) toRpx(160);
padding: 80rpx; padding: toRpx(80);
margin-top: 60rpx; margin-top: toRpx(60);
&-item { &-item {
width: calc(50% - 80rpx); width: calc(50% - #{toRpx(80)});
display: flex; display: flex;
align-items: center; align-items: center;
color: #6c6c70; color: #6c6c70;
font-size: 30rpx; font-size: toRpx(30);
height: 80rpx; height: toRpx(80);
box-sizing: border-box; box-sizing: border-box;
.label { .label {
position: relative; position: relative;
margin-left: auto; margin-left: auto;
flex-shrink: 0; flex-shrink: 0;
width: 124rpx; width: toRpx(124);
margin-right: 30rpx; margin-right: toRpx(30);
} }
.required { .required {
...@@ -254,25 +254,25 @@ export default { ...@@ -254,25 +254,25 @@ export default {
content: '*'; content: '*';
color: #ff0000; color: #ff0000;
position: absolute; position: absolute;
left: -20rpx; left: toMinusRpx(20);
top: 50%; top: 50%;
transform: translate(0, -50%); transform: translate(0, -50%);
} }
} }
.value { .value {
height: 80rpx; height: toRpx(80);
flex: 1; flex: 1;
border: 2rpx solid #e8e8ea; border: toRpx(2) solid #e8e8ea;
background: #ffffff; background: #ffffff;
margin-left: 32rpx; margin-left: toRpx(32);
box-sizing: border-box; box-sizing: border-box;
padding: 0 40rpx; padding: 0 toRpx(40);
border-radius: 8rpx; border-radius: toRpx(8);
&.error { &.error {
border: 2rpx solid #f24724; border: toRpx(2) solid #f24724;
border-radius: 8rpx; border-radius: toRpx(8);
} }
.input, .input,
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
border: none !important; border: none !important;
outline: none; outline: none;
padding: 0 !important; padding: 0 !important;
font-size: 30rpx; font-size: toRpx(30);
color: #333; color: #333;
&::placeholder { &::placeholder {
...@@ -301,44 +301,30 @@ export default { ...@@ -301,44 +301,30 @@ export default {
} }
} }
} }
// .active {
// &::after {
// position: absolute;
// left: -2rpx;
// top: -2rpx;
// width: calc(100% + 4rpx);
// height: calc(100% + 4rpx);
// content: '';
// background-image: linear-gradient(#2f6af7, #75bcff);
// box-shadow: 0 0 0 8rpx #2c66f71a;
// border-radius: 16rpx;
// }
// }
} }
.footer-box { .footer-box {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 34rpx; gap: toRpx(34);
padding: 0 280rpx; padding: 0 toRpx(280);
.cancel-btn { .cancel-btn {
height: 80rpx; height: toRpx(80);
background: #dae9ff; background: #dae9ff;
border-radius: 48rpx; border-radius: toRpx(48);
line-height: 80rpx; line-height: toRpx(80);
text-align: center; text-align: center;
color: #2c66f7; color: #2c66f7;
flex: 1; flex: 1;
} }
.submit-btn { .submit-btn {
height: 80rpx; height: toRpx(80);
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx; border-radius: toRpx(48);
line-height: 80rpx; line-height: toRpx(80);
text-align: center; text-align: center;
flex: 1; flex: 1;
color: #ffffff; color: #ffffff;
...@@ -347,26 +333,26 @@ export default { ...@@ -347,26 +333,26 @@ export default {
} }
.select-box { .select-box {
margin: 40rpx 0; margin: toRpx(40) 0;
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 20rpx; gap: toRpx(20);
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: toRpx(60);
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: toRpx(68);
line-height: 68rpx; line-height: toRpx(68);
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: toRpx(2) solid #dce0e6;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
border-radius: 8rpx; border-radius: toRpx(8);
&.checked { &.checked {
border: 2rpx solid #292d33; border: toRpx(2) solid #292d33;
} }
} }
} }
......
<template> <template>
<view class="container" @click="handleTouchStart"> <view
class="container"
@click="handleTouchStart"
>
<view :class="['home', { show: !id }]"> <view :class="['home', { show: !id }]">
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" @changeTab="$emit('changeTab', $event)" @stopAudio="stopAudio" /> <left-side
:userInfo="userInfo"
:tabIndex.sync="tabIndex"
@changeTab="$emit('changeTab', $event)"
@stopAudio="stopAudio"
/>
<view class="right-side"> <view class="right-side">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<view class="right-content"> <view class="right-content">
<view class="start" @click="$emit('start')"> <view
<image class="start-btn" src="../../assets/images/home/start.gif" alt="开始接待" /> class="start"
<image class="start-border" src="../../assets/images/home/start-border.png" /> @click="$emit('start')"
>
<image
class="start-btn"
src="../../assets/images/home/start.gif"
alt="开始接待"
/>
<image
class="start-border"
src="../../assets/images/home/start-border.png"
/>
</view> </view>
<view class="module-list"> <view class="module-list">
<slot name="module" /> <slot name="module" />
...@@ -15,7 +33,10 @@ ...@@ -15,7 +33,10 @@
</view> </view>
</template> </template>
<template v-else> <template v-else>
<component :is="componentName" :userInfo="userInfo" /> <component
:is="componentName"
:userInfo="userInfo"
/>
</template> </template>
<view class="store-addr"> <view class="store-addr">
<view class="icon-addr sprite-icon icon-addr"></view> <view class="icon-addr sprite-icon icon-addr"></view>
...@@ -27,13 +48,36 @@ ...@@ -27,13 +48,36 @@
<slot name="detail" /> <slot name="detail" />
</view> </view>
<!-- 未点击开始接待,弹窗 --> <!-- 未点击开始接待,弹窗 -->
<MessageBox ref="previewRef" @confirm="$emit('preview')" :popupW="704" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材" @cancel="$emit('previewCancel')" @close="$emit('previewClose')"></MessageBox> <MessageBox
ref="previewRef"
@confirm="$emit('preview')"
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
@cancel="$emit('previewCancel')"
@close="$emit('previewClose')"
></MessageBox>
<!-- 停留弹框 --> <!-- 停留弹框 -->
<MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> <MessageBox
ref="tipBox"
@cancel="tipCancel"
@confirm="tipConfirm"
content="系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
<!-- 退出弹框 --> <!-- 退出弹框 -->
<MessageBox :popupW="704" ref="finish" :content="finishContene" :isFooter="false"> <MessageBox
:popupW="704"
ref="finish"
:content="finishContene"
:isFooter="false"
>
<view class="footer"> <view class="footer">
<view class="footer-btn confirm flex" @click="$emit('openStep')"> <view
class="footer-btn confirm flex"
@click="$emit('openStep')"
>
<template v-if="finishDoneText"> <template v-if="finishDoneText">
{{ finishDoneText }} {{ finishDoneText }}
</template> </template>
...@@ -42,7 +86,10 @@ ...@@ -42,7 +86,10 @@
<text>(推荐)</text> <text>(推荐)</text>
</template> </template>
</view> </view>
<view class="footer-btn cancel flex" @click="$emit('backHome')"> <view
class="footer-btn cancel flex"
@click="$emit('backHome')"
>
仍要退出 仍要退出
<text>(不推荐)</text> <text>(不推荐)</text>
</view> </view>
...@@ -51,7 +98,11 @@ ...@@ -51,7 +98,11 @@
<!-- 升级弹框 --> <!-- 升级弹框 -->
<update-box /> <update-box />
<slot name="content" /> <slot name="content" />
<web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view> <web-view
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
</view> </view>
</template> </template>
<script> <script>
...@@ -71,25 +122,25 @@ export default { ...@@ -71,25 +122,25 @@ export default {
default: '当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」' default: '当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
} }
}, },
data() { data () {
return { return {
userInfo: {}, userInfo: {},
tabIndex: 0 tabIndex: 0
} }
}, },
mounted() { mounted () {
const userInfo = uni.$storage.get('userInfo') || {} const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo this.userInfo = userInfo
}, },
computed: { computed: {
previewRef() { previewRef () {
return this.$refs.previewRef return this.$refs.previewRef
}, },
finishRef() { finishRef () {
return this.$refs.finish return this.$refs.finish
}, },
componentName() { componentName () {
if (this.tabIndex == 0) return 'HomeSlot' if (this.tabIndex == 0) return 'HomeSlot'
else if (this.tabIndex == 1) return 'RecordList' else if (this.tabIndex == 1) return 'RecordList'
else return 'CustomerFile' else return 'CustomerFile'
...@@ -145,11 +196,12 @@ export default { ...@@ -145,11 +196,12 @@ export default {
flex: 1; flex: 1;
position: relative; position: relative;
.right-content { .right-content {
padding-top: 92rpx; padding-top: toRpx(92);
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
animation: show-box 0.15s forwards; animation: show-box 0.15s forwards;
overflow: hidden;
} }
@keyframes show-box { @keyframes show-box {
0% { 0% {
...@@ -161,13 +213,8 @@ export default { ...@@ -161,13 +213,8 @@ export default {
} }
.start { .start {
&-btn { &-btn {
position: absolute; width: 100%;
width: calc(100% - 64rpx); height: 100%;
height: calc(100% - 64rpx);
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
vertical-align: top;
} }
&-border { &-border {
position: absolute; position: absolute;
...@@ -177,43 +224,44 @@ export default { ...@@ -177,43 +224,44 @@ export default {
top: 0; top: 0;
vertical-align: top; vertical-align: top;
} }
width: calc(100% - 64rpx); height: toRpx(336);
height: 336rpx; box-sizing: border-box;
margin-right: toRpx(64);
position: relative; position: relative;
padding: toRpx(32);
} }
.module-list { .module-list {
height: calc(100% - 336rpx); height: calc(100% - #{toRpx(336)});
} }
.store-addr { .store-addr {
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: 24rpx; bottom: toRpx(24);
transform: translateX(-50%); transform: translateX(-50%);
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 38rpx; margin-top: toRpx(38);
.icon-addr { .icon-addr {
width: 32rpx; width: toRpx(32);
height: 32rpx; height: toRpx(32);
flex-shrink: 0; flex-shrink: 0;
} }
.addr-text { .addr-text {
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
word-wrap: break-word; word-wrap: break-word;
white-space: normal; white-space: normal;
line-height: 32rpx; line-height: toRpx(32);
margin-left: 4rpx; margin-left: toRpx(4);
flex-shrink: 0; flex-shrink: 0;
} }
&::before, &::before,
&::after { &::after {
content: ''; content: '';
width: 600rpx; width: toRpx(600);
height: 2rpx; height: toRpx(2);
margin: 0 40rpx; margin: 0 toRpx(40);
} }
&::before { &::before {
background-image: linear-gradient(270deg, #eeeeee 0%, #d8d8d800 100%); background-image: linear-gradient(270deg, #eeeeee 0%, #d8d8d800 100%);
...@@ -224,30 +272,30 @@ export default { ...@@ -224,30 +272,30 @@ export default {
} }
} }
.footer { .footer {
border-top: 2rpx solid #eff0f2; border-top: toRpx(2) solid #eff0f2;
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: toRpx(32);
margin-top: 48rpx; margin-top: toRpx(48);
.footer-btn { .footer-btn {
justify-content: center; justify-content: center;
margin-top: 16rpx; margin: toRpx(16) auto 0;
} }
.confirm { .confirm {
width: 608rpx; width: toRpx(608);
height: 80rpx; height: toRpx(80);
background: #2c66f7; background: #2c66f7;
border-radius: 40rpx; border-radius: toRpx(40);
color: #fff; color: #fff;
} }
.cancel { .cancel {
width: 608rpx; width: toRpx(608);
height: 80rpx; height: toRpx(80);
background: #ffffff00; background: #ffffff00;
border-radius: 40rpx; border-radius: toRpx(40);
color: #2c66f7; color: #2c66f7;
} }
text { text {
font-size: 24rpx; font-size: toRpx(24);
} }
} }
</style> </style>
...@@ -8,66 +8,68 @@ ...@@ -8,66 +8,68 @@
:scaleSwitch="false" :scaleSwitch="false"
> >
<template slot="customContent"> <template slot="customContent">
<view class="title"> <view class="layout-content">
<view class="text">{{title}}</view> <view class="title">
</view> <view class="text">{{title}}</view>
<view class="content"> </view>
<view <view class="content">
class="form-box" <view
:key="watchStatus" class="form-box"
> :key="watchStatus"
<view class="form"> >
<template v-for="(i, index) in formObject"> <view class="form">
<view <template v-for="(i, index) in formObject">
:class="['form-item' ,{active:focusIndex == index}]" <view
:key="index" :class="['form-item' ,{active:focusIndex == index}]"
> :key="index"
<view class="form-item-box"> >
<template v-if="i.type == 'input'"> <view class="form-item-box">
<input <template v-if="i.type == 'input'">
:type="i.inputType" <input
:maxlength="i.maxlength" :type="i.inputType"
v-model="customerInfo[i.key]" :maxlength="i.maxlength"
class="input" v-model="customerInfo[i.key]"
@input="inputCustomer" class="input"
:placeholder="i.placeholder" @input="inputCustomer"
@focus="focusIndex = index" :placeholder="i.placeholder"
@blur="resetFocusIndex" @focus="focusIndex = index"
:data-key="i.key" @blur="resetFocusIndex"
/> :data-key="i.key"
<customer-autocomplete />
:showType="i.inputType" <customer-autocomplete
:searchValue="customerInfo[i.key]" :showType="i.inputType"
:show="focusIndex == index" :searchValue="customerInfo[i.key]"
@choose="chooseCustomer" :show="focusIndex == index"
/> @choose="chooseCustomer"
<template v-if="i.unit"> />
<view class="unit">{{i.unit}}</view> <template v-if="i.unit">
<view class="unit">{{i.unit}}</view>
</template>
</template> </template>
</template> <template v-else>
<template v-else> <view
<view :class="['select flex',{placeholderStyle:!customerInfo[i.key]}]"
:class="['select flex',{placeholderStyle:!customerInfo[i.key]}]" @click="showPopup(i.popKey,index)"
@click="showPopup(i.popKey,index)" >
> <view class="value text-hide">{{customerInfo[i.key] ||i.placeholder}}</view>
<view class="value text-hide">{{customerInfo[i.key] ||i.placeholder}}</view> <uni-icons
<uni-icons class="arrow"
class="arrow" type="right"
type="right" :size="16"
:size="16" ></uni-icons>
></uni-icons> </view>
</view> </template>
</template> </view>
</view> </view>
</view> </template>
</template> </view>
</view> </view>
</view> </view>
<insurance-table
:isPreview="isPreview"
:show="show"
/>
</view> </view>
<insurance-table
:isPreview="isPreview"
:show="show"
/>
</template> </template>
</wnCanvas> </wnCanvas>
<car-brands <car-brands
...@@ -205,25 +207,30 @@ export default { ...@@ -205,25 +207,30 @@ export default {
height: 100vh; height: 100vh;
background-image: url('@/assets/images/media/insurance-bg.webp'); background-image: url('@/assets/images/media/insurance-bg.webp');
background-size: 100%; background-size: 100%;
&-content{
height: 100%;
margin: $margin;
position: relative;
}
.title { .title {
padding: 120rpx 0 48rpx 128rpx; padding: toRpx(120) 0 toRpx(48) toRpx(128);
.text { .text {
line-height: 80rpx; line-height: toRpx(80);
font-weight: 500; font-weight: 500;
font-size: 56rpx; font-size: toRpx(56);
color: #333333; color: #333333;
} }
} }
.content { .content {
.form-box { .form-box {
height: 80rpx; height: toRpx(80);
padding: 0 128rpx; padding: 0 toRpx(128);
.form { .form {
display: flex; display: flex;
gap: 0 28rpx; gap: 0 toRpx(28);
height: 100%; height: 100%;
&-item { &-item {
width: 368rpx; width: toRpx(368);
height: 100%; height: 100%;
position: relative; position: relative;
...@@ -232,10 +239,10 @@ export default { ...@@ -232,10 +239,10 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #ffffff; background: #ffffff;
border: 3rpx solid #a8c1ff; border: toRpx(3) solid #a8c1ff;
border-radius: 16rpx; border-radius: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
padding: 0 24rpx; padding: 0 toRpx(24);
z-index: 2; z-index: 2;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -243,22 +250,22 @@ export default { ...@@ -243,22 +250,22 @@ export default {
position: absolute; position: absolute;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
right: 24rpx; right: toRpx(24);
font-weight: 300; font-weight: 300;
font-size: 28rpx; font-size: toRpx(28);
color: #292d33; color: #292d33;
line-height: 36rpx; line-height: toRpx(36);
} }
} }
.input, .input,
.select { .select {
width: 100%; width: 100%;
height: 60rpx; height: toRpx(60);
border: none !important; border: none !important;
outline: none; outline: none;
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
border-radius: 16rpx; border-radius: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
padding: 0 !important; padding: 0 !important;
display: flex; display: flex;
...@@ -269,7 +276,7 @@ export default { ...@@ -269,7 +276,7 @@ export default {
} }
.placeholderStyle { .placeholderStyle {
color: #999999; color: #999999;
line-height: 80rpx; line-height: toRpx(80);
} }
.arrow { .arrow {
color: #999 !important; color: #999 !important;
...@@ -280,14 +287,14 @@ export default { ...@@ -280,14 +287,14 @@ export default {
.active { .active {
&::after { &::after {
position: absolute; position: absolute;
left: -2rpx; left: toMinusRpx(2);
top: -2rpx; top: toMinusRpx(2);
width: calc(100% + 4rpx); width: calc(100% + #{toRpx(4)});
height: calc(100% + 4rpx); height: calc(100% + #{toRpx(4)});
content: ''; content: '';
background-image: linear-gradient(#2f6af7, #75bcff); background-image: linear-gradient(#2f6af7, #75bcff);
box-shadow: 0 0 0 8rpx #2c66f71a; box-shadow: 0 0 0 toRpx(8) #2c66f71a;
border-radius: 16rpx; border-radius: toRpx(16);
} }
} }
} }
...@@ -297,7 +304,7 @@ export default { ...@@ -297,7 +304,7 @@ export default {
.byd-layout { .byd-layout {
background-image: url('@/assets/images/media/byd-insurance-bg.webp') !important; background-image: url('@/assets/images/media/byd-insurance-bg.webp') !important;
.title { .title {
padding: 120rpx 128rpx 48rpx; padding: toRpx(120) toRpx(128) toRpx(48);
.text { .text {
text-align: center; text-align: center;
} }
......
...@@ -54,10 +54,10 @@ export default { ...@@ -54,10 +54,10 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.detail-box { .detail-box {
position: relative; position: relative;
width: 720rpx; width: toRpx(720);
max-height: 640rpx; max-height: toRpx(640);
border-radius: 40rpx; border-radius: toRpx(40);
padding: 48rpx 64rpx 88rpx; padding: toRpx(48) toRpx(64) toRpx(88);
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
&::before { &::before {
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 240rpx; height: toRpx(240);
background-image: linear-gradient(180deg, #e5edfe 0%, #ffffff 100%); background-image: linear-gradient(180deg, #e5edfe 0%, #ffffff 100%);
content: ''; content: '';
z-index: -1; z-index: -1;
...@@ -82,13 +82,13 @@ export default { ...@@ -82,13 +82,13 @@ export default {
} }
.icon-bao { .icon-bao {
position: absolute; position: absolute;
top: 48rpx; top: toRpx(48);
right: 68rpx; right: toRpx(68);
} }
.close-box { .close-box {
position: absolute; position: absolute;
width: 136rpx; width: toRpx(136);
height: 136rpx; height: toRpx(136);
top: 0; top: 0;
right: 0; right: 0;
justify-content: center; justify-content: center;
...@@ -96,26 +96,26 @@ export default { ...@@ -96,26 +96,26 @@ export default {
} }
.title { .title {
font-weight: 500; font-weight: 500;
font-size: 40rpx; font-size: toRpx(40);
color: #292d33; color: #292d33;
line-height: 64rpx; line-height: toRpx(64);
padding: 48rpx 0 24rpx; padding: toRpx(48) 0 toRpx(24);
} }
.type { .type {
background: #f2f2f2; background: #f2f2f2;
border-radius: 6rpx; border-radius: toRpx(6);
padding: 2rpx 16rpx; padding: toRpx(2) toRpx(16);
font-size: 26rpx; font-size: toRpx(26);
color: #666666; color: #666666;
line-height: 40rpx; line-height: toRpx(40);
width: fit-content; width: fit-content;
} }
.content { .content {
margin-top: 48rpx; margin-top: toRpx(48);
max-height: 276rpx; max-height: toRpx(276);
font-size: 30rpx; font-size: toRpx(30);
color: #292d33; color: #292d33;
line-height: 48rpx; line-height: toRpx(48);
overflow-y: auto; overflow-y: auto;
word-break: break-all; word-break: break-all;
} }
......
...@@ -269,74 +269,74 @@ export default { ...@@ -269,74 +269,74 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.views-box { .views-box {
width: 2090rpx; width: toRpx(2090);
height: 1080rpx; height: toRpx(1080);
box-sizing: border-box; box-sizing: border-box;
border: 4rpx solid #ffffff; border: toRpx(4) solid #ffffff;
border-radius: 40rpx; border-radius: toRpx(40);
margin: 56rpx auto 0; margin: toRpx(56) auto 0;
.views-title-box { .views-title-box {
height: 96rpx; height: toRpx(96);
background-image: linear-gradient(92deg, #d0e6fecc 0%, #c2dbffcc 33%, #d1e4ffcc 77%, #bdd6ffcc 100%); background-image: linear-gradient(92deg, #d0e6fecc 0%, #c2dbffcc 33%, #d1e4ffcc 77%, #bdd6ffcc 100%);
backdrop-filter: blur(6rpx); backdrop-filter: blur(toRpx(6));
border-radius: 40rpx 40rpx 0 0; border-radius: toRpx(40) toRpx(40) 0 0;
font-weight: 500; font-weight: 500;
font-size: 26rpx; font-size: toRpx(26);
color: #292d33; color: #292d33;
line-height: 40rpx; line-height: toRpx(40);
.title-item { .title-item {
height: 96rpx; height: toRpx(96);
justify-content: center; justify-content: center;
box-sizing: border-box; box-sizing: border-box;
flex-shrink: 0; flex-shrink: 0;
} }
} }
.row-1 { .row-1 {
width: 470rpx; width: toRpx(470);
} }
.row-2 { .row-2 {
width: 1092rpx; width: toRpx(1092);
border-right: 4rpx solid #fff; border-right: toRpx(4) solid #fff;
border-left: 4rpx solid #fff; border-left: toRpx(4) solid #fff;
} }
.row-3 { .row-3 {
width: 528rpx; width: toRpx(528);
} }
.views-content { .views-content {
height: calc(100% - 192rpx); height: calc(100% - #{toRpx(192)});
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
border-top: 4rpx solid #ffffff; border-top: toRpx(4) solid #ffffff;
border-bottom: 4rpx solid #ffffff; border-bottom: toRpx(4) solid #ffffff;
position: relative; position: relative;
.main { .main {
position: absolute; position: absolute;
top: 120rpx; top: toRpx(120);
left: 0; left: 0;
width: 108rpx; width: toRpx(108);
height: 748rpx; height: toRpx(748);
font-weight: 500; font-weight: 500;
font-size: 26rpx; font-size: toRpx(26);
color: #292d33; color: #292d33;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
writing-mode: vertical-lr; writing-mode: vertical-lr;
text-orientation: upright; text-orientation: upright;
letter-spacing: 32rpx; letter-spacing: toRpx(32);
z-index: 2; z-index: 2;
} }
.table { .table {
height: 100%; height: 100%;
.insurance-item { .insurance-item {
background-color: #f7f9ff; background-color: #f7f9ff;
border-bottom: 4rpx solid #ffffff; border-bottom: toRpx(4) solid #ffffff;
position: relative; position: relative;
.name, .name,
.range, .range,
.cost, .cost,
.show { .show {
min-height: 120rpx; min-height: toRpx(120);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -345,31 +345,31 @@ export default { ...@@ -345,31 +345,31 @@ export default {
} }
.name, .name,
.range { .range {
font-size: 26rpx; font-size: toRpx(26);
color: #292d33; color: #292d33;
padding: 40rpx 0; padding: toRpx(40) 0;
} }
.block { .block {
position: absolute; position: absolute;
width: 104rpx; width: toRpx(104);
height: calc(100% + 4rpx); height: calc(100% + #{toRpx(4)});
background: #cfe3fe; background: #cfe3fe;
top: 0; top: 0;
left: 0; left: 0;
} }
.name { .name {
width: 366rpx; width: toRpx(366);
margin-left: 108rpx; margin-left: toRpx(108);
justify-content: flex-start; justify-content: flex-start;
padding: 0 40rpx; padding: 0 toRpx(40);
.check-box { .check-box {
width: 32rpx; width: toRpx(32);
height: 32rpx; height: toRpx(32);
background: #ffffff; background: #ffffff;
border: 3rpx solid #a8c1ff; border: toRpx(3) solid #a8c1ff;
border-radius: 4rpx; border-radius: toRpx(4);
box-sizing: border-box; box-sizing: border-box;
margin-right: 32rpx; margin-right: toRpx(32);
justify-content: center; justify-content: center;
overflow: hidden; overflow: hidden;
font-weight: 700; font-weight: 700;
...@@ -382,28 +382,28 @@ export default { ...@@ -382,28 +382,28 @@ export default {
} }
} }
.range { .range {
padding: 40rpx 64rpx; padding: toRpx(40) toRpx(64);
box-sizing: border-box; box-sizing: border-box;
text-align: center; text-align: center;
} }
.cost { .cost {
&-input { &-input {
position: relative; position: relative;
width: 368rpx; width: toRpx(368);
height: 72rpx; height: toRpx(72);
background: #ffffff; background: #ffffff;
border: 3rpx solid #a8c1ff; border: toRpx(3) solid #a8c1ff;
border-radius: 12rpx; border-radius: toRpx(12);
box-sizing: border-box; box-sizing: border-box;
padding: 0 24rpx; padding: 0 toRpx(24);
.input { .input {
width: 100%; width: 100%;
height: 100%; height: 100%;
font-size: 28rpx; font-size: toRpx(28);
border: none !important; border: none !important;
outline: none; outline: none;
color: #292d33; color: #292d33;
line-height: 72rpx; line-height: toRpx(72);
&::placeholder { &::placeholder {
padding: 0 !important; padding: 0 !important;
} }
...@@ -412,11 +412,11 @@ export default { ...@@ -412,11 +412,11 @@ export default {
position: absolute; position: absolute;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
right: 24rpx; right: toRpx(24);
font-weight: 300; font-weight: 300;
font-size: 28rpx; font-size: toRpx(28);
color: #292d33; color: #292d33;
line-height: 36rpx; line-height: toRpx(36);
} }
} }
} }
...@@ -431,7 +431,7 @@ export default { ...@@ -431,7 +431,7 @@ export default {
} }
.has-default { .has-default {
box-sizing: border-box; box-sizing: border-box;
border-bottom: 4rpx solid #ffffff; border-bottom: toRpx(4) solid #ffffff;
} }
} }
.disabled { .disabled {
...@@ -463,9 +463,9 @@ export default { ...@@ -463,9 +463,9 @@ export default {
} }
&::before { &::before {
position: absolute; position: absolute;
left: 100rpx; left: toRpx(100);
top: 0; top: 0;
width: 4rpx; width: toRpx(4);
height: 100%; height: 100%;
background: #fff; background: #fff;
content: ''; content: '';
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
top: 0; top: 0;
left: 0; left: 0;
height: 100%; height: 100%;
width: 104rpx; width: toRpx(104);
background: #cfe3fe; background: #cfe3fe;
content: ''; content: '';
z-index: -1; z-index: -1;
...@@ -490,33 +490,33 @@ export default { ...@@ -490,33 +490,33 @@ export default {
height: 100%; height: 100%;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
font-size: 26rpx; font-size: toRpx(26);
color: #808291; color: #808291;
.sprite-icon { .sprite-icon {
margin-bottom: 24rpx; margin-bottom: toRpx(24);
} }
} }
} }
.views-footer { .views-footer {
height: 96rpx; height: toRpx(96);
background-image: linear-gradient(92deg, #d1e7ffcc 0%, #c2dbffcc 33%, #d1e4ffcc 77%, #bdd6ffcc 100%); background-image: linear-gradient(92deg, #d1e7ffcc 0%, #c2dbffcc 33%, #d1e4ffcc 77%, #bdd6ffcc 100%);
backdrop-filter: blur(6rpx); backdrop-filter: blur(toRpx(6));
border-radius: 0 0 40rpx 40rpx; border-radius: 0 0 toRpx(40) toRpx(40);
justify-content: flex-end; justify-content: flex-end;
box-sizing: border-box; box-sizing: border-box;
padding-right: 104rpx; padding-right: toRpx(104);
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: toRpx(28);
color: #292d33; color: #292d33;
line-height: 40rpx; line-height: toRpx(40);
.sprite-icon { .sprite-icon {
margin-right: 14rpx; margin-right: toRpx(14);
} }
.total { .total {
color: #2c66f7; color: #2c66f7;
font-size: 48rpx; font-size: toRpx(48);
margin: 0 16rpx 0 32rpx; margin: 0 toRpx(16) 0 toRpx(32);
line-height: 64rpx; line-height: toRpx(64);
} }
.util { .util {
color: #2c66f7; color: #2c66f7;
...@@ -532,23 +532,23 @@ export default { ...@@ -532,23 +532,23 @@ export default {
flex-shrink: 0; flex-shrink: 0;
} }
.row-1 { .row-1 {
width: 404rpx; width: toRpx(404);
} }
.row-2 { .row-2 {
width: 1052rpx; width: toRpx(1052);
} }
.row-3 { .row-3 {
width: 465rpx; width: toRpx(465);
} }
.row-4 { .row-4 {
border-left: 4rpx solid #fff; border-left: toRpx(4) solid #fff;
width: 158rpx; width: toRpx(158);
} }
.insurance-item { .insurance-item {
position: relative; position: relative;
.name { .name {
width: 296rpx !important; width: toRpx(296) !important;
padding: 0 24rpx !important; padding: 0 toRpx(24) !important;
} }
.show { .show {
border-left: none; border-left: none;
...@@ -556,8 +556,8 @@ export default { ...@@ -556,8 +556,8 @@ export default {
&::after { &::after {
position: absolute; position: absolute;
top: 0; top: 0;
right: 158rpx; right: toRpx(158);
width: 4rpx; width: toRpx(4);
height: 100%; height: 100%;
background: #fff; background: #fff;
content: ''; content: '';
......
...@@ -135,19 +135,19 @@ export default { ...@@ -135,19 +135,19 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.tips-wrapper { .tips-wrapper {
background: #ffffff; background: #ffffff;
border-radius: 20rpx; border-radius: toRpx(20);
height: 100%; height: 100%;
.tips-content { .tips-content {
padding: 48rpx; padding: toRpx(48);
box-sizing: border-box; box-sizing: border-box;
height: calc(100% - 100rpx); height: calc(100% - #{toRpx(100)});
position: relative; position: relative;
.icon-close-box { .icon-close-box {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
width: 120rpx; width: toRpx(120);
height: 120rpx; height: toRpx(120);
justify-content: center; justify-content: center;
z-index: 2; z-index: 2;
} }
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: toRpx(36);
color: #292d33; color: #292d33;
text-align: center; text-align: center;
.icon-back { .icon-back {
...@@ -168,18 +168,18 @@ export default { ...@@ -168,18 +168,18 @@ export default {
} }
.tips-text { .tips-text {
display: block; display: block;
font-size: 30rpx; font-size: toRpx(30);
color: #5a5e66; color: #5a5e66;
letter-spacing: 1rpx; letter-spacing: toRpx(1);
text-align: center; text-align: center;
line-height: 40rpx; line-height: toRpx(40);
margin-top: 48rpx; margin-top: toRpx(48);
} }
.tips-footer { .tips-footer {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100rpx; height: toRpx(100);
border-top: 1px solid #e8e8e8; border-top: 1px solid #e8e8e8;
.close { .close {
...@@ -192,9 +192,9 @@ export default { ...@@ -192,9 +192,9 @@ export default {
.tips-btn { .tips-btn {
width: 50%; width: 50%;
text-align: center; text-align: center;
font-size: 32rpx; font-size: toRpx(32);
text-align: center; text-align: center;
line-height: 44rpx; line-height: toRpx(44);
font-weight: 500; font-weight: 500;
} }
} }
......
...@@ -88,24 +88,24 @@ export default { ...@@ -88,24 +88,24 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.select-box { .select-box {
margin: 40rpx 0; margin: toRpx(40) 0;
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 32rpx; gap: toRpx(32);
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: toRpx(60);
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: toRpx(68);
line-height: 44rpx; line-height: toRpx(44);
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: toRpx(2) solid #dce0e6;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
border-radius: 8rpx; border-radius: toRpx(8);
&.checked { &.checked {
border: 2rpx solid #292d33; border: toRpx(2) solid #292d33;
} }
} }
} }
......
...@@ -108,27 +108,27 @@ export default { ...@@ -108,27 +108,27 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.tool-box { .tool-box {
position: fixed; position: fixed;
right: 40rpx; right: toRpx(40);
top: calc(5% + 140rpx); top: calc(5% + #{toRpx(140)});
z-index: 998; z-index: 998;
width: 120rpx; width: toRpx(120);
.btn { .btn {
width: 100%; width: 100%;
height: 120rpx; height: toRpx(120);
background-image: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%); background-image: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
border: 2.08rpx solid #ffffff; border: toRpx(2) solid #ffffff;
box-shadow: 0 8rpx 24rpx 0 #00000033; box-shadow: 0 toRpx(8) toRpx(24) 0 #00000033;
border-radius: 16rpx; border-radius: toRpx(16);
font-size: 24rpx; font-size: toRpx(24);
color: #292d33; color: #292d33;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.icon { .icon {
width: 60rpx; width: toRpx(60);
height: 60rpx; height: toRpx(60);
margin-bottom: 8rpx; margin-bottom: toRpx(8);
transition: all 0.05s; transition: all 0.05s;
} }
} }
...@@ -143,9 +143,9 @@ export default { ...@@ -143,9 +143,9 @@ export default {
} }
.list { .list {
width: 100%; width: 100%;
border: 2rpx solid #ffffff; border: toRpx(2) solid #ffffff;
box-shadow: 0 8rpx 22rpx 0 #0000001a; box-shadow: 0 toRpx(8) toRpx(22) 0 #0000001a;
border-radius: 16rpx; border-radius: toRpx(16);
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
transition: all 0.05s; transition: all 0.05s;
...@@ -163,15 +163,15 @@ export default { ...@@ -163,15 +163,15 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
filter: blur(8rpx); filter: blur(toRpx(8));
z-index: -1; z-index: -1;
} }
.title { .title {
width: 120rpx; width: toRpx(120);
height: 56rpx; height: toRpx(56);
background: #f4f4f5; background: #f4f4f5;
border: 2rpx solid #ffffff; border: toRpx(2) solid #ffffff;
border-radius: 16rpx 16rpx 0 0; border-radius: toRpx(16) toRpx(16) 0 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -181,15 +181,15 @@ export default { ...@@ -181,15 +181,15 @@ export default {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 20rpx; font-size: toRpx(20);
color: #666666; color: #666666;
// height: 120rpx; // height: toRpx(120);
width: 100%; width: 100%;
padding-top: 16rpx; padding-top: toRpx(16);
.icon { .icon {
width: 60rpx; width: toRpx(60);
height: 60rpx; height: toRpx(60);
margin-bottom: 8rpx; margin-bottom: toRpx(8);
} }
} }
.active { .active {
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
.showList { .showList {
display: flex; display: flex;
opacity: 1; opacity: 1;
padding-bottom: 16rpx; padding-bottom: toRpx(16);
animation: scale-up-top-right 0.4s; animation: scale-up-top-right 0.4s;
visibility: visible; visibility: visible;
height: auto; height: auto;
......
...@@ -80,46 +80,46 @@ export default { ...@@ -80,46 +80,46 @@ export default {
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 800rpx; width: toRpx(800);
height: 752rpx; height: toRpx(752);
background: #ffffff; background: #ffffff;
border-radius: 32rpx; border-radius: toRpx(32);
box-sizing: border-box; box-sizing: border-box;
padding-top: 288rpx; padding-top: toRpx(288);
.bg { .bg {
width: 800rpx; width: toRpx(800);
height: 400rpx; height: toRpx(400);
position: absolute; position: absolute;
left: 0; left: 0;
top: -84rpx; top: toMinusRpx(84);
} }
.content { .content {
position: relative; position: relative;
z-index: 2; z-index: 2;
width: 640rpx; width: toRpx(640);
height: 288rpx; height: toRpx(288);
overflow-y: scroll; overflow-y: scroll;
margin: 0 auto 32rpx; margin: 0 auto toRpx(32);
.title { .title {
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
} }
&-item { &-item {
color: #5a5e66; color: #5a5e66;
font-size: 28rpx; font-size: toRpx(28);
} }
} }
.btn { .btn {
width: 608rpx; width: toRpx(608);
height: 80rpx; height: toRpx(80);
background-image: linear-gradient(270deg, #2c66f7 0%, #48a6ff 100%); background-image: linear-gradient(270deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 98rpx; border-radius: toRpx(98);
text-align: center; text-align: center;
line-height: 80rpx; line-height: toRpx(80);
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #ffffff; color: #ffffff;
margin: 0 auto; margin: 0 auto;
} }
......
...@@ -511,34 +511,34 @@ export default { ...@@ -511,34 +511,34 @@ export default {
z-index: 99 !important; z-index: 99 !important;
} }
.footer-btn { .footer-btn {
width: 518rpx; width: toRpx(518);
height: 96rpx; height: toRpx(96);
background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%); background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 32rpx 0 #ffffff80; box-shadow: inset 0 0 toRpx(32) 0 #ffffff80;
border-radius: 16rpx; border-radius: toRpx(16);
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: toRpx(36);
color: #ffffff; color: #ffffff;
line-height: 96rpx; line-height: toRpx(96);
text-align: center; text-align: center;
margin: 0 auto; margin: 0 auto;
margin-top: 70rpx; margin-top: toRpx(70);
} }
.content { .content {
display: inline-flex; display: inline-flex;
margin-top: 18rpx; margin-top: toRpx(18);
.qr-code { .qr-code {
margin-top: 62rpx; margin-top: toRpx(62);
width: 400rpx; width: toRpx(400);
margin-left: 64rpx; margin-left: toRpx(64);
&-box { &-box {
height: 400rpx; height: toRpx(400);
border-radius: 22.86rpx; border-radius: toRpx(23);
background-color: #f9f9f9; background-color: #f9f9f9;
} }
&-img { &-img {
width: 400rpx; width: toRpx(400);
height: 400rpx; height: toRpx(400);
} }
} }
} }
...@@ -546,46 +546,46 @@ export default { ...@@ -546,46 +546,46 @@ export default {
flex: 1; flex: 1;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 32rpx 0; gap: toRpx(32) 0;
padding-top: 30rpx; padding-top: toRpx(30);
&-item { &-item {
display: flex; display: flex;
align-items: center; align-items: center;
color: #6c6c70; color: #6c6c70;
font-size: 30rpx; font-size: toRpx(30);
box-sizing: border-box; box-sizing: border-box;
margin: 0 auto; margin: 0 auto;
.label { .label {
position: relative; position: relative;
margin-left: auto; margin-left: auto;
flex-shrink: 0; flex-shrink: 0;
width: 124rpx; width: toRpx(124);
} }
.required { .required {
&::before { &::before {
content: '*'; content: '*';
color: #ff0000; color: #ff0000;
position: absolute; position: absolute;
left: -20rpx; left: toMinusRpx(20);
top: 50%; top: 50%;
transform: translate(0, -50%); transform: translate(0, -50%);
} }
} }
.value { .value {
width: 468rpx; width: toRpx(468);
height: 80rpx; height: toRpx(80);
border: 2rpx solid #e8e8ea; border: toRpx(2) solid #e8e8ea;
background: #ffffff; background: #ffffff;
margin-left: 32rpx; margin-left: toRpx(32);
box-sizing: border-box; box-sizing: border-box;
padding: 0 40rpx; padding: 0 toRpx(40);
border-radius: 8rpx; border-radius: toRpx(8);
.text { .text {
line-height: 80rpx; line-height: toRpx(80);
} }
&.error { &.error {
border: 2rpx solid #f24724; border: toRpx(2) solid #f24724;
border-radius: 8rpx; border-radius: toRpx(8);
} }
.input, .input,
.select { .select {
...@@ -594,7 +594,7 @@ export default { ...@@ -594,7 +594,7 @@ export default {
border: none !important; border: none !important;
outline: none; outline: none;
padding: 0 !important; padding: 0 !important;
font-size: 30rpx; font-size: toRpx(30);
&::placeholder { &::placeholder {
color: #c9c9c9; color: #c9c9c9;
} }
...@@ -607,7 +607,7 @@ export default { ...@@ -607,7 +607,7 @@ export default {
} }
} }
/deep/ .placeholder { /deep/ .placeholder {
font-size: 30rpx; font-size: toRpx(30);
color: #c9c9c9; color: #c9c9c9;
} }
} }
...@@ -622,40 +622,40 @@ export default { ...@@ -622,40 +622,40 @@ export default {
} }
} }
.select-box { .select-box {
margin: 40rpx 0; margin: toRpx(40) 0;
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 32rpx; gap: toRpx(32);
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: toRpx(60);
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: toRpx(68);
line-height: 68rpx; line-height: toRpx(68);
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: toRpx(2) solid #dce0e6;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
border-radius: 8rpx; border-radius: toRpx(8);
&.checked { &.checked {
border: 2rpx solid #292d33; border: toRpx(2) solid #292d33;
} }
} }
} }
.no-data { .no-data {
width: 100%; width: 100%;
height: 100%; height: 100%;
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
line-height: 36rpx; line-height: toRpx(36);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
&-img { &-img {
width: 100%; width: 100%;
height: 138rpx; height: toRpx(138);
background-image: url('@/assets/images/boutique/no-data.webp'); background-image: url('@/assets/images/boutique/no-data.webp');
background-size: 100%; background-size: 100%;
} }
...@@ -669,68 +669,68 @@ export default { ...@@ -669,68 +669,68 @@ export default {
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
width: 100%; width: 100%;
height: 100%; height: 100%;
&-status { &-status {
width: 96rpx; width: toRpx(96);
height: 96rpx; height: toRpx(96);
margin-bottom: 16rpx; margin-bottom: toRpx(16);
background-image: url('@/assets/images/boutique/ok-status.webp'); background-image: url('@/assets/images/boutique/ok-status.webp');
background-size: 100%; background-size: 100%;
} }
} }
.ok-tips { .ok-tips {
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
text-align: center; text-align: center;
line-height: 36rpx; line-height: toRpx(36);
margin-top: 32rpx; margin-top: toRpx(32);
} }
.customer-info { .customer-info {
flex: 1; flex: 1;
padding-top: 30rpx; padding-top: toRpx(30);
background-color: #f9f9f9; background-color: #f9f9f9;
border-radius: 16rpx; border-radius: toRpx(16);
padding: 48rpx; padding: toRpx(48);
margin-top: 30rpx; margin-top: toRpx(30);
margin-bottom: 56rpx; margin-bottom: toRpx(56);
.customer-title { .customer-title {
font-size: 30rpx; font-size: toRpx(30);
color: #333333; color: #333333;
letter-spacing: 0; letter-spacing: 0;
line-height: 44rpx; line-height: toRpx(44);
height: 44rpx; height: toRpx(44);
} }
.line { .line {
width: 100%; width: 100%;
height: 1px; height: toRpx(2);
background-color: #e0e0e0; background-color: #e0e0e0;
margin: 32rpx 0; margin: toRpx(32) 0;
} }
.customer-list { .customer-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 32rpx 0; gap: toRpx(32) 0;
} }
.customer-item { .customer-item {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
.label { .label {
width: 185rpx; width: toRpx(185);
text-align: right; text-align: right;
margin-right: 32rpx; margin-right: toRpx(32);
font-size: 28rpx; font-size: toRpx(28);
color: #6c6c70; color: #6c6c70;
line-height: 44rpx; line-height: toRpx(44);
} }
.value-text { .value-text {
flex: 1; flex: 1;
font-size: 30rpx; font-size: toRpx(30);
color: #333333; color: #333333;
line-height: 44rpx; line-height: toRpx(44);
} }
} }
} }
......
...@@ -81,19 +81,19 @@ export default { ...@@ -81,19 +81,19 @@ export default {
z-index: 99 !important; z-index: 99 !important;
} }
.box { .box {
width: 1920rpx; width: toRpx(1920);
height: 1120rpx; height: toRpx(1120);
background: #ffffff; background: #ffffff;
border-radius: 48rpx; border-radius: toRpx(48);
.title { .title {
width: 100%; width: 100%;
height: 160rpx; height: toRpx(160);
background-image: url("@/assets/images/boutique/customer-type-bg.webp"); background-image: url("@/assets/images/boutique/customer-type-bg.webp");
background-size: 100%; background-size: 100%;
position: relative; position: relative;
.text { .text {
font-weight: 500; font-weight: 500;
font-size: 40rpx; font-size: toRpx(40);
color: #1a1a1a; color: #1a1a1a;
position: absolute; position: absolute;
left: 50%; left: 50%;
...@@ -103,23 +103,23 @@ export default { ...@@ -103,23 +103,23 @@ export default {
.icon-close-box { .icon-close-box {
height: 100%; height: 100%;
margin-left: auto; margin-left: auto;
padding: 0 48rpx; padding: 0 toRpx(48);
} }
} }
.content { .content {
padding: 16rpx 80rpx 72rpx; padding: toRpx(16) toRpx(80) toRpx(72);
width: 100%; width: 100%;
height: calc(100% - 160rpx); height: calc(100% - #{toRpx(160)});
gap: 0 64rpx; gap: 0 toRpx(64);
.item { .item {
width: calc(50% - 32rpx); width: calc(50% - #{toRpx(32)});
height: 100%; height: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0 12rpx 24rpx 0 #2c66f726; box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726;
border-radius: 48rpx; border-radius: toRpx(48);
flex-direction: column; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
padding-top: 112rpx; padding-top: toRpx(112);
position: relative; position: relative;
&::before, &::before,
&::after { &::after {
...@@ -128,24 +128,24 @@ export default { ...@@ -128,24 +128,24 @@ export default {
left: 0; left: 0;
width: 100%; width: 100%;
background: #edf5ff; background: #edf5ff;
filter: blur(40rpx); filter: blur(toRpx(40));
} }
&::before { &::before {
top: 0; top: 0;
height: 62rpx; height: toRpx(62);
} }
&::after { &::after {
bottom: 0; bottom: 0;
height: 126rpx; height: toRpx(126);
} }
&-title { &-title {
font-weight: 500; font-weight: 500;
font-size: 40rpx; font-size: toRpx(40);
color: #1a1a1a; color: #1a1a1a;
padding: 32rpx 0 16rpx; padding: toRpx(32) 0 toRpx(16);
} }
&-describe { &-describe {
font-size: 32rpx; font-size: toRpx(32);
color: #808291; color: #808291;
text-align: center; text-align: center;
} }
......
...@@ -167,30 +167,31 @@ export default { ...@@ -167,30 +167,31 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.views-box { .views-box {
width: 2186rpx; width: toRpx(2186);
height: calc(100vh - 236rpx); height: 100%;
box-sizing: border-box; box-sizing: border-box;
margin: 236rpx auto 0; margin: 0 auto;
padding-top: toRpx(236);
animation: show-view-opacity 0.15s forwards; animation: show-view-opacity 0.15s forwards;
.views-title-box { .views-title-box {
height: 96rpx; height: toRpx(96);
background: #edf2ff; background: #edf2ff;
border-radius: 16rpx; border-radius: toRpx(16);
margin-bottom: 16rpx; margin-bottom: toRpx(16);
.title-item { .title-item {
height: 96rpx; height: toRpx(96);
box-sizing: border-box; box-sizing: border-box;
flex-shrink: 0; flex-shrink: 0;
font-size: 26rpx; font-size: toRpx(26);
color: #666666; color: #666666;
} }
} }
.check-box { .check-box {
width: 32rpx; width: toRpx(32);
height: 32rpx; height: toRpx(32);
background: transparent; background: transparent;
border: 1.5px solid #999; border: toRpx(3) solid #999;
border-radius: 6rpx; border-radius: toRpx(6);
box-sizing: border-box; box-sizing: border-box;
justify-content: center; justify-content: center;
overflow: hidden; overflow: hidden;
...@@ -202,41 +203,41 @@ export default { ...@@ -202,41 +203,41 @@ export default {
border-color: #2c66f7; border-color: #2c66f7;
} }
.row { .row {
padding: 26rpx 32rpx; padding: toRpx(26) toRpx(32);
display: flex; display: flex;
align-items: center; align-items: center;
} }
.row-1 { .row-1 {
width: 96rpx; width: toRpx(96);
justify-content: center; justify-content: center;
padding: 26rpx 0; padding: toRpx(26) 0;
} }
.row-2 { .row-2 {
width: 1380rpx; width: toRpx(1380);
border-right: 2rpx solid #fff; border-right: toRpx(2) solid #fff;
border-left: 2rpx solid #fff; border-left: toRpx(2) solid #fff;
} }
.row-3 { .row-3 {
width: 400rpx; width: toRpx(400);
} }
.row-4 { .row-4 {
border-left: 2rpx solid #fff; border-left: toRpx(2) solid #fff;
width: 304rpx; width: toRpx(304);
} }
.views-content { .views-content {
height: calc(100% - 292rpx); height: calc(100% - #{toRpx(292)});
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
background: #f7f7f7; background: #f7f7f7;
border-radius: 16rpx; border-radius: toRpx(16);
.table { .table {
height: 100%; height: 100%;
.optional-item { .optional-item {
border-bottom: 2rpx solid #ffffff; border-bottom: toRpx(2) solid #ffffff;
position: relative; position: relative;
display: flex; display: flex;
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
// &:last-child { // &:last-child {
// border: none; // border: none;
...@@ -278,44 +279,44 @@ export default { ...@@ -278,44 +279,44 @@ export default {
height: 100%; height: 100%;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
font-size: 26rpx; font-size: toRpx(26);
color: #808291; color: #808291;
.sprite-icon { .sprite-icon {
margin-bottom: 24rpx; margin-bottom: toRpx(24);
} }
} }
} }
.views-footer { .views-footer {
height: 180rpx; height: toRpx(180);
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #333333; color: #333333;
line-height: 44rpx; line-height: toRpx(44);
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
.price { .price {
margin-top: 44rpx; margin-top: toRpx(44);
align-items: baseline; align-items: baseline;
} }
.total { .total {
font-weight: 700; font-weight: 700;
font-size: 48rpx; font-size: toRpx(48);
line-height: 64rpx; line-height: toRpx(64);
margin-left: 8rpx; margin-left: toRpx(8);
} }
.total-btn { .total-btn {
margin: 16rpx 0 0 auto; margin: toRpx(16) 0 0 auto;
width: 480rpx; width: toRpx(480);
height: 96rpx; height: toRpx(96);
background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%); background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 32rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(32) 0 #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: toRpx(36);
color: #ffffff; color: #ffffff;
line-height: 44rpx; line-height: toRpx(44);
justify-content: center; justify-content: center;
} }
} }
......
...@@ -62,9 +62,9 @@ export default { ...@@ -62,9 +62,9 @@ export default {
.nav-bar { .nav-bar {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
left: 0; left: 0;
top: 48rpx; top: toRpx(48);
z-index: 9; z-index: 9;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -97,9 +97,9 @@ export default { ...@@ -97,9 +97,9 @@ export default {
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
.gif { .gif {
width: 64rpx; width: toRpx(64);
height: 64rpx; height: toRpx(64);
margin-bottom: 32rpx; margin-bottom: toRpx(32);
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -54,17 +54,17 @@ export default { ...@@ -54,17 +54,17 @@ export default {
z-index: 99 !important; z-index: 99 !important;
} }
.box { .box {
width: 1862rpx; width: toRpx(1862);
height: 1176rpx; height: toRpx(1176);
background: #ffffff; background: #ffffff;
border-radius: 48rpx; border-radius: toRpx(48);
position: relative; position: relative;
.icon-close-box { .icon-close-box {
position: absolute; position: absolute;
top: 32rpx; top: toRpx(32);
right: 48rpx; right: toRpx(48);
width: 48rpx; width: toRpx(48);
height: 48rpx; height: toRpx(48);
justify-content: center; justify-content: center;
border-radius: 100%; border-radius: 100%;
background: rgb(121, 123, 127); background: rgb(121, 123, 127);
......
...@@ -259,33 +259,33 @@ export default { ...@@ -259,33 +259,33 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
.padding-right { .padding-right {
height: 80rpx; height: toRpx(80);
width: 40rpx; width: toRpx(40);
flex-shrink: 0; flex-shrink: 0;
} }
.first-type-box { .first-type-box {
width: calc(100% - 64rpx); width: calc(100% - #{toRpx(64)});
height: 176rpx; height: toRpx(176);
background: #f2f2f2; background: #f2f2f2;
border-radius: 24rpx; border-radius: toRpx(24);
box-sizing: border-box; box-sizing: border-box;
border: 8rpx solid #f2f2f2; border: toRpx(8) solid #f2f2f2;
position: relative; position: relative;
.first-type-item { .first-type-item {
width: 280rpx; width: toRpx(280);
height: 160rpx; height: toRpx(160);
border-radius: 24rpx; border-radius: toRpx(24);
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: toRpx(36);
color: #333333; color: #333333;
line-height: 44rpx; line-height: toRpx(44);
position: relative; position: relative;
z-index: 2; z-index: 2;
opacity: 0.7; opacity: 0.7;
.sprite-icon { .sprite-icon {
margin-bottom: 12rpx; margin-bottom: toRpx(12);
transform: scale(1.45); transform: scale(1.45);
} }
} }
...@@ -293,9 +293,9 @@ export default { ...@@ -293,9 +293,9 @@ export default {
opacity: 1; opacity: 1;
} }
.block { .block {
width: 280rpx; width: toRpx(280);
height: 160rpx; height: toRpx(160);
border-radius: 24rpx; border-radius: toRpx(24);
background: #ffffff; background: #ffffff;
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -307,22 +307,22 @@ export default { ...@@ -307,22 +307,22 @@ export default {
left: 0; left: 0;
} }
.block-1 { .block-1 {
left: 280rpx; left: toRpx(280);
} }
.block-2 { .block-2 {
left: 560rpx; left: toRpx(560);
} }
} }
.two-block { .two-block {
.first-type-item, .first-type-item,
.block { .block {
width: 420rpx; width: toRpx(420);
} }
.block-0 { .block-0 {
left: 0; left: 0;
} }
.block-1 { .block-1 {
left: 420rpx; left: toRpx(420);
} }
} }
.second-type-scroll { .second-type-scroll {
...@@ -330,19 +330,19 @@ export default { ...@@ -330,19 +330,19 @@ export default {
animation: show-view-opacity 0.15s forwards; animation: show-view-opacity 0.15s forwards;
.second-type-box { .second-type-box {
width: 100%; width: 100%;
gap: 24rpx; gap: toRpx(24);
flex-wrap: nowrap; flex-wrap: nowrap;
padding: 32rpx 0 24rpx; padding: toRpx(32) 0 toRpx(24);
.second-type-item { .second-type-item {
width: fit-content; width: fit-content;
flex-shrink: 0; flex-shrink: 0;
height: 80rpx; height: toRpx(80);
background: #f2f2f2; background: #f2f2f2;
border-radius: 16rpx; border-radius: toRpx(16);
font-size: 28rpx; font-size: toRpx(28);
color: #666666; color: #666666;
line-height: 44rpx; line-height: toRpx(44);
padding: 0 32rpx; padding: 0 toRpx(32);
justify-content: center; justify-content: center;
transition: all 0.15s; transition: all 0.15s;
} }
...@@ -359,18 +359,18 @@ export default { ...@@ -359,18 +359,18 @@ export default {
.thirdly-type-box { .thirdly-type-box {
width: 100%; width: 100%;
gap: 24rpx; gap: toRpx(24);
flex-wrap: nowrap; flex-wrap: nowrap;
padding-bottom: 24rpx; padding-bottom: toRpx(24);
.thirdly-type-item { .thirdly-type-item {
flex-shrink: 0; flex-shrink: 0;
height: 80rpx; height: toRpx(80);
border: 1.5px solid #33333333; border: toRpx(3) solid #33333333;
border-radius: 16rpx; border-radius: toRpx(16);
font-size: 28rpx; font-size: toRpx(28);
color: #666666; color: #666666;
line-height: 36rpx; line-height: toRpx(36);
padding: 0 32rpx; padding: 0 toRpx(32);
justify-content: center; justify-content: center;
transition: all 0.15s; transition: all 0.15s;
} }
...@@ -382,31 +382,31 @@ export default { ...@@ -382,31 +382,31 @@ export default {
} }
} }
.sub-title { .sub-title {
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
line-height: 36rpx; line-height: toRpx(36);
padding-bottom: 16rpx; padding-bottom: toRpx(16);
} }
.content-scroll-box { .content-scroll-box {
.goods-item { .goods-item {
width: calc(100% - 64rpx); width: calc(100% - #{toRpx(64)});
border: 1.5px solid #33333333; border: toRpx(3) solid #33333333;
border-radius: 16rpx; border-radius: toRpx(16);
padding: 24rpx 32rpx; padding: toRpx(24) toRpx(32);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
transition: all 0.15s; transition: all 0.15s;
.goods-title { .goods-title {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
line-height: 44rpx; line-height: toRpx(44);
} }
.goods-description { .goods-description {
margin-top: 8rpx; margin-top: toRpx(8);
font-size: 24rpx; font-size: toRpx(24);
color: #666666; color: #666666;
line-height: 36rpx; line-height: toRpx(36);
max-height: 144rpx; max-height: toRpx(144);
overflow: hidden; overflow: hidden;
} }
} }
...@@ -420,14 +420,14 @@ export default { ...@@ -420,14 +420,14 @@ export default {
} }
.nothing { .nothing {
flex-direction: column; flex-direction: column;
padding-top: 136rpx; padding-top: toRpx(136);
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
line-height: 40rpx; line-height: toRpx(40);
&-icon { &-icon {
width: 676rpx; width: toRpx(676);
height: 284rpx; height: toRpx(284);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
background-image: url('@/assets/images/boutique/nothing.png'); background-image: url('@/assets/images/boutique/nothing.png');
background-size: 100%; background-size: 100%;
} }
......
...@@ -302,13 +302,16 @@ export default { ...@@ -302,13 +302,16 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.detail-box { .detail-box {
position: relative; position: relative;
width: 100vw;
height: 100vh;
margin: 0 auto;
} }
.nav-bar { .nav-bar {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
left: 0; left: 0;
top: 48rpx; top: toRpx(48);
z-index: 999; z-index: 999;
pointer-events: none; pointer-events: none;
.back { .back {
...@@ -325,7 +328,7 @@ export default { ...@@ -325,7 +328,7 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
} }
} }
...@@ -356,13 +359,13 @@ export default { ...@@ -356,13 +359,13 @@ export default {
} }
.pen-box { .pen-box {
position: fixed; position: fixed;
right: 40rpx; right: toRpx(40);
top: calc(50% - 160rpx); top: calc(50% - #{toRpx(160)});
width: 120rpx; width: toRpx(120);
height: 120rpx; height: toRpx(120);
z-index: 10; z-index: 10;
box-shadow: 0 4px 12px 0 #00000033; box-shadow: 0 toRpx(8) toRpx(24) 0 #00000033;
border-radius: 16rpx; border-radius: toRpx(16);
overflow: hidden; overflow: hidden;
image { image {
width: 100%; width: 100%;
......
...@@ -348,16 +348,16 @@ export default { ...@@ -348,16 +348,16 @@ export default {
this.recording = false this.recording = false
}, },
async start (before = true) { async start (before = true) {
const result = await this.$permision.requestAndroidPermission( // const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO" // "android.permission.RECORD_AUDIO"
); // );
if (result !== 1) { // if (result !== 1) {
uni.showToast({ // uni.showToast({
title: "为了记录语音通话,请打开录音权限", // title: "为了记录语音通话,请打开录音权限",
icon: "none", // icon: "none",
}); // });
return false // return false
} // }
if (before) this.clearHistory(); if (before) this.clearHistory();
this.$refs.home.startAudio(); this.$refs.home.startAudio();
this.recording = true this.recording = true
...@@ -479,68 +479,68 @@ export default { ...@@ -479,68 +479,68 @@ export default {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
padding: 46rpx 80rpx 0 0; padding: toRpx(46) toRpx(80) 0 0;
gap: 0 32rpx; gap: 0 toRpx(32);
z-index: 2; z-index: 2;
.item { .item {
height: 56rpx; height: toRpx(56);
background: #ffffff66; background: #ffffff66;
border: 2rpx solid #ffffff; border: toRpx(2) solid #ffffff;
border-radius: 8rpx; border-radius: toRpx(8);
backdrop-filter: blur(4rpx); backdrop-filter: blur(toRpx(4));
padding: 0 20rpx 0 8rpx; padding: 0 toRpx(20) 0 toRpx(8);
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #333333; color: #333333;
line-height: 40rpx; line-height: toRpx(40);
.icon { .icon {
margin-right: 4rpx; margin-right: toRpx(4);
flex-shrink: 0; flex-shrink: 0;
width: 56rpx; width: toRpx(56);
height: 56rpx; height: toRpx(56);
} }
} }
} }
.banner-tab-scroll { .banner-tab-scroll {
width: 1080rpx; width: toRpx(1080);
position: relative; position: relative;
.banner-tab-box-content { .banner-tab-box-content {
width: 100%; width: 100%;
.block { .block {
width: 30rpx; width: toRpx(30);
height: 100%; height: 100%;
flex-shrink: 0; flex-shrink: 0;
} }
.banner-tab-box { .banner-tab-box {
padding: 32rpx 0 20rpx; padding: toRpx(32) 0 toRpx(20);
height: 126rpx; height: toRpx(126);
.banner-item { .banner-item {
position: relative; position: relative;
flex-shrink: 0; flex-shrink: 0;
margin-right: 40rpx; margin-right: toRpx(40);
.banner-title { .banner-title {
color: #333333b3; color: #333333b3;
font-size: 24rpx; font-size: toRpx(24);
font-weight: 400; font-weight: 400;
height: 30rpx; height: toRpx(30);
margin-bottom: 8rpx; margin-bottom: toRpx(8);
opacity: 0; opacity: 0;
width: 0; width: 0;
} }
} }
.has-title { .has-title {
padding-left: 40rpx; padding-left: toRpx(40);
.banner-title { .banner-title {
opacity: 1; opacity: 1;
width: fit-content; width: fit-content;
} }
&::after { &::after {
position: absolute; position: absolute;
width: 2rpx; width: toRpx(2);
height: 32rpx; height: toRpx(32);
background: #cccccc; background: #cccccc;
left: 0; left: 0;
top: 42rpx; top: toRpx(42);
content: ''; content: '';
} }
} }
...@@ -552,9 +552,9 @@ export default { ...@@ -552,9 +552,9 @@ export default {
} }
.banner-tab { .banner-tab {
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: toRpx(36);
color: #333333b3; color: #333333b3;
line-height: 44rpx; line-height: toRpx(44);
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
text-align: left; text-align: left;
...@@ -568,8 +568,8 @@ export default { ...@@ -568,8 +568,8 @@ export default {
content: ''; content: '';
position: absolute; position: absolute;
left: 50%; left: 50%;
width: 8rpx; width: toRpx(8);
height: 8rpx; height: toRpx(8);
background: #333333; background: #333333;
border-radius: 100%; border-radius: 100%;
transform: translateX(-50%); transform: translateX(-50%);
...@@ -577,18 +577,18 @@ export default { ...@@ -577,18 +577,18 @@ export default {
} }
@keyframes show-dot { @keyframes show-dot {
0% { 0% {
bottom: 16rpx; bottom: toRpx(16);
} }
100% { 100% {
bottom: -16rpx; bottom: toMinusRpx(16);
} }
} }
} }
} }
} }
.banner-tab-mask { .banner-tab-mask {
width: 140rpx; width: toRpx(140);
height: calc(100% - 20rpx); height: calc(100% - #{toRpx(20)});
opacity: 1; opacity: 1;
background: linear-gradient(270deg, #e9edfa 0%, #e9edfa00 100%); background: linear-gradient(270deg, #e9edfa 0%, #e9edfa00 100%);
position: absolute; position: absolute;
...@@ -600,9 +600,9 @@ export default { ...@@ -600,9 +600,9 @@ export default {
&::after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 282rpx; top: toRpx(282);
width: 380rpx; width: toRpx(380);
height: 640rpx; height: toRpx(640);
background-size: 100% 100%; background-size: 100% 100%;
z-index: 2; z-index: 2;
pointer-events: none; pointer-events: none;
...@@ -612,19 +612,19 @@ export default { ...@@ -612,19 +612,19 @@ export default {
background-image: url('@/assets/images/boutique/index/left.webp'); background-image: url('@/assets/images/boutique/index/left.webp');
} }
&::after { &::after {
right: -4rpx; right: toMinusRpx(4);
background-image: url('@/assets/images/boutique/index/right.webp'); background-image: url('@/assets/images/boutique/index/right.webp');
} }
.swiper { .swiper {
position: absolute; position: absolute;
left: 0; left: 0;
top: 230rpx; top: toRpx(230);
width: 100%; width: 100%;
height: 698rpx; height: toRpx(698);
z-index: 1; z-index: 1;
&-item { &-item {
position: relative; position: relative;
padding-top: 58rpx; padding-top: toRpx(58);
.config-box { .config-box {
animation: show-config-box 1.5s forwards; animation: show-config-box 1.5s forwards;
width: 100%; width: 100%;
...@@ -646,17 +646,17 @@ export default { ...@@ -646,17 +646,17 @@ export default {
width: auto; width: auto;
height: auto; height: auto;
.config-dots { .config-dots {
width: 80rpx; width: toRpx(80);
height: 80rpx; height: toRpx(80);
background: #ffffff1a; background: #ffffff1a;
box-shadow: inset 0 0 8rpx 0 #ffffffe0; box-shadow: inset 0 0 toRpx(8) 0 #ffffffe0;
border-radius: 100%; border-radius: 100%;
position: relative; position: relative;
&::after { &::after {
position: absolute; position: absolute;
content: ''; content: '';
width: 40rpx; width: toRpx(40);
height: 40rpx; height: toRpx(40);
background: #ffffff; background: #ffffff;
left: 50%; left: 50%;
top: 50%; top: 50%;
...@@ -667,18 +667,18 @@ export default { ...@@ -667,18 +667,18 @@ export default {
} }
.config-name { .config-name {
position: relative; position: relative;
height: 56rpx; height: toRpx(56);
background: #ffffff66; background: #ffffff66;
border: 2rpx solid #ffffff; border: toRpx(2) solid #ffffff;
border-radius: 8rpx; border-radius: toRpx(8);
backdrop-filter: blur(4rpx); backdrop-filter: blur(toRpx(4));
padding: 0 20rpx; padding: 0 toRpx(20);
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #333333; color: #333333;
line-height: 40rpx; line-height: toRpx(40);
.sprite-icon { .sprite-icon {
margin-right: 8rpx; margin-right: toRpx(8);
flex-shrink: 0; flex-shrink: 0;
} }
} }
...@@ -695,32 +695,32 @@ export default { ...@@ -695,32 +695,32 @@ export default {
} }
} }
.config-0 { .config-0 {
top: 108rpx; top: toRpx(108);
left: 962rpx; left: toRpx(962);
.config-name { .config-name {
left: 20rpx; left: toRpx(20);
top: -188rpx; top: toMinusRpx(188);
} }
} }
.config-1 { .config-1 {
top: 240rpx; top: toRpx(240);
left: 262rpx; left: toRpx(262);
.config-name { .config-name {
left: -206rpx; left: toMinusRpx(206);
top: -186rpx; top: toMinusRpx(186);
} }
} }
.config-2 { .config-2 {
top: 352rpx; top: toRpx(352);
left: 788rpx; left: toRpx(788);
.config-name { .config-name {
left: 22rpx; left: toRpx(22);
top: 158rpx; top: toRpx(158);
} }
} }
.car-item { .car-item {
width: 639rpx; width: toRpx(639);
height: 320rpx; height: toRpx(320);
transition: all 0.5s; transition: all 0.5s;
transform-origin: left center; transform-origin: left center;
} }
...@@ -742,25 +742,25 @@ export default { ...@@ -742,25 +742,25 @@ export default {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
width: 2036rpx; width: toRpx(2036);
height: 1026rpx; height: toRpx(1026);
background-image: url('@/assets/images/boutique/index/module-bg.webp'); background-image: url('@/assets/images/boutique/index/module-bg.webp');
background-size: 100% 100%; background-size: 100% 100%;
pointer-events: none; pointer-events: none;
} }
.tips { .tips {
position: absolute; position: absolute;
left: 32rpx; left: toRpx(32);
bottom: 128rpx; bottom: toRpx(128);
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
line-height: 36rpx; line-height: toRpx(36);
z-index: 2; z-index: 2;
padding-left: 16rpx; padding-left: toRpx(16);
&::after { &::after {
content: '* '; content: '* ';
position: absolute; position: absolute;
top: 4rpx; top: toRpx(4);
left: 0; left: 0;
} }
} }
......
<template> <template>
<view class="container"> <view class="layout">
<wnCanvas <wnCanvas
:canvasId="`c-${madiaId}`" :canvasId="`c-${madiaId}`"
:drawStatus="penSwitch" :drawStatus="penSwitch"
...@@ -8,84 +8,86 @@ ...@@ -8,84 +8,86 @@
ref="invitationCanvas" ref="invitationCanvas"
> >
<template slot="customContent"> <template slot="customContent">
<view class="bg"></view> <view class="layout-content">
<view class="box"> <view class="bg"></view>
<view class="input-box"> <view class="box">
<input <view class="input-box">
type="text" <input
class="input" type="text"
v-model="customerNameOrPhone" class="input"
maxlength="11" v-model="customerNameOrPhone"
@blur="input($event)" maxlength="11"
@focus="focus" @blur="input($event)"
/> @focus="focus"
<view />
class="input-tips" <view
v-if="!isSearch" class="input-tips"
>搜索客户姓名/电话<uni-icons v-if="!isSearch"
type="search" >搜索客户姓名/电话<uni-icons
class="icon" type="search"
class="icon"
color="#999"
size="20"
></uni-icons></view>
<uni-icons
v-if="isSearch"
type="closeempty"
class="close"
color="#999" color="#999"
@click="handleClear"
size="20" size="20"
></uni-icons></view> ></uni-icons>
<uni-icons </view>
v-if="isSearch" <scroll-view
type="closeempty" class="record-box"
class="close" scroll-y
color="#999" @scrolltolower="pageonReachBottom"
@click="handleClear" >
size="20" <view class="list">
></uni-icons> <template v-if="flag">
</view> <template v-if="list.length">
<scroll-view <template v-for="item in list">
class="record-box" <view
scroll-y class="item"
@scrolltolower="pageonReachBottom" :key="item.id"
> @click="reception(item)"
<view class="list"> >
<template v-if="flag"> <view :class="['status flex', 'status_' + formatInvite(item)]">{{ inviteStatus[formatInvite(item)] }}</view>
<template v-if="list.length"> <view class="name">
<template v-for="item in list"> {{ item.customerName }}
<view </view>
class="item" <template v-for="(k, ind) in itemObject">
:key="item.id" <view
@click="reception(item)" class="info flex"
> :key="ind"
<view :class="['status flex', 'status_' + formatInvite(item)]">{{ inviteStatus[formatInvite(item)] }}</view> >
<view class="name"> <view class="label">{{ k.label }}</view>
{{ item.customerName }} <view class="value">{{
</view>
<template v-for="(k, ind) in itemObject">
<view
class="info flex"
:key="ind"
>
<view class="label">{{ k.label }}</view>
<view class="value">{{
k.format k.format
? formatTime(item[k.key], k.key) ? formatTime(item[k.key], k.key)
: item[k.key] || "-" : item[k.key] || "-"
}}</view> }}</view>
</view> </view>
</template> </template>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无数据
</view> </view>
</template> </template>
</template> </template>
<template v-else> </view>
<view class="nothing flex"> <template v-if="nothing">
<image <view class="end-text">到底了!</view>
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无数据
</view>
</template>
</template> </template>
</view> </scroll-view>
<template v-if="nothing"> </view>
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view> </view>
</template> </template>
</wnCanvas> </wnCanvas>
...@@ -215,7 +217,7 @@ export default { ...@@ -215,7 +217,7 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.container { .layout {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
...@@ -223,10 +225,14 @@ export default { ...@@ -223,10 +225,14 @@ 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;
&-content {
position: relative;
height: 100%;
margin: $margin;
}
.bg { .bg {
width: 100%; width: 100%;
height: 800rpx; height: toRpx(800);
position: absolute; position: absolute;
left: 0; left: 0;
background-image: url('../../assets/images/boutique/record-bg.png'); background-image: url('../../assets/images/boutique/record-bg.png');
...@@ -236,9 +242,9 @@ export default { ...@@ -236,9 +242,9 @@ export default {
.nav-bar { .nav-bar {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
left: 0; left: 0;
top: 48rpx; top: toRpx(48);
z-index: 9; z-index: 9;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -251,7 +257,7 @@ export default { ...@@ -251,7 +257,7 @@ export default {
} }
.nav-title { .nav-title {
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
text-align: center; text-align: center;
line-height: 100%; line-height: 100%;
...@@ -259,18 +265,18 @@ export default { ...@@ -259,18 +265,18 @@ export default {
} }
} }
.box { .box {
padding: 64rpx; padding-top: toRpx(154);
margin-top: 90rpx;
.input-box { .input-box {
position: relative; position: relative;
margin: 0 toRpx(64);
.input { .input {
padding-left: 30rpx; padding-left: toRpx(30);
height: 80rpx; height: toRpx(80);
background: #ffffff; background: #ffffff;
border: 3rpx solid #a8c1ff; border: toRpx(3) solid #a8c1ff;
border-radius: 16rpx; border-radius: toRpx(16);
width: 100%; width: 100%;
line-height: 80rpx; line-height: toRpx(80);
text-align: center; text-align: center;
} }
.input-tips { .input-tips {
...@@ -278,7 +284,7 @@ export default { ...@@ -278,7 +284,7 @@ export default {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
height: 80rpx; height: toRpx(80);
width: 100%; width: 100%;
text-align: center; text-align: center;
display: flex; display: flex;
...@@ -286,50 +292,51 @@ export default { ...@@ -286,50 +292,51 @@ export default {
justify-content: center; justify-content: center;
pointer-events: none; pointer-events: none;
.icon { .icon {
margin-left: 12rpx; margin-left: toRpx(12);
} }
} }
.close { .close {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
width: 120rpx; width: toRpx(120);
height: 80rpx; height: toRpx(80);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
} }
.record-box { .record-box {
height: calc(100vh - 250rpx); height: calc(100vh - #{toRpx(224)});
padding-top: 48rpx; padding-top: toRpx(48);
} }
.end-text { .end-text {
color: #999; color: #999;
text-align: center; text-align: center;
margin: 50rpx 0; padding: toRpx(50) 0;
font-size: 24rpx; font-size: toRpx(24);
} }
.list { .list {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 48rpx; gap: toRpx(48);
margin: 0 toRpx(64);
.item { .item {
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx 32rpx; padding: toRpx(24) toRpx(32);
position: relative; position: relative;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
.status { .status {
position: absolute; position: absolute;
top: 24rpx; top: toRpx(24);
right: 32rpx; right: toRpx(32);
padding: 4rpx 16rpx; padding: toRpx(4) toRpx(16);
border-radius: 4rpx; border-radius: toRpx(4);
font-weight: 500; font-weight: 500;
font-size: 24rpx; font-size: toRpx(24);
justify-content: center; justify-content: center;
background: #fdece9; background: #fdece9;
color: #f24724; color: #f24724;
...@@ -357,22 +364,22 @@ export default { ...@@ -357,22 +364,22 @@ export default {
} }
.name { .name {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #292d33; color: #292d33;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: calc(100% - 140rpx); width: calc(100% - #{toRpx(140)});
} }
.goods-name { .goods-name {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #2c66f7; color: #2c66f7;
margin-top: 16rpx; margin-top: toRpx(16);
} }
.info { .info {
margin-top: 16rpx; margin-top: toRpx(16);
font-size: 24rpx; font-size: toRpx(24);
color: #999ea8; color: #999ea8;
.value { .value {
margin-left: auto; margin-left: auto;
...@@ -386,13 +393,13 @@ export default { ...@@ -386,13 +393,13 @@ export default {
.nothing { .nothing {
width: 100vw; width: 100vw;
flex-direction: column; flex-direction: column;
margin-top: 112rpx; margin-top: toRpx(112);
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
.icon { .icon {
width: 676rpx; width: toRpx(676);
height: 284rpx; height: toRpx(284);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
} }
} }
</style> </style>
...@@ -109,12 +109,12 @@ export default { ...@@ -109,12 +109,12 @@ export default {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background: #000; background: #000;
padding: 60rpx 0rpx; padding: toRpx(60) 0;
z-index: 999; z-index: 999;
.nav-bar { .nav-bar {
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
margin-bottom: 50rpx; margin-bottom: toRpx(50);
display: flex; display: flex;
align-items: center; align-items: center;
.back { .back {
...@@ -127,14 +127,14 @@ export default { ...@@ -127,14 +127,14 @@ export default {
.title { .title {
color: #fff; color: #fff;
flex: 1; flex: 1;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 700; font-weight: 700;
text-align: center; text-align: center;
} }
} }
.popup-body { .popup-body {
width: 100%; width: 100%;
height: calc(100% - 200rpx); height: calc(100% - #{toRpx(200)});
video { video {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -164,8 +164,8 @@ export default { ...@@ -164,8 +164,8 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.layout { .layout {
padding-top: 144rpx; padding-top: toRpx(144);
font-size: 28rpx; font-size: toRpx(28);
color: #333; color: #333;
letter-spacing: 0; letter-spacing: 0;
background: #f7f8fa; background: #f7f8fa;
...@@ -183,9 +183,9 @@ export default { ...@@ -183,9 +183,9 @@ export default {
.nav-bar { .nav-bar {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
left: 0; left: 0;
top: 48rpx; top: toRpx(48);
z-index: 9; z-index: 9;
.back { .back {
height: 100%; height: 100%;
...@@ -201,28 +201,28 @@ export default { ...@@ -201,28 +201,28 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 0 166rpx; gap: 0 toRpx(166);
.step-item { .step-item {
display: flex; display: flex;
align-items: center; align-items: center;
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: toRpx(36);
color: #999999; color: #999999;
.num { .num {
width: 56rpx; width: toRpx(56);
height: 56rpx; height: toRpx(56);
position: relative; position: relative;
padding: 4rpx; padding: toRpx(4);
color: #ffffff; color: #ffffff;
box-sizing: border-box; box-sizing: border-box;
margin-right: 10rpx; margin-right: toRpx(10);
&::after { &::after {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
border: 2rpx solid #b1b1b1; border: toRpx(2) solid #b1b1b1;
content: ''; content: '';
border-radius: 100%; border-radius: 100%;
} }
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
background: #b1b1b1; background: #b1b1b1;
border-radius: 100%; border-radius: 100%;
} }
...@@ -253,13 +253,13 @@ export default { ...@@ -253,13 +253,13 @@ export default {
} }
.content-box { .content-box {
width: 81.84%; width: 81.84%;
height: calc(100vh - 404rpx); height: calc(100vh - #{toRpx(404)});
position: relative; position: relative;
margin: 48rpx auto 0; margin: toRpx(48) auto 0;
box-sizing: border-box; box-sizing: border-box;
padding-top: 48rpx; padding-top: toRpx(48);
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: 48rpx; border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
&::after { &::after {
position: absolute; position: absolute;
...@@ -269,25 +269,25 @@ export default { ...@@ -269,25 +269,25 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #ffffff59; background: #ffffff59;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: 48rpx; border-radius: toRpx(48);
filter: blur(8rpx); filter: blur(toRpx(8));
} }
} }
.search-box { .search-box {
margin: 0 48rpx 48rpx; margin: 0 toRpx(48) toRpx(48);
position: relative; position: relative;
z-index: 2; z-index: 2;
.search-input { .search-input {
width: 100%; width: 100%;
height: 80rpx; height: toRpx(80);
background: #ffffff; background: #ffffff;
border: 3rpx solid #a8c1ff; border: toRpx(3) solid #a8c1ff;
border-radius: 16rpx; border-radius: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
color: #333; color: #333;
padding: 0 24rpx; padding: 0 toRpx(24);
font-size: 28rpx; font-size: toRpx(28);
position: relative; position: relative;
.input { .input {
display: flex; display: flex;
...@@ -296,13 +296,13 @@ export default { ...@@ -296,13 +296,13 @@ export default {
width: 100%; width: 100%;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
font-size: 28rpx; font-size: toRpx(28);
} }
.icon-search { .icon-search {
margin-left: 16rpx; margin-left: toRpx(16);
} }
.placeholder { .placeholder {
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
} }
} }
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
top: 50%; top: 50%;
right: 0; right: 0;
transform: translateY(-50%); transform: translateY(-50%);
padding: 0 32rpx; padding: 0 toRpx(32);
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -320,14 +320,14 @@ export default { ...@@ -320,14 +320,14 @@ export default {
.list { .list {
position: relative; position: relative;
z-index: 2; z-index: 2;
height: calc(100% - 176rpx); height: calc(100% - #{toRpx(176)});
& ::-webkit-scrollbar { & ::-webkit-scrollbar {
background-color: #ffffff59 !important; background-color: #ffffff59 !important;
} }
& ::-webkit-scrollbar-thumb { & ::-webkit-scrollbar-thumb {
width: 8rpx; width: toRpx(8);
background-color: #fff !important; background-color: #fff !important;
border-radius: 4rpx; border-radius: toRpx(4);
} }
} }
} }
......
...@@ -396,19 +396,19 @@ export default { ...@@ -396,19 +396,19 @@ export default {
height: 100vh; height: 100vh;
background-image: linear-gradient(0deg, #eef3ff 0%, #f3f6ff 100%); background-image: linear-gradient(0deg, #eef3ff 0%, #f3f6ff 100%);
box-sizing: border-box; box-sizing: border-box;
padding-top: 176rpx; padding-top: toRpx(176);
.nav-bar { .nav-bar {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
left: 0; left: 0;
top: 48rpx; top: toRpx(48);
z-index: 9; z-index: 9;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
line-height: 96rpx; line-height: toRpx(96);
.back { .back {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -421,29 +421,29 @@ export default { ...@@ -421,29 +421,29 @@ export default {
} }
} }
.case-content { .case-content {
height: calc(100vh - 176rpx); height: calc(100vh - #{toRpx(176)});
position: relative; position: relative;
.left-menu { .left-menu {
position: absolute; position: absolute;
top: 0; top: 0;
left: 64rpx; left: toRpx(64);
width: 480rpx; width: toRpx(480);
height: 1296rpx; height: toRpx(1296);
border-radius: 16rpx; border-radius: toRpx(16);
background-color: #fff; background-color: #fff;
background-image: url('@/assets/images/common/left-menu.webp'); background-image: url('@/assets/images/common/left-menu.webp');
background-size: 100%; background-size: 100%;
.title { .title {
padding: 48rpx 48rpx 32rpx; padding: toRpx(48) toRpx(48) toRpx(32);
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: toRpx(36);
color: #333333; color: #333333;
line-height: 56rpx; line-height: toRpx(56);
} }
.scroll { .scroll {
height: calc(100% - 184rpx); height: calc(100% - #{toRpx(184)});
padding-left: 48rpx; padding-left: toRpx(48);
&-content { &-content {
position: relative; position: relative;
&::after { &::after {
...@@ -451,7 +451,7 @@ export default { ...@@ -451,7 +451,7 @@ export default {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
width: 6rpx; width: toRpx(6);
height: 100%; height: 100%;
background: #0000001a; background: #0000001a;
} }
...@@ -459,32 +459,32 @@ export default { ...@@ -459,32 +459,32 @@ export default {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 6rpx; width: toRpx(6);
height: 40rpx; height: toRpx(40);
background-image: linear-gradient(173deg, #75bcff 6%, #2c66f7 100%); background-image: linear-gradient(173deg, #75bcff 6%, #2c66f7 100%);
box-shadow: 0 8rpx 16rpx 0 #2c66f759; box-shadow: 0 toRpx(8) toRpx(16) 0 #2c66f759;
transition: all 0.15s; transition: all 0.15s;
} }
} }
.item { .item {
padding: 0 20rpx 0 30rpx; padding: 0 toRpx(20) 0 toRpx(30);
.name { .name {
font-size: 30rpx; font-size: toRpx(30);
color: #333333b3; color: #333333b3;
line-height: 40rpx; line-height: toRpx(40);
padding-bottom: 48rpx; padding-bottom: toRpx(48);
.text { .text {
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
} }
.icon { .icon {
width: 6rpx; width: toRpx(6);
height: 6rpx; height: toRpx(6);
border-radius: 100%; border-radius: 100%;
background: #33333399; background: #33333399;
margin: 0 12rpx; margin: 0 toRpx(12);
flex-shrink: 0; flex-shrink: 0;
} }
} }
...@@ -499,59 +499,59 @@ export default { ...@@ -499,59 +499,59 @@ export default {
&:first-child { &:first-child {
.name { .name {
&:first-child { &:first-child {
padding-top: 16rpx; padding-top: toRpx(16);
} }
} }
} }
.last { .last {
padding-bottom: 16rpx; padding-bottom: toRpx(16);
} }
} }
} }
} }
.right-content { .right-content {
width: calc(100% - 624rpx); width: calc(100% - #{toRpx(624)});
height: 100%; height: 100%;
margin-left: 624rpx; margin-left: toRpx(624);
/deep/.uni-scroll-view-content { /deep/.uni-scroll-view-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.detail-item { .detail-item {
padding-right: 64rpx; padding-right: toRpx(64);
.item-title { .item-title {
font-weight: 500; font-weight: 500;
font-size: 40rpx; font-size: toRpx(40);
color: #333333; color: #333333;
line-height: 56rpx; line-height: toRpx(56);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
} }
.sub-item-title { .sub-item-title {
font-size: 32rpx; font-size: toRpx(32);
line-height: 48rpx; line-height: toRpx(48);
&::before { &::before {
content: ''; content: '';
width: 8rpx; width: toRpx(8);
height: 8rpx; height: toRpx(8);
border-radius: 100%; border-radius: 100%;
background: #333; background: #333;
margin: 0 16rpx; margin: 0 toRpx(16);
flex-shrink: 0; flex-shrink: 0;
} }
} }
.item-content { .item-content {
color: #333333e6; color: #333333e6;
font-size: 28rpx; font-size: toRpx(28);
line-height: 44rpx; line-height: toRpx(44);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
word-wrap: break-word; word-wrap: break-word;
} }
.picture { .picture {
width: 1360rpx; width: toRpx(1360);
margin: 0 auto 24rpx; margin: 0 auto toRpx(24);
min-height: 100rpx; min-height: toRpx(100);
} }
.item-img { .item-img {
display: block; display: block;
...@@ -563,8 +563,8 @@ export default { ...@@ -563,8 +563,8 @@ export default {
text-align: center; text-align: center;
color: #999; color: #999;
text-align: center; text-align: center;
padding: 24rpx 64rpx 24rpx 0; padding: toRpx(24) toRpx(64) toRpx(24) 0;
font-size: 24rpx; font-size: toRpx(24);
margin-top: auto; margin-top: auto;
} }
} }
......
...@@ -153,19 +153,19 @@ export default { ...@@ -153,19 +153,19 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 48rpx; padding: 0 toRpx(48);
gap: 48rpx; gap: toRpx(48);
.items { .items {
width: calc(50% - 24rpx); width: calc(50% - #{toRpx(24)});
height: 160rpx; height: toRpx(160);
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
padding: 32rpx; padding: toRpx(32);
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
border: 4rpx solid transparent; border: toRpx(4) solid transparent;
.left { .left {
width: 65%; width: 65%;
display: flex; display: flex;
...@@ -176,13 +176,13 @@ export default { ...@@ -176,13 +176,13 @@ export default {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
font-size: 32rpx; font-size: toRpx(32);
color: #181a1f; color: #181a1f;
} }
.shop_no { .shop_no {
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: toRpx(28);
margin-top: 12rpx; margin-top: toRpx(12);
color: #999ea8; color: #999ea8;
} }
} }
...@@ -191,12 +191,12 @@ export default { ...@@ -191,12 +191,12 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
.midle { .midle {
font-size: 28rpx; font-size: toRpx(28);
font-weight: 700; font-weight: 700;
width: 96rpx; width: toRpx(96);
height: 96rpx; height: toRpx(96);
border-radius: 8rpx; border-radius: toRpx(8);
margin-right: 28rpx; margin-right: toRpx(28);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -227,13 +227,13 @@ export default { ...@@ -227,13 +227,13 @@ export default {
background-color: #35c3761a; background-color: #35c3761a;
} }
.icon { .icon {
width: 40rpx; width: toRpx(40);
height: 40rpx; height: toRpx(40);
} }
} }
} }
.active { .active {
border: 4rpx solid #347bff; border: toRpx(4) solid #347bff;
} }
} }
</style> </style>
...@@ -107,29 +107,29 @@ export default { ...@@ -107,29 +107,29 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.audio-box { .audio-box {
width: 1120rpx; width: toRpx(1120);
height: 80rpx; height: toRpx(80);
background-image: url('@/assets/images/common/audio-bg.webp'); background-image: url('@/assets/images/common/audio-bg.webp');
background-size: 100%; background-size: 100%;
margin-bottom: 24rpx; margin-bottom: toRpx(24);
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx; padding: 0 toRpx(32);
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
.sprite-icon { .sprite-icon {
margin-right: 16rpx; margin-right: toRpx(16);
} }
.progress-box { .progress-box {
width: 796rpx; width: toRpx(796);
margin: 0 !important; margin: 0 !important;
/deep/.uni-slider-track { /deep/.uni-slider-track {
background-image: linear-gradient(90deg, #2c66f7 0%, #75bcff 100%); background-image: linear-gradient(90deg, #2c66f7 0%, #75bcff 100%);
} }
/deep/.uni-slider-thumb { /deep/.uni-slider-thumb {
&::after { &::after {
width: 14rpx; width: toRpx(14);
height: 14rpx; height: toRpx(14);
border: 2rpx solid #f4f4f4; border: toRpx(2) solid #f4f4f4;
content: ''; content: '';
position: absolute; position: absolute;
left: 50%; left: 50%;
......
...@@ -157,38 +157,38 @@ export default { ...@@ -157,38 +157,38 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 48rpx; padding: 0 toRpx(48);
gap: 48rpx; gap: toRpx(48);
.items { .items {
width: calc(50% - 24rpx); width: calc(50% - #{toRpx(24)});
height: 160rpx; height: toRpx(160);
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
padding: 32rpx; padding: toRpx(32);
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
border: 4rpx solid transparent; border: toRpx(4) solid transparent;
.right { .right {
margin-right: 28rpx; margin-right: toRpx(28);
flex-shrink: 0; flex-shrink: 0;
} }
.left { .left {
flex: 1; flex: 1;
.name { .name {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #181a1f; color: #181a1f;
margin-bottom: 12rpx; margin-bottom: toRpx(12);
} }
.text_no { .text_no {
font-size: 28rpx; font-size: toRpx(28);
color: #999ea8; color: #999ea8;
} }
} }
} }
.active { .active {
border: 4rpx solid #347bff; border: toRpx(4) solid #347bff;
} }
} }
</style> </style>
...@@ -24,14 +24,14 @@ export default { ...@@ -24,14 +24,14 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.list-not { .list-not {
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
margin: auto; margin: auto;
text-align: center; text-align: center;
&-img { &-img {
width: 676rpx; width: toRpx(676);
height: 284rpx; height: toRpx(284);
margin: 192rpx auto 24rpx; margin: toRpx(192) auto toRpx(24);
display: block; display: block;
} }
} }
......
...@@ -134,19 +134,19 @@ export default { ...@@ -134,19 +134,19 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.search-box { .search-box {
margin: 32rpx 0; margin: toRpx(32) 0;
position: relative; position: relative;
z-index: 2; z-index: 2;
.search-input { .search-input {
width: 100%; width: 100%;
height: 80rpx; height: toRpx(80);
background: #ffffff; background: #ffffff;
border: 3rpx solid #a8c1ff; border: toRpx(3) solid #a8c1ff;
border-radius: 16rpx; border-radius: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
color: #333; color: #333;
padding: 0 24rpx; padding: 0 toRpx(24);
font-size: 28rpx; font-size: toRpx(28);
position: relative; position: relative;
.input { .input {
display: flex; display: flex;
...@@ -155,13 +155,13 @@ export default { ...@@ -155,13 +155,13 @@ export default {
width: 100%; width: 100%;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
font-size: 28rpx; font-size: toRpx(28);
} }
.icon-search { .icon-search {
margin-left: 16rpx; margin-left: toRpx(16);
} }
.placeholder { .placeholder {
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
} }
} }
...@@ -170,31 +170,31 @@ export default { ...@@ -170,31 +170,31 @@ export default {
top: 50%; top: 50%;
right: 0; right: 0;
transform: translateY(-50%); transform: translateY(-50%);
padding: 0 32rpx; padding: 0 toRpx(32);
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
} }
} }
.select-box { .select-box {
margin: 32rpx 0; margin: toRpx(32) 0;
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 32rpx; gap: toRpx(32);
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: toRpx(60);
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: toRpx(68);
line-height: 68rpx; line-height: toRpx(68);
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: toRpx(2) solid #dce0e6;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
border-radius: 8rpx; border-radius: toRpx(8);
&.checked { &.checked {
border: 2rpx solid #292d33; border: toRpx(2) solid #292d33;
} }
} }
} }
......
...@@ -147,38 +147,38 @@ export default { ...@@ -147,38 +147,38 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 48rpx; padding: 0 toRpx(48);
gap: 48rpx; gap: toRpx(48);
.items { .items {
width: calc(50% - 24rpx); width: calc(50% - #{toRpx(24)});
height: 160rpx; height: toRpx(160);
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
padding: 32rpx; padding: toRpx(32);
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
border: 4rpx solid transparent; border: toRpx(4) solid transparent;
.left { .left {
margin-right: 28rpx; margin-right: toRpx(28);
flex-shrink: 0; flex-shrink: 0;
} }
.right { .right {
flex: 1; flex: 1;
.name { .name {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #181a1f; color: #181a1f;
margin-bottom: 12rpx; margin-bottom: toRpx(12);
} }
.shop_no { .shop_no {
font-size: 28rpx; font-size: toRpx(28);
color: #999ea8; color: #999ea8;
} }
} }
} }
.active { .active {
border: 4rpx solid #347bff; border: toRpx(4) solid #347bff;
} }
} }
</style> </style>
...@@ -297,19 +297,19 @@ export default { ...@@ -297,19 +297,19 @@ export default {
background-image: url('@/assets/images/common/page-bg.webp'); background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%; background-size: 100%;
box-sizing: border-box; box-sizing: border-box;
padding-top: 160rpx; padding-top: toRpx(160);
.nav-bar { .nav-bar {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
left: 0; left: 0;
top: 48rpx; top: toRpx(48);
z-index: 9; z-index: 9;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
line-height: 96rpx; line-height: toRpx(96);
.back { .back {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -322,62 +322,62 @@ export default { ...@@ -322,62 +322,62 @@ export default {
} }
} }
.box { .box {
width: 2218rpx; width: toRpx(2218);
background: #ffffff59; background: #ffffff59;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: 48rpx; border-radius: toRpx(48);
backdrop-filter: blur(8rpx); backdrop-filter: blur(toRpx(8));
margin: 0 auto; margin: 0 auto;
box-sizing: border-box; box-sizing: border-box;
.title { .title {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #333333; color: #333333;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 48rpx 28rpx; padding: toRpx(32) toRpx(48) toRpx(28);
.search-btn { .search-btn {
margin-left: auto; margin-left: auto;
position: relative; position: relative;
&::after { &::after {
content: ''; content: '';
display: block; display: block;
border: 16rpx solid transparent; border: toRpx(16) solid transparent;
border-left-width: 12rpx; border-left-width: toRpx(12);
border-right-width: 12rpx; border-right-width: toRpx(12);
border-top-color: #000000e6; border-top-color: #000000e6;
position: relative; position: relative;
top: 8rpx; top: toRpx(8);
margin-left: 20rpx; margin-left: toRpx(20);
transition: all 0.15s; transition: all 0.15s;
} }
} }
.arrow-popup { .arrow-popup {
&::after { &::after {
transform: rotate(180deg); transform: rotate(180deg);
top: -8rpx; top: toMinusRpx(8);
} }
} }
} }
} }
.customer-box { .customer-box {
height: 292rpx; height: toRpx(292);
margin-bottom: 32rpx; margin-bottom: toRpx(32);
position: relative; position: relative;
z-index: 2; z-index: 2;
.customer-info { .customer-info {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 48rpx; padding: 0 toRpx(48);
gap: 12rpx 38rpx; gap: toRpx(12) toRpx(38);
.item { .item {
width: 1042rpx; width: toRpx(1042);
flex-shrink: 0; flex-shrink: 0;
font-size: 28rpx; font-size: toRpx(28);
line-height: 44rpx; line-height: toRpx(44);
position: relative; position: relative;
.label { .label {
color: #292d3399; color: #292d3399;
width: 160rpx; width: toRpx(160);
flex-shrink: 0; flex-shrink: 0;
} }
.value { .value {
...@@ -385,22 +385,22 @@ export default { ...@@ -385,22 +385,22 @@ export default {
} }
.icon-customer-detail { .icon-customer-detail {
flex-shrink: 0; flex-shrink: 0;
margin-left: 16rpx; margin-left: toRpx(16);
} }
.tooltip-box { .tooltip-box {
position: absolute; position: absolute;
right: 0; right: 0;
top: 60rpx; top: toRpx(60);
width: 792rpx; width: toRpx(792);
background: #ffffffcc; background: #ffffffcc;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: 16rpx; border-radius: toRpx(16);
backdrop-filter: blur(8rpx); backdrop-filter: blur(toRpx(8));
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx 28rpx; padding: toRpx(24) toRpx(28);
font-size: 28rpx; font-size: toRpx(28);
color: #292d33; color: #292d33;
line-height: 44rpx; line-height: toRpx(44);
max-height: 50vh; max-height: 50vh;
overflow-y: scroll; overflow-y: scroll;
word-break: break-all; word-break: break-all;
...@@ -409,19 +409,19 @@ export default { ...@@ -409,19 +409,19 @@ export default {
} }
} }
.case-box { .case-box {
height: 1020rpx; height: toRpx(1020);
padding: 0 !important; padding: 0 !important;
.case-scroll-box { .case-scroll-box {
height: calc(100% - 104rpx); height: calc(100% - #{toRpx(104)});
} }
.case-list { .case-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 32rpx 46rpx; gap: toRpx(32) toRpx(46);
padding: 0 48rpx; padding: 0 toRpx(48);
.case-item { .case-item {
width: 496rpx; width: toRpx(496);
height: 588rpx; height: toRpx(588);
} }
} }
} }
...@@ -429,13 +429,13 @@ export default { ...@@ -429,13 +429,13 @@ export default {
.nothing { .nothing {
width: 100%; width: 100%;
flex-direction: column; flex-direction: column;
margin-top: 112rpx; margin-top: toRpx(112);
font-size: 28rpx; font-size: toRpx(28);
color: #999999; color: #999999;
.icon { .icon {
width: 676rpx; width: toRpx(676);
height: 284rpx; height: toRpx(284);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
background-image: url('@/assets/images/home/nothing.webp'); background-image: url('@/assets/images/home/nothing.webp');
background-size: 100% 100%; background-size: 100% 100%;
} }
...@@ -445,7 +445,7 @@ export default { ...@@ -445,7 +445,7 @@ export default {
text-align: center; text-align: center;
color: #999; color: #999;
text-align: center; text-align: center;
padding: 50rpx 0; padding: toRpx(50) 0;
font-size: 24rpx; font-size: toRpx(24);
} }
</style> </style>
...@@ -223,61 +223,61 @@ export default { ...@@ -223,61 +223,61 @@ export default {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
.title { .title {
font-weight: 600; font-weight: 600;
font-size: 96rpx; font-size: toRpx(96);
color: #333333; color: #333333;
text-align: center; text-align: center;
} }
.sub-title { .sub-title {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
margin: 46rpx 0; margin: toRpx(46) 0;
} }
.input { .input {
width: 800rpx; width: toRpx(800);
height: 112rpx; height: toRpx(112);
background: #f7f8fa; background: #f7f8fa;
border-radius: 56rpx; border-radius: toRpx(56);
margin-bottom: 40rpx; margin-bottom: toRpx(40);
box-sizing: border-box; box-sizing: border-box;
padding-left: 40rpx; padding-left: toRpx(40);
display: flex; display: flex;
align-items: center; align-items: center;
input { input {
height: 100%; height: 100%;
flex: 1; flex: 1;
font-size: 32rpx !important; font-size: toRpx(32) !important;
} }
.icon { .icon {
margin-left: auto; margin-left: auto;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 40rpx; padding: 0 toRpx(40);
height: 100%; height: 100%;
} }
.code-btn { .code-btn {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: toRpx(32);
color: #2c66f7; color: #2c66f7;
flex-shrink: 0; flex-shrink: 0;
border: none; border: none;
margin-right: 40rpx; margin-right: toRpx(40);
} }
.code-disabled { .code-disabled {
color: #9b9b9e; color: #9b9b9e;
} }
} }
.btn { .btn {
width: 800rpx; width: toRpx(800);
height: 112rpx; height: toRpx(112);
background-image: linear-gradient(90deg, #48a6ff 0%, #2c66f7 100%); background-image: linear-gradient(90deg, #48a6ff 0%, #2c66f7 100%);
border-radius: 56rpx; border-radius: toRpx(56);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-weight: 600; font-weight: 600;
font-size: 40rpx; font-size: toRpx(40);
color: #ffffff; color: #ffffff;
} }
.btn[disabled]:not([type]), .btn[disabled]:not([type]),
...@@ -287,17 +287,17 @@ export default { ...@@ -287,17 +287,17 @@ export default {
.form-footer { .form-footer {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 40rpx; margin-top: toRpx(40);
flex-direction: column; flex-direction: column;
gap: 38rpx 0; gap: toRpx(38) 0;
padding-left: 142rpx; padding-left: toRpx(142);
.autoLogin { .autoLogin {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 20rpx; margin-right: toRpx(20);
.uni-icons { .uni-icons {
margin-right: 8rpx; margin-right: toRpx(8);
// margin-left: 142rpx; // margin-left: toRpx(142);
} }
text { text {
color: #2c66f7; color: #2c66f7;
...@@ -307,16 +307,16 @@ export default { ...@@ -307,16 +307,16 @@ export default {
} }
.app-code { .app-code {
position: fixed; position: fixed;
bottom: 20rpx; bottom: toRpx(20);
left: 50%; left: 50%;
transform: translate(-50%); transform: translate(-50%);
font-size: 24rpx; font-size: toRpx(24);
color: #999999; color: #999999;
line-height: 40rpx; line-height: toRpx(40);
.icon-clone { .icon-clone {
width: 24rpx; width: toRpx(24);
height: 24rpx; height: toRpx(24);
margin-left: 20rpx; margin-left: toRpx(20);
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!