Commit 8bd44244 by 前端

Merge branch 'sass+v5.8.2' into 'master'

上线合并

See merge request !91
2 parents a02d0b87 54de47d6
Showing 176 changed files with 326 additions and 130 deletions
...@@ -700,4 +700,24 @@ module.exports = { ...@@ -700,4 +700,24 @@ module.exports = {
...data, ...data,
}) })
}, },
/** OCR 识别 */
orcRecognition(data = {}) {
return http.post({
method: 'dj.api.common.ocr.recognition',
projectName: 'boutique',
...data,
})
},
/**
* 查询门店分类
*
*/
getSceneByMerchantId(data = {}) {
return http.post({
method: 'dj.api.scenemerchantref.findAllSceneByMerchantId',
projectName: 'boutique',
...data
})
},
} }
import http from '../request/http'
import { env } from '../../env'
const ENV = env == 'ip' ? 'develop' : env,
configUrl = `https://config-center-backend.glsx.com.cn/glsxAdmin/config?env=${ENV}`
/**
*
* @param {*} templateType 1: 驻店 2:门店 3:洽谈
*
* @returns
*/
const getDailyTemplate = async (templateType) => {
try {
const configModule = {
1: 'staff-daily-template',
2: 'store-daily-template',
3: 'negotiation-details-template',
}[templateType]
const data = await http.uni_request({ url: `${configUrl}&moduleUrl=${configModule}` })
return Promise.resolve(data)
} catch (error) {
return Promise.reject(error)
}
}
/**
* 查询日报是否填写列表
* @param {*} data
* @returns
*/
const getReportList = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.dailyReport.weekly.list',
projectName: 'boutique',
...data
})
}
/**
查询日报详情
*/
const getReportDetail = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.dailyReport.detail.get',
projectName: 'boutique',
...data
})
}
/**
是否需要新版本日报填报
*/
const isNewVersionNeed = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.dailyReport.new.version.isNeed',
projectName: 'boutique',
...data
})
}
/**
查询门店日报本月待邀约数
*/
const getMonthlyPendingCount = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.dailyReport.monthly.pending.get',
projectName: 'boutique',
...data
})
}
/**
查询洽谈明细驻店人员名单
*/
const getDiscussionStaffList = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.dailyReport.discussion.staff.list',
projectName: 'boutique',
...data
})
}
/**
日报草稿数据保存
*/
const saveDraft = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.dailyReport.dynamic.draft.save',
projectName: 'boutique',
...data
})
}
/**
日报数据提交
*/
const submitReport = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.dailyReport.dynamic.save',
projectName: 'boutique',
...data
})
}
/**
* 当前门店驻店人员在选中成交日期交付的延保及权益订单
*/
const getGoodsOrderList = async (data = {}) => {
return http.post({
method: 'dj.api.smartcarlife.goodsOrder.product.outputValue.list',
projectName: 'boutique',
...data
})
}
module.exports = {
getDailyTemplate,
getReportList,
getReportDetail,
isNewVersionNeed,
getMonthlyPendingCount,
saveDraft,
getDiscussionStaffList,
submitReport,
getGoodsOrderList
}
...@@ -12,6 +12,7 @@ import interceptionApi from './interceptionApi' ...@@ -12,6 +12,7 @@ import interceptionApi from './interceptionApi'
import popupApi from './popupApi' import popupApi from './popupApi'
import usedCarApi from './usedCar' import usedCarApi from './usedCar'
import equityApi from './equity' import equityApi from './equity'
import dailyTemplateApi from './dailyTemplateApi'
module.exports = { module.exports = {
commonApi, commonApi,
...@@ -27,5 +28,6 @@ module.exports = { ...@@ -27,5 +28,6 @@ module.exports = {
evaluationApi, evaluationApi,
usedCarApi, usedCarApi,
activityApi, activityApi,
equityApi equityApi,
dailyTemplateApi
} }
...@@ -5,7 +5,7 @@ const HOST = { ...@@ -5,7 +5,7 @@ const HOST = {
scrm: domain, scrm: domain,
dj: djDomain, dj: djDomain,
merchant: merchantDomain, merchant: merchantDomain,
ip: 'http://192.168.1.125:8080' ip: 'http://192.168.1.96:8292'
} }
/** 接口 message 转可展示的 Toast 文案(非字符串、过长在部分端上会导致不弹提示) */ /** 接口 message 转可展示的 Toast 文案(非字符串、过长在部分端上会导致不弹提示) */
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

3.17 MB | W: | H:

3.21 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="wn-canvas"> <view class="wn-canvas">
<zoom-pan <zoom-pan
:class="['canvas-box',{fill:custom}]" :class="['canvas-box',{fill:custom}]"
:disabled="drawStatus || !scaleSwitch" :disabled="carBrandOpenStatus || drawStatus || !scaleSwitch"
:scale-max="3" :scale-max="3"
:scale-min="1" :scale-min="1"
@scale="scale" @scale="scale"
...@@ -178,6 +178,9 @@ export default { ...@@ -178,6 +178,9 @@ export default {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
carBrandOpenStatus () {
return this.$store.state.user.carBrandOpenStatus
},
}, },
mounted (opt) { mounted (opt) {
this.drawContext = uni.createCanvasContext(this.canvasId, this); this.drawContext = uni.createCanvasContext(this.canvasId, this);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择车品牌" title="请选择车品牌"
@close="$emit('close')" @close="clickClose"
> >
<view class="select-box"> <view class="select-box">
<view <view
...@@ -113,6 +113,7 @@ export default { ...@@ -113,6 +113,7 @@ export default {
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)
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
/**获取品牌车型 */ /**获取品牌车型 */
...@@ -219,6 +220,7 @@ export default { ...@@ -219,6 +220,7 @@ export default {
this.$store.dispatch('setCurrentCarInfo', selectItem) this.$store.dispatch('setCurrentCarInfo', selectItem)
} }
this.$refs.carBoxVisible?.close(); this.$refs.carBoxVisible?.close();
this.$store.dispatch('setCarBrandOpenStatus', false)
this.$emit('select', { this.$emit('select', {
...item, ...item,
...selectItem ...selectItem
...@@ -228,11 +230,17 @@ export default { ...@@ -228,11 +230,17 @@ export default {
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)
}, },
closeCarBoxVisible () { closeCarBoxVisible () {
if (this.carBrandListOff) return if (this.carBrandListOff) return
else this.$emit('close') else this.$emit('close')
} },
clickClose () {
this.$store.dispatch('setCarBrandOpenStatus', false)
this.$emit('close')
},
} }
} }
</script> </script>
......
...@@ -34,96 +34,17 @@ export default { ...@@ -34,96 +34,17 @@ export default {
// 工资申诉入口是否允许显示 // 工资申诉入口是否允许显示
wageAppealAllowed: false, wageAppealAllowed: false,
// 工资申诉入口加载中,加载完成前不展示避免误显示 // 工资申诉入口加载中,加载完成前不展示避免误显示
loadingEntrance: true loadingEntrance: true,
entranceList: []
} }
}, },
created() { created() {
// 组件创建时请求工资申诉入口权限 // 组件创建时请求工资申诉入口权限
this.fetchWageAppealEntrance() this.fetchWageAppealEntrance()
this.getEntranceList()
}, },
computed: { computed: {
entranceList() {
let { sceneType } = uni.$storage.get('userInfo') || {},
entranceList = [
{
icon: 'daily-report',
label: '驻店日报',
name: 'DailyReport',
sceneType: [0, 1, 7]
},
{
icon: 'create-order',
label: '新建工单',
name: 'CreateOrder',
sceneType: [0, 1]
},
{
icon: 'equity-order',
label: '权益提单',
name: 'EquityManagement',
sceneType: [0]
},
{
icon: 'defeat-order',
label: '战败下单',
name: 'DefeatOrder',
sceneType: [0, 1]
},
{
icon: 'order-management',
label: '工单列表',
name: 'OrderManagement',
sceneType: [0, 1]
},
{
icon: 'wage-appeal',
label: '工资申诉',
name: 'WageAppeal',
sceneType: [0, 1]
},
{
icon: 'evaluation-management',
label: '评估单管理',
name: 'EvaluationFormList',
sceneType: [7]
},
{
icon: 'carInfoIcon',
label: '车况信息',
name: 'CarConditionInfo',
page: '/pages/usedCar/inspectionReport/index?h5Entry=carInfo',
sceneType: [7]
},
{
icon: 'delivery-management',
label: '交付管理',
name: 'DeliveryManagement',
page: '/pages/usedCar/deliveryManagement/index',
sceneType: [7]
},
{
icon: 'report-management',
label: '报告管理',
name: 'ReportManagement',
page: '/pages/usedCar/reportManagement/index',
sceneType: [7]
},
{
icon: 'report',
label: '检测管理',
name: 'InspectionReport',
page: '/pages/usedCar/inspectionReport/index',
sceneType: [7]
}
]
// 先根据场景过滤
let list = entranceList.filter(e => e.sceneType.includes(sceneType))
// 加载阶段或不允许显示时,移除工资申诉入口
if (this.loadingEntrance || !this.wageAppealAllowed) {
list = list.filter(e => e.name !== 'WageAppeal')
}
return list
}
}, },
methods: { methods: {
// 请求工资申诉入口权限,并设置显示开关 // 请求工资申诉入口权限,并设置显示开关
...@@ -158,6 +79,131 @@ export default { ...@@ -158,6 +79,131 @@ export default {
handleClick(item) { handleClick(item) {
// 这里可以根据实际需求进行跳转或功能处理 // 这里可以根据实际需求进行跳转或功能处理
this.$emit('entranceClick', item) this.$emit('entranceClick', item)
},
isNewVersionNeed(merchantId) {
return uni.$api.dailyTemplateApi.isNewVersionNeed({ merchantId })
},
async getEntranceList() {
let entranceList = [
{
icon: 'daily-report',
label: '驻店日报',
name: 'DailyReport',
sceneType: [0, 1, 7],
noInterception: true
},
{
icon: 'create-order',
label: '新建工单',
name: 'CreateOrder',
sceneType: [0, 1]
},
{
icon: 'equity-order',
label: '权益提单',
name: 'EquityManagement',
sceneType: [0]
},
{
icon: 'defeat-order',
label: '战败下单',
name: 'DefeatOrder',
sceneType: [0, 1]
},
{
icon: 'order-management',
label: '工单列表',
name: 'OrderManagement',
sceneType: [0, 1]
},
{
icon: 'wage-appeal',
label: '工资申诉',
name: 'WageAppeal',
sceneType: [0, 1],
noInterception: true
},
{
icon: 'evaluation-management',
label: '评估单管理',
name: 'EvaluationFormList',
sceneType: [7]
},
{
icon: 'carInfoIcon',
label: '车况信息',
name: 'CarConditionInfo',
page: '/pages/usedCar/inspectionReport/index?h5Entry=carInfo',
sceneType: [7]
},
{
icon: 'delivery-management',
label: '交付管理',
name: 'DeliveryManagement',
page: '/pages/usedCar/deliveryManagement/index',
sceneType: [7],
checkDailyReport: false
},
{
icon: 'report-management',
label: '报告管理',
name: 'ReportManagement',
page: '/pages/usedCar/reportManagement/index',
sceneType: [7],
checkDailyReport: false
},
{
icon: 'report',
label: '检测管理',
name: 'InspectionReport',
page: '/pages/usedCar/inspectionReport/index',
sceneType: [7],
noInterception: true
},
{
icon: 'daily-report',
label: '驻店日报-新',
name: 'staffDailyReport',
page: '/pages/common/dailyNewspaper/index',
eventCode: 'staff_daily_report_page',
noInterception: true
},
{
icon: 'store-daily-report',
label: '门店日报',
name: 'storeDailyReport',
page: '/pages/common/dailyNewspaper/index',
eventCode: 'store_daily_report_page',
noInterception: true
},
{
icon: 'negotiation-detail',
name: 'NegotiationDetail',
label: '洽谈明细',
page: '/pages/common/dailyNewspaper/index',
eventCode: 'negotiation_detail_page',
noInterception: true
},
]
try {
let userInfo = uni.$storage.get('userInfo'),
{ sceneType, shopMerchantId } = userInfo,
newReport = await this.isNewVersionNeed(shopMerchantId)
if (newReport && sceneType != 7) {
entranceList.map(e => {
if (['staffDailyReport', 'storeDailyReport', 'NegotiationDetail'].includes(e.name)) e.sceneType = [0, 1]
})
}
// 先根据场景过滤
let list = entranceList.filter(e => e.sceneType?.includes(sceneType))
// 加载阶段或不允许显示时,移除工资申诉入口
if (this.loadingEntrance || !this.wageAppealAllowed) {
list = list.filter(e => e.name !== 'WageAppeal')
}
this.entranceList = list
} catch (error) {
console.log(error)
}
} }
} }
} }
...@@ -176,9 +222,11 @@ export default { ...@@ -176,9 +222,11 @@ export default {
display: grid; display: grid;
row-gap: toRpx(30); row-gap: toRpx(30);
column-gap: toRpx(68); column-gap: toRpx(68);
&.entrance-list-0 { &.entrance-list-0 {
grid-template-columns: repeat(5, 1fr); grid-template-columns: repeat(5, 1fr);
} }
&.entrance-list-1 { &.entrance-list-1 {
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
} }
...@@ -192,15 +240,18 @@ export default { ...@@ -192,15 +240,18 @@ export default {
justify-content: center; justify-content: center;
font-size: toRpx(28); font-size: toRpx(28);
color: #333; color: #333;
.entrance-name { .entrance-name {
margin-top: toRpx(8); margin-top: toRpx(8);
} }
} }
.developing { .developing {
height: 100%; height: 100%;
flex-direction: column; flex-direction: column;
color: #999999; color: #999999;
font-size: toRpx(20); font-size: toRpx(20);
&-icon { &-icon {
width: toRpx(344); width: toRpx(344);
height: toRpx(208); height: toRpx(208);
......
...@@ -452,6 +452,7 @@ export default { ...@@ -452,6 +452,7 @@ export default {
.uni-list-cell { .uni-list-cell {
margin-left: toRpx(48); margin-left: toRpx(48);
font-size: toRpx(24);
} }
.radio-name { .radio-name {
......
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
left: 0; left: 0;
width: toRpx(122); width: toRpx(122);
height: toRpx(48); height: toRpx(48);
background-image: url('../../../../assets/images/common/limit-page.png'); background-image: url('../../../../assets/images/common/limit-page.webp');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</u-list> </u-list>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image class="icon" src="../../../assets/images/common/noData.png" /> <image class="icon" src="../../../assets/images/common/noData.webp" />
暂无记录 暂无记录
</view> </view>
</template> </template>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</scroll-view> </scroll-view>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image class="icon" src="../../../assets/images/common/noData.png" /> <image class="icon" src="../../../assets/images/common/noData.webp" />
暂无数据 暂无数据
</view> </view>
</template> </template>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<template v-else> <template v-else>
<view class="flex algin-center justify-between w-100 h-100"> <view class="flex algin-center justify-between w-100 h-100">
<view class="flex noData"> <view class="flex noData">
<image class="icon" src="../../../assets/images/boutique/nothing.png" /> <image class="icon" src="../../../assets/images/boutique/nothing.webp" />
暂无数据 暂无数据
</view> </view>
</view> </view>
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<template v-else> <template v-else>
<view class="flex algin-center justify-between w-100 h-100"> <view class="flex algin-center justify-between w-100 h-100">
<view class="flex noData"> <view class="flex noData">
<image class="icon" src="../../../assets/images/boutique/nothing.png" /> <image class="icon" src="../../../assets/images/boutique/nothing.webp" />
暂无数据 暂无数据
</view> </view>
</view> </view>
...@@ -322,7 +322,7 @@ export default { ...@@ -322,7 +322,7 @@ export default {
margin-right: toRpx(48); margin-right: toRpx(48);
border-radius: toRpx(48); border-radius: toRpx(48);
height: calc(100vh - #{toRpx(136)}); height: calc(100vh - #{toRpx(136)});
background: url('@/assets/images/common/activeityCenterBg.png') no-repeat; background: url('@/assets/images/common/activeityCenterBg.webp') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
overflow: hidden; overflow: hidden;
.title { .title {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</view> </view>
<view class="tips-body" v-else> <view class="tips-body" v-else>
<view class="empty-box"> <view class="empty-box">
<image :src="require('@/assets/images/boutique/nothing.png')" mode="heightFix" /> <image :src="require('@/assets/images/boutique/nothing.webp')" mode="heightFix" />
<view class="empty-text">暂无记录</view> <view class="empty-text">暂无记录</view>
</view> </view>
</view> </view>
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</template> </template>
<view class="empty-body" v-else> <view class="empty-body" v-else>
<view class="empty-box"> <view class="empty-box">
<image :src="require('@/assets/images/boutique/nothing.png')" mode="heightFix" /> <image :src="require('@/assets/images/boutique/nothing.webp')" mode="heightFix" />
<view class="empty-text">暂无记录</view> <view class="empty-text">暂无记录</view>
</view> </view>
</view> </view>
......
...@@ -120,7 +120,6 @@ export default { ...@@ -120,7 +120,6 @@ export default {
}, },
watch: { watch: {
userInfo (n) { userInfo (n) {
console.log('userInfo', n)
if (n.shopMerchantId) this.haveCustomerAccess(n) if (n.shopMerchantId) this.haveCustomerAccess(n)
}, },
activityWindowPopStatus:{ activityWindowPopStatus:{
...@@ -214,7 +213,6 @@ export default { ...@@ -214,7 +213,6 @@ export default {
] ]
let { sceneType } = uni.$storage.get("userInfo") let { sceneType } = uni.$storage.get("userInfo")
if (sceneType == 7) tabs[1].hidden = true if (sceneType == 7) tabs[1].hidden = true
console.log('tabs', tabs)
return tabs return tabs
}, },
activityWindowPopStatus () { activityWindowPopStatus () {
...@@ -225,7 +223,6 @@ export default { ...@@ -225,7 +223,6 @@ export default {
uni.$on('ActivityCenter', this.handleActivityCenter); uni.$on('ActivityCenter', this.handleActivityCenter);
// uni.$on('ActivityCenter', () => { // uni.$on('ActivityCenter', () => {
// console.log('ActivityCenter')
// let { tabs } = this, // let { tabs } = this,
// index = tabs.findIndex(e => e.name == 'ActivityCenter') // index = tabs.findIndex(e => e.name == 'ActivityCenter')
// this.changeIndex(index, this.tabs[index]) // this.changeIndex(index, this.tabs[index])
...@@ -236,7 +233,6 @@ export default { ...@@ -236,7 +233,6 @@ export default {
index = tabs.findIndex(e => e.name == 'StudyCenter') index = tabs.findIndex(e => e.name == 'StudyCenter')
this.changeIndex(index, this.tabs[index]) this.changeIndex(index, this.tabs[index])
}); });
console.log('this.tabIndex', this.tabIndex)
//获取北森代办数量 //获取北森代办数量
this.getUnreadCount() this.getUnreadCount()
// 学习中心权限获取,场景集市权限 // 学习中心权限获取,场景集市权限
...@@ -303,7 +299,6 @@ export default { ...@@ -303,7 +299,6 @@ export default {
}) })
}, },
handleActivityCenter () { handleActivityCenter () {
console.log('ActivityCenter triggered'); // 添加日志查看触发次数
let { tabs } = this; let { tabs } = this;
let index = tabs.findIndex(e => e.name == 'ActivityCenter'); let index = tabs.findIndex(e => e.name == 'ActivityCenter');
if (index !== -1) { if (index !== -1) {
...@@ -337,7 +332,6 @@ export default { ...@@ -337,7 +332,6 @@ export default {
merchantId: shopMerchantId, merchantId: shopMerchantId,
scene scene
}).then(result => { }).then(result => {
console.log('有客户权限', result)
if (result) { if (result) {
this.hasPerson = true this.hasPerson = true
// this.activityTabVisible = scene !== 7 // this.activityTabVisible = scene !== 7
...@@ -407,7 +401,6 @@ export default { ...@@ -407,7 +401,6 @@ export default {
// 1. 学习策略弹窗 // 1. 学习策略弹窗
caseParams.moduleType = 6 caseParams.moduleType = 6
const studyCaseRes = await uni.$api.commonApi.getBoxPage(caseParams) const studyCaseRes = await uni.$api.commonApi.getBoxPage(caseParams)
console.log(studyCaseRes, 'studyCaseRes')
if(studyCaseRes.list.length) { if(studyCaseRes.list.length) {
this.messageType = 'caseStudy' this.messageType = 'caseStudy'
this.messageData = studyCaseRes.list[0] this.messageData = studyCaseRes.list[0]
...@@ -416,7 +409,6 @@ export default { ...@@ -416,7 +409,6 @@ export default {
} }
// 2. 长课程推送 // 2. 长课程推送
const longCourseRes = await uni.$api.commonApi.getLongCourseNotify() const longCourseRes = await uni.$api.commonApi.getLongCourseNotify()
console.log(longCourseRes, 'longCourseRes')
if(longCourseRes.count > 0) { if(longCourseRes.count > 0) {
this.messageType = 'study' this.messageType = 'study'
this.messageData = longCourseRes this.messageData = longCourseRes
...@@ -432,7 +424,6 @@ export default { ...@@ -432,7 +424,6 @@ export default {
// 3. 优秀案例分享 // 3. 优秀案例分享
caseParams.moduleType = 7 caseParams.moduleType = 7
const caseRes = await uni.$api.commonApi.getBoxPage(caseParams) const caseRes = await uni.$api.commonApi.getBoxPage(caseParams)
console.log(caseRes, 'caseRes')
if(caseRes.list.length) { if(caseRes.list.length) {
this.messageType = 'caseShare' this.messageType = 'caseShare'
this.messageData = caseRes.list[0] this.messageData = caseRes.list[0]
...@@ -445,7 +436,6 @@ export default { ...@@ -445,7 +436,6 @@ export default {
// 5. 企业通知推送 // 5. 企业通知推送
const enterpriseRes = await uni.$api.commonApi.getEnterpriseNotify() const enterpriseRes = await uni.$api.commonApi.getEnterpriseNotify()
console.log(enterpriseRes, 'enterpriseRes')
if(enterpriseRes.ids || enterpriseRes.businessIds) { if(enterpriseRes.ids || enterpriseRes.businessIds) {
this.messageType = 'system' this.messageType = 'system'
this.messageData = enterpriseRes this.messageData = enterpriseRes
...@@ -510,7 +500,6 @@ export default { ...@@ -510,7 +500,6 @@ export default {
if (!res) { if (!res) {
uni.$api.commonApi.getStudyCenterPermission({}).then(res => { uni.$api.commonApi.getStudyCenterPermission({}).then(res => {
uni.$storage.set('studyCenterPermission', res) uni.$storage.set('studyCenterPermission', res)
console.log(res, 'res')
}) })
} }
if (userInfo.sceneType == 7) { if (userInfo.sceneType == 7) {
...@@ -612,7 +601,7 @@ export default { ...@@ -612,7 +601,7 @@ export default {
width: toRpx(310); width: toRpx(310);
height: toRpx(90); height: toRpx(90);
line-height: toRpx(64); line-height: toRpx(64);
background-image: url('@/assets/images/home/daliog.png'); background-image: url('@/assets/images/home/daliog.webp');
background-size: 100% 100%; background-size: 100% 100%;
z-index: 99999; z-index: 99999;
padding-left: toRpx(60); padding-left: toRpx(60);
......
...@@ -10,21 +10,21 @@ ...@@ -10,21 +10,21 @@
<!-- 当前有 3 个学习任务待完成,请及时处理。 <!-- 当前有 3 个学习任务待完成,请及时处理。
坚持学习助您能力提升! --> 坚持学习助您能力提升! -->
<template v-else-if="type=='study'"> <template v-else-if="type=='study'">
<image class="study-bg" :src="require('@//assets/images/common/study-center-bg.png')"></image> <image class="study-bg" :src="require('@//assets/images/common/study-center-bg.webp')"></image>
<view class="text text-first study-title">学习提醒</view> <view class="text text-first study-title">学习提醒</view>
<view class="text study-text">当前有{{messageData.count}}个学习任务待完成,请及时处理。</view> <view class="text study-text">当前有{{messageData.count}}个学习任务待完成,请及时处理。</view>
<view class="text study-text">坚持学习助您能力提升!</view> <view class="text study-text">坚持学习助您能力提升!</view>
<view class="btn study-btn" @click="jumpStudyCenter">去查看</view> <view class="btn study-btn" @click="jumpStudyCenter">去查看</view>
</template> </template>
<template v-else-if="type=='caseStudy'"> <template v-else-if="type=='caseStudy'">
<image class="study-bg" :src="require('@//assets/images/common/study-center-bg.png')"></image> <image class="study-bg" :src="require('@//assets/images/common/study-center-bg.webp')"></image>
<view class="text text-first study-title">学习提醒</view> <view class="text text-first study-title">学习提醒</view>
<view class="text study-text" v-if="messageData.reminderType == 1">您有新的长课程学习任务:{{messageData.msgTitle}},请及时完成。</view> <view class="text study-text" v-if="messageData.reminderType == 1">您有新的长课程学习任务:{{messageData.msgTitle}},请及时完成。</view>
<view class="text study-text" v-if="messageData.reminderType == 2">您有未完成学习任务:{{messageData.msgTitle}}即将到期,抓紧时间完成哦!</view> <view class="text study-text" v-if="messageData.reminderType == 2">您有未完成学习任务:{{messageData.msgTitle}}即将到期,抓紧时间完成哦!</view>
<view class="btn study-btn" @click="jumpCaseStudy">去学习</view> <view class="btn study-btn" @click="jumpCaseStudy">去学习</view>
</template> </template>
<template v-else-if="type=='caseShare'"> <template v-else-if="type=='caseShare'">
<image class="study-bg" :src="require('@//assets/images/common/case-notice.png')"></image> <image class="study-bg" :src="require('@//assets/images/common/case-notice.webp')"></image>
<view class="text text-first study-title">学习提醒</view> <view class="text text-first study-title">学习提醒</view>
<view class="text study-text" v-if="messageData.reminderType == 1">您有新的优秀案例学习任务:{{messageData.msgTitle}},请及时完成。</view> <view class="text study-text" v-if="messageData.reminderType == 1">您有新的优秀案例学习任务:{{messageData.msgTitle}},请及时完成。</view>
<view class="text study-text" v-if="messageData.reminderType == 2">您有未完成学习任务:{{messageData.msgTitle}}即将到期,抓紧时间完成哦!</view> <view class="text study-text" v-if="messageData.reminderType == 2">您有未完成学习任务:{{messageData.msgTitle}}即将到期,抓紧时间完成哦!</view>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</view> </view>
</view> </view>
<view class="empty-box" v-else> <view class="empty-box" v-else>
<image :src="require('@/assets/images/boutique/nothing.png')" mode="heightFix" /> <image :src="require('@/assets/images/boutique/nothing.webp')" mode="heightFix" />
<view class="empty-text">暂无积分记录</view> <view class="empty-text">暂无积分记录</view>
</view> </view>
</view> </view>
......
...@@ -61,14 +61,14 @@ export default { ...@@ -61,14 +61,14 @@ export default {
timer: null, timer: null,
selectItem: {}, selectItem: {},
list: [ list: [
{ title: '考勤打卡', typeCode: 'T006', content: '完成日常打卡', rules: '请打开嘀加智慧云企业微信进行上下班打卡', logo: require('@/assets/images/point/day-time.png') }, { title: '考勤打卡', typeCode: 'T006', content: '完成日常打卡', rules: '请打开嘀加智慧云企业微信进行上下班打卡', logo: require('@/assets/images/point/day-time.webp') },
{ title: '日报填写', typeCode: 'T005', content: '完成日报填写', rules: '请打开嘀加智慧云企业微信生意助手员工版填写日报', logo: require('@/assets/images/point/day-report.png') }, { title: '日报填写', typeCode: 'T005', content: '完成日报填写', rules: '请打开嘀加智慧云企业微信生意助手员工版填写日报', logo: require('@/assets/images/point/day-report.webp') },
{ title: '平板接待', typeCode: 'T007', content: '完成平板接待', rules: '即将跳转至展业助手开始接待', logo: require('@/assets/images/point/day-ipad.png'), jump: true }, { title: '平板接待', typeCode: 'T007', content: '完成平板接待', rules: '即将跳转至展业助手开始接待', logo: require('@/assets/images/point/day-ipad.webp'), jump: true },
{ title: '飞行督导带教', typeCode: 'T001', content: '带教课程学习', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-training.png') }, { title: '飞行督导带教', typeCode: 'T001', content: '带教课程学习', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-training.webp') },
{ title: '总部集中培训', typeCode: 'T002', content: '总部集中培训', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-train.png') }, { title: '总部集中培训', typeCode: 'T002', content: '总部集中培训', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-train.webp') },
{ title: '学习类', typeCode: 'T004', content: '完成学习课程', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-course.png') }, { title: '学习类', typeCode: 'T004', content: '完成学习课程', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-course.webp') },
{ title: '预学习', typeCode: 'T003', content: '完成预学习', rules: '即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术(如门店未开通客户档案则无法访问,请联系运营部门开通)', logo: require('@/assets/images/point/day-study.png'), jump: true, jumpUrl: 'CustomerFile' }, { title: '预学习', typeCode: 'T003', content: '完成预学习', rules: '即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术(如门店未开通客户档案则无法访问,请联系运营部门开通)', logo: require('@/assets/images/point/day-study.webp'), jump: true, jumpUrl: 'CustomerFile' },
{ title: '行为异常', typeCode: 'T008', content: '完成预学习', rules: '即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术', logo: require('@/assets/images/point/day-study.png') } { title: '行为异常', typeCode: 'T008', content: '完成预学习', rules: '即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术', logo: require('@/assets/images/point/day-study.webp') }
], ],
dayList: [], dayList: [],
completed: 0, completed: 0,
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<view :class="['coupon-bg', `${TYPE_LIST[item.couponState]}-bg`]"> <view :class="['coupon-bg', `${TYPE_LIST[item.couponState]}-bg`]">
<image v-if="item.couponState == 2" class="claimed-left" :src="require('@/assets/images/point/claimed-left.png')" alt="" /> <image v-if="item.couponState == 2" class="claimed-left" :src="require('@/assets/images/point/claimed-left.png')" alt="" />
<view class="coupon-img"> <view class="coupon-img">
<image class="img" mode="aspectFill" :src="item.couUrl || require('@/assets/images/point/default-coupon.png')" alt="" /> <image class="img" mode="aspectFill" :src="item.couUrl || require('@/assets/images/point/default-coupon.webp')" alt="" />
</view> </view>
<view class="coupon-info"> <view class="coupon-info">
<view :class="['coupon-name', { 'gray-name': item.couponState == 3 }]">{{ item.couponName }}</view> <view :class="['coupon-name', { 'gray-name': item.couponState == 3 }]">{{ item.couponName }}</view>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<view class="coupon-card"> <view class="coupon-card">
<view :class="['coupon-header', couponDetailInfo.couponState == 2 ? 'detail-header' : '']"> <view :class="['coupon-header', couponDetailInfo.couponState == 2 ? 'detail-header' : '']">
<view class="header-img"> <view class="header-img">
<image :src="couponDetailInfo.couUrl || require('@/assets/images/point/default-coupon.png')" alt="" /> <image :src="couponDetailInfo.couUrl || require('@/assets/images/point/default-coupon.webp')" alt="" />
</view> </view>
<view class="coupon-base-info"> <view class="coupon-base-info">
<h3>{{ couponDetailInfo.couponName }}</h3> <h3>{{ couponDetailInfo.couponName }}</h3>
...@@ -622,7 +622,7 @@ export default { ...@@ -622,7 +622,7 @@ export default {
} }
.expired-bg { .expired-bg {
background: url('../../../../assets/images/point/expired-bg.png') no-repeat; background: url('../../../../assets/images/point/expired-bg.webp') no-repeat;
} }
.unclaimed-bg { .unclaimed-bg {
......
...@@ -80,7 +80,7 @@ const POINT_LIST = [ ...@@ -80,7 +80,7 @@ const POINT_LIST = [
{ {
id: 2, id: 2,
title: '全勤之星', title: '全勤之星',
src: require('@/assets/images/point/diligent_bg.png'), src: require('@/assets/images/point/diligent_bg.webp'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);' style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
}, },
{ {
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<view class="coupon-card"> <view class="coupon-card">
<view v-for="item in couponList" :key="item.id" class="card-bg" :class="item.couponState == 2 ? 'claimed-bg' : 'unclaimed-bg'"> <view v-for="item in couponList" :key="item.id" class="card-bg" :class="item.couponState == 2 ? 'claimed-bg' : 'unclaimed-bg'">
<view class="coupon-img"> <view class="coupon-img">
<image mode="aspectFit" :src="item.couUrl || require('@/assets/images/point/default-coupon.png')" alt="" /> <image mode="aspectFit" :src="item.couUrl || require('@/assets/images/point/default-coupon.webp')" alt="" />
</view> </view>
<view class="coupon-right"> <view class="coupon-right">
<view :class="['coupon-name', item.couponState == 1 ? 'unclaimed-name' : '']">{{ item.couponName }}</view> <view :class="['coupon-name', item.couponState == 1 ? 'unclaimed-name' : '']">{{ item.couponName }}</view>
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="empty-box"> <view class="empty-box">
<image :src="require('@/assets/images/boutique/nothing.png')" mode="heightFix" /> <image :src="require('@/assets/images/boutique/nothing.webp')" mode="heightFix" />
<view class="empty-text">暂无可用卡券</view> <view class="empty-text">暂无可用卡券</view>
</view> </view>
</template> </template>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="empty-box"> <view class="empty-box">
<image :src="require('@/assets/images/boutique/nothing.png')" mode="heightFix" /> <image :src="require('@/assets/images/boutique/nothing.webp')" mode="heightFix" />
<view class="empty-text">查看每日积分项,领取积分</view> <view class="empty-text">查看每日积分项,领取积分</view>
</view> </view>
<view class="day-record" @click="jump('dayPoint')">每日积分</view> <view class="day-record" @click="jump('dayPoint')">每日积分</view>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image class="icon" src="../../../../assets/images/common/noData.png" /> <image class="icon" src="../../../../assets/images/common/noData.webp" />
暂无数据 暂无数据
</view> </view>
</template> </template>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image class="icon" src="../../../../assets/images/common/noData.png" /> <image class="icon" src="../../../../assets/images/common/noData.webp" />
暂无数据 暂无数据
</view> </view>
</template> </template>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
:width="848" :width="848"
:closeButton="true" :closeButton="true"
:height="examPopInfo.isExamLoading ? 740 : 656" :height="examPopInfo.isExamLoading ? 740 : 656"
:topImage="require('@/assets/images/common/warning-notice.png')" :topImage="require('@/assets/images/common/warning-notice.webp')"
:topImageWidth="848" :topImageWidth="848"
:topImageHeight="248" :topImageHeight="248"
> >
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!