Commit e1e013c1 by 岑成威

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

2 parents b9d92736 833749e4
Showing 70 changed files with 2449 additions and 425 deletions
...@@ -47,4 +47,38 @@ module.exports = { ...@@ -47,4 +47,38 @@ module.exports = {
...data ...data
}) })
}, },
/**
* 轻改营销活动改版接口
*/
// 1、查询策略首页数据状态(营销活动和客户列表是否有数据)
getActivityStatusAPI(data) {
return http.post({
method: 'dj.pad.api.strategy.data.status',
projectName: 'pad',
...data
})
},
// 2、查询当前进行中的营销活动商品列表
getActivityProductListAPI(data) {
return http.post({
method: 'dj.pad.api.active.marketing.activity.product.list',
projectName: 'pad',
...data
})
},
// 2、查询今日待执行触达客户
getTaskCustomerPageAPI(data) {
return http.post({
method: 'dj.pad.api.today.sop.task.customer.page',
projectName: 'pad',
...data
})
},
getPrelearnScriptBoardAPI(data) {
return http.post({
method: 'dj.api.pad.prelearn.script.board',
projectName: 'pad',
...data
})
},
} }
...@@ -708,7 +708,6 @@ module.exports = { ...@@ -708,7 +708,6 @@ module.exports = {
...data, ...data,
}) })
}, },
/** /**
* 查询门店分类 * 查询门店分类
* *
...@@ -720,4 +719,24 @@ module.exports = { ...@@ -720,4 +719,24 @@ module.exports = {
...data ...data
}) })
}, },
/**
* 预学习首页弹框
*/
getPrelernHomePopupAPI(data = {}) {
return http.post({
method: 'dj.api.pad.prelearn.home.popup',
projectName: 'pad',
...data
})
},
/**
* 预学习-扣减跳过次数
*/
deductSkipCountAPI(data = {}) {
return http.post({
method: 'dj.api.pad.prelearn.deduct.skip',
projectName: 'pad',
...data
})
},
} }
...@@ -3,7 +3,7 @@ import environment from '@/env' ...@@ -3,7 +3,7 @@ import environment from '@/env'
module.exports = { module.exports = {
/**查询当前门店是否有客户档案权限 */ /**查询当前门店是否有客户档案权限 */
haveCustomerAccess (data) { haveCustomerAccess(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.findPermissionsMerchantList', method: 'dj.api.smartcarlife.customervisits.findPermissionsMerchantList',
projectName: 'boutique', projectName: 'boutique',
...@@ -11,7 +11,7 @@ module.exports = { ...@@ -11,7 +11,7 @@ module.exports = {
}) })
}, },
/**查询当前门店客户档案列表 */ /**查询当前门店客户档案列表 */
getCustomerFileList (data) { getCustomerFileList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.customerInfoPage', method: 'dj.api.smartcarlife.customervisits.customerInfoPage',
projectName: 'boutique', projectName: 'boutique',
...@@ -19,7 +19,7 @@ module.exports = { ...@@ -19,7 +19,7 @@ module.exports = {
}) })
}, },
/* 删除客户档案*/ /* 删除客户档案*/
delCustomerFile (data) { delCustomerFile(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.deleteVisitsInfo', method: 'dj.api.smartcarlife.customervisits.deleteVisitsInfo',
projectName: 'boutique', projectName: 'boutique',
...@@ -27,7 +27,7 @@ module.exports = { ...@@ -27,7 +27,7 @@ module.exports = {
}) })
}, },
/** 根据业务查询接待场景 */ /** 根据业务查询接待场景 */
findAllSence (data) { findAllSence(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.findAllSence', method: 'dj.api.smartcarlife.customervisits.findAllSence',
projectName: 'boutique', projectName: 'boutique',
...@@ -35,7 +35,7 @@ module.exports = { ...@@ -35,7 +35,7 @@ module.exports = {
}) })
}, },
/**根据业务查询客户标签 */ /**根据业务查询客户标签 */
findCustomerTags (data) { findCustomerTags(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.findSenceTag', method: 'dj.api.smartcarlife.customervisits.findSenceTag',
projectName: 'boutique', projectName: 'boutique',
...@@ -45,7 +45,7 @@ module.exports = { ...@@ -45,7 +45,7 @@ module.exports = {
/** /**
* 查询客户档案详情 * 查询客户档案详情
*/ */
findVisitsInfo (data) { findVisitsInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.findVisitsInfo', method: 'dj.api.smartcarlife.customervisits.findVisitsInfo',
projectName: 'boutique', projectName: 'boutique',
...@@ -55,7 +55,7 @@ module.exports = { ...@@ -55,7 +55,7 @@ module.exports = {
/* /*
* 保存客户档案 * 保存客户档案
*/ */
saveVisitsInfo (data) { saveVisitsInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.saveVisitsInfo', method: 'dj.api.smartcarlife.customervisits.saveVisitsInfo',
projectName: 'boutique', projectName: 'boutique',
...@@ -65,7 +65,7 @@ module.exports = { ...@@ -65,7 +65,7 @@ module.exports = {
/** /**
* 更新客户档案 * 更新客户档案
*/ */
updateVisitsInfo (data) { updateVisitsInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.updateVisitsInfo', method: 'dj.api.smartcarlife.customervisits.updateVisitsInfo',
projectName: 'boutique', projectName: 'boutique',
...@@ -73,7 +73,7 @@ module.exports = { ...@@ -73,7 +73,7 @@ module.exports = {
}) })
}, },
/**查询客户档案列表 */ /**查询客户档案列表 */
getCustomerInfoList (data) { getCustomerInfoList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.customerInfoList', method: 'dj.api.smartcarlife.customervisits.customerInfoList',
projectName: 'boutique', projectName: 'boutique',
...@@ -83,7 +83,7 @@ module.exports = { ...@@ -83,7 +83,7 @@ module.exports = {
/**接待客户素材 /**接待客户素材
* *
*/ */
getMaterialResponsePage (data) { getMaterialResponsePage(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.getMaterialResponsePage', method: 'dj.api.smartcarlife.customervisits.getMaterialResponsePage',
projectName: 'boutique', projectName: 'boutique',
...@@ -91,7 +91,7 @@ module.exports = { ...@@ -91,7 +91,7 @@ module.exports = {
}) })
}, },
/**素材详情 查询素材详情 */ /**素材详情 查询素材详情 */
getMaterialDetail (data) { getMaterialDetail(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customervisits.getMaterialById', method: 'dj.api.smartcarlife.customervisits.getMaterialById',
projectName: 'boutique', projectName: 'boutique',
...@@ -99,11 +99,138 @@ module.exports = { ...@@ -99,11 +99,138 @@ module.exports = {
}) })
}, },
/**直营驻店人员 */ /**直营驻店人员 */
saleOpen (data) { saleOpen(data) {
return http.post({ return http.post({
method: 'dj.api.car.boutique.resident.direct.sale.merchant', method: 'dj.api.car.boutique.resident.direct.sale.merchant',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
} },
/**
* 查询今日待执行触达客户
*/
getTodaySopTaskCustomerPage(data) {
return http.post({
method: 'dj.pad.api.today.sop.task.customer.page',
projectName: 'pad',
...data
})
},
/**
* 查询近7天已触达客户
*/
getLastWeekSopTaskCustomerPage(data) {
return http.post({
method: 'dj.pad.api.last.week.sop.task.customer.page',
projectName: 'pad',
...data
})
},
/**
* 查询客户今日未触达任务列表
*/
getTodaySopTaskDetailList(data) {
return http.post({
method: 'dj.pad.api.today.sop.task.detail.list',
projectName: 'pad',
...data
})
},
/**
* 查询客户近7天推送任务记录列表
*/
getLastWeekSopTaskDetailList(data) {
return http.post({
method: 'dj.pad.api.last.week.sop.task.detail.list',
projectName: 'pad',
...data
})
},
/**
* 策略任务确认
*/
confirmSopTask(data) {
return http.post({
method: 'dj.pad.api.last.week.sop.task.confirm',
projectName: 'pad',
...data
})
},
/**
* 轻改业务改版
* 1、客户建档详情
*/
customerProfileInfoAPI(data) {
return http.post({
method: 'dj.api.smartcarlife.order.customerProfileInfo',
projectName: 'pad',
...data
})
},
/**
* 轻改业务改版
* 2、客户建档提交
*/
submitPreliminaryOrderAPI(data) {
return http.post({
method: 'dj.api.smartcarlife.order.preliminaryOrder.batch',
projectName: 'pad',
...data
})
},
/**
* 轻改业务改版
* 3、客户建档提交
*/
submitCustomerProfileAPI(data) {
return http.post({
method: 'dj.api.smartcarlife.order.submitCustomerProfile',
projectName: 'pad',
...data
})
},
/**
* 轻改业务改版
* 3、客户建档分页查询
*/
pageCustomerProfileInfoAPI(data) {
return http.post({
method: 'dj.api.smartcarlife.order.pageCustomerProfileInfo',
projectName: 'pad',
...data
})
},
/**
* 轻改业务改版
* 3、获取客户群信息
*/
getCustomerGroupInfoAPI(data) {
return http.post({
method: 'dj.api.smartcarlife.order.getCustomerGroupInfo',
projectName: 'pad',
...data
})
},
/**
* 轻改业务改版
* 4、获取群成员信息
*/
getCustomerGroupMemberInfoAPI(data) {
return http.post({
method: 'dj.api.smartcarlife.order.getCustomerGroupMemberInfo',
projectName: 'pad',
...data
})
},
/**
* 轻改业务改版
* 5、客户建档分页查询-月按天分组
*/
getCustomerProfileGroupInfoAPI(data) {
return http.post({
method: 'dj.api.smartcarlife.order.pageCustomerProfileGroupInfo',
projectName: 'pad',
...data
})
},
} }
...@@ -128,6 +128,26 @@ const getStoreBaseSceneCodeList = async (data = {}) => { ...@@ -128,6 +128,26 @@ const getStoreBaseSceneCodeList = async (data = {}) => {
...data ...data
}) })
} }
/**
* 统计客户今日计划到店数
*/
const getTodayPlanStoreCount = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.customer.todayPlanStore.count',
projectName: 'boutique',
...data
})
}
/**
* 查询客户今日计划到店列表
*/
const getTodayPlanStoreList = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.customer.todayPlanStore.list',
projectName: 'boutique',
...data
})
}
module.exports = { module.exports = {
getDailyTemplate, getDailyTemplate,
...@@ -140,5 +160,7 @@ module.exports = { ...@@ -140,5 +160,7 @@ module.exports = {
submitReport, submitReport,
getGoodsOrderList, getGoodsOrderList,
getStaffBaseSceneCodeList, getStaffBaseSceneCodeList,
getStoreBaseSceneCodeList getStoreBaseSceneCodeList,
getTodayPlanStoreCount,
getTodayPlanStoreList
} }
<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;
} }
......
<template>
<uni-popup ref="popup" animation :is-mask-click="false">
<view class="popup-box">
<view class="title flex">
{{ title }}
<view class="popup-close flex" @click="close">
<uni-icons type="closeempty" size="20" color="#999EA8"></uni-icons>
</view>
</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>
<view class="p-b"></view>
</view>
</template>
<template v-else>
<view class="nothing">
<nothing text="暂无数据" />
</view>
</template>
</template>
</scroll-view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
import TaskItem from './TaskItem.vue'
import Nothing from './Nothing.vue'
export default {
components: { TaskItem, Nothing },
name: 'CustomerPopup',
inject: ['userInfo'],
data() {
return {
options: {
data: {}
},
customerObject: [
{ title: '客户姓名', key: 'customerName' },
{ title: '手机号码', key: 'customerPhone' },
{ title: '车型', key: 'carSeriesName' },
{ title: '客户群', key: 'qwGroupName' },
{ title: '订单状态', key: 'customerStatus', block: true },
{ title: '订单时间', key: 'orderHandleTime' },
],
taskList: [],
loadComplete: false,
}
},
watch: {},
computed: {
title() {
let { type } = this.options,
title = {
task: '客户基础信息',
taskRecord: '任务记录'
}[type]
return title
},
subTitle() {
let { type } = this.options,
title = {
task: '推送运营任务',
taskRecord: '任务记录(近7天)'
}[type]
return title
},
subIcon() {
let { type } = this.options,
icon = {
task: 'icon-customer-task',
taskRecord: 'icon-customer-task-record'
}[type]
return icon
},
},
mounted() { },
methods: {
showItem(key) {
if (key != 'qwGroupName') return true
else return this.options.data[key]
},
orderStatus(status) {
return {
1: '待跟进',
2: '已升级',
3: '战败',
4: '已退款',
}[status]
},
orderStatusClass(status) {
return {
1: 'error',
2: 'success',
3: 'failed',
4: 'warning',
}[status]
},
formatContent(key) {
let { data } = this.options
if (key == 'qwGroupName' && !data[key]) return '客户群不存在'
return data[key] || '-'
},
open(options) {
this.loadComplete = false
this.taskList = []
this.options = options
this.$refs.popup.open()
this.getData(options)
},
close() {
this.$refs.popup.close()
},
async getData(options) {
try {
uni.showLoading({
mask: true,
title: '加载中...'
})
let { shopMerchantId: merchantId } = this.userInfo,
targetApi = {
task: 'getTodaySopTaskDetailList',
taskRecord: 'getLastWeekSopTaskDetailList'
}[options.type],
{ customerInstanceId } = options.data,
data = await uni.$api.customerApi[targetApi]({ merchantId, customerInstanceId })
this.loadComplete = true
uni.hideLoading()
this.taskList = data
} catch (error) {
this.loadComplete = true
uni.hideLoading()
}
},
confirmTask({ confirmStatus, item }) {
let _this = this
uni.showModal({
title: confirmStatus == 1 ? '确认向客户群推送该营销任务?' : '确认不触达该营销任务?',
content: confirmStatus == 1 ? '推送后将无法撤回。' : '本次任务将终止执行。',
confirmColor: '#347BFF',
success(res) {
if (res.confirm) _this.confirmSopTask({
taskId: item.taskId,
confirmStatus
})
}
})
},
confirmAllTask() {
let _this = this,
{ taskList } = this,
taskIds = taskList.filter(item => item.taskStatus == 0).map(item => item.taskId)
uni.showModal({
title: '确认向客户群推送该营销任务?',
content: '推送后将无法撤回。',
confirmColor: '#347BFF',
success(res) {
if (res.confirm) _this.confirmSopTask({
taskIds,
confirmStatus: 1
}, true)
}
})
},
async confirmSopTask(params, all) {
try {
uni.showLoading({
mask: true,
title: '提交中...'
})
const data = await uni.$api.customerApi.confirmSopTask(params)
uni.showToast({
title: data ? '提交成功' : '提交失败',
icon: "none",
})
if (data) {
this.loadComplete = false
this.taskList = []
this.getData(this.options)
}
} catch (error) {
uni.hideLoading()
}
}
}
}
</script>
<style scoped lang='scss'>
.popup-box {
width: 56.265985vw;
height: 79.947917vh;
border-radius: toRpx(32);
background: linear-gradient(180deg, #E6F0FF 0%, #FFFFFF 40%, #FFFFFF 100%);
.title {
font-size: toRpx(40);
font-weight: 500;
color: #292D33;
height: toRpx(128);
justify-content: center;
position: relative;
.popup-close {
position: absolute;
height: 100%;
top: 0;
right: 0;
padding: 0 toRpx(48);
font-weight: 400;
color: #999EA8;
}
}
.customer-detail {
background: #FFFFFF;
border: toRpx(2) solid #F5F7FA;
margin: 0 toRpx(64);
border-radius: toRpx(32);
display: flex;
flex-wrap: wrap;
gap: toRpx(24) toRpx(40);
box-sizing: border-box;
padding: toRpx(28) toRpx(40);
.customer-item {
width: calc(50% - #{toRpx(20)});
box-sizing: border-box;
font-size: toRpx(26);
gap: toRpx(16);
display: flex;
align-items: flex-start;
.item-title {
width: toRpx(120);
color: #999EA8;
}
.item-content {
width: calc(100% - #{toRpx(136)});
color: #292D33;
word-break: break-all;
}
.block {
display: inline-block;
padding: 0 toRpx(16);
border-radius: toRpx(8);
font-size: toRpx(24);
line-height: toRpx(44);
height: toRpx(44);
&.success {
background-color: #EAF9F1;
color: #35C376;
}
&.failed {
background-color: #F5F7FA;
color: #999EA8;
}
&.error {
background-color: #FDECE9;
color: #F24724;
}
&.warning {
background-color: #FFF5E6;
color: #FF9D0A;
}
}
}
}
.sub-title {
font-size: toRpx(34);
font-weight: 500;
color: #292D33;
height: toRpx(124);
margin: 0 toRpx(64);
.sprite-icon {
margin-right: toRpx(18);
}
.btn {
margin-left: auto;
background-color: #2C66F7;
color: #FFFFFF;
padding: 0 toRpx(32);
border-radius: toRpx(16);
height: toRpx(64);
line-height: toRpx(64);
font-size: toRpx(28);
}
}
.p-b {
height: toRpx(28);
}
}
.scroll-content{
height: calc(100% - #{toRpx(128)});
}
.nothing {
height: calc(100% - #{toRpx(484)});
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="nothing-box">
<image
class="icon"
:src="require('@/assets/images/common/noData.webp')"
/>
<text class="text">{{ text }}</text>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'Nothing',
props: {
text: {
type: String,
default: '暂无数据'
}
},
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.nothing-box {
width: 100%;
height: calc(100% - #{toRpx(72)});
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.icon {
width: 344rpx;
height: 236rpx;
margin-bottom: 8rpx;
}
.text {
font-size: 24rpx;
line-height: 28rpx;
color: #999;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="task-item">
<view class="task-item-title flex">
<view class="tag flex">任务{{ num + 1 }}</view>
<view class="text flex">
向客户群发送消息
<template v-if="type == 'taskRecord'">
<view class="line"></view>
{{ messageType(item.messageType) }}
</template>
</view>
<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(2)">暂不推送</view>
</template>
<template v-else>
<view :class="['status flex', taskStatusClass(item.taskStatus)]">{{ taskStatus(item.taskStatus) }}</view>
</template>
</view>
</view>
<view class="task-item-content">
<template v-for="(i, index) in messageList">
<view :class="['content-item flex', { 'content-item-message': i.label == '消息内容' }]" :key="index">
<view class="content-item-title">{{ i.label }}</view>
<view class="content-item-content">
<template v-if="i.format">
{{ i.format(item[i.key]) }}
</template>
<template v-else>
<template v-if="i.label == '消息内容'">
<template v-if="[2, 3].includes(item.messageType)">
<template v-if="item.messageType == 2">
<view class="img-box">
<template v-for="value in getImages(item.mediaIds)">
<image :src="value" class="image" v-if="value"></image>
</template>
</view>
</template>
<template v-else>
<!-- <video controls :src="item.mediaIds" class="video" ></video> -->
<DomVideoPlayer class="video" ref="domVideoPlayer" :src="item.mediaIds" :poster="defaultPoster" controls />
</template>
</template>
<template v-else-if="item.messageType == 4">
<view class="link flex">
<view class="link-text text-hide">{{ item.jumpUrl }}</view>
<view class="copy" @click="copyText(item.jumpUrl)">复制</view>
</view>
</template>
<template v-else>
<text>
{{ item[i.key] }}
</text>
</template>
</template>
<template v-else>
<text>
{{ formatValue(item[i.key]) }}
</text>
</template>
</template>
</view>
</view>
</template>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'TaskItem',
props: {
item: Object,
type: String,
num: Number,
},
data() {
return {
defaultPoster: 'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-video.webp'
}
},
watch: {},
computed: {
messageList() {
let { type, item } = this,
{ messageType } = item,
taskList = [
{ label: '目标群', key: 'qwGroupName' },
{ label: '消息类型', key: 'messageType', format: (type) => this.messageType(type) },
{ label: '消息内容', key: 'messageContent' },
],
taskRecordList = [
{ label: '消息内容', key: 'messageContent' },
{ label: '推送时间', key: 'pushTime' },
{ label: '操作人', key: 'confirmBy' },
]
if (type == 'taskRecord') {
if (item.taskStatus == 1) taskRecordList.push({
label: '推送结果', key: 'pushResult', format: (status) => {
return {
1: '成功',
2: '失败',
}[status] || '-'
}
})
if (messageType == 4) taskRecordList.push({
label: '浏览人数', key: 'viewTimes'
})
}
return type == 'task' ? taskList : taskRecordList
}
},
mounted() { },
methods: {
messageType(type) {
return {
1: '文本',
2: '图片',
3: '视频',
4: '网页',
}[type]
},
taskStatus(status) {
return {
1: '已推送',
2: '暂不推送',
3: '推送失败'
}[status]
},
taskStatusClass(status) {
return {
1: 'success',
3: 'failed'
}[status] || ''
},
confirmTask(confirmStatus) {
this.$emit('confirmTask', {
confirmStatus,
item: this.item
})
},
copyText(data) {
uni.setClipboardData({
data,
success: function () {
uni.showToast({
title: '复制成功',
icon: 'success'
})
}
})
},
getImages(mediaIds) {
return mediaIds.split(',')
},
formatValue(value) {
return value !== null && value !== '' && value !== undefined ? value : '-'
}
}
}
</script>
<style scoped lang='scss'>
.task-item {
border-radius: toRpx(32);
padding: toRpx(28);
background-color: #F8FAFC;
margin: 0 toRpx(64) toRpx(28);
&-title {
margin-bottom: toRpx(16);
.tag {
border: toRpx(2) solid #DCE1E6;
padding: 0 toRpx(16);
border-radius: toRpx(8);
color: #6C6F75;
font-size: toRpx(26);
margin-right: toRpx(16);
}
.text {
font-size: toRpx(30);
color: #292D33;
}
.line {
width: toRpx(2);
height: toRpx(32);
margin: 0 toRpx(16);
background-color: #999EA8;
}
}
.btn-box {
margin-left: auto;
.btn {
margin-left: toRpx(16);
padding: 0 toRpx(32);
border-radius: toRpx(8);
border: toRpx(2) solid #DCE1E6;
color: #292D33;
font-size: toRpx(26);
height: toRpx(56);
line-height: toRpx(56);
}
.primary-btn {
border-color: #2C66F71A;
background-color: #2C66F70D;
color: #2C66F7;
}
.status {
display: inline-block;
padding: 0 toRpx(32);
border-radius: toRpx(8);
font-size: toRpx(24);
line-height: toRpx(56);
height: toRpx(56);
background-color: #ECECEC;
color: #999EA8;
&.success {
background-color: #EAF9F1;
color: #35C376;
}
&.failed {
background-color: #FDECE9;
color: #F24724;
}
}
}
&-content {
background-color: #fff;
padding: toRpx(28) toRpx(32);
border-radius: toRpx(32);
display: flex;
flex-wrap: wrap;
gap: toRpx(28) toRpx(40);
.content-item {
width: calc(50% - #{toRpx(20)});
font-size: toRpx(26);
&-title {
color: #999EA8;
flex-shrink: 0;
width: toRpx(120);
}
&-content {
width: calc(100% - #{toRpx(136)});
color: #292D33;
flex-shrink: 0;
margin-left: toRpx(16);
.link {
&-text {
max-width: 93%;
}
.copy {
margin-left: toRpx(16);
color: #2C66F7;
flex-shrink: 0;
}
}
.image {
width: toRpx(160);
height: toRpx(160);
border-radius: toRpx(16);
}
.video {
width: toRpx(480);
height: toRpx(320);
border-radius: toRpx(16);
}
.img-box {
display: flex;
flex-wrap: wrap;
gap: toRpx(24);
}
}
}
.content-item-message {
width: 100%;
align-items: flex-start;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="customer-box">
<view class="tips flex">
<view class="today flex">
<view class="sprite-icon icon-customer-sop-1"></view>
今日任务({{ toDay }})
</view>
<view class="text">根据SOP策略生成营销任务,请及时推送客户</view>
</view>
<view class="tabs-box flex">
<template v-for="(tab, index) in tabs">
<view :class="['tab flex', { active: index === tabIndex }]" :key="index" @click="changeTab(index)">
<view
:class="['sprite-icon', index === tabIndex ? `icon-customer-sop-${index + 2}-a` : `icon-customer-sop-${index + 2}`]">
</view>
{{ tab }}
</view>
</template>
</view>
<view class="customer-content">
<Table :type="tabIndex" @openPopup="openPopup" @loadMore="loadMore" :list="tableData" ref="table" />
</view>
<CustomerPopup ref="customerPopup" />
</view>
</template>
<script type='text/ecmascript-6'>
import dayjs from 'dayjs';
import Table from './components/Table'
import CustomerPopup from './components/CustomerPopup'
export default {
name: 'CustomerOpportunities',
components: { Table, CustomerPopup },
inject: ['userInfo'],
props: {
show: Boolean
},
data() {
return {
tabIndex: 0,
tabs: ['待执行推送客户(0)', '近7日已推送客户(0)'],
toDay: dayjs().format('MM-DD'),
total: 0,
pageNum: 1,
pageSize: 10,
tableData: []
}
},
watch: {
show: {
handler(val) {
if (val) {
this.getTodaySopTaskCustomerPage()
this.getLastWeekSopTaskCustomerPage(false)
} else {
this.tabs = this.$options.data.call(this).tabs
this.tabIndex = 0
this.initRequestParams()
}
},
immediate: true,
deep: true
}
},
computed: {
},
mounted() {
},
methods: {
tableRef() {
return this.$refs.table || null
},
initRequestParams() {
this.pageNum = 1
this.pageSize = 10
this.tableData = []
if (this.tableRef()) {
this.tableRef().loadComplete = false
this.tableRef().noMore = false
}
uni.hideLoading()
},
/**
* 切换标签
* @param {number} index
*/
changeTab(index) {
if (index == this.tabIndex) return
this.tabIndex = index
this.initRequestParams()
if (index == 0) this.getTodaySopTaskCustomerPage()
else this.getLastWeekSopTaskCustomerPage()
},
openPopup(data) {
this.$refs.customerPopup.open(data)
},
loadMore() {
let { total, pageSize, pageNum, tabIndex } = this
if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1
if (tabIndex == 0) this.getTodaySopTaskCustomerPage()
else this.getLastWeekSopTaskCustomerPage()
} else this.tableRef().noMore = true
},
async getTodaySopTaskCustomerPage() {
try {
uni.showLoading({ title: '加载中...', mask: true })
let { shopMerchantId: merchantId } = this.userInfo,
{ pageNum, pageSize, tableData } = this,
{ list, total } = await uni.$api.customerApi.getTodaySopTaskCustomerPage({ merchantId, pageNum, pageSize })
uni.hideLoading()
this.tableData = [...tableData, ...list]
this.tableRef().loadComplete = true
this.total = total
this.$set(this.tabs, 0, `待执行推送客户(${total})`)
} catch (error) {
this.tableRef() && (this.tableRef().loadComplete = true)
}
},
async getLastWeekSopTaskCustomerPage(assignment = true) {
try {
if (assignment) uni.showLoading({ title: '加载中...', mask: true })
let { shopMerchantId: merchantId } = this.userInfo,
{ pageNum, pageSize, tableData } = this,
{ list, total } = await uni.$api.customerApi.getLastWeekSopTaskCustomerPage({ merchantId, pageNum, pageSize })
if (assignment) {
this.tableData = [...tableData, ...list]
this.tableRef().loadComplete = true
this.total = total
uni.hideLoading()
}
this.$set(this.tabs, 1, `近7日已推送客户(${total})`)
} catch (error) {
this.tableRef() && (this.tableRef().loadComplete = true)
}
}
}
}
</script>
<style scoped lang='scss'>
.customer-box {
width: 100%;
height: 100%;
padding: toRpx(32) toRpx(40) 0;
box-sizing: border-box;
.sprite-icon {
margin-right: toRpx(8);
}
.tips {
height: toRpx(64);
background: #2C66F70D;
padding: 0 toRpx(24);
font-size: toRpx(26);
color: #6C6F75;
border-radius: toRpx(20);
.today{
line-height: toRpx(38);
}
.text {
margin-left: auto;
}
}
.tabs-box {
display: flex;
margin: toRpx(28) 0;
gap: toRpx(28);
.tab {
line-height: toRpx(64);
height: toRpx(64);
padding: 0 toRpx(32);
border-radius: toRpx(16);
background: #F2F2F2;
font-size: toRpx(28);
color: #292D33;
justify-content: center;
transition: all 0.2s ease-in-out;
}
.tab.active {
background: #2C66F71A;
color: #2C66F7;
}
}
.customer-content {
height: calc(100% - #{toRpx(184)});
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<MessageBox ref="employeeBoxVisible" position="bottom" :isFooter="false" :title="`请选择${title}`" :maxHeight="1000" @close="$emit('close')"> <MessageBox ref="employeeBoxVisible" position="bottom" :isFooter="false" :title="`请选择${title}`" :maxHeight="1000" @close="$emit('close')">
<view class="select-box"> <view class="select-box">
<view class="select-item" :class="{ checked: salesUuid == item.uuid }" @click="handleSelect(item)" v-for="(item, index) in employeeList" :key="index"> <view class="select-item" :class="{ checked: selectedId == item[valueKey] }" @click="handleSelect(item)" v-for="(item, index) in displayList" :key="index">
{{ item.staffName }} {{ item[labelKey] }}
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
...@@ -19,6 +19,18 @@ export default { ...@@ -19,6 +19,18 @@ export default {
salesPropsUuid: { salesPropsUuid: {
type: String, type: String,
default: '' default: ''
},
list: {
type: Array,
default: null
},
labelKey: {
type: String,
default: 'staffName'
},
valueKey: {
type: String,
default: 'uuid'
} }
}, },
data () { data () {
...@@ -37,10 +49,16 @@ export default { ...@@ -37,10 +49,16 @@ export default {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
salesUuid () { selectedId () {
if (Array.isArray(this.list)) {
return this.salesPropsUuid
}
return this.$store.state.user.customerInfo.salesUuid || this.salesPropsUuid return this.$store.state.user.customerInfo.salesUuid || this.salesPropsUuid
}, },
employeeList () { displayList () {
if (Array.isArray(this.list)) {
return this.list
}
return this.$store.state.user.employeeList return this.$store.state.user.employeeList
} }
}, },
...@@ -49,6 +67,7 @@ export default { ...@@ -49,6 +67,7 @@ export default {
methods: { methods: {
open () { open () {
this.$refs.employeeBoxVisible.open() this.$refs.employeeBoxVisible.open()
if (Array.isArray(this.list)) return
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
/**获取销售人员 */ /**获取销售人员 */
......
...@@ -2,7 +2,26 @@ ...@@ -2,7 +2,26 @@
<view class="entrance-box"> <view class="entrance-box">
<template v-if="entranceList.length"> <template v-if="entranceList.length">
<view class="entrance-container"> <view class="entrance-container">
<view :class="['entrance-list', `entrance-list-${type}`]"> <scroll-view
v-if="scrollable"
class="entrance-scroll"
scroll-x
enable-flex
show-scrollbar="false"
>
<view class="entrance-list entrance-list-scroll">
<view
class="entrance-item"
v-for="(item, index) in entranceList"
:key="index"
@click="handleClick(item)"
>
<view :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view class="entrance-name">{{ item.label }}</view>
</view>
</view>
</scroll-view>
<view v-else :class="['entrance-list', `entrance-list-${type}`]">
<view class="entrance-item" v-for="(item, index) in entranceList" :key="index" @click="handleClick(item)"> <view class="entrance-item" v-for="(item, index) in entranceList" :key="index" @click="handleClick(item)">
<view :class="['sprite-icon', `icon-${item.icon}`]"></view> <view :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view class="entrance-name">{{ item.label }}</view> <view class="entrance-name">{{ item.label }}</view>
...@@ -27,6 +46,11 @@ export default { ...@@ -27,6 +46,11 @@ export default {
type: { type: {
type: Number, type: Number,
default: 0 default: 0
},
// 横向滚动展示
scrollable: {
type: Boolean,
default: false
} }
}, },
data() { data() {
...@@ -78,7 +102,14 @@ export default { ...@@ -78,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 })
...@@ -217,6 +248,11 @@ export default { ...@@ -217,6 +248,11 @@ export default {
// justify-content: center; // justify-content: center;
} }
.entrance-scroll {
width: 100%;
white-space: nowrap;
}
.entrance-list { .entrance-list {
width: 100%; width: 100%;
display: grid; display: grid;
...@@ -230,19 +266,29 @@ export default { ...@@ -230,19 +266,29 @@ export default {
&.entrance-list-1 { &.entrance-list-1 {
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
} }
&.entrance-list-scroll {
display: flex;
flex-wrap: nowrap;
gap: toRpx(68);
width: auto;
}
} }
.entrance-item { .entrance-item {
min-width: toRpx(120); min-width: toRpx(120);
flex-shrink: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: toRpx(28); font-size: toRpx(28);
color: #333; color: #333;
cursor: pointer;
.entrance-name { .entrance-name {
margin-top: toRpx(8); margin-top: toRpx(8);
white-space: nowrap;
} }
} }
......
...@@ -611,7 +611,7 @@ export default { ...@@ -611,7 +611,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
z-index: 2; z-index: 1;
text-align: center; text-align: center;
.account-change { .account-change {
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
.setting-box { .setting-box {
position: relative; position: relative;
width: toRpx(720); width: toRpx(720);
height: toRpx(880); height: toRpx(1000);
background: #ffffff; background: #ffffff;
border-radius: toRpx(40); border-radius: toRpx(40);
box-sizing: border-box; box-sizing: border-box;
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
flex-direction: column; flex-direction: column;
font-size: toRpx(32); font-size: toRpx(32);
color: #333333; color: #333333;
padding-top: toRpx(120);
.sprite-icon { .sprite-icon {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
box-shadow: 0 0 toRpx(24) 0 #3682ef33; box-shadow: 0 0 toRpx(24) 0 #3682ef33;
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999999; color: #999999;
line-height: toRpx(40); line-height: toRpx(40);
padding-bottom: toRpx(40);
.icon-clone { .icon-clone {
width: toRpx(24); width: toRpx(24);
height: toRpx(24); height: toRpx(24);
......
<template>
<view class="exam-submit-popup-wrapper">
<view class="content-box">
<view class="text-box">
退出将消耗 <text class="text-red">1</text> 次跳过机会
</view>
<view class="sub-text">
剩余次数 <text class="text-red">{{ prelearnContext.skipCount }}</text> 次,是否确认退出?
</view>
</view>
<view class="button-group">
<view class="cancel-button" @click="handleCancel">
取消
</view>
<view
class="confirm-button"
:class="{ 'confirm-button--disabled': confirmDisabled }"
@click="deductSkipCount"
>
{{ confirmText }}
</view>
</view>
</view>
</template>
<script>
export default {
name: 'ExamSubmitPopup',
props: {
confirmText: {
type: String,
default: '确认'
},
prelearnContext: {
type: Object,
default: () => ({skipCount: 2})
}
},
computed: {
confirmDisabled() {
return this.prelearnContext?.skipCount === 0
}
},
methods: {
handleCancel() {
this.$emit('cancel')
},
async deductSkipCount() {
if (this.confirmDisabled) return
let requestParams = {
activityId:this.prelearnContext.activityId
}
console.log('deductSkipCountAPI requestParams***', requestParams);
const res = await uni.$api.commonApi.deductSkipCountAPI(requestParams)
console.log('deductSkipCountAPI***', res);
if (res) {
this.$emit('confirm')
}
},
}
}
</script>
<style lang="scss" scoped>
.exam-submit-popup-wrapper {
position: relative;
width: 100%;
min-height: toRpx(400);
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: toRpx(48);
}
.content-box {
width: toRpx(720);
height: toRpx(156);
border-radius: toRpx(16);
background: #FDECE9;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: toRpx(24);
}
.text-box {
font-size: toRpx(40);
color: #333;
text-align: center;
font-weight: 500;
line-height: toRpx(60);
}
.sub-text {
color: #999;
text-align: center;
font-size: toRpx(28);
font-style: normal;
font-weight: 400;
line-height: toRpx(48);
}
.button-group {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
gap: toRpx(16);
margin-top: toRpx(48);
}
.cancel-button {
width: toRpx(344);
height: toRpx(80);
border-radius: toRpx(64);
background: #f0f1f5;
color: #1a1a1a;
font-size: toRpx(28);
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: center;
line-height: toRpx(80);
}
.confirm-button {
width: toRpx(360);
height: toRpx(80);
border-radius: toRpx(48);
border: toRpx(2) solid #979797;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
font-family: "HarmonyOSSansSC";
text-align: center;
line-height: toRpx(80);
&:active {
opacity: 0.8;
}
&--disabled {
border-color: #d9d9d9;
background-image: linear-gradient(0deg, #2c66f799 0%, #48a6ff99 100%);
color: #ffffff;
pointer-events: none;
&:active {
opacity: 1;
}
}
}
.text-red {
color: #F24724;
}
</style>
<template>
<view class="exam-submit-popup-wrapper">
<view class="content-box">
<scroll-view class="course-list" scroll-y>
<view
class="course-item"
v-for="(item, index) in displayCourseList"
:key="item.activityProductId || index"
>
<view class="course-item-title">
<view class="course-item-title-text">{{ item.packageName }}</view>
<text class="course-item-desc">{{ formatIncludes(item.includes) }}</text>
</view>
<view
class="course-item-btn"
v-if="item.learnStatus === 'NOT_STUDY'"
@click.stop="handleStartStudy(item, index)"
>开启学习</view>
<view class="course-item-btn course-item-btn--learned" v-else>
<image class="course-item-btn-icon" :src="require('@/assets/images/common/icon-study-right.png')" mode="aspectFit"></image>
<text>已学习</text>
</view>
</view>
</scroll-view>
</view>
<!-- 按钮组(始终显示) -->
<view class="button-group">
<view
class="confirm-button"
:class="{ 'confirm-button--disabled': confirmDisabled }"
@click="handleConfirm"
>
{{ confirmText }}
</view>
</view>
</view>
</template>
<script>
export default {
name: 'PreStudyPopup',
props: {
confirmText: {
type: String,
default: '跳过'
},
confirmDisabled: {
type: Boolean,
default: false
},
prelearnData: {
type: Object,
default: () => ({})
}
},
computed: {
displayCourseList() {
return this.prelearnData?.packages || []
}
},
methods: {
formatIncludes(includes) {
if (!includes?.length) return ''
return `包含:${includes.join(' + ')}`
},
async handleStartStudy(item, index) {
if (item.learnStatus !== 'NOT_STUDY') return
try {
// const res = await uni.$api.commonApi.getPrelernHomePopupAPI()
const res = {
"activityId": 31,
"activityName": "618年中促活动A",
"packages": [
{
"activityProductId": "16",
"packageName": "tttttttt",
"includes": ['原厂定制车衣','玻璃贴膜'],
"learnStatus": "NOT_STUDY",
"scriptReady": true
}
],
"remainingSkipCount": 0,
"shouldPopup": true,
"muteReason": null,
"remainingActivityCount": null
}
console.log('getPrelernHomePopupAPI res***', res)
if (!res) return
const freshItem = res.packages?.find(
(pkg) => pkg.activityProductId === item.activityProductId
)
console.log('freshItem***', freshItem)
if (!freshItem?.scriptReady) {
uni.showToast({ title: '话术未就绪,请稍后重试', icon: 'none' })
return
}
this.$emit('start-study', freshItem, index)
const prelearnDataStr = encodeURIComponent(JSON.stringify(res))
uni.navigateTo({
url: `/pages/common/prelearnBridge?prelearnData=${prelearnDataStr}&entrySource=home_popup`,
fail: (err) => {
console.error('预学习桥接页跳转失败:', err)
}
})
} catch (err) {
console.error('预学习首页弹框查询失败:', err)
}
},
handleCancel() {
this.$emit('cancel')
},
handleConfirm() {
if (this.confirmDisabled) return
this.$emit('confirm')
}
}
}
</script>
<style lang="scss" scoped>
.exam-submit-popup-wrapper {
position: relative;
width: 100%;
min-height: toRpx(400);
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: toRpx(48);
}
.content-box {
width: toRpx(720);
box-sizing: border-box;
}
.course-list {
width: 100%;
height: toRpx(440);
box-sizing: border-box;
}
.course-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: toRpx(16);
width: 100%;
padding: toRpx(16);
border-radius: toRpx(16);
border: toRpx(2) solid #e4e9f7;
background: #f5f7fa;
box-sizing: border-box;
margin-bottom: toRpx(48);
}
.course-item-title {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: toRpx(16);
}
.course-item-title-text {
width: 100%;
color: #333333;
font-size: toRpx(40);
font-weight: 500;
font-family: "HarmonyOSSansSC";
line-height: toRpx(60);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.course-item-desc {
display: block;
width: 100%;
min-width: 0;
color: #999999;
font-size: toRpx(28);
font-weight: 400;
font-family: "HarmonyOSSansSC";
line-height: toRpx(48);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.course-item-btn {
flex-shrink: 0;
height: toRpx(56);
padding: 0 toRpx(16);
border-radius: toRpx(8);
border: toRpx(2) solid rgba(44, 102, 247, 0.1);
background: #2c66f7;
color: #ffffff;
font-size: toRpx(26);
font-weight: 400;
font-family: "HarmonyOSSansSC";
line-height: toRpx(56);
text-align: center;
white-space: nowrap;
&--learned {
display: flex;
align-items: center;
gap: toRpx(8);
border: 1px solid rgba(44, 102, 247, 0.10);
background: rgba(44, 102, 247, 0.05);
color: #2c66f7;
}
}
.course-item-btn-icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.button-group {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
gap: toRpx(16);
margin-top: toRpx(8);
}
.confirm-button {
width: 100%;
height: toRpx(80);
margin: 0 auto;
padding: 0 toRpx(24);
box-sizing: border-box;
border-radius: toRpx(48);
border: toRpx(2) solid #979797;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
font-family: "HarmonyOSSansSC";
text-align: center;
line-height: toRpx(80);
&:active {
opacity: 0.8;
}
&--disabled {
border-color: #d9d9d9;
background-image: linear-gradient(0deg, #2c66f799 0%, #48a6ff99 100%);
color: #ffffff;
pointer-events: none;
&:active {
opacity: 1;
}
}
}
</style>
...@@ -116,6 +116,18 @@ ...@@ -116,6 +116,18 @@
} }
}, },
{ {
"path": "pages/common/prelearnBridge",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/actuvityDetail",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/studyCenter/myTask", "path": "pages/common/studyCenter/myTask",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
...@@ -155,6 +167,18 @@ ...@@ -155,6 +167,18 @@
} }
}, },
{ {
"path": "pages/common/customerPages/addFiles",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/customerPages/detailFiles",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/caseDetail", "path": "pages/common/caseDetail",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
......
...@@ -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;
......
<template>
<view class="goods-content">
<template v-if="goodsList.length">
<scroll-view scroll-y class="content-scroll-box" id="content-scroll" :style="{ height: contentHeight }"
:scroll-top="flagObject.scrollTop">
<template v-for="(i, index) in goodsList">
<view :class="['goods-item', goodsIndex == index ? 'active' : '', `status-${i.isMainPush}`]" :key="index"
@click="changeGoods(i, index)">
<view :class="['goods-status flex']">{{ statusText(i.isMainPush) }}</view>
<image class="goods-image" :src="i.thumbImageUrl"></image>
<view class="goods-title">{{ i.tabName }}</view>
<view class="goods-description">
<rich-text :nodes="i.tabDescription"></rich-text>
</view>
<view class="goods-price">
¥ {{ i.discountPrice }}
<view class="old-price">¥ {{ i.currentPrice }}</view>
</view>
</view>
</template>
</scroll-view>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'SkuBox',
props: {
currentCar: [Number, String],
show: Boolean,
activityData: Array,
tabIndex: Number,
hasBeforeActivity: Boolean,
hasAfterActivity: Boolean,
tabListId: Number,
},
data() {
return {
blockIndex: 0,
secondIndex: 0,
thirdlyIndex: 0,
goodsIndex: -1,
contentHeight: '0',
currentItem: {},
goodsList: [],
requested: false,
flagObject: {
goodsFlag: false,
scrollTop: 0
},
secondList: [],
secondName: ''
}
},
watch: {
/**切换车型 */
currentCar: {
immediate: true,
handler(newval) {
if (this.show && this.requested) this.changeCar(newval)
}
},
show: {
immediate: true,
handler(newval) {
if (newval && !this.requested) {
this.requested = true
this.init()
}
}
},
watchStatus: {
immediate: true,
handler(newval) {
}
},
},
computed: {
watchStatus() {
return this.$store.state.user.historyStatus;
},
},
mounted() {
},
methods: {
init() {
this.changeCar(this.currentCar)
},
changeCar(newval) {
this.goodsList = []
let { activityData, tabListId } = this,
list = activityData.find(e => e.marketingStage == tabListId)
if(!list) return
let carSeriesList = list.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)
},
setScrollHeight() {
this.$nextTick(() => {
let query = uni.createSelectorQuery()
query.select(`#content-scroll`).boundingClientRect(data => {
this.contentHeight = `calc(100% - ${data.top - 72}px)`
this.flagObject.scrollTop = 0
}).exec()
})
},
changeGoods(item, index, filter = true) {
if (filter && this.goodsIndex == index) return
this.goodsIndex = index
this.currentItem = item
this.changePreView()
},
setGoodsList(data) {
this.goodsList = []
this.flagObject.goodsFlag = false
data.map(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
setTimeout(() => {
this.setScrollHeight()
this.changeGoods(data[0], 0, false)
}, 200)
},
changePreView() {
this.$emit('changePreView', this.currentItem)
},
statusText(status) {
return status == 1 ? '主推' : '次推'
},
}
}
</script>
<style scoped lang='scss'>
.goods-content {
width: 100%;
height: 100%;
.content-scroll-box {
.goods-item {
position: relative;
width: calc(100% - #{toRpx(64)});
border: toRpx(3) solid #292D3333;
min-height: toRpx(296);
border-radius: toRpx(16);
padding: toRpx(24) toRpx(32) toRpx(24) toRpx(232);
margin-bottom: toRpx(24);
transition: all 0.15s;
.goods-status {
position: absolute;
right: 0;
top: 0;
height: toRpx(36);
color: #FFFFFF;
font-size: toRpx(24);
justify-content: center;
background: linear-gradient(90deg, #5C8AFF 0%, #49B6FF 100%);
padding: 0 toRpx(20);
border-radius: 0 toRpx(16) 0 toRpx(16);
}
.goods-image {
position: absolute;
width: toRpx(176);
height: toRpx(240);
top: toRpx(24);
left: toRpx(32);
}
.goods-title {
font-weight: 500;
font-size: toRpx(30);
color: #1A1A2E;
line-height: toRpx(36);
}
.goods-description {
margin-top: toRpx(8);
font-size: toRpx(26);
color: #6C6F75;
line-height: toRpx(36);
max-height: toRpx(144);
overflow: hidden;
word-break: break-all;
}
.goods-price {
margin-top: toRpx(8);
font-size: toRpx(36);
color: #F24724;
line-height: toRpx(44);
display: flex;
align-items: baseline;
.old-price {
font-size: toRpx(26);
color: #999EA8;
text-decoration: line-through;
margin-left: toRpx(12);
}
}
}
.status-1 {
.goods-status {
background: linear-gradient(270deg, #FF6748 0%, #F24724 100%);
}
&::after {
position: absolute;
content: '';
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;
background-size: 100% 100%;
z-index: -1;
}
}
.active {
border-color: #292D33;
.goods-description {
max-height: none;
overflow: auto;
}
}
}
.nothing {
flex-direction: column;
padding-top: toRpx(136);
font-size: toRpx(28);
color: #999999;
line-height: toRpx(40);
&-icon {
width: toRpx(676);
height: toRpx(284);
margin-bottom: toRpx(24);
background-image: url('@/assets/images/boutique/nothing.webp');
background-size: 100%;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
margin: 0 auto; margin: 0 auto;
padding-top: toRpx(236); padding-top: toRpx(252);
animation: show-view-opacity 0.15s forwards; animation: show-view-opacity 0.15s forwards;
.views-title-box { .views-title-box {
height: toRpx(96); height: toRpx(96);
......
<template>
<view class="activity-detail-page">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">商品详情</view>
</view>
<scroll-view class="detail-scroll" scroll-y>
<view class="detail-content">
<view class="goods-img-wrap">
<image
class="goods-img"
:src="displayMainImage"
mode="aspectFill"
/>
<view
v-if="goodsInfo.isMainPush == 1"
class="prelearn-btn"
@click.stop="handlePrelearnClick"
>
预学习
</view>
</view>
</view>
</scroll-view>
</view>
</template>
<script>
const GOODS_COVER = require('@/assets/images/common/goods-activity-cover.png')
const PRELEARN_AI_STATUS = {
GENERATING: 'GENERATING',
MODIFIED: 'MODIFIED',
DELETED: 'DELETED',
READY: 'READY'
}
const PRELEARN_AI_STATUS_TIPS = {
[PRELEARN_AI_STATUS.GENERATING]: 'AI生成中',
[PRELEARN_AI_STATUS.MODIFIED]: '策略更新重写中',
[PRELEARN_AI_STATUS.DELETED]: '任务已失效'
}
export default {
name: 'ActuvityDetail',
data() {
return {
goodsInfo: {}
}
},
computed: {
displayMainImage() {
return this.goodsInfo.mainImageUrl || this.goodsInfo.thumbImageUrl || GOODS_COVER
}
},
onLoad(options) {
console.log('[actuvityDetail] 页面入参 options:', options)
if (!options.row) {
console.warn('[actuvityDetail] 缺少 row 参数,无法加载商品信息')
return
}
try {
this.goodsInfo = JSON.parse(decodeURIComponent(options.row))
console.log('[actuvityDetail] 商品完整数据 goodsInfo:', this.goodsInfo)
} catch (error) {
console.error('[actuvityDetail] 解析商品详情参数失败:', error)
uni.showToast({
title: '商品信息加载失败',
icon: 'none'
})
}
},
methods: {
back() {
uni.navigateBack({
delta: 1,
animationType: 'pop-out',
animationDuration: 100
})
},
async handlePrelearnClick() {
if (!this.goodsInfo?.id && !this.goodsInfo?.productId) {
uni.showToast({
title: '商品信息不完整',
icon: 'none'
})
return
}
try {
const res = await uni.$api.activityApi.getPrelearnScriptBoardAPI({
activityId: this.goodsInfo.activityId,
activityProductId: this.goodsInfo.productId
})
console.log('getPrelearnScriptBoardAPI**前置*', res)
const { aiStatus } = res || {}
if (aiStatus !== PRELEARN_AI_STATUS.READY) {
const tip = PRELEARN_AI_STATUS_TIPS[aiStatus] || '剧本未就绪,请稍后重试'
uni.showToast({ title: tip, icon: 'none' })
return
}
const row = encodeURIComponent(JSON.stringify(this.goodsInfo))
uni.navigateTo({
url: `/pages/common/prelearnBridge?row=${row}&entrySource=package_detail`
})
} catch (error) {
console.error('[actuvityDetail] 预学习剧本查询失败:', error)
}
}
}
}
</script>
<style scoped lang="scss">
.activity-detail-page {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding-top: toRpx(160);
}
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
.detail-scroll {
height: calc(100vh - #{toRpx(160)});
}
.detail-content {
margin: 0 toRpx(64) toRpx(80);
padding-bottom: toRpx(40);
}
.goods-img-wrap {
position: relative;
width: 100%;
height: 288px;
overflow: hidden;
border-radius: 8px;
}
.goods-img {
width: 100%;
height: 288px;
display: block;
border-radius: 8px;
}
.prelearn-btn {
position: absolute;
top: 0;
right: 0;
z-index: 1;
padding: toRpx(10) toRpx(16);
border-radius: 0 8px 0 8px;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
font-size: 14px;
line-height: 14px;
font-weight: 500;
color: #ffffff;
white-space: nowrap;
&:active {
opacity: 0.85;
}
}
</style>
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<template v-if="currentDate"> <template v-if="currentDate">
<view class="box"> <view class="box">
<view class="popup-title flex"> <view class="popup-title flex">
{{ userInfo.name }}的待接待客户 <view class="text text-hide"> {{ userInfo.name }}</view>
的待接待客户
<view class="popup-close flex" @click="close"> <view class="popup-close flex" @click="close">
<uni-icons type="closeempty" size="16"></uni-icons> <uni-icons type="closeempty" size="16"></uni-icons>
</view> </view>
...@@ -115,7 +116,6 @@ export default { ...@@ -115,7 +116,6 @@ export default {
this.loadComplete = false this.loadComplete = false
this.customerList = [] this.customerList = []
if (val) this.getCustomerList() if (val) this.getCustomerList()
}, },
deep: true deep: true
} }
...@@ -128,57 +128,24 @@ export default { ...@@ -128,57 +128,24 @@ export default {
title: '加载中...', title: '加载中...',
mask: true mask: true
}) })
setTimeout(() => { try {
this.customerList = [ const { uuid, shopMerchantId } = this.userInfo,
{ data = await uni.$api.dailyTemplateApi.getTodayPlanStoreList({
customerName: '张宇', merchantId: shopMerchantId,
customerPhone: '138****1234', advanceUserId: uuid,
carSeriesName: '问界M7 Plus', inviteDate: this.currentDate.format('YYYY-MM-DD')
inviteDate: '2026-06-20', })
advanceUserName: '张三', console.log(data)
advanceUserId: '123456', this.customerList = data.map(item => ({
selected: false, ...item,
carBrandId: '车辆品牌id', selected: false
carBrand: '车辆品牌名称', }))
carChildsBrandId: '子品牌id',
carChildsBrandName: '子品牌名字',
carSeriesId: '车系id',
carSeriesName: '车系名字'
},
{
customerName: '迪丽热巴·迪丽热巴',
customerPhone: '138****1234',
carSeriesName: '问界M7',
advanceUserName: '张三',
advanceUserId: '123456',
inviteDate: '2026-06-10',
selected: false,
carBrandId: '车辆品牌id',
carBrand: '车辆品牌名称',
carChildsBrandId: '子品牌id',
carChildsBrandName: '子品牌名字',
carSeriesId: '车系id',
carSeriesName: '车系名字'
},
{
customerName: '黄小小',
customerPhone: '138****9239',
carSeriesName: '问界M7',
advanceUserName: '张三',
advanceUserId: '123456',
inviteDate: '2026-06-10',
selected: false,
carBrandId: '车辆品牌id',
carBrand: '车辆品牌名称',
carChildsBrandId: '子品牌id',
carChildsBrandName: '子品牌名字',
carSeriesId: '车系id',
carSeriesName: '车系名字'
},
]
this.loadComplete = true this.loadComplete = true
uni.hideLoading() uni.hideLoading()
}, 1000) } catch (error) {
uni.hideLoading()
console.log(error)
}
}, },
open() { open() {
this.currentDate = dayjs() this.currentDate = dayjs()
...@@ -246,17 +213,21 @@ export default { ...@@ -246,17 +213,21 @@ 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 {
max-width: 50%;
}
.popup-close { .popup-close {
position: absolute; position: absolute;
...@@ -271,9 +242,9 @@ export default { ...@@ -271,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;
...@@ -286,62 +257,62 @@ export default { ...@@ -286,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;
...@@ -359,8 +330,8 @@ export default { ...@@ -359,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;
} }
} }
...@@ -380,7 +351,7 @@ export default { ...@@ -380,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;
...@@ -388,7 +359,7 @@ export default { ...@@ -388,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;
...@@ -396,7 +367,7 @@ export default { ...@@ -396,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;
...@@ -409,7 +380,7 @@ export default { ...@@ -409,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 {
...@@ -421,24 +392,24 @@ export default { ...@@ -421,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;
...@@ -456,8 +427,8 @@ export default { ...@@ -456,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;
} }
} }
...@@ -473,7 +444,7 @@ export default { ...@@ -473,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;
...@@ -481,7 +452,7 @@ export default { ...@@ -481,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;
...@@ -489,7 +460,7 @@ export default { ...@@ -489,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;
...@@ -501,15 +472,15 @@ export default { ...@@ -501,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 {
...@@ -517,11 +488,11 @@ export default { ...@@ -517,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;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="fixed-box flex"> <view class="fixed-box flex">
<view class="fixed-title flex"> <view class="fixed-title flex">
<view class="sprite-icon icon-negotiation-detail-count"></view> <view class="sprite-icon icon-negotiation-detail-count"></view>
今日待接待客户数<text class="text-primary">5</text> 今日待接待客户数<text class="text-primary">{{ customerCount }}</text>
</view> </view>
<view class="fixed-btn flex" @click="$refs.CustomerDrawer.open()"> <view class="fixed-btn flex" @click="$refs.CustomerDrawer.open()">
查看客户 查看客户
...@@ -62,10 +62,11 @@ import Footer from '../components/Footer' ...@@ -62,10 +62,11 @@ import Footer from '../components/Footer'
import utils from '@/utils/utils' import utils from '@/utils/utils'
import EditForm from '../components/EditForm' import EditForm from '../components/EditForm'
import CustomerDrawer from './components/CustomerDrawer' import CustomerDrawer from './components/CustomerDrawer'
import dayjs from 'dayjs'
export default { export default {
components: { Table, Nothing, Footer, EditForm, CustomerDrawer }, components: { Table, Nothing, Footer, EditForm, CustomerDrawer },
name: 'edit', name: 'edit',
inject: ['sceneType'], inject: ['sceneType', 'userInfo'],
props: { props: {
templateData: { templateData: {
type: Array, type: Array,
...@@ -77,7 +78,8 @@ export default { ...@@ -77,7 +78,8 @@ export default {
return { return {
loadComplete: false, loadComplete: false,
list: [], list: [],
saveBtn: true saveBtn: true,
customerCount: 0
} }
}, },
watch: { watch: {
...@@ -87,9 +89,9 @@ export default { ...@@ -87,9 +89,9 @@ export default {
this.list = utils.deepClone(val) this.list = utils.deepClone(val)
setTimeout(() => { setTimeout(() => {
this.loadComplete = true this.loadComplete = true
this.getTodayPlanStoreCount()
}, 200) }, 200)
}, },
immediate: true,
deep: true deep: true
}, },
ReportStatus: { ReportStatus: {
...@@ -110,6 +112,19 @@ export default { ...@@ -110,6 +112,19 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
async getTodayPlanStoreCount() {
try {
const { uuid, shopMerchantId } = this.userInfo,
data = await uni.$api.dailyTemplateApi.getTodayPlanStoreCount({
merchantId: shopMerchantId,
advanceUserId: uuid,
inviteDate: dayjs().format('YYYY-MM-DD')
})
this.customerCount = data
} catch (error) {
console.log(error)
}
},
handleRowClick(row, rowIndex, index) { handleRowClick(row, rowIndex, index) {
let parent = this.list[index] let parent = this.list[index]
this.$refs.editForm.open(row, rowIndex, index, parent) this.$refs.editForm.open(row, rowIndex, index, parent)
...@@ -196,51 +211,51 @@ export default { ...@@ -196,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 {
...@@ -255,35 +270,35 @@ export default { ...@@ -255,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 {
...@@ -293,17 +308,17 @@ export default { ...@@ -293,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);
} }
} }
} }
...@@ -318,25 +333,25 @@ export default { ...@@ -318,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%;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="nothing-box"> <view class="nothing-box">
<image <image
class="icon" class="icon"
:src="require('@//assets/images/common/noData.webp')" :src="require('@/assets/images/common/noData.webp')"
/> />
<text class="text">{{ text }}</text> <text class="text">{{ text }}</text>
</view> </view>
...@@ -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!