Commit da70e4ca by Lin

Merge branch 'saas+v5.8.3' of http://192.168.3.233:8090/glsx/gl_tape into saas+v5.8.3

2 parents ea767396 83296dd7
<template> <template>
<view> <view>
<MessageBox <MessageBox ref="carBrandListVisible" position="bottom" :isFooter="false" title="请选择车品牌" @close="clickClose">
ref="carBrandListVisible"
position="bottom"
:isFooter="false"
title="请选择车品牌"
@close="clickClose"
>
<view class="select-box"> <view class="select-box">
<view <view class="select-item" :class="{ checked: carBrand == item.name }" @click="selectCar(item)"
class="select-item" v-for="(item, index) in carBrandList" :key="index">
:class="{ checked: carBrand == item.name }"
@click="selectCar(item)"
v-for="(item, index) in carBrandList"
:key="index"
>
{{ item.name }} {{ item.name }}
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
<MessageBox <MessageBox ref="carBoxVisible" position="bottom" :isFooter="false" title="请选择车系" :maxHeight="1000" back
ref="carBoxVisible" @close="closeCarBoxVisible">
position="bottom"
:isFooter="false"
title="请选择车系"
:maxHeight="1000"
back
@close="closeCarBoxVisible"
>
<view class="select-box"> <view class="select-box">
<view <view class="select-item" :class="{ checked: carModel == item.name }" @click="handleSelect(item)"
class="select-item" v-for="(item, index) in carlist" :key="index">
:class="{ checked: carModel == item.name }"
@click="handleSelect(item)"
v-for="(item, index) in carlist"
:key="index"
>
{{ item.name }} {{ item.name }}
</view> </view>
</view> </view>
...@@ -66,7 +43,7 @@ export default { ...@@ -66,7 +43,7 @@ export default {
default: true default: true
} }
}, },
data () { data() {
return { return {
carlist: [], carlist: [],
selectItem: {}, selectItem: {},
...@@ -77,42 +54,42 @@ export default { ...@@ -77,42 +54,42 @@ export default {
watch: { watch: {
watchStatus: { watchStatus: {
immediate: true, immediate: true,
handler (newval) { handler(newval) {
this.close() this.close()
} }
}, },
}, },
computed: { computed: {
watchStatus () { watchStatus() {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
carModel () { carModel() {
return this.customBoolean ? this.echoData[this.carModelKey] : this.$store.state.user.customerInfo.carModel return this.customBoolean ? this.echoData[this.carModelKey] : this.$store.state.user.customerInfo.carModel
}, },
carBrandList () { carBrandList() {
return this.$store.state.user.carBrands || [] return this.$store.state.user.carBrands || []
}, },
carBrand () { carBrand() {
return this.customBoolean ? this.echoData[this.carBrandKey] : this.$store.state.user.customerInfo.carBrand return this.customBoolean ? this.echoData[this.carBrandKey] : this.$store.state.user.customerInfo.carBrand
}, },
boutiqueDefaultCarBrandId () { boutiqueDefaultCarBrandId() {
return this.$store.state.user.boutiqueDefaultCarBrandId return this.$store.state.user.boutiqueDefaultCarBrandId
}, },
defaultCarId () { defaultCarId() {
return this.$store.state.user.defaultCarId || '' return this.$store.state.user.defaultCarId || ''
} }
}, },
mounted () { mounted() {
}, },
methods: { methods: {
autoSelect () { autoSelect() {
const { carBrandList, boutiqueDefaultCarBrandId, defaultCarId } = this const { carBrandList, boutiqueDefaultCarBrandId, defaultCarId } = this
let carIndex = 0 let carIndex = 0
if (boutiqueDefaultCarBrandId) carIndex = carBrandList.findIndex(e => e.id == boutiqueDefaultCarBrandId) if (boutiqueDefaultCarBrandId) carIndex = carBrandList.findIndex(e => e.id == boutiqueDefaultCarBrandId)
if (carIndex < 0) carIndex = 0 if (carIndex < 0) carIndex = 0
if (carBrandList.length) this.selectCar(carBrandList[carIndex], true, defaultCarId) if (carBrandList.length) this.selectCar(carBrandList[carIndex], true, defaultCarId)
}, },
open () { open() {
this.$store.dispatch('setCarBrandOpenStatus', true) this.$store.dispatch('setCarBrandOpenStatus', true)
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
...@@ -146,7 +123,7 @@ export default { ...@@ -146,7 +123,7 @@ export default {
this.$refs.carBrandListVisible.open() this.$refs.carBrandListVisible.open()
this.carBrandListOff = true this.carBrandListOff = true
}, },
selectCar (e, auto = false, carId) { selectCar(e, auto = false, carId) {
if (!e.brandId || !e.id) return uni.showToast({ if (!e.brandId || !e.id) return uni.showToast({
title: "车型ID或品牌ID为空", title: "车型ID或品牌ID为空",
icon: "none", icon: "none",
...@@ -198,7 +175,7 @@ export default { ...@@ -198,7 +175,7 @@ export default {
}) })
}, },
handleSelect (item) { handleSelect(item) {
const customerInfo = this.$store.state.user.customerInfo, const customerInfo = this.$store.state.user.customerInfo,
{ selectItem, linkage } = this { selectItem, linkage } = this
Object.assign(customerInfo, { Object.assign(customerInfo, {
...@@ -207,14 +184,14 @@ export default { ...@@ -207,14 +184,14 @@ export default {
oneCarBrand: selectItem.carBrand, oneCarBrand: selectItem.carBrand,
oneCarBrandId: selectItem.carBrandId oneCarBrandId: selectItem.carBrandId
}) })
uni.$logger.local.info(`选择车: if (linkage) {
uni.$logger.local.info(`选择车:
carModel:${item.name}, carModel:${item.name},
carModelId: ${item.id}, carModelId: ${item.id},
carBrand:${customerInfo.carBrand}, carBrand:${customerInfo.carBrand},
carBrandId:${customerInfo.carBrandId}, carBrandId:${customerInfo.carBrandId},
oneCarBrand:${customerInfo.oneCarBrand}, oneCarBrand:${customerInfo.oneCarBrand},
oneCarBrandId:${customerInfo.oneCarBrandId}`) oneCarBrandId:${customerInfo.oneCarBrandId}`)
if (linkage) {
this.$store.dispatch('setCustomerInfo', customerInfo) this.$store.dispatch('setCustomerInfo', customerInfo)
this.$store.dispatch('updateViewKey') this.$store.dispatch('updateViewKey')
this.$store.dispatch('setCurrentCarInfo', selectItem) this.$store.dispatch('setCurrentCarInfo', selectItem)
...@@ -226,18 +203,18 @@ export default { ...@@ -226,18 +203,18 @@ export default {
...selectItem ...selectItem
}) })
}, },
close () { close() {
this.$refs?.carBoxVisible?.close(); this.$refs?.carBoxVisible?.close();
this.$refs?.carBrandListVisible?.close() this.$refs?.carBrandListVisible?.close()
this.carBrandListOff = false this.carBrandListOff = false
this.$store.dispatch('setCarBrandOpenStatus', false) this.$store.dispatch('setCarBrandOpenStatus', false)
}, },
closeCarBoxVisible () { closeCarBoxVisible() {
if (this.carBrandListOff) return if (this.carBrandListOff) return
else this.$emit('close') else this.$emit('close')
}, },
clickClose () { clickClose() {
this.$store.dispatch('setCarBrandOpenStatus', false) this.$store.dispatch('setCarBrandOpenStatus', false)
this.$emit('close') this.$emit('close')
}, },
...@@ -254,6 +231,7 @@ export default { ...@@ -254,6 +231,7 @@ export default {
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: toRpx(60); padding-bottom: toRpx(60);
.select-item { .select-item {
text-align: center; text-align: center;
height: toRpx(68); height: toRpx(68);
...@@ -263,6 +241,7 @@ export default { ...@@ -263,6 +241,7 @@ export default {
color: #333; color: #333;
font-size: toRpx(32); font-size: toRpx(32);
border-radius: toRpx(8); border-radius: toRpx(8);
&.checked { &.checked {
border: toRpx(2) solid #292d33; border: toRpx(2) solid #292d33;
} }
......
...@@ -7,45 +7,47 @@ ...@@ -7,45 +7,47 @@
<uni-icons type="closeempty" size="20" color="#999EA8"></uni-icons> <uni-icons type="closeempty" size="20" color="#999EA8"></uni-icons>
</view> </view>
</view> </view>
<view class="customer-detail"> <scroll-view class="scroll-content" scroll-y>
<template v-for="(item, index) in customerObject"> <view class="customer-detail">
<view class="customer-item flex" :key="index"> <template v-for="(item, index) in customerObject">
<view class="item-title">{{ item.title }}</view> <view class="customer-item " :key="index" v-if="showItem(item.key)">
<view class="item-content text-hide"> <view class="item-title">{{ item.title }}</view>
<template v-if="item.key == 'customerStatus'"> <view class="item-content">
<view :class="['block', orderStatusClass(options.data[item.key])]">{{ <template v-if="item.key == 'customerStatus'">
orderStatus(options.data[item.key]) || '-' }}</view> <view :class="['block', orderStatusClass(options.data[item.key])]">{{
orderStatus(options.data[item.key]) || '-' }}</view>
</template>
<text v-else>{{ formatContent(item.key) }}</text>
</view>
</view>
</template>
</view>
<view class="sub-title flex">
<view :class="['sprite-icon', subIcon]"></view>
{{ subTitle }}
<template v-if="options.type == 'task' && taskList.length">
<view class="btn flex" @click="confirmAllTask">全部任务合并推送</view>
</template>
</view>
<template v-if="loadComplete">
<template v-if="taskList.length">
<view class="content">
<template v-for="(item, index) in taskList">
<task-item :key="index" :item="{
...item,
qwGroupName: options.data.qwGroupName
}" :num="index" :type="options.type" @confirmTask="confirmTask" />
</template> </template>
<text v-else>{{ formatContent(item.key) }}</text> <view class="p-b"></view>
</view> </view>
</view> </template>
</template> <template v-else>
</view> <view class="nothing">
<view class="sub-title flex"> <nothing text="暂无数据" />
<view :class="['sprite-icon', subIcon]"></view> </view>
{{ subTitle }} </template>
<template v-if="options.type == 'task' && taskList.length">
<view class="btn flex" @click="confirmAllTask">全部任务合并推送</view>
</template>
</view>
<template v-if="loadComplete">
<template v-if="taskList.length">
<scroll-view class="content" scroll-y>
<template v-for="(item, index) in taskList">
<task-item :key="index" :item="{
...item,
qwGroupName: options.data.qwGroupName
}" :num="index" :type="options.type" @confirmTask="confirmTask" />
</template>
<view class="p-b"></view>
</scroll-view>
</template>
<template v-else>
<view class="nothing">
<nothing text="暂无数据" />
</view>
</template> </template>
</template> </scroll-view>
</view> </view>
</uni-popup> </uni-popup>
</template> </template>
...@@ -102,6 +104,10 @@ export default { ...@@ -102,6 +104,10 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
showItem(key) {
if (key != 'qwGroupName') return true
else return this.options.data[key]
},
orderStatus(status) { orderStatus(status) {
return { return {
1: '待跟进', 1: '待跟进',
...@@ -112,10 +118,10 @@ export default { ...@@ -112,10 +118,10 @@ export default {
}, },
orderStatusClass(status) { orderStatusClass(status) {
return { return {
1: 'failed', 1: 'error',
2: 'success', 2: 'success',
3: 'failed', 3: 'failed',
4: 'failed', 4: 'warning',
}[status] }[status]
}, },
formatContent(key) { formatContent(key) {
...@@ -213,14 +219,14 @@ export default { ...@@ -213,14 +219,14 @@ export default {
.popup-box { .popup-box {
width: 56.265985vw; width: 56.265985vw;
height: 79.947917vh; height: 79.947917vh;
border-radius: 32rpx; border-radius: toRpx(32);
background: linear-gradient(180deg, #E6F0FF 0%, #FFFFFF 40%, #FFFFFF 100%); background: linear-gradient(180deg, #E6F0FF 0%, #FFFFFF 40%, #FFFFFF 100%);
.title { .title {
font-size: 40rpx; font-size: toRpx(40);
font-weight: 500; font-weight: 500;
color: #292D33; color: #292D33;
height: 128rpx; height: toRpx(128);
justify-content: center; justify-content: center;
position: relative; position: relative;
...@@ -237,24 +243,25 @@ export default { ...@@ -237,24 +243,25 @@ export default {
.customer-detail { .customer-detail {
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #F5F7FA; border: toRpx(2) solid #F5F7FA;
margin: 0 64rpx; margin: 0 toRpx(64);
height: 232rpx; border-radius: toRpx(32);
border-radius: 32rpx;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 24rpx 40rpx; gap: toRpx(24) toRpx(40);
box-sizing: border-box; box-sizing: border-box;
padding: 28rpx 40rpx; padding: toRpx(28) toRpx(40);
.customer-item { .customer-item {
width: calc(50% - #{toRpx(20)}); width: calc(50% - #{toRpx(20)});
box-sizing: border-box; box-sizing: border-box;
font-size: 26rpx; font-size: toRpx(26);
gap: 16rpx; gap: toRpx(16);
display: flex;
align-items: flex-start;
.item-title { .item-title {
width: 120rpx; width: toRpx(120);
color: #999EA8; color: #999EA8;
} }
...@@ -262,15 +269,16 @@ export default { ...@@ -262,15 +269,16 @@ export default {
.item-content { .item-content {
width: calc(100% - #{toRpx(136)}); width: calc(100% - #{toRpx(136)});
color: #292D33; color: #292D33;
word-break: break-all;
} }
.block { .block {
display: inline-block; display: inline-block;
padding: 0 16rpx; padding: 0 toRpx(16);
border-radius: 8rpx; border-radius: toRpx(8);
font-size: 24rpx; font-size: toRpx(24);
line-height: 44rpx; line-height: toRpx(44);
height: 44rpx; height: toRpx(44);
&.success { &.success {
background-color: #EAF9F1; background-color: #EAF9F1;
...@@ -281,45 +289,52 @@ export default { ...@@ -281,45 +289,52 @@ export default {
background-color: #F5F7FA; background-color: #F5F7FA;
color: #999EA8; color: #999EA8;
} }
&.error {
background-color: #FDECE9;
color: #F24724;
}
&.warning {
background-color: #FFF5E6;
color: #FF9D0A;
}
} }
} }
} }
.sub-title { .sub-title {
font-size: 34rpx; font-size: toRpx(34);
font-weight: 500; font-weight: 500;
color: #292D33; color: #292D33;
height: 124rpx; height: toRpx(124);
margin: 0 64rpx; margin: 0 toRpx(64);
.sprite-icon { .sprite-icon {
margin-right: 18rpx; margin-right: toRpx(18);
} }
.btn { .btn {
margin-left: auto; margin-left: auto;
background-color: #2C66F7; background-color: #2C66F7;
color: #FFFFFF; color: #FFFFFF;
padding: 0 32rpx; padding: 0 toRpx(32);
border-radius: 16rpx; border-radius: toRpx(16);
height: 64rpx; height: toRpx(64);
line-height: 64rpx; line-height: toRpx(64);
font-size: 28rpx; font-size: toRpx(28);
} }
} }
.content {
height: calc(100% - #{toRpx(484)});
box-sizing: border-box;
}
.p-b { .p-b {
height: 28rpx; height: toRpx(28);
} }
} }
.scroll-content{
height: calc(100% - #{toRpx(128)});
}
.nothing { .nothing {
height: calc(100% - #{toRpx(484)}); height: calc(100% - #{toRpx(484)});
} }
......
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.icon { .icon {
width: 300rpx; width: 344rpx;
height: 236rpx; height: 236rpx;
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<text class="car-model text-hide" v-if="item.carSeriesName">{{ item.carSeriesName }}</text> <text class="car-model text-hide" v-if="item.carSeriesName">{{ item.carSeriesName }}</text>
</view> </view>
<view class="phone">{{ formatPhone(item.customerPhone) }}</view> <view class="phone">{{ formatPhone(item.customerPhone) }}</view>
<view class="customer-group">{{ item.qwGroupName || '客户群不存在' }}</view> <view class="customer-group" v-if="item.qwGroupName">{{ item.qwGroupName }}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<view class="row-item tag-col"> <view class="row-item tag-col">
<view class="tag-list" :id="`tag-list-${index}`"> <view class="tag-list" :id="`tag-list-${index}`">
<view v-for="(tag, tagIndex) in item.tagList" :key="tagIndex" class="tag" <view v-for="(tag, tagIndex) in item.tagList" :key="tagIndex" class="tag flex"
:id="`tag-${index}-${tagIndex}`"> :id="`tag-${index}-${tagIndex}`">
{{ tag }} {{ tag }}
</view> </view>
...@@ -124,11 +124,11 @@ export default { ...@@ -124,11 +124,11 @@ export default {
}, },
orderStatusClass(status) { orderStatusClass(status) {
return { return {
1: 'failed', 1: 'error',
2: 'success', 2: 'success',
3: 'failed', 3: 'failed',
4: 'failed', 4: 'warning',
}[status] }[status] || ''
}, },
orderHandleTime(time) { orderHandleTime(time) {
return time ? dayjs(time).format('YYYY-MM-DD') : '' return time ? dayjs(time).format('YYYY-MM-DD') : ''
...@@ -188,33 +188,33 @@ export default { ...@@ -188,33 +188,33 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
background-color: #F5F7FA; background-color: #F5F7FA;
font-size: 26rpx; font-size: toRpx(26);
color: #6C6F75; color: #6C6F75;
font-weight: 500; font-weight: 500;
height: 72rpx; height: toRpx(72);
border-radius: 16rpx; border-radius: toRpx(16);
.header-item { .header-item {
text-align: center; text-align: center;
&.customer-col { &.customer-col {
width: 588rpx; width: toRpx(588);
} }
&.order-col { &.order-col {
width: 226rpx; width: toRpx(226);
} }
&.tag-col { &.tag-col {
width: 656rpx; width: toRpx(656);
} }
&.follower-col { &.follower-col {
width: 224rpx; width: toRpx(224);
} }
&.action-col { &.action-col {
width: 284rpx; width: toRpx(284);
} }
} }
...@@ -226,38 +226,38 @@ export default { ...@@ -226,38 +226,38 @@ export default {
.table-row { .table-row {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 32rpx 0; padding: toRpx(32) 0;
border-bottom: 1rpx solid #F0F1F5; border-bottom: toRpx(1) solid #F0F1F5;
&:last-child { &:last-child {
// border-bottom: none; // border-bottom: none;
} }
.row-item { .row-item {
font-size: 26rpx; font-size: toRpx(26);
color: #333333; color: #333333;
&.customer-col { &.customer-col {
width: 588rpx; width: toRpx(588);
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx; padding: 0 toRpx(32);
.customer-info { .customer-info {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
.avatar { .avatar {
width: 64rpx; width: toRpx(64);
height: 64rpx; height: toRpx(64);
border-radius: 50%; border-radius: 50%;
background: #2C66F71A; background: #2C66F71A;
color: #2C66F7; color: #2C66F7;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
margin-right: 20rpx; margin-right: toRpx(20);
flex-shrink: 0; flex-shrink: 0;
} }
...@@ -268,37 +268,37 @@ export default { ...@@ -268,37 +268,37 @@ export default {
.name-row { .name-row {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 16rpx; margin-bottom: toRpx(16);
.name { .name {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
color: #1A1A2E; color: #1A1A2E;
margin-right: 12rpx; margin-right: toRpx(12);
max-width: 20%; max-width: 20%;
} }
.car-model { .car-model {
font-size: 24rpx; font-size: toRpx(24);
color: #6C6F75; color: #6C6F75;
padding: 0 16rpx; padding: 0 toRpx(16);
box-sizing: border-box; box-sizing: border-box;
border-radius: 8rpx; border-radius: toRpx(8);
border: 1px solid #DCE1E6; border: 1px solid #DCE1E6;
max-width: calc(80% - #{toRpx(8)}); max-width: calc(80% - #{toRpx(8)});
margin-left: 8rpx; margin-left: toRpx(8);
} }
} }
.phone { .phone {
font-size: 26rpx; font-size: toRpx(26);
color: #999EA8; color: #999EA8;
margin-bottom: 16rpx; margin-bottom: toRpx(16);
} }
.customer-group { .customer-group {
font-size: 26rpx; font-size: toRpx(26);
color: #999EA8; color: #999EA8;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -309,18 +309,18 @@ export default { ...@@ -309,18 +309,18 @@ export default {
} }
&.order-col { &.order-col {
width: 226rpx; width: toRpx(226);
box-sizing: border-box; box-sizing: border-box;
padding-left: 32rpx; padding-left: toRpx(32);
.order-status { .order-status {
display: inline-block; display: inline-block;
padding: 0 16rpx; padding: 0 toRpx(16);
border-radius: 8rpx; border-radius: toRpx(8);
font-size: 24rpx; font-size: toRpx(24);
margin-bottom: 16rpx; margin-bottom: toRpx(16);
line-height: 44rpx; line-height: toRpx(44);
height: 44rpx; height: toRpx(44);
&.success { &.success {
background-color: #EAF9F1; background-color: #EAF9F1;
...@@ -331,74 +331,85 @@ export default { ...@@ -331,74 +331,85 @@ export default {
background-color: #F5F7FA; background-color: #F5F7FA;
color: #999EA8; color: #999EA8;
} }
&.error {
background-color: #FDECE9;
color: #F24724;
}
&.warning {
background-color: #FFF5E6;
color: #FF9D0A;
}
} }
.order-date { .order-date {
font-size: 26rpx; font-size: toRpx(26);
color: #999EA8; color: #999EA8;
} }
} }
&.tag-col { &.tag-col {
width: 656rpx; width: toRpx(656);
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx; padding: 0 toRpx(32);
.tag-list { .tag-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 16rpx; gap: toRpx(16);
color: #6C6F75; color: #6C6F75;
font-size: 26rpx; font-size: toRpx(26);
max-height: 100rpx; max-height: toRpx(100);
overflow: hidden; overflow: hidden;
// align-content: center; // align-content: center;
.tag { .tag {
padding: 0 16rpx; padding: 0 toRpx(16);
border-radius: 8rpx; border-radius: toRpx(8);
border: 1px solid #DCE1E6; border: toRpx(2) solid #DCE1E6;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
line-height: toRpx(38);
} }
.more-tags { .more-tags {
border: 1px solid #DCE1E6; border: toRpx(2) solid #DCE1E6;
} }
} }
} }
&.follower-col { &.follower-col {
width: 224rpx; width: toRpx(224);
font-size: 26rpx; font-size: toRpx(26);
color: #292D33; color: #292D33;
text-align: center; text-align: center;
word-break: break-all; word-break: break-all;
.date { .date {
color: #999EA8; color: #999EA8;
margin-top: 10rpx; margin-top: toRpx(10);
} }
} }
&.action-col { &.action-col {
width: 284rpx; width: toRpx(284);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20rpx; gap: toRpx(20);
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx; padding: 0 toRpx(32);
.action-btn { .action-btn {
padding: 0 24rpx; padding: 0 toRpx(24);
border-radius: 8rpx; border-radius: toRpx(8);
font-size: 24rpx; font-size: toRpx(24);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
height: 56rpx; height: toRpx(56);
line-height: 56rpx; line-height: toRpx(56);
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -407,7 +418,7 @@ export default { ...@@ -407,7 +418,7 @@ export default {
&.primary-btn { &.primary-btn {
background-color: #2C66F70D; background-color: #2C66F70D;
color: #2C66F7; color: #2C66F7;
border: 2rpx solid #2C66F71A; border: toRpx(2) solid #2C66F71A;
&:active { &:active {
background-color: #D4E4FF; background-color: #D4E4FF;
...@@ -417,7 +428,7 @@ export default { ...@@ -417,7 +428,7 @@ export default {
&.secondary-btn { &.secondary-btn {
background-color: #FFFFFF; background-color: #FFFFFF;
color: #292D33; color: #292D33;
border: 2rpx solid #DCE1E6; border: toRpx(2) solid #DCE1E6;
&:active { &:active {
background-color: #F5F7FA; background-color: #F5F7FA;
...@@ -434,6 +445,6 @@ export default { ...@@ -434,6 +445,6 @@ export default {
font-size: toRpx(26); font-size: toRpx(26);
color: #808291; color: #808291;
text-align: center; text-align: center;
line-height: 80rpx; line-height: toRpx(80);
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<view class="btn-box flex"> <view class="btn-box flex">
<template v-if="item.taskStatus == 0"> <template v-if="item.taskStatus == 0">
<view class="btn primary-btn" @click="confirmTask(1)">立即推送</view> <view class="btn primary-btn" @click="confirmTask(1)">立即推送</view>
<view class="btn" @click="confirmTask()">暂不推送</view> <view class="btn" @click="confirmTask(2)">暂不推送</view>
</template> </template>
<template v-else> <template v-else>
<view :class="['status flex', { success: item.taskStatus == 1 }]">{{ taskStatus(item.taskStatus) }}</view> <view :class="['status flex', taskStatusClass(item.taskStatus)]">{{ taskStatus(item.taskStatus) }}</view>
</template> </template>
</view> </view>
</view> </view>
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
data() { data() {
return { return {
defaultPoster: 'https://img02.glsx.com.cn/weapp/resource/app-zyzs/common/default-video.webp' defaultPoster: 'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-video.webp'
} }
}, },
watch: {}, watch: {},
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
return { return {
2: '成功', 2: '成功',
3: '失败', 3: '失败',
}[status] }[status] || '-'
} }
}) })
if (messageType == 4) taskRecordList.push({ if (messageType == 4) taskRecordList.push({
...@@ -127,9 +127,16 @@ export default { ...@@ -127,9 +127,16 @@ export default {
return { return {
1: '已推送', 1: '已推送',
2: '暂不推送', 2: '暂不推送',
3: '推送失败'
}[status] }[status]
}, },
confirmTask(confirmStatus = 0) { taskStatusClass(status) {
return {
1: 'success',
3: 'failed'
}[status] || ''
},
confirmTask(confirmStatus) {
this.$emit('confirmTask', { this.$emit('confirmTask', {
confirmStatus, confirmStatus,
item: this.item item: this.item
...@@ -149,40 +156,40 @@ export default { ...@@ -149,40 +156,40 @@ export default {
getImages(mediaIds) { getImages(mediaIds) {
return mediaIds.split(',') return mediaIds.split(',')
}, },
formatValue(value){ formatValue(value) {
return value !== null && value !== '' && value !== undefined ? value : '-' return value !== null && value !== '' && value !== undefined ? value : '-'
} }
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.task-item { .task-item {
border-radius: 32rpx; border-radius: toRpx(32);
padding: 28rpx; padding: toRpx(28);
background-color: #F8FAFC; background-color: #F8FAFC;
margin: 0 64rpx 28rpx; margin: 0 toRpx(64) toRpx(28);
&-title { &-title {
margin-bottom: 16rpx; margin-bottom: toRpx(16);
.tag { .tag {
border: 2rpx solid #DCE1E6; border: toRpx(2) solid #DCE1E6;
padding: 0 16rpx; padding: 0 toRpx(16);
border-radius: 8rpx; border-radius: toRpx(8);
color: #6C6F75; color: #6C6F75;
font-size: 26rpx; font-size: toRpx(26);
margin-right: 16rpx; margin-right: toRpx(16);
} }
.text { .text {
font-size: 30rpx; font-size: toRpx(30);
color: #292D33; color: #292D33;
} }
.line { .line {
width: 2rpx; width: toRpx(2);
height: 32rpx; height: toRpx(32);
margin: 0 16rpx; margin: 0 toRpx(16);
background-color: #999EA8; background-color: #999EA8;
} }
} }
...@@ -191,14 +198,14 @@ export default { ...@@ -191,14 +198,14 @@ export default {
margin-left: auto; margin-left: auto;
.btn { .btn {
margin-left: 16rpx; margin-left: toRpx(16);
padding: 0 32rpx; padding: 0 toRpx(32);
border-radius: 8rpx; border-radius: toRpx(8);
border: 2rpx solid #DCE1E6; border: toRpx(2) solid #DCE1E6;
color: #292D33; color: #292D33;
font-size: 26rpx; font-size: toRpx(26);
height: 56rpx; height: toRpx(56);
line-height: 56rpx; line-height: toRpx(56);
} }
.primary-btn { .primary-btn {
...@@ -209,11 +216,11 @@ export default { ...@@ -209,11 +216,11 @@ export default {
.status { .status {
display: inline-block; display: inline-block;
padding: 0 32rpx; padding: 0 toRpx(32);
border-radius: 8rpx; border-radius: toRpx(8);
font-size: 24rpx; font-size: toRpx(24);
line-height: 56rpx; line-height: toRpx(56);
height: 56rpx; height: toRpx(56);
background-color: #ECECEC; background-color: #ECECEC;
color: #999EA8; color: #999EA8;
...@@ -221,33 +228,37 @@ export default { ...@@ -221,33 +228,37 @@ export default {
background-color: #EAF9F1; background-color: #EAF9F1;
color: #35C376; color: #35C376;
} }
&.failed {
background-color: #FDECE9;
color: #F24724;
}
} }
} }
&-content { &-content {
background-color: #fff; background-color: #fff;
padding: 28rpx 32rpx; padding: toRpx(28) toRpx(32);
border-radius: 32rpx; border-radius: toRpx(32);
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 28rpx 40rpx; gap: toRpx(28) toRpx(40);
.content-item { .content-item {
width: calc(50% - 20rpx); width: calc(50% - #{toRpx(20)});
font-size: 26rpx; font-size: toRpx(26);
&-title { &-title {
color: #999EA8; color: #999EA8;
flex-shrink: 0; flex-shrink: 0;
width: 120rpx; width: toRpx(120);
} }
&-content { &-content {
width: calc(100% - 136rpx); width: calc(100% - #{toRpx(136)});
color: #292D33; color: #292D33;
flex-shrink: 0; flex-shrink: 0;
margin-left: 16rpx; margin-left: toRpx(16);
.link { .link {
&-text { &-text {
...@@ -255,7 +266,7 @@ export default { ...@@ -255,7 +266,7 @@ export default {
} }
.copy { .copy {
margin-left: 16rpx; margin-left: toRpx(16);
color: #2C66F7; color: #2C66F7;
flex-shrink: 0; flex-shrink: 0;
} }
...@@ -263,16 +274,16 @@ export default { ...@@ -263,16 +274,16 @@ export default {
.video, .video,
.image { .image {
width: 160rpx; width: toRpx(160);
height: 160rpx; height: toRpx(160);
border-radius: 16rpx; border-radius: toRpx(16);
} }
.img-box { .img-box {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 24rpx; gap: toRpx(24);
} }
} }
} }
......
...@@ -141,21 +141,23 @@ export default { ...@@ -141,21 +141,23 @@ export default {
.customer-box { .customer-box {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 32rpx 40rpx 0; padding: toRpx(32) toRpx(40) 0;
box-sizing: border-box; box-sizing: border-box;
.sprite-icon { .sprite-icon {
margin-right: 8rpx; margin-right: toRpx(8);
} }
.tips { .tips {
height: 64rpx; height: toRpx(64);
background: #2C66F70D; background: #2C66F70D;
padding: 0 24rpx; padding: 0 toRpx(24);
font-size: 26rpx; font-size: toRpx(26);
color: #6C6F75; color: #6C6F75;
border-radius: 20rpx; border-radius: toRpx(20);
.today{
line-height: toRpx(38);
}
.text { .text {
margin-left: auto; margin-left: auto;
} }
...@@ -163,15 +165,16 @@ export default { ...@@ -163,15 +165,16 @@ export default {
.tabs-box { .tabs-box {
display: flex; display: flex;
margin: 28rpx 0; margin: toRpx(28) 0;
gap: 28rpx; gap: toRpx(28);
.tab { .tab {
height: 64rpx; line-height: toRpx(64);
padding: 0 32rpx; height: toRpx(64);
border-radius: 16rpx; padding: 0 toRpx(32);
border-radius: toRpx(16);
background: #F2F2F2; background: #F2F2F2;
font-size: 28rpx; font-size: toRpx(28);
color: #292D33; color: #292D33;
justify-content: center; justify-content: center;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
......
...@@ -102,7 +102,14 @@ export default { ...@@ -102,7 +102,14 @@ export default {
}, },
handleClick(item) { handleClick(item) {
// 这里可以根据实际需求进行跳转或功能处理 // 这里可以根据实际需求进行跳转或功能处理
uni.showLoading({
title: '跳转中...',
mask: true
})
this.$emit('entranceClick', item) this.$emit('entranceClick', item)
setTimeout(() => {
uni.hideLoading()
}, 500)
}, },
isNewVersionNeed(merchantId) { isNewVersionNeed(merchantId) {
return uni.$api.dailyTemplateApi.isNewVersionNeed({ merchantId }) return uni.$api.dailyTemplateApi.isNewVersionNeed({ merchantId })
......
...@@ -834,6 +834,7 @@ export default { ...@@ -834,6 +834,7 @@ export default {
] ]
this.activityProductList = res this.activityProductList = res
// console.log('查询当前进行中的营销活动商品列表:', res) // console.log('查询当前进行中的营销活动商品列表:', res)
this.$store.state.boutique.boutiqueActivityData = res
}, },
/** /**
......
...@@ -313,7 +313,6 @@ export default { ...@@ -313,7 +313,6 @@ export default {
}, },
carInfo: { carInfo: {
handler (newval) { handler (newval) {
console.log(newval, '===')
this.pageParams.carInfo = { this.pageParams.carInfo = {
carChildsBrandId: newval.carChildsBrandId, carChildsBrandId: newval.carChildsBrandId,
carChildsBrandName: newval.carChildsBrandName, carChildsBrandName: newval.carChildsBrandName,
...@@ -446,7 +445,6 @@ export default { ...@@ -446,7 +445,6 @@ export default {
this.pageParams.customerQr = data this.pageParams.customerQr = data
if (customerInfo.inviteRecordId) this.customerInfo = customerInfo if (customerInfo.inviteRecordId) this.customerInfo = customerInfo
console.log(customerInfo)
} else throw '生成小程序码失败,请重试!' } else throw '生成小程序码失败,请重试!'
} else throw message } else throw message
...@@ -471,7 +469,6 @@ export default { ...@@ -471,7 +469,6 @@ export default {
this.$refs.couponPopup?.close() this.$refs.couponPopup?.close()
}, },
handleSelect (item, popkey) { handleSelect (item, popkey) {
console.log(item, popkey)
this.$refs[popkey].close(); this.$refs[popkey].close();
if (popkey == "employeeBoxVisible") { if (popkey == "employeeBoxVisible") {
this.customerInfo.salesUuid = item.uuid; this.customerInfo.salesUuid = item.uuid;
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
blockIndex: 0, blockIndex: 0,
secondIndex: 0, secondIndex: 0,
thirdlyIndex: 0, thirdlyIndex: 0,
goodsIndex: 0, goodsIndex: -1,
contentHeight: '0', contentHeight: '0',
currentItem: {}, currentItem: {},
goodsList: [], goodsList: [],
...@@ -90,9 +90,10 @@ export default { ...@@ -90,9 +90,10 @@ export default {
changeCar(newval) { changeCar(newval) {
this.goodsList = [] this.goodsList = []
let { activityData, tabIndex } = this let { activityData, tabIndex } = this
let carSeriesList = activityData[tabIndex].carSeriesList, let carSeriesList = activityData[tabIndex].carSeriesList,
data = carSeriesList.find(e => e.carSeriesId == newval) data = carSeriesList.find(e => e.carSeriesId == newval)
if (data) { if (data) {
this.goodsIndex = -1
this.setGoodsList(data.productList) this.setGoodsList(data.productList)
this.$emit('noActivity', false) this.$emit('noActivity', false)
} else this.$emit('noActivity', true) } else this.$emit('noActivity', true)
...@@ -117,26 +118,19 @@ export default { ...@@ -117,26 +118,19 @@ export default {
this.goodsList = [] this.goodsList = []
this.flagObject.goodsFlag = false this.flagObject.goodsFlag = false
data.map(e => { data.map(e => {
console.log(e)
if (e.tabDescription) e.tabDescription = e.tabDescription.replace(/<\/?br\s*\/?>|\\n|\n/g, '<br>') if (e.tabDescription) e.tabDescription = e.tabDescription.replace(/<\/?br\s*\/?>|\\n|\n/g, '<br>')
}) })
this.goodsList = data this.goodsList = data
this.flagObject.goodsFlag = true this.flagObject.goodsFlag = true
this.flagObject.scrollTop = -100 this.flagObject.scrollTop = -100
this.changeGoods(data[0], 0, false)
setTimeout(() => { setTimeout(() => {
this.setScrollHeight() this.setScrollHeight()
}, 500) this.changeGoods(data[0], 0, false)
}, 200)
}, },
changePreView() { changePreView() {
this.$emit('changePreView', this.currentItem) this.$emit('changePreView', this.currentItem)
}, },
// setGoodsData(data, key) {
// let goodsList = []
// console.log(goodsList)
// return goodsList
// },
statusText(status) { statusText(status) {
return status == 1 ? '主推' : '次推' return status == 1 ? '主推' : '次推'
}, },
...@@ -169,7 +163,7 @@ export default { ...@@ -169,7 +163,7 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
justify-content: center; justify-content: center;
background: linear-gradient(90deg, #5C8AFF 0%, #49B6FF 100%); background: linear-gradient(90deg, #5C8AFF 0%, #49B6FF 100%);
padding: 0 20rpx; padding: 0 toRpx(20);
border-radius: 0 toRpx(16) 0 toRpx(16); border-radius: 0 toRpx(16) 0 toRpx(16);
} }
...@@ -223,8 +217,8 @@ export default { ...@@ -223,8 +217,8 @@ export default {
&::after { &::after {
position: absolute; position: absolute;
content: ''; content: '';
width: 296rpx; width: toRpx(296);
height: 228rpx; height: toRpx(228);
top: 0; top: 0;
right: 0; right: 0;
background: url('https://img02.glsx.com.cn/weapp/resource/app-tape/common/goods-status-1.webp') no-repeat center center; background: url('https://img02.glsx.com.cn/weapp/resource/app-tape/common/goods-status-1.webp') no-repeat center center;
......
...@@ -47,14 +47,15 @@ ...@@ -47,14 +47,15 @@
<template v-if="showActivity"> <template v-if="showActivity">
<view class="sku-box"> <view class="sku-box">
<goods-box :currentCar="currentCarId" :activityData="activityData" <goods-box :currentCar="currentCarId" :activityData="activityData"
:show="show && [0, 1].includes(tabIndex)" @changePreView="changePreView" ref="goodsBox" :show="show && [0, 1].includes(tabIndex)" @changePreView="currentItem = $event" ref="goodsBox"
:tabIndex="tabIndex" @noActivity="noActivity = $event" /> :tabIndex="tabIndex" @noActivity="setNoActivity" />
</view> </view>
</template> </template>
<template v-else> <template v-else>
<view :class="['sku-box', isPreview ? 'preview' : '']"> <view :class="['sku-box', isPreview ? 'preview' : '']">
<sku-box :currentCar="currentCarId" :defaultTabId="tabId" :show="show && tabIndex == 0" <sku-box :currentCar="currentCarId" :defaultTabId="tabId"
@changePreView="changePreView" ref="sku" /> :show="show && !showActivity && (tabIndex != tabs.length - 1)" @changePreView="changePreView"
ref="sku" />
</view> </view>
</template> </template>
<view class="coupon-btn flex" v-if="!isPreview" @click="couponPopupRef.open(customerType, customerInfo)"> <view class="coupon-btn flex" v-if="!isPreview" @click="couponPopupRef.open(customerType, customerInfo)">
...@@ -154,18 +155,8 @@ export default { ...@@ -154,18 +155,8 @@ export default {
}, },
show: { show: {
immediate: true, immediate: true,
async handler(newval) { handler(newval) {
if (newval) { if (newval) {
console.log(this.activityData)
if (!this.activityData.length) {
const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo,
data = await uni.$api.activityApi.getActivityProductListAPI({
merchantId: shopMerchantId
})
this.activityData = data
this.currentItem = null
}
this.isSelect = false this.isSelect = false
let index = 0 let index = 0
if (this.hasBeforeActivity || this.hasAfterActivity) { if (this.hasBeforeActivity || this.hasAfterActivity) {
...@@ -175,7 +166,15 @@ export default { ...@@ -175,7 +166,15 @@ export default {
if (newval && this.currentItem && this.tabIndex == index) this.changePreView(this.currentItem, false, false) if (newval && this.currentItem && this.tabIndex == index) this.changePreView(this.currentItem, false, false)
} }
} }
} },
boutiqueActivityData: {
immediate: true,
deep: true,
handler(newval) {
this.activityData = newval || []
if (newval.length) this.currentItem = null
}
},
}, },
computed: { computed: {
...@@ -210,6 +209,9 @@ export default { ...@@ -210,6 +209,9 @@ export default {
boutiqueMediaConfig() { boutiqueMediaConfig() {
return this.$store.state.user.boutiqueMediaConfig return this.$store.state.user.boutiqueMediaConfig
}, },
boutiqueActivityData() {
return this.$store.state.boutique.boutiqueActivityData || []
},
/**是否有选装项目 */ /**是否有选装项目 */
hasOptionals() { hasOptionals() {
let flag = false let flag = false
...@@ -230,6 +232,14 @@ export default { ...@@ -230,6 +232,14 @@ export default {
return tabs return tabs
}, },
hasBeforeActivity() { hasBeforeActivity() {
// let { currentCarId } = this,
// hasBeforeActivity = this.activityData.some(e => e.marketingStage == 0),
// hasCar = false
// this.activityData.forEach(e => {
// if (!hasCar) e.carSeriesList.some(e => e.carSeriesId == currentCarId)
// })
// return hasBeforeActivity && hasCar
return this.activityData.some(e => e.marketingStage == 0) return this.activityData.some(e => e.marketingStage == 0)
}, },
hasAfterActivity() { hasAfterActivity() {
...@@ -239,7 +249,6 @@ export default { ...@@ -239,7 +249,6 @@ export default {
methods: { methods: {
changeCar(item) { changeCar(item) {
console.log(item)
if (this.change_disabled || this.currentCarId == item.carModelId) return uni.hideLoading() if (this.change_disabled || this.currentCarId == item.carModelId) return uni.hideLoading()
this.currentCarString = item.carModelName this.currentCarString = item.carModelName
this.currentCarId = item.carModelId this.currentCarId = item.carModelId
...@@ -341,7 +350,11 @@ export default { ...@@ -341,7 +350,11 @@ export default {
{ carList } = this { carList } = this
if (index != 0 && item.id == carList[index - 1].id) result = false if (index != 0 && item.id == carList[index - 1].id) result = false
return result return result
} },
setNoActivity(val) {
this.noActivity = val
if (val) this.currentItem = null
},
} }
} }
</script> </script>
...@@ -473,7 +486,7 @@ export default { ...@@ -473,7 +486,7 @@ export default {
.img-bg-1 { .img-bg-1 {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 718rpx; height: toRpx(718);
background: #fff; background: #fff;
opacity: 0.6; opacity: 0.6;
z-index: -1; z-index: -1;
...@@ -482,7 +495,7 @@ export default { ...@@ -482,7 +495,7 @@ export default {
.img-bg-2 { .img-bg-2 {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 766rpx; height: toRpx(766);
background: #fff; background: #fff;
opacity: 0.3; opacity: 0.3;
z-index: -2; z-index: -2;
...@@ -497,7 +510,7 @@ export default { ...@@ -497,7 +510,7 @@ export default {
zoom: 2; zoom: 2;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
z-index: -3; z-index: -3;
filter: blur(64rpx); filter: blur(toRpx(64));
.icon { .icon {
width: 100%; width: 100%;
...@@ -607,7 +620,7 @@ export default { ...@@ -607,7 +620,7 @@ export default {
background: #fff; background: #fff;
border-radius: toRpx(16); border-radius: toRpx(16);
transition: all 0.15s; transition: all 0.15s;
box-shadow: 0px 2rpx 6rpx 0px #0000001A; box-shadow: 0px toRpx(2) toRpx(6) 0px #0000001A;
} }
.block-0 { .block-0 {
...@@ -641,16 +654,17 @@ export default { ...@@ -641,16 +654,17 @@ export default {
line-height: toRpx(44); line-height: toRpx(44);
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: -1;
.icon { .icon {
width: 300rpx; width: toRpx(300);
height: 236rpx; height: toRpx(236);
margin-bottom: 8rpx; margin-bottom: toRpx(8);
} }
.text { .text {
font-size: 26rpx; font-size: toRpx(26);
line-height: 28rpx; line-height: toRpx(28);
color: #999EA8; color: #999EA8;
} }
} }
......
...@@ -213,17 +213,17 @@ export default { ...@@ -213,17 +213,17 @@ export default {
.box { .box {
width: 46vw; width: 46vw;
height: 100vh; height: 100vh;
border-radius: 32rpx 0 0 32rpx; border-radius: toRpx(32) 0 0 toRpx(32);
background-color: #fff; background-color: #fff;
.popup-title { .popup-title {
height: 112rpx; height: toRpx(112);
position: relative; position: relative;
justify-content: center; justify-content: center;
color: #333333; color: #333333;
font-size: 36rpx; font-size: toRpx(36);
font-weight: 500; font-weight: 500;
line-height: 48rpx; line-height: toRpx(48);
.text { .text {
max-width: 50%; max-width: 50%;
...@@ -242,9 +242,9 @@ export default { ...@@ -242,9 +242,9 @@ export default {
.popup-calendar { .popup-calendar {
position: relative; position: relative;
height: 96rpx; height: toRpx(96);
justify-content: center; justify-content: center;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 700; font-weight: 700;
color: #37393D; color: #37393D;
...@@ -257,62 +257,62 @@ export default { ...@@ -257,62 +257,62 @@ export default {
position: absolute; position: absolute;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
width: 56rpx; width: toRpx(56);
height: 56rpx; height: toRpx(56);
border-radius: 16rpx; border-radius: toRpx(16);
justify-content: center; justify-content: center;
border: 2rpx solid #DCDFE6; border: toRpx(2) solid #DCDFE6;
font-weight: 400; font-weight: 400;
} }
&-right { &-right {
right: 90rpx; right: toRpx(90);
} }
&-left { &-left {
left: 90rpx; left: toRpx(90);
} }
} }
.popup-content { .popup-content {
height: calc(100vh - 368rpx); height: calc(100vh - #{toRpx(368)});
overflow-y: auto; overflow-y: auto;
box-sizing: border-box; box-sizing: border-box;
padding: 0; padding: 0;
.customer-list { .customer-list {
width: 100%; width: 100%;
padding: 0 16rpx; padding: 0 toRpx(16);
.list-header { .list-header {
display: flex; display: flex;
align-items: center; align-items: center;
background-color: #EDF3FF; background-color: #EDF3FF;
padding: 0; padding: 0;
border-bottom: 2rpx solid #F5F7FA; border-bottom: toRpx(2) solid #F5F7FA;
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 10; z-index: 10;
.header-item { .header-item {
font-size: 28rpx; font-size: toRpx(28);
color: #000; color: #000;
font-weight: 500; font-weight: 500;
padding: 28rpx 0 28rpx 24rpx; padding: toRpx(28) 0 toRpx(28) toRpx(24);
} }
.checkbox-col { .checkbox-col {
width: 102rpx; width: toRpx(102);
min-width: 102rpx; min-width: toRpx(102);
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
align-items: center; align-items: center;
.custom-checkbox { .custom-checkbox {
width: 28rpx; width: toRpx(28);
height: 28rpx; height: toRpx(28);
border: 2.4rpx solid #DCDFE6; border: toRpx(2) solid #DCDFE6;
border-radius: 8rpx; border-radius: toRpx(8);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -330,8 +330,8 @@ export default { ...@@ -330,8 +330,8 @@ export default {
border-color: #2c66f7; border-color: #2c66f7;
.partial-indicator { .partial-indicator {
width: 16rpx; width: toRpx(16);
height: 3rpx; height: toRpx(3);
background-color: #ffffff; background-color: #ffffff;
} }
} }
...@@ -351,7 +351,7 @@ export default { ...@@ -351,7 +351,7 @@ export default {
} }
.phone-col { .phone-col {
width: 224rpx; width: toRpx(224);
flex-shrink: 0; flex-shrink: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -359,7 +359,7 @@ export default { ...@@ -359,7 +359,7 @@ export default {
} }
.car-col { .car-col {
width: 208rpx; width: toRpx(208);
flex-shrink: 0; flex-shrink: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -367,7 +367,7 @@ export default { ...@@ -367,7 +367,7 @@ export default {
} }
.date-col { .date-col {
width: 218rpx; width: toRpx(218);
flex-shrink: 0; flex-shrink: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -380,7 +380,7 @@ export default { ...@@ -380,7 +380,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0; padding: 0;
border-bottom: 1rpx solid #F5F7FA; border-bottom: toRpx(2) solid #F5F7FA;
transition: background-cols; transition: background-cols;
&.selected { &.selected {
...@@ -392,24 +392,24 @@ export default { ...@@ -392,24 +392,24 @@ export default {
} }
.row-item { .row-item {
font-size: 28rpx; font-size: toRpx(28);
color: #333333; color: #333333;
padding: 28rpx 0 28rpx 24rpx; padding: toRpx(28) 0 toRpx(28) toRpx(24);
line-height: 40rpx; line-height: toRpx(40);
} }
.checkbox-col { .checkbox-col {
width: 102rpx; width: toRpx(102);
min-width: 102rpx; min-width: toRpx(102);
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
align-items: center; align-items: center;
.custom-checkbox { .custom-checkbox {
width: 28rpx; width: toRpx(28);
height: 28rpx; height: toRpx(28);
border: 2.4rpx solid #DCDFE6; border: toRpx(2) solid #DCDFE6;
border-radius: 8rpx; border-radius: toRpx(8);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -427,8 +427,8 @@ export default { ...@@ -427,8 +427,8 @@ export default {
border-color: #2c66f7; border-color: #2c66f7;
.partial-indicator { .partial-indicator {
width: 16rpx; width: toRpx(16);
height: 3rpx; height: toRpx(3);
background-color: #ffffff; background-color: #ffffff;
} }
} }
...@@ -444,7 +444,7 @@ export default { ...@@ -444,7 +444,7 @@ export default {
} }
.phone-col { .phone-col {
width: 224rpx; width: toRpx(224);
flex-shrink: 0; flex-shrink: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -452,7 +452,7 @@ export default { ...@@ -452,7 +452,7 @@ export default {
} }
.car-col { .car-col {
width: 208rpx; width: toRpx(208);
flex-shrink: 0; flex-shrink: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -460,7 +460,7 @@ export default { ...@@ -460,7 +460,7 @@ export default {
} }
.date-col { .date-col {
width: 218rpx; width: toRpx(218);
flex-shrink: 0; flex-shrink: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -472,15 +472,15 @@ export default { ...@@ -472,15 +472,15 @@ export default {
} }
.popup-footer { .popup-footer {
padding: 16rpx 0 64rpx 0; padding: toRpx(16) 0 toRpx(64) 0;
justify-content: center; justify-content: center;
gap: 0 32rpx; gap: 0 toRpx(32);
margin: 0 48rpx; margin: 0 toRpx(48);
.del { .del {
border-radius: 64rpx; border-radius: toRpx(64);
background: #2c66f71a; background: #2c66f71a;
padding: 20rpx 32rpx; padding: toRpx(20) toRpx(32);
} }
.popup-btn { .popup-btn {
...@@ -488,11 +488,11 @@ export default { ...@@ -488,11 +488,11 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%; width: 100%;
height: 80rpx; height: toRpx(80);
border-radius: 64rpx; border-radius: toRpx(64);
background: #f0f1f5; background: #f0f1f5;
color: #333333; color: #333333;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
transition: all 0.2s; transition: all 0.2s;
} }
......
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
.daily-report { .daily-report {
height: 100%; height: 100%;
position: relative; position: relative;
padding: 48rpx 0; padding: toRpx(48) 0;
.common-title { .common-title {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -121,20 +121,20 @@ export default { ...@@ -121,20 +121,20 @@ export default {
.report-content { .report-content {
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
border-radius: 32rpx; border-radius: toRpx(32);
background: #fff; background: #fff;
margin: 0 48rpx; margin: 0 toRpx(48);
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 32rpx; padding-bottom: toRpx(32);
} }
.list-box { .list-box {
padding-left: 32rpx; padding-left: toRpx(32);
overflow-x: auto; overflow-x: auto;
.list-title { .list-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 0 24rpx; padding: toRpx(32) 0 toRpx(24);
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 50; z-index: 50;
......
...@@ -92,7 +92,6 @@ export default { ...@@ -92,7 +92,6 @@ export default {
this.getTodayPlanStoreCount() this.getTodayPlanStoreCount()
}, 200) }, 200)
}, },
immediate: true,
deep: true deep: true
}, },
ReportStatus: { ReportStatus: {
...@@ -212,51 +211,51 @@ export default { ...@@ -212,51 +211,51 @@ export default {
position: relative; position: relative;
.fixed-box { .fixed-box {
height: 144rpx; height: toRpx(144);
box-sizing: border-box; box-sizing: border-box;
padding: 48rpx 48rpx 32rpx; padding: toRpx(48) toRpx(48) toRpx(32);
position: relative; position: relative;
z-index: 2; z-index: 2;
.fixed-title { .fixed-title {
font-size: 34rpx; font-size: toRpx(34);
font-weight: 500; font-weight: 500;
line-height: 40rpx; line-height: toRpx(40);
color: #292D33; color: #292D33;
.sprite-icon { .sprite-icon {
margin-right: 18rpx; margin-right: toRpx(18);
} }
.text-primary { .text-primary {
margin-left: 18rpx; margin-left: toRpx(18);
color: #2c66f7; color: #2c66f7;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 700; font-weight: 700;
} }
} }
.fixed-btn { .fixed-btn {
margin-left: auto; margin-left: auto;
height: 64rpx; height: toRpx(64);
border-radius: 16rpx; border-radius: toRpx(16);
border: 2rpx solid #2C66F71A; border: toRpx(2) solid #2C66F71A;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
color: #2C66F7; color: #2C66F7;
font-size: 28rpx; font-size: toRpx(28);
padding: 0 32rpx; padding: 0 toRpx(32);
gap: 8rpx; gap: toRpx(8);
background-color: #2C66F70D; background-color: #2C66F70D;
} }
} }
&-container { &-container {
height: calc(100% - #{toRpx(280)}); height: calc(100% - #{toRpx(280)});
padding: 0 48rpx; padding: 0 toRpx(48);
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
// transform: translateY(48rpx); // transform: translateY(toRpx(48));
} }
.common-title { .common-title {
...@@ -271,35 +270,35 @@ export default { ...@@ -271,35 +270,35 @@ export default {
.list-box { .list-box {
width: 100%; width: 100%;
border-radius: 16rpx; border-radius: toRpx(16);
background: #fff; background: #fff;
padding: 0 0 32rpx 32rpx; padding: 0 0 toRpx(32) toRpx(32);
margin-bottom: 32rpx; margin-bottom: toRpx(32);
.list-title { .list-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 32rpx 24rpx 0; padding: toRpx(32) toRpx(32) toRpx(24) 0;
transition: all .25s ease-in-out; transition: all .25s ease-in-out;
.add { .add {
margin-left: auto; margin-left: auto;
height: 64rpx; height: toRpx(64);
padding: 20rpx 32rpx; padding: toRpx(20) toRpx(32);
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 32rpx; border-radius: toRpx(32);
background: #2c66f71a; background: #2c66f71a;
font-size: 30rpx; font-size: toRpx(30);
font-weight: 500; font-weight: 500;
color: #2c66f7; color: #2c66f7;
&-icon { &-icon {
position: relative; position: relative;
width: 28rpx; width: toRpx(28);
height: 28rpx; height: toRpx(28);
margin-right: 10rpx; margin-right: toRpx(10);
&::before, &::before,
&::after { &::after {
...@@ -309,17 +308,17 @@ export default { ...@@ -309,17 +308,17 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background: #4673ff; background: #4673ff;
border-radius: 4rpx; border-radius: toRpx(4);
} }
&::before { &::before {
width: 4rpx; width: toRpx(4);
height: 28rpx; height: toRpx(28);
} }
&::after { &::after {
width: 28rpx; width: toRpx(28);
height: 4rpx; height: toRpx(4);
} }
} }
} }
...@@ -334,25 +333,25 @@ export default { ...@@ -334,25 +333,25 @@ export default {
padding-bottom: 0; padding-bottom: 0;
.list-title { .list-title {
padding-bottom: 32rpx; padding-bottom: toRpx(32);
} }
} }
.footer { .footer {
// transform: translateY(48rpx); // transform: translateY(toRpx(48));
height: 136rpx; height: toRpx(136);
.btn { .btn {
margin: 0 168rpx; margin: 0 toRpx(168);
width: 100%; width: 100%;
height: 80rpx; height: toRpx(80);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 80rpx; border-radius: toRpx(80);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff; color: #ffffff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
} }
......
...@@ -137,25 +137,25 @@ export default { ...@@ -137,25 +137,25 @@ export default {
.content { .content {
height: calc(100% - #{toRpx(120)}); height: calc(100% - #{toRpx(120)});
overflow-y: auto; overflow-y: auto;
padding: 0 48rpx 32rpx; padding: 0 toRpx(48) toRpx(32);
box-sizing: border-box; box-sizing: border-box;
} }
.divider { .divider {
color: #333333; color: #333333;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
line-height: 48rpx; line-height: toRpx(48);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
padding-top: 16rpx; padding-top: toRpx(16);
} }
.item { .item {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
gap: 32rpx; gap: toRpx(32);
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx 16rpx; padding: 0 toRpx(32) toRpx(16);
font-size: 28rpx; font-size: toRpx(28);
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
.label, .label,
...@@ -168,29 +168,29 @@ export default { ...@@ -168,29 +168,29 @@ export default {
} }
} }
.item.before-divider { .item.before-divider {
padding-bottom: 28rpx; padding-bottom: toRpx(28);
border-radius: 0 0 16rpx 16rpx; border-radius: 0 0 toRpx(16) toRpx(16);
} }
.frist { .frist {
padding-top: 28rpx; padding-top: toRpx(28);
border-radius: 16rpx 16rpx 0 0; border-radius: toRpx(16) toRpx(16) 0 0;
} }
.group-box { .group-box {
width: 100%; width: 100%;
margin-top: 16rpx; margin-top: toRpx(16);
.group-title { .group-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 16rpx 0 24rpx; padding: toRpx(16) 0 toRpx(24);
} }
.group-list { .group-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 12rpx; gap: toRpx(12);
border-radius: 16rpx; border-radius: toRpx(16);
background: #fff; background: #fff;
padding: 28rpx 32rpx; padding: toRpx(28) toRpx(32);
.item { .item {
padding: 0; padding: 0;
} }
......
...@@ -192,17 +192,17 @@ export default { ...@@ -192,17 +192,17 @@ export default {
&-container { &-container {
height: calc(100% - #{toRpx(256)}); height: calc(100% - #{toRpx(256)});
padding: 0 48rpx; padding: 0 toRpx(48);
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 24rpx 32rpx; gap: toRpx(24) toRpx(32);
align-content: start; align-content: start;
.list-item, .list-item,
.form-item { .form-item {
width: calc((100% - 32rpx) / 2); width: calc((100% - #{toRpx(32)}) / 2);
} }
.block { .block {
...@@ -211,14 +211,14 @@ export default { ...@@ -211,14 +211,14 @@ export default {
.divider { .divider {
color: #999999; color: #999999;
font-size: 24rpx; font-size: toRpx(24);
line-height: 32rpx; line-height: toRpx(32);
position: relative; position: relative;
justify-content: center; justify-content: center;
.text { .text {
position: relative; position: relative;
padding: 0 24rpx; padding: 0 toRpx(24);
} }
&::before, &::before,
...@@ -243,18 +243,18 @@ export default { ...@@ -243,18 +243,18 @@ export default {
.list-box { .list-box {
width: 100%; width: 100%;
border-radius: 32rpx; border-radius: toRpx(32);
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 24rpx 32rpx; gap: toRpx(24) toRpx(32);
.list-title { .list-title {
color: #333333; color: #333333;
width: 100%; width: 100%;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
line-height: 48rpx; line-height: toRpx(48);
padding: 8rpx 32rpx 0 0; padding: toRpx(8) toRpx(32) 0 0;
} }
} }
...@@ -267,19 +267,19 @@ export default { ...@@ -267,19 +267,19 @@ export default {
position: absolute; position: absolute;
width: calc(100% - #{toRpx(96)}); width: calc(100% - #{toRpx(96)});
height: calc(100% - #{toRpx(80)}); height: calc(100% - #{toRpx(80)});
border-radius: 32rpx; border-radius: toRpx(32);
background: #fff; background: #fff;
top: 48rpx; top: toRpx(48);
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
padding: 0 0 32rpx 32rpx; padding: 0 0 toRpx(32) toRpx(32);
overflow-x: auto; overflow-x: auto;
.list-title { .list-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 0 24rpx; padding: toRpx(32) 0 toRpx(24);
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 50; z-index: 50;
...@@ -288,19 +288,19 @@ export default { ...@@ -288,19 +288,19 @@ export default {
} }
.footer { .footer {
height: 136rpx; height: toRpx(136);
.btn { .btn {
margin: 0 168rpx; margin: 0 toRpx(168);
width: 100%; width: 100%;
height: 80rpx; height: toRpx(80);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 80rpx; border-radius: toRpx(80);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff; color: #ffffff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
} }
......
...@@ -132,27 +132,27 @@ export default { ...@@ -132,27 +132,27 @@ export default {
.content { .content {
height: calc(100% - #{toRpx(120)}); height: calc(100% - #{toRpx(120)});
overflow-y: auto; overflow-y: auto;
padding: 0 48rpx 32rpx; padding: 0 toRpx(48) toRpx(32);
box-sizing: border-box; box-sizing: border-box;
} }
.divider { .divider {
color: #333333; color: #333333;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
line-height: 48rpx; line-height: toRpx(48);
margin-bottom: 24rpx; margin-bottom: toRpx(24);
padding-top: 16rpx; padding-top: toRpx(16);
} }
.item { .item {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
gap: 32rpx; gap: toRpx(32);
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx 16rpx; padding: 0 toRpx(32) toRpx(16);
font-size: 28rpx; font-size: toRpx(28);
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
...@@ -168,30 +168,30 @@ export default { ...@@ -168,30 +168,30 @@ export default {
} }
.item.before-divider { .item.before-divider {
padding-bottom: 28rpx; padding-bottom: toRpx(28);
border-radius: 0 0 16rpx 16rpx; border-radius: 0 0 toRpx(16) toRpx(16);
} }
.divider+.item, .divider+.item,
.frist { .frist {
padding-top: 28rpx; padding-top: toRpx(28);
border-radius: 16rpx 16rpx 0 0; border-radius: toRpx(16) toRpx(16) 0 0;
} }
.list-box { .list-box {
// position: absolute; // position: absolute;
width: 100%; width: 100%;
border-radius: 16rpx; border-radius: toRpx(16);
background: #fff; background: #fff;
padding: 0 0 32rpx 32rpx; padding: 0 0 toRpx(32) toRpx(32);
overflow-x: auto; overflow-x: auto;
margin-top: 16rpx; margin-top: toRpx(16);
.list-title { .list-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 0 24rpx; padding: toRpx(32) 0 toRpx(24);
} }
} }
} }
......
...@@ -235,15 +235,15 @@ export default { ...@@ -235,15 +235,15 @@ export default {
&-container { &-container {
height: calc(100% - #{toRpx(256)}); height: calc(100% - #{toRpx(256)});
padding: 0 48rpx; padding: 0 toRpx(48);
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 24rpx 32rpx; gap: toRpx(24) toRpx(32);
align-content: start; align-content: start;
.list-item { .list-item {
width: calc(50% - 16rpx); width: calc(50% - #{toRpx(16)});
} }
.block { .block {
...@@ -252,14 +252,14 @@ export default { ...@@ -252,14 +252,14 @@ export default {
.divider { .divider {
color: #999999; color: #999999;
font-size: 24rpx; font-size: toRpx(24);
line-height: 32rpx; line-height: toRpx(32);
position: relative; position: relative;
justify-content: center; justify-content: center;
.text { .text {
position: relative; position: relative;
padding: 0 24rpx; padding: 0 toRpx(24);
flex-shrink: 0; flex-shrink: 0;
} }
...@@ -275,35 +275,35 @@ export default { ...@@ -275,35 +275,35 @@ export default {
.list-box { .list-box {
width: 100%; width: 100%;
border-radius: 16rpx; border-radius: toRpx(16);
background: #fff; background: #fff;
padding: 0 0 32rpx 32rpx; padding: 0 0 toRpx(32) toRpx(32);
margin-top: 8rpx; margin-top: toRpx(8);
.list-title { .list-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 32rpx 24rpx 0; padding: toRpx(32) toRpx(32) toRpx(24) 0;
transition: all .25s ease-in-out; transition: all .25s ease-in-out;
.add { .add {
margin-left: auto; margin-left: auto;
height: 64rpx; height: toRpx(64);
padding: 20rpx 32rpx; padding: toRpx(20) toRpx(32);
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 32rpx; border-radius: toRpx(32);
background: #2c66f71a; background: #2c66f71a;
font-size: 30rpx; font-size: toRpx(30);
font-weight: 500; font-weight: 500;
color: #2c66f7; color: #2c66f7;
&-icon { &-icon {
position: relative; position: relative;
width: 28rpx; width: toRpx(28);
height: 28rpx; height: toRpx(28);
margin-right: 10rpx; margin-right: toRpx(10);
&::before, &::before,
&::after { &::after {
...@@ -313,17 +313,17 @@ export default { ...@@ -313,17 +313,17 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background: #4673ff; background: #4673ff;
border-radius: 4rpx; border-radius: toRpx(4);
} }
&::before { &::before {
width: 4rpx; width: toRpx(4);
height: 28rpx; height: toRpx(28);
} }
&::after { &::after {
width: 28rpx; width: toRpx(28);
height: 4rpx; height: toRpx(4);
} }
} }
} }
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
padding-bottom: 0; padding-bottom: 0;
.list-title { .list-title {
padding-bottom: 32rpx; padding-bottom: toRpx(32);
} }
} }
} }
...@@ -346,19 +346,19 @@ export default { ...@@ -346,19 +346,19 @@ export default {
position: absolute; position: absolute;
width: calc(100% - #{toRpx(96)}); width: calc(100% - #{toRpx(96)});
height: calc(100% - #{toRpx(80)}); height: calc(100% - #{toRpx(80)});
border-radius: 32rpx; border-radius: toRpx(32);
background: #fff; background: #fff;
top: 48rpx; top: toRpx(48);
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
padding: 0 0 32rpx 32rpx; padding: 0 0 toRpx(32) toRpx(32);
overflow-x: auto; overflow-x: auto;
.list-title { .list-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 0 24rpx; padding: toRpx(32) 0 toRpx(24);
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 50; z-index: 50;
...@@ -367,7 +367,7 @@ export default { ...@@ -367,7 +367,7 @@ export default {
} }
.footer { .footer {
height: 136rpx; height: toRpx(136);
.footer-container { .footer-container {
justify-content: space-between; justify-content: space-between;
...@@ -375,14 +375,14 @@ export default { ...@@ -375,14 +375,14 @@ export default {
.btn { .btn {
width: calc(100% / 3 - #{toRpx(32)}); width: calc(100% / 3 - #{toRpx(32)});
height: 80rpx; height: toRpx(80);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 80rpx; border-radius: toRpx(80);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff; color: #ffffff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
} }
......
...@@ -189,19 +189,19 @@ export default { ...@@ -189,19 +189,19 @@ export default {
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
overflow-x: auto; overflow-x: auto;
gap: 16rpx; gap: toRpx(16);
padding: 48rpx 48rpx 32rpx; padding: toRpx(48) toRpx(48) toRpx(32);
.name-item { .name-item {
padding: 0 48rpx; padding: 0 toRpx(48);
height: 72rpx; height: toRpx(72);
color: #6c6f75; color: #6c6f75;
font-size: 28rpx; font-size: toRpx(28);
line-height: 40rpx; line-height: toRpx(40);
border-radius: 16rpx; border-radius: toRpx(16);
background: #f5f7fa; background: #f5f7fa;
box-sizing: border-box; box-sizing: border-box;
border: 2rpx solid #f5f7fa; border: toRpx(2) solid #f5f7fa;
} }
.active { .active {
...@@ -215,17 +215,17 @@ export default { ...@@ -215,17 +215,17 @@ export default {
.content { .content {
height: calc(100% - #{toRpx(152)}); height: calc(100% - #{toRpx(152)});
box-sizing: border-box; box-sizing: border-box;
margin: 0 48rpx; margin: 0 toRpx(48);
padding: 0 32rpx 32rpx; padding: 0 toRpx(32) toRpx(32);
border-radius: 32rpx; border-radius: toRpx(32);
background: #fff; background: #fff;
overflow-y: auto; overflow-y: auto;
.table-title { .table-title {
font-size: 32rpx; font-size: toRpx(32);
font-weight: 600; font-weight: 600;
line-height: 44rpx; line-height: toRpx(44);
padding: 32rpx 0 24rpx; padding: toRpx(32) 0 toRpx(24);
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 50; z-index: 50;
...@@ -235,19 +235,19 @@ export default { ...@@ -235,19 +235,19 @@ export default {
} }
.footer { .footer {
height: 136rpx; height: toRpx(136);
.btn { .btn {
margin: 0 168rpx; margin: 0 toRpx(168);
width: 100%; width: 100%;
height: 80rpx; height: toRpx(80);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 80rpx; border-radius: toRpx(80);
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
} }
} }
......
...@@ -285,8 +285,8 @@ export default { ...@@ -285,8 +285,8 @@ export default {
line-height: toRpx(40); line-height: toRpx(40);
width: 100%; width: 100%;
flex-shrink: 0; flex-shrink: 0;
margin: 16rpx 0; margin: toRpx(16) 0;
padding-left: 10rpx; padding-left: toRpx(10);
} }
.series-name { .series-name {
color: #555; color: #555;
...@@ -294,8 +294,8 @@ export default { ...@@ -294,8 +294,8 @@ export default {
line-height: toRpx(40); line-height: toRpx(40);
width: 100%; width: 100%;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 16rpx; margin-bottom: toRpx(16);
padding-left: 20rpx; padding-left: toRpx(20);
} }
} }
} }
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
display: flex; display: flex;
// gap: toRpx(32) 0; // gap: toRpx(32) 0;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 20rpx; padding: 0 toRpx(20);
.item { .item {
width: calc((100% - #{toRpx(96)}) / 4); width: calc((100% - #{toRpx(96)}) / 4);
justify-content: center; justify-content: center;
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
position: relative; position: relative;
color: #333333; color: #333333;
font-size: toRpx(32); font-size: toRpx(32);
padding: 10rpx 20rpx; padding: toRpx(10) toRpx(20);
box-sizing: border-box; box-sizing: border-box;
.sprite-icon { .sprite-icon {
display: none; display: none;
......
...@@ -211,17 +211,17 @@ export default { ...@@ -211,17 +211,17 @@ export default {
.box { .box {
width: 46vw; width: 46vw;
height: 100vh; height: 100vh;
border-radius: 32rpx 0 0 32rpx; border-radius: toRpx(32) 0 0 toRpx(32);
background-color: #fff; background-color: #fff;
.popup-title { .popup-title {
height: 112rpx; height: toRpx(112);
position: relative; position: relative;
justify-content: center; justify-content: center;
color: #333333; color: #333333;
font-size: 36rpx; font-size: toRpx(36);
font-weight: 500; font-weight: 500;
line-height: 48rpx; line-height: toRpx(48);
.popup-close { .popup-close {
position: absolute; position: absolute;
...@@ -235,19 +235,19 @@ export default { ...@@ -235,19 +235,19 @@ export default {
} }
.popup-content { .popup-content {
height: calc(100vh - 272rpx); height: calc(100vh - #{toRpx(272)});
overflow-y: auto; overflow-y: auto;
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx 0; padding: toRpx(16) 0;
.form-box { .form-box {
margin: 0 48rpx; margin: 0 toRpx(48);
padding: 32rpx; padding: toRpx(32);
border-radius: 24rpx; border-radius: toRpx(24);
background: #94c2ff33; background: #94c2ff33;
.form-item { .form-item {
margin-bottom: 16rpx; margin-bottom: toRpx(16);
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
...@@ -257,27 +257,27 @@ export default { ...@@ -257,27 +257,27 @@ export default {
} }
.popup-footer { .popup-footer {
padding: 16rpx 0 64rpx 0; padding: toRpx(16) 0 toRpx(64) 0;
justify-content: center; justify-content: center;
gap: 0 32rpx; gap: 0 toRpx(32);
margin: 0 48rpx; margin: 0 toRpx(48);
.del { .del {
border-radius: 64rpx; border-radius: toRpx(64);
background: #2c66f71a; background: #2c66f71a;
padding: 20rpx 32rpx; padding: toRpx(20) toRpx(32);
} }
.popup-btn { .popup-btn {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 412rpx; width: toRpx(412);
height: 80rpx; height: toRpx(80);
border-radius: 64rpx; border-radius: toRpx(64);
background: #f0f1f5; background: #f0f1f5;
color: #333333; color: #333333;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
} }
......
...@@ -24,6 +24,6 @@ ...@@ -24,6 +24,6 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
padding: 28rpx 32rpx; padding: toRpx(28) toRpx(32);
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -315,18 +315,18 @@ export default { ...@@ -315,18 +315,18 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.item { .item {
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
padding: 0 32rpx; padding: 0 toRpx(32);
border-radius: 16rpx; border-radius: toRpx(16);
background: #fff; background: #fff;
&-label { &-label {
color: #333333; color: #333333;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 400; font-weight: 400;
line-height: 40rpx; line-height: toRpx(40);
flex-shrink: 0; flex-shrink: 0;
padding-right: 8rpx; padding-right: toRpx(8);
.required { .required {
color: #f24724; color: #f24724;
...@@ -343,14 +343,14 @@ export default { ...@@ -343,14 +343,14 @@ export default {
text-align: right; text-align: right;
.radio { .radio {
margin-left: 28rpx; margin-left: toRpx(28);
::v-deep .uni-radio-input { ::v-deep .uni-radio-input {
width: 28rpx; width: toRpx(28);
height: 28rpx; height: toRpx(28);
&:before { &:before {
font-size: 20rpx; font-size: toRpx(20);
} }
} }
} }
...@@ -359,7 +359,7 @@ export default { ...@@ -359,7 +359,7 @@ export default {
.sprite-icon, .sprite-icon,
.unit { .unit {
flex-shrink: 0; flex-shrink: 0;
margin-left: 8rpx; margin-left: toRpx(8);
} }
} }
...@@ -369,7 +369,7 @@ export default { ...@@ -369,7 +369,7 @@ export default {
.picker, .picker,
.radio-group { .radio-group {
width: 100%; width: 100%;
font-size: 28rpx; font-size: toRpx(28);
border: none; border: none;
&::placeholder { &::placeholder {
...@@ -388,9 +388,9 @@ export default { ...@@ -388,9 +388,9 @@ export default {
} }
.textarea-item { .textarea-item {
height: 312rpx; height: toRpx(312);
flex-direction: column; flex-direction: column;
padding-bottom: 40rpx; padding-bottom: toRpx(40);
box-sizing: border-box; box-sizing: border-box;
.item-label, .item-label,
...@@ -404,16 +404,16 @@ export default { ...@@ -404,16 +404,16 @@ export default {
} }
.item-label { .item-label {
height: 80rpx; height: toRpx(80);
} }
.item-content { .item-content {
max-width: 100%; max-width: 100%;
height: 192rpx; height: toRpx(192);
border-radius: 16rpx; border-radius: toRpx(16);
border: 2rpx solid #eff0f2; border: toRpx(2) solid #eff0f2;
background: #f4f5f7; background: #f4f5f7;
padding: 24rpx; padding: toRpx(24);
box-sizing: border-box; box-sizing: border-box;
.select{ .select{
width: 100%; width: 100%;
......
...@@ -37,13 +37,13 @@ export default { ...@@ -37,13 +37,13 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.icon { .icon {
width: 300rpx; width: toRpx(300);
height: 236rpx; height: toRpx(236);
margin-bottom: 8rpx; margin-bottom: toRpx(8);
} }
.text { .text {
font-size: 24rpx; font-size: toRpx(24);
line-height: 28rpx; line-height: toRpx(28);
color: #999; color: #999;
} }
} }
......
...@@ -211,15 +211,15 @@ export default { ...@@ -211,15 +211,15 @@ export default {
.table-cell { .table-cell {
display: table-cell; display: table-cell;
padding: 24rpx; padding: toRpx(24);
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
font-size: 26rpx; font-size: toRpx(26);
color: #333; color: #333;
box-sizing: border-box; box-sizing: border-box;
border-right: 1rpx solid #fff; border-right: toRpx(2) solid #fff;
max-width: 800rpx; max-width: toRpx(800);
min-width: 200rpx; min-width: toRpx(200);
} }
.table-cell:last-child { .table-cell:last-child {
...@@ -233,8 +233,8 @@ export default { ...@@ -233,8 +233,8 @@ export default {
left: 0; left: 0;
z-index: 30; z-index: 30;
background-color: #f0f4ff; background-color: #f0f4ff;
border-bottom: 2rpx solid #fff; border-bottom: toRpx(2) solid #fff;
border-right: 1rpx solid #fff; border-right: toRpx(2) solid #fff;
} }
.required-text { .required-text {
...@@ -251,9 +251,9 @@ export default { ...@@ -251,9 +251,9 @@ export default {
.header-cell { .header-cell {
background-color: #f0f4ff; background-color: #f0f4ff;
color: #000; color: #000;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
border-bottom: 2rpx solid #fff; border-bottom: toRpx(2) solid #fff;
} }
.fixed-header { .fixed-header {
...@@ -270,10 +270,10 @@ export default { ...@@ -270,10 +270,10 @@ export default {
background-color: #f9fafc; background-color: #f9fafc;
color: #303133; color: #303133;
text-align: left; text-align: left;
padding-left: 20rpx; padding-left: toRpx(20);
padding-right: 32rpx; padding-right: toRpx(32);
border-bottom: 1rpx solid #fff; border-bottom: toRpx(2) solid #fff;
border-right: 1rpx solid #fff; border-right: toRpx(2) solid #fff;
} }
.fixed-left { .fixed-left {
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
// 数据单元格 // 数据单元格
.data-cell { .data-cell {
background-color: #f9fafc; background-color: #f9fafc;
border-bottom: 1rpx solid #fff; border-bottom: toRpx(2) solid #fff;
word-break: break-all; word-break: break-all;
} }
...@@ -317,22 +317,22 @@ export default { ...@@ -317,22 +317,22 @@ export default {
.footer-row { .footer-row {
width: 100%; width: 100%;
height: 88rpx; height: toRpx(88);
padding: 16rpx 24rpx; padding: toRpx(16) toRpx(24);
border-top: 2rpx solid #fff; border-top: toRpx(2) solid #fff;
background: #f9fafc; background: #f9fafc;
.add { .add {
width: 56rpx; width: toRpx(56);
height: 56rpx; height: toRpx(56);
border-radius: 16rpx; border-radius: toRpx(16);
border: 1.6rpx solid #4673ff33; border: toRpx(2) solid #4673ff33;
background: #4673ff14; background: #4673ff14;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: sticky; position: sticky;
left: 24rpx; left: toRpx(24);
&::before, &::before,
&::after { &::after {
...@@ -342,17 +342,17 @@ export default { ...@@ -342,17 +342,17 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background: #4673ff; background: #4673ff;
border-radius: 4rpx; border-radius: toRpx(4);
} }
&::before { &::before {
width: 4rpx; width: toRpx(4);
height: 28rpx; height: toRpx(28);
} }
&::after { &::after {
width: 28rpx; width: toRpx(28);
height: 4rpx; height: toRpx(4);
} }
} }
} }
......
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
margin: 0 toRpx(48); margin: 0 toRpx(48);
// width: toRpx(988); // width: toRpx(988);
width: calc(100% - toRpx(96)); width: calc(100% - #{toRpx(96)});
height: toRpx(128); height: toRpx(128);
border-radius: toRpx(24); border-radius: toRpx(24);
background: transparent; background: transparent;
......
...@@ -1242,7 +1242,7 @@ export default { ...@@ -1242,7 +1242,7 @@ export default {
} }
.list .item .order .order-value { .list .item .order .order-value {
width: calc(100% - toRpx(136)); width: calc(100% - #{toRpx(136)});
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
export default { export default {
state() { state() {
return { return {
baseConfigData:{} baseConfigData:{},
boutiqueActivityData: [],
} }
}, },
mutations: { mutations: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!