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