Commit 177a53bf by 李伟康

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents b6915151 f1450b49
Showing 41 changed files with 3424 additions and 1817 deletions
......@@ -458,4 +458,52 @@ module.exports = {
...data
})
},
// 新 学习中心 - 开始测评
startExam(data) {
return http.post({
method: 'dj.pad.api.staff.study.exam.start',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 员工学习时长统计
getStudyCenterTimeStatistics(data) {
return http.post({
method: 'dj.pad.api.course.staff.statistics',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 我的课程 ,带状态的分页接口
getMyCourseList(data) {
return http.post({
method: 'dj.api.pad.learning.center.myself.course',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 查询考试分页接口
getExamPage(data) {
return http.post({
method: 'dj.pad.api.recommended.staff.examination.page',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 考试统计
getExamStatistics(data) {
return http.post({
method: 'dj.pad.api.recommended.staff.examination.count',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 排行榜
getStudyDurationRank(data) {
return http.post({
method: 'dj.pad.api.recommended.staff.study.duration.rank',
projectName: 'pad',
...data
})
},
}
import http from '../request/http'
module.exports = {
/** 报价单分页列表 */
quotationPage(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique',
...data
})
},
/** 根据id查询报价单数据 */
getQuotationInfo(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
projectName: 'boutique',
...data
})
},
/** 查询报价单信息 */
getQuotationInfoById(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
projectName: 'boutique',
...data
})
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique',
...data
})
},
/** 报价单订单分状态统计信息 */
orderStatistics(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique',
...data
})
}
}
import http from '../request/http'
module.exports = {
/**新建车损报价单 */
quotationAdd (data) {
quotationAdd(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add',
projectName: 'boutique',
......@@ -12,7 +10,7 @@ module.exports = {
})
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade (data) {
quotationUpgrade(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate',
projectName: 'boutique',
......@@ -20,7 +18,7 @@ module.exports = {
})
},
// 校验订单是否需要上传合同协议
checkZyPayFlag (data) {
checkZyPayFlag(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check',
projectName: 'boutique',
......@@ -28,9 +26,8 @@ module.exports = {
})
},
// 查询店铺配置
getShopMerchantPointConfig (data) {
getShopMerchantPointConfig(data) {
return http.post({
method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
projectName: 'boutique',
......@@ -39,7 +36,7 @@ module.exports = {
},
/** 查询报价单信息 */
getQuotationInfoById (data) {
getQuotationInfoById(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
projectName: 'boutique',
......@@ -49,7 +46,7 @@ module.exports = {
/**
* 订单详情
*/
getOrderDetail(data) {
getOrderDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.order.detail',
projectName: 'boutique',
......@@ -57,7 +54,7 @@ module.exports = {
})
},
/**pos支付 */
getPosQr(data) {
getPosQr (data) {
return http.post({
method: 'dj.api.smartcarlife.payOrder.create',
projectName: 'boutique',
......@@ -68,11 +65,77 @@ module.exports = {
* 查询门店录单设置
},
*/
orderSettingList(data) {
orderSettingList (data) {
return http.post({
method: 'dj.api.smartcarlife.order.field.setting.list',
projectName: 'boutique',
...data
})
},
/** 报价单分页列表 */
quotationPage (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique',
...data
})
},
/** 根据id查询报价单数据 */
getQuotationInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
projectName: 'boutique',
...data
})
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique',
...data
})
},
/** 报价单订单分状态统计信息 */
orderStatistics (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique',
...data
})
},
// 查询订单是否支持状态变更
getOrderRefundStep (data) {
return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique',
...data
})
},
/**报价单-撤销工单 */
cancelOrderById (data) {
return http.post({
method: 'dj.api.smartcarlife.quotation.cancel',
projectName: 'boutique',
...data
})
},
// 车损报价单战败订单创建
defeatOrderCreate (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order',
projectName: 'boutique',
...data
})
},
// 更新合同协议内容
updateZyInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update',
projectName: 'boutique',
...data
})
}
}
......@@ -12,7 +12,6 @@ import interceptionApi from './interceptionApi'
import popupApi from './popupApi'
import usedCarApi from './usedCar'
import equityApi from './equity'
import equitApi from './equit'
module.exports = {
commonApi,
......@@ -28,6 +27,5 @@ module.exports = {
evaluationApi,
usedCarApi,
activityApi,
equityApi,
equitApi
equityApi
}
......@@ -162,5 +162,4 @@ class Request {
})
}
}
export default new Request()
export default new Request()
\ No newline at end of file
......@@ -213,6 +213,9 @@
.px-20 {
padding: 0 toRpx(20);
}
.px-24 {
padding: 0 toRpx(20);
}
.px-32 {
padding: 0 toRpx(32);
}
......
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: calc(100vmin * (1173 / 768) * 0.7233589087809037) calc(100vmin * (1173 / 768) * 0.7122762148337596);}
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: calc(100vmin * (1173 / 768) * 0.7242114236999148) calc(100vmin * (1173 / 768) * 0.7122762148337596);}
.icon-active-msg { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.2536231884057971) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.30434782608695654) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-activity-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.045183290707587385);
background-position: calc(100vmin * (1173 / 768) * -0.27408354646206307) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.32821824381926684) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-activity { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.3248081841432225) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.37894288150042627) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-addEvaluationFrom { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.05456095481670929);
background-position: calc(100vmin * (1173 / 768) * -0.5) calc(100vmin * (1173 / 768) * -0.09505541346973571);}
.icon-addr { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.2651321398124467);}
.icon-ai-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.3755328218243819) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.4296675191815857) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-ai-bazaar { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.05456095481670929);
background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.2651321398124467);}
.icon-ai { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.42625745950554134) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.4803921568627451) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-appeal-record { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.10017050298380221) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.6355498721227621) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-arrow-bottom { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.027706734867860187);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.113384484228474);}
.icon-arrow-next { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.4352088661551577) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
background-position: calc(100vmin * (1173 / 768) * -0.6325660699062233) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-arrow-right { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.2851662404092072);}
.icon-avatar { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3009377664109122) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.3516624040920716) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-back { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.021312872975277068);
background-position: calc(100vmin * (1173 / 768) * -0.5) calc(100vmin * (1173 / 768) * -0.15601023017902813);}
.icon-bao { width: calc(100vmin * (1173 / 768) * 0.08354646206308611); height: calc(100vmin * (1173 / 768) * 0.0937766410912191);
......@@ -32,207 +32,211 @@
.icon-blue-delete { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.3052003410059676);}
.icon-boutique-config-0 { width: calc(100vmin * (1173 / 768) * 0.01875532821824382); height: calc(100vmin * (1173 / 768) * 0.01875532821824382);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.2693947144075021);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.35507246376811596);}
.icon-boutique-config-1 { width: calc(100vmin * (1173 / 768) * 0.01875532821824382); height: calc(100vmin * (1173 / 768) * 0.01875532821824382);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.29454390451832907);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.38022165387894286);}
.icon-boutique-config-2 { width: calc(100vmin * (1173 / 768) * 0.01875532821824382); height: calc(100vmin * (1173 / 768) * 0.01875532821824382);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.319693094629156);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.4053708439897698);}
.icon-btn-tips { width: calc(100vmin * (1173 / 768) * 0.0988917306052856); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.3878942881500426) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-bydyj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.34484228473998296);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.43052003410059675);}
.icon-calendar { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.32608695652173914);}
.icon-certificate { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.10784313725490197) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.18201193520886616) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.22847399829497017) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
<<<<<<< HEAD
background-position: calc(100vmin * (1173 / 768) * -0.25191815856777494) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
=======
background-position: calc(100vmin * (1173 / 768) * -0.283461210571185) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
>>>>>>> 51758c193067464cde678e7ba3a77d7bd7a65c98
.icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.3878942881500426) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.6078431372549019);}
.icon-course { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.48721227621483376) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-create-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.34825234441602726) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.3989769820971867) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-createOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.14151747655583974) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.21568627450980393) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-customer-1 { width: calc(100vmin * (1173 / 768) * 0.13640238704177324); height: calc(100vmin * (1173 / 768) * 0.13640238704177324);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
.icon-customer-2 { width: calc(100vmin * (1173 / 768) * 0.13640238704177324); height: calc(100vmin * (1173 / 768) * 0.13640238704177324);
background-position: calc(100vmin * (1173 / 768) * -0.14279624893435636) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
.icon-customer-add { width: calc(100vmin * (1173 / 768) * 0.0068201193520886615); height: calc(100vmin * (1173 / 768) * 0.0068201193520886615);
background-position: calc(100vmin * (1173 / 768) * -0.6884057971014492) calc(100vmin * (1173 / 768) * -0.4904092071611253);}
background-position: calc(100vmin * (1173 / 768) * -0.6884057971014492) calc(100vmin * (1173 / 768) * -0.5377237851662404);}
.icon-customer-detail { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.36828644501278773);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.4539641943734015);}
.icon-customer-file-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.47698209718670076) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.5311167945439045) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-customer-file { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.5277067348678602) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.5818414322250639) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-customer-flow { width: calc(100vmin * (1173 / 768) * 0.12617220801364024); height: calc(100vmin * (1173 / 768) * 0.08994032395566923);
background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.09505541346973571);}
.icon-customer-list { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.1184995737425405) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.6355498721227621) calc(100vmin * (1173 / 768) * -0.5583972719522592);}
.icon-daily-report { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3955669224211424) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.4462915601023018) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-day-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.17519181585677748) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.24936061381074168) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-defeat-detail { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5234441602728048);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5707587382779199);}
.icon-defeat-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.44288150042625746) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.4936061381074169) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-defeat-summary { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5605285592497868);}
background-position: calc(100vmin * (1173 / 768) * -0.6150895140664961) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-defeatOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.20886615515771526) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.2830349531116795) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-delivery-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.49019607843137253) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.540920716112532) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-delivery-step-1 { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.05456095481670929);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.1402387041773231);}
.icon-delivery-step-2 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.5375106564364877) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.5882352941176471) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-detail-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5072463768115942) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-detail-btn { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.3917306052855925);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.4774083546462063);}
.icon-dress-code { width: calc(100vmin * (1173 / 768) * 0.007246376811594203); height: calc(100vmin * (1173 / 768) * 0.007885763000852515);
background-position: calc(100vmin * (1173 / 768) * -0.6884057971014492) calc(100vmin * (1173 / 768) * -0.4761295822676897);}
background-position: calc(100vmin * (1173 / 768) * -0.6884057971014492) calc(100vmin * (1173 / 768) * -0.5234441602728048);}
.icon-edit { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5272804774083546) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-equity-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.5848252344416027) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-evaluation-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-evaluation-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.04731457800511509) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-evaluationClose { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.4151747655583973);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5008525149190111);}
.icon-expiration { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.04731457800511509) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
background-position: calc(100vmin * (1173 / 768) * -0.09462915601023018) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-eye-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5439045183290707) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
background-position: calc(100vmin * (1173 / 768) * -0.6820119352088662) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-eyes-off { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6321398124467178) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.20588235294117646) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-eyes-on { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6321398124467178) calc(100vmin * (1173 / 768) * -0.5601023017902813);}
background-position: calc(100vmin * (1173 / 768) * -0.2259164535379369) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-face-error-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.09462915601023018) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-face-error { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.14194373401534527) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-face-success-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
.icon-face-error { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.18925831202046037) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-face-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
.icon-face-success-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.23657289002557544) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-face-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.28388746803069054) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-feedback { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.24254049445865303) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.3167092924126172) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-feedbackIcon { width: calc(100vmin * (1173 / 768) * 0.011082693947144074); height: calc(100vmin * (1173 / 768) * 0.011082693947144074);
background-position: calc(100vmin * (1173 / 768) * -0.5473145780051151) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-ffdyj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.43861892583120204);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5242966751918159);}
.icon-filter { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.17263427109974425) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.24595055413469735) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-finish-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.4620630861040068);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5477408354646206);}
.icon-first-left { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4761295822676897);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5234441602728048);}
.icon-first-nav { width: calc(100vmin * (1173 / 768) * 0.1977834612105712); height: calc(100vmin * (1173 / 768) * 0.07502131287297528);
background-position: calc(100vmin * (1173 / 768) * -0.21099744245524296) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-first-right { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.30008525149190113);}
.icon-front-gear { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.1926683716965047) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.2659846547314578) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-front-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.21270247229326514) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.28601875532821824) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-home-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.5784313725490197) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-home { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.11167945439045183) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-icon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.23273657289002558) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.30605285592497866) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-circle-error { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.4855072463768116);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5711849957374254);}
.icon-icon-close { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.597612958226769);}
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-icon-copy { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.252770673486786) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.32608695652173914) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-gold { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6150895140664961) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
background-position: calc(100vmin * (1173 / 768) * -0.0370843989769821) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-icon-instructions { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.2728047740835465) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.34612105711849955) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-navigation { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.2928388746803069) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.36615515771526) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-notice { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.31287297527706737) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.38618925831202044) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-scanning { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.3329070758738278) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.4062233589087809) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-select { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.35294117647058826) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.42625745950554134) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-shop { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.3729752770673487) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.4462915601023018) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-store { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.39300937766410915) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.4663256606990622) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-icon-upload { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.05456095481670929);
background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-icon-weixin { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.41304347826086957) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.4863597612958227) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-income-card { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.45694799658994034) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
background-position: calc(100vmin * (1173 / 768) * -0.6325660699062233) calc(100vmin * (1173 / 768) * -0.5042625745950554);}
.icon-income-count { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.2331628303495311);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.2804774083546462);}
.icon-income-icon { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.27365728900255754);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3209718670076726);}
.icon-info_shield { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5089514066496164);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5946291560102301);}
.icon-info-icon { width: calc(100vmin * (1173 / 768) * 0.03751065643648764); height: calc(100vmin * (1173 / 768) * 0.03751065643648764);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.18925831202046037);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.23657289002557544);}
.icon-invisible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5323955669224212);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.618073316283035);}
.icon-isExpiredTrafficIcon { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.27621483375959077) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.35038363171355497) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-jbgz-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5558397271952259);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6415174765558397);}
.icon-js-icon { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.32608695652173914);}
.icon-learn-bg { width: calc(100vmin * (1173 / 768) * 0.18073316283034954); height: calc(100vmin * (1173 / 768) * 0.05285592497868713);
background-position: calc(100vmin * (1173 / 768) * -0.15302642796248933) calc(100vmin * (1173 / 768) * -0.13256606990622335);}
.icon-level { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.30988917306052854) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.38405797101449274) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-locker-icon { width: calc(100vmin * (1173 / 768) * 0.1466325660699062); height: calc(100vmin * (1173 / 768) * 0.20119352088661552);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * 0);}
.icon-logo { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
background-position: calc(100vmin * (1173 / 768) * -0.5647911338448423) calc(100vmin * (1173 / 768) * -0.10017050298380221);}
.icon-lssl-icon { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.13682864450127877) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.16027280477408354) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-mask-del { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.31415174765558396);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3614663256606991);}
.icon-mask-edit { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3546462063086104);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4019607843137255);}
.icon-medal { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.3435635123614663) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.4177323103154305) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-medalNew { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.0741687979539642) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-my-level { width: calc(100vmin * (1173 / 768) * 0.058823529411764705); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.49317988064791135) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-my-store { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.39514066496163686);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4424552429667519);}
.icon-no-insurance-data { width: calc(100vmin * (1173 / 768) * 0.20801364023870417); height: calc(100vmin * (1173 / 768) * 0.12617220801364024);
background-position: calc(100vmin * (1173 / 768) * -0.15302642796248933) calc(100vmin * (1173 / 768) * 0);}
.icon-no-picture { width: calc(100vmin * (1173 / 768) * 0.021312872975277068); height: calc(100vmin * (1173 / 768) * 0.021312872975277068);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * 0);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.08567774936061381);}
.icon-notice-script { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.28388746803069054) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3312020460358056) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.37851662404092073) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-success { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.43307757885763) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.5063938618925832) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-notice-system { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.37851662404092073) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-violate { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.4258312020460358) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-order-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
.icon-notice-violate { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.4731457800511509) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-order-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.520460358056266) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-pause { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5792838874680307);}
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.13256606990622335);}
.icon-payType-1 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
background-position: calc(100vmin * (1173 / 768) * -0.5647911338448423) calc(100vmin * (1173 / 768) * -0.17476555839727195);}
.icon-payType-2 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
......@@ -244,93 +248,95 @@
.icon-payType-5 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.19138959931798807);}
.icon-pbjd-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6027280477408354);}
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.15601023017902813);}
.icon-pdf-xl { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.1658141517476556) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-pdf { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6261722080136403);}
background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.38064791133844844);}
.icon-pen-active { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-pen { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.649616368286445);}
background-position: calc(100vmin * (1173 / 768) * -0.4198635976129582) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-point-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04859335038363171);
background-position: calc(100vmin * (1173 / 768) * -0.05754475703324808) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-point { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.1658141517476556) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.21994884910485935) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.3772378516624041) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.4514066496163683) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-promotion { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.0814151747655584);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.16709292412617222);}
.icon-prompt { width: calc(100vmin * (1173 / 768) * 0.10230179028132992); height: calc(100vmin * (1173 / 768) * 0.10230179028132992);
background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.19138959931798807);}
.icon-qg-tips { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.47868712702472294) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
background-position: calc(100vmin * (1173 / 768) * -0.14066496163682865) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-qgtc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.13256606990622335);}
background-position: calc(100vmin * (1173 / 768) * -0.443307757885763) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-qr-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.520460358056266) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
background-position: calc(100vmin * (1173 / 768) * -0.5677749360613811) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-qt-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.15601023017902813);}
background-position: calc(100vmin * (1173 / 768) * -0.46675191815856776) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-quality-no-data { width: calc(100vmin * (1173 / 768) * 0.19096334185848252); height: calc(100vmin * (1173 / 768) * 0.0886615515771526);
background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * 0);}
.icon-qw { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.1082693947144075);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.1939471440750213);}
.icon-qytc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.38064791133844844);}
background-position: calc(100vmin * (1173 / 768) * -0.49019607843137253) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-ranking { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.41091219096334186) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.48508098891730606) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-rbkk-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.629156010230179) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.5136402387041773) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-rear-gear { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.45311167945439046) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.5264279624893435) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-rear-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.4731457800511509) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.546462063086104) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-reception-1 { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.13512361466325662);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.2208013640238704);}
.icon-reception-2 { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.16197783461210571);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.24765558397271953);}
.icon-reception-pause { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.6078431372549019) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * 0);}
.icon-reception-play { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.6364023870417732) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.02855924978687127);}
.icon-reception-share { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.6649616368286445) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.05711849957374254);}
.icon-record-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.21994884910485935) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
background-position: calc(100vmin * (1173 / 768) * -0.27408354646206307) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-record { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.050724637681159424) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-revoke { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.5677749360613811) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * 0);}
.icon-revokeOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.44458653026427963) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.5187553282182438) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-right-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.49317988064791135) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.5664961636828645) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-role-1 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812);
background-position: calc(100vmin * (1173 / 768) * -0.0370843989769821) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.11125319693094629) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-role-2 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812);
background-position: calc(100vmin * (1173 / 768) * -0.07246376811594203) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.1466325660699062) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-rule { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.15515771526001704) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.17860187553282184) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-scan { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5132139812446718) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.5865302642796248) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-scanIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5332480818414322) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.6065643648763853) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-scanIconX { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.3878942881500426) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-scene-0 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * 0);}
.icon-scene-1 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.04731457800511509);}
.icon-scene-7 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
.icon-scene-1 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.09462915601023018);}
.icon-scene-7 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.14194373401534527);}
.icon-scene-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.050724637681159424) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.10144927536231885) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-scene-change { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5532821824381927) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.6265984654731458) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-scene { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.10144927536231885) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.15217391304347827) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-search { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.629156010230179) calc(100vmin * (1173 / 768) * -0.5059676044330775);}
background-position: calc(100vmin * (1173 / 768) * -0.5370843989769821) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-second-left { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.42838874680306904) calc(100vmin * (1173 / 768) * -0.30008525149190113);}
.icon-second-nav { width: calc(100vmin * (1173 / 768) * 0.20460358056265984); height: calc(100vmin * (1173 / 768) * 0.07502131287297528);
......@@ -338,82 +344,96 @@
.icon-second-right { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.48934356351236147) calc(100vmin * (1173 / 768) * -0.30008525149190113);}
.icon-seeIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5733162830349531) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.6466325660699063) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-setting { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.4782608695652174) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.5524296675191815) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-short-first-nav { width: calc(100vmin * (1173 / 768) * 0.1773231031543052); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.2041773231031543) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-short-second-nav { width: calc(100vmin * (1173 / 768) * 0.1977834612105712); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-short-task-title { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.1888320545609548);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.27450980392156865);}
.icon-start-text { width: calc(100vmin * (1173 / 768) * 0.0733162830349531); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.2659846547314578);}
.icon-stick-top-blue { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5933503836317136) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.6666666666666666) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-stick-top { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.613384484228474) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.6867007672634271) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-store-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6334185848252344) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.7067348678601876) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-store { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.14194373401534527);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.18925831202046037);}
.icon-study-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.15217391304347827) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.2028985507246377) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-study-tips { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.17348678601875533) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.1969309462915601) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-study { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.2028985507246377) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
background-position: calc(100vmin * (1173 / 768) * -0.2536231884057971) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.0319693094629156) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-successIcon { width: calc(100vmin * (1173 / 768) * 0.023870417732310314); height: calc(100vmin * (1173 / 768) * 0.023870417732310314);
background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-suggestions-arrow { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.5004262574595055) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
background-position: calc(100vmin * (1173 / 768) * -0.16240409207161124) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-suggestions-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6534526854219949) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-sun-roof { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6734867860187553) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.020034100596760442) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-tag-checked { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-task-pass { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.1918158567774936) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.21526001705029837) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-tdcj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.05541346973572037) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.023444160272804774) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-time-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6935208866155158) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.040068201193520885) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-time { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.07885763000852515) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.04688832054560955) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-tips-b { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.06010230179028133) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-tips-g { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.21568627450980393);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.3013640238704177);}
.icon-tips { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4356351236146633);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.48294970161977835);}
.icon-tool-file { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248);
background-position: calc(100vmin * (1173 / 768) * -0.5119352088661552) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.5861040068201193) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-tool-finish { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248);
background-position: calc(100vmin * (1173 / 768) * -0.5439045183290707) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.618073316283035) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-tool-pay { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248);
background-position: calc(100vmin * (1173 / 768) * -0.5758738277919864) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
background-position: calc(100vmin * (1173 / 768) * -0.6500426257459505) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-topTipsRightIcon { width: calc(100vmin * (1173 / 768) * 0.06990622335890878); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.020034100596760442) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.21014492753623187) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
<<<<<<< HEAD
background-position: calc(100vmin * (1173 / 768) * -0.23358908780903667) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
=======
background-position: calc(100vmin * (1173 / 768) * -0.2651321398124467) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
>>>>>>> 51758c193067464cde678e7ba3a77d7bd7a65c98
.icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.10230179028132992) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.07033248081841433) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.24254049445865303);}
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.32821824381926684);}
.icon-visible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.1257459505541347) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.0937766410912191) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-warning-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.040068201193520885) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.10017050298380221) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-work-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.06010230179028133) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
background-position: calc(100vmin * (1173 / 768) * -0.12020460358056266) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-ybtc_icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.14919011082693948) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
background-position: calc(100vmin * (1173 / 768) * -0.11722080136402387) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.5221653878942881) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
\ No newline at end of file
<<<<<<< HEAD
background-position: calc(100vmin * (1173 / 768) * -0.1402387041773231) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
=======
background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.21014492753623187) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-green-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.22847399829497017) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-normal { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.24680306905370844) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
>>>>>>> 51758c193067464cde678e7ba3a77d7bd7a65c98

2.91 MB | W: | H:

2.92 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -122,7 +122,7 @@ export default {
},
startStudy(item, index) {
let { pageNum, total, nothing = 'nothing', pageSize } = this;
uni.$track.add({ eventCode: 'app_completed_course', businessId: item.id, pagePath: '/pages/boutique/myCourse' })
uni.$track.add({ eventCode: 'app_completed_course', businessId: item.id, pagePath: '/pages/common/studyCenter/myCourse' })
uni.navigateTo({
url: `/pages/common/studyDetail/detail?type=completed&index=${index}&completedCourseList=${encodeURIComponent(JSON.stringify(this.completedCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}`
})
......
<template>
<view class="study-center">
<view class="study-left-box">
<!-- 我的学习时长 -->
<view class="study-duration-card">
......@@ -10,7 +9,7 @@
<view class="duration-item">
<view class="item-label">累计</view>
<view class="item-value">
<text class="value-number">345</text>
<text class="value-number">{{ dataInfo.totalHour == null ? '-' : dataInfo.totalHour }}</text>
<text class="value-unit">小时</text>
</view>
</view>
......@@ -18,23 +17,30 @@
<view class="duration-item">
<view class="item-label">本月</view>
<view class="item-value">
<text class="value-number">25</text>
<text class="value-number">{{ dataInfo.monHour == null ? '-' : dataInfo.monHour }}</text>
<text class="value-unit">小时</text>
</view>
<view class="item-compare">
<text class="compare-text">对比上月</text>
<text class="compare-percent">25.6%</text>
<image class="compare-icon" :src="require('@/assets/images/studyCenter/up-arrow.png')" mode="aspectFit" />
<text class="compare-percent" :class="{
red: dataInfo.monHourRatio > 0,
green: dataInfo.monHourRatio < 0,
normal: dataInfo.monHourRatio === 0
}">{{ dataInfo.monHourRatio == null ? '-' : dataInfo.monHourRatio + '%' }}</text>
<template v-if="dataInfo.monHourRatio != null">
<view v-if="dataInfo.monHourRatio > 0" class="sprite-icon icon-up-arrow"></view>
<view v-else-if="dataInfo.monHourRatio < 0" class="sprite-icon icon-green-arrow"></view>
<view v-else class="sprite-icon icon-normal"></view>
</template>
</view>
</view>
</view>
</view>
<view class="my-list">
<view class="list-item" @click="goToMyCourse">
<image class="item-icon" :src="require('@/assets/images/studyCenter/my-courses.png')" mode="aspectFit" />
<view class="item-text">我的课程</view>
<view class="badge">2</view>
<view class="badge" v-if="dataInfo.unReadCount > 0">{{dataInfo.unReadCount}}</view>
</view>
<view class="list-item" @click="goToMyExam">
<image class="item-icon" :src="require('@/assets/images/studyCenter/my-exam.png')" mode="aspectFit" />
......@@ -49,64 +55,7 @@
<view class="item-text">排行榜</view>
</view>
</view>
<!-- 我的学习时长 -->
<view class="study-duration-card">
<view class="card-title">
<text class="title-text">我的学习时长</text>
<view class="title-compare">
<text class="compare-label">对比上月</text>
<text class="compare-value" :style="{ color: monthCompare.color }">{{ monthCompare.percent }}</text>
<image class="compare-arrow" :src="monthCompare.icon" mode="aspectFit" />
</view>
</view>
<view class="duration-content">
<!-- 左边:累计 -->
<view class="duration-item">
<view class="item-label">累计</view>
<view class="item-value">
<text class="value-number">345</text>
<text class="value-unit">小时</text>
</view>
</view>
<!-- 右边:本月 -->
<view class="duration-item">
<view class="item-label">本月</view>
<view class="item-value">
<text class="value-number">25</text>
<text class="value-unit">小时</text>
</view>
<view class="item-compare">
<text class="compare-text">对比上月</text>
<text class="compare-percent" style=" color: #35c376; ">25.6%</text>
<image class="compare-icon" :src="require('@/assets/images/studyCenter/green.png')" mode="aspectFit" />
</view>
</view>
</view>
</view>
</view>
<!-- <view class="study-left">
<view class="title">学习看板</view>
<view class="study-board-box"> -->
<!-- 累计学习看板 -->
<!-- <template v-if="isBeisen || (isHmzx && isYb)">
<LearnStatistics :dataInfo="dataInfo" :isBeisen="isBeisen" :isHmzx="isHmzx" :isYb="isYb" />
</template> -->
<!-- 周转化率看板 -->
<!-- <WeeklyConversionRate :dataInfo="dataInfo" :isBeisen="isBeisen" :isHmzx="isHmzx" :isYb="isYb" /> -->
<!-- 能力分析看板 -->
<!-- <template v-if="isHmzx && isYb">
<view :class="['study-box3', isBeisen ? '' : 'big-height']">
<view :class="['study-box3-title', isBeisen ? '' : 'big-margin']">能力分析</view>
<RadarChart :labelColors="labelColors" :heightClass="isBeisen ? '' : 'big-height'" :chartData="chartData" />
</view>
</template>
</view>
</view> -->
<view class="study-right">
<view class="data-container">
<view :class="['type-box']">
......@@ -122,7 +71,7 @@
</view>
</view>
<template v-if="firstIndex == 0">
<view class="tips" >
<view class="tips">
<view class="sprite-icon icon-study-tips"></view>
<view class="tips-text">本周学习时长X小时,超过X%的人</view>
</view>
......@@ -136,48 +85,33 @@
<uni-icons type="search" size="20" color="#999ea8" class="search-icon"></uni-icons>
<text class="placeholder-text">搜索课程</text>
</view>
<input
ref="searchInput"
class="search-input"
v-model="searchKeyword"
placeholder=""
confirm-type="search"
@confirm="handleSearch"
/>
<input ref="searchInput" class="search-input" v-model="searchKeyword" placeholder="" confirm-type="search"
@confirm="handleSearch" />
<view class="clear-btn" @click.stop="clearSearch" v-if="searchKeyword">
<uni-icons type="closeempty" size="16" color="#999ea8"></uni-icons>
</view>
</view>
</view>
<!-- 筛选组件区域 -->
<view class="filter-container">
<view class="filter-left">
<!-- 综合排序 -->
<view class="filter-item">
<SelectComponent
ref="sortSelect"
:selectList="sortOptions"
@chooseType="handleSortChange"
/>
<SelectComponent ref="sortSelect" :selectList="sortOptions" @chooseType="handleSortChange" />
</view>
<!-- 全部课程(两级) -->
<view class="filter-item">
<TwoLevelSelectComponent
ref="categorySelect"
:selectList="categoryOptions"
@chooseType="handleCategoryChange"
/>
<TwoLevelSelectComponent ref="categorySelect" :selectList="categoryOptions"
@chooseType="handleCategoryChange" />
</view>
<!-- 筛选按钮 -->
<view class="filter-item filter-btn" @click="openFilter">
筛选
<view class="sprite-icon icon-filter"></view>
</view>
</view>
<!-- 右侧课程数量 -->
<view class="course-count">共{{ totalCourseCount }}门课程</view>
</view>
......@@ -189,14 +123,9 @@
</template>
</view>
</view>
<!-- 筛选弹窗 - 移到外层,不受父容器宽度限制 -->
<OrderScreen
ref="orderScreen"
title="筛选"
:configData="courseConfig"
@onConfirm="handleFilterConfirm"
/>
<OrderScreen ref="orderScreen" title="筛选" :configData="courseConfig" @onConfirm="handleFilterConfirm" />
</view>
</template>
......@@ -227,11 +156,16 @@ export default {
data() {
return {
chartData: {},
dataInfo: {},
dataInfo: {
totalHour: 999.99,
monHour: 12,
monHourRatio: null,
unReadCount: 0
},
labelColors: [],
typeList: [
{ tabName: '正在学习', num: () => '' },
{ tabName: '全部课程', num: () => '' }
{ tabName: '正在学习', num: () => '' },
{ tabName: '全部课程', num: () => '' }
],
firstIndex: 0,
firstLeft: ['first', 'second'],
......@@ -240,52 +174,52 @@ export default {
isFlag: true, // 当前驻店人员所关联的门店非鸿蒙智行或非延保业务
isHmzx: false, // 当前驻店人员所关联的门店是否是鸿蒙智行
isYb: false, // 当前驻店人员所关联的门店是否是延保业务
showMyTask: true, // 是否显示我的任务图标
// 筛选相关数据
totalCourseCount: 123,
searchKeyword: '', // 搜索关键词
// 对比上月数据(临时模拟数据)
monthCompare: {
percent: '0%',
color: '#ff9d0a',
icon: require('@/assets/images/studyCenter/heng.png')
showMyTask: true, // 是否显示我的任务图标
// 筛选相关数据
totalCourseCount: 123,
searchKeyword: '', // 搜索关键词
// 对比上月数据(临时模拟数据)
monthCompare: {
percent: '0%',
color: '#ff9d0a',
// icon: require('@/assets/images/studyCenter/heng.png')
},
courseConfig: courseConfig, // 课程筛选配置
sortOptions: [
{ label: '综合排序', value: 'default' },
{ label: '最多人学', value: 'popular' },
{ label: '最高评分', value: 'rating' },
{ label: '最新发布', value: 'latest' }
],
categoryOptions: [
{
label: '综合排序',
value: 'all',
children: []
},
courseConfig: courseConfig, // 课程筛选配置
sortOptions: [
{ label: '综合排序', value: 'default' },
{ label: '最多人学', value: 'popular' },
{ label: '最高评分', value: 'rating' },
{ label: '最新发布', value: 'latest' }
],
categoryOptions: [
{
label: '综合排序',
value: 'all',
children: []
},
{
label: '全部课程',
value: 'course',
children: [
{ label: '公司介绍', value: 'company' },
{ label: '行业名称', value: 'industry' },
{ label: '客户服务', value: 'service' }
]
},
{
label: '呼叫哨哨',
value: 'call',
children: [
{ label: '机里哨哨', value: 'machine' },
{ label: '呼叫哨哨哨', value: 'call-detail' }
]
}
],
{
label: '全部课程',
value: 'course',
children: [
{ label: '公司介绍', value: 'company' },
{ label: '行业名称', value: 'industry' },
{ label: '客户服务', value: 'service' }
]
},
{
label: '呼叫哨哨',
value: 'call',
children: [
{ label: '机里哨哨', value: 'machine' },
{ label: '呼叫哨哨哨', value: 'call-detail' }
]
}
],
}
},
created () {
created() {
// 监听自定义事件
uni.$on('backStudyCenter', () => {
console.log('backStudyCenter', this.$refs.myTask)
......@@ -298,7 +232,7 @@ export default {
this.getStudyBoard()
})
},
async mounted() {
async mounted() {
const beisenToken = uni.$storage.get('beisenToken')
const studyCenterPermission = uni.$storage.get('studyCenterPermission')
console.log(beisenToken, 'beisenToken')
......@@ -309,15 +243,25 @@ export default {
{ tabName: '我的任务', num: () => '' }
]
}
this.isHmzx = studyCenterPermission?.hmzxAuth
this.isYb = studyCenterPermission?.authorizedBusinessList && studyCenterPermission.authorizedBusinessList.includes(1)
// 检查是否显示我的任务
this.showMyTask = await this.checkStudyCenterPermission()
this.getStudyBoard();
this.isHmzx = studyCenterPermission?.hmzxAuth
this.isYb = studyCenterPermission?.authorizedBusinessList && studyCenterPermission.authorizedBusinessList.includes(1)
// 检查是否显示我的任务
this.showMyTask = await this.checkStudyCenterPermission()
this.getMyStudyTime();
},
methods: {
// 我的学习时长
async getMyStudyTime() {
const res = await uni.$api.commonApi.getStudyCenterTimeStatistics({
staffPhone: uni.$storage.get('userInfo').phone
})
console.log(res, 'res')
// if (res) {
// this.dataInfo = res || {}
// }
},
// 聚焦搜索框
focusSearch() {
// 这里可以添加聚焦逻辑,暂时不做处理
......@@ -354,7 +298,7 @@ export default {
// 跳转到我的课程
goToMyCourse() {
uni.navigateTo({
url: '/pages/boutique/myCourse'
url: '/pages/common/studyCenter/myCourse'
})
},
// 跳转到我的任务
......@@ -363,7 +307,7 @@ export default {
const hasPermission = await this.checkStudyCenterPermission()
if (hasPermission) {
uni.navigateTo({
url: '/pages/boutique/myTask'
url: '/pages/common/studyCenter/myTask'
})
} else {
uni.showToast({
......@@ -375,20 +319,20 @@ export default {
// 跳转到我的考试
goToMyExam() {
uni.navigateTo({
url: '/pages/boutique/myExam'
url: '/pages/common/studyCenter/myExam'
})
},
// 跳转到排行榜
goToLeaderboard() {
uni.navigateTo({
url: '/pages/boutique/leaderboard'
url: '/pages/common/studyCenter/leaderboard'
})
},
// 检查学习中心权限
async checkStudyCenterPermission() {
try {
const userInfo = uni.$storage.get('userInfo')
// 如果是渠道类型为9,没有权限
if (userInfo?.subLoginUser?.channelType == 9) {
return false
......@@ -396,7 +340,7 @@ export default {
// 获取权限信息
let studyCenterPermission = uni.$storage.get('studyCenterPermission')
// 如果缓存中没有,调用接口获取
if (!studyCenterPermission) {
const yqMerchantIdList = userInfo?.subLoginUser?.yqMerchantIdList || []
......@@ -408,7 +352,7 @@ export default {
// 判断权限:直营 或者 (鸿蒙智行 且 有延保业务)
const { directSaleAuth, hmzxAuth, authorizedBusinessList } = studyCenterPermission
const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益
// 有直营权限 或者 (有鸿蒙智行权限 且 有延保业务权限)则显示
return directSaleAuth || (hmzxAuth && isYb)
} catch (error) {
......@@ -500,12 +444,14 @@ export default {
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
margin-right: toRpx(48);
padding: toRpx(24) toRpx(32);
.study-duration-card {
width: toRpx(592);
height: toRpx(320);
border-radius: toRpx(24);
background: #ffffff;
padding: toRpx(24) toRpx(32) toRpx(28) toRpx(32);
.card-title {
display: flex;
align-items: center;
......@@ -551,7 +497,7 @@ export default {
}
}
}
.duration-content {
width: toRpx(528);
height: toRpx(208);
......@@ -561,14 +507,14 @@ export default {
display: flex;
justify-content: space-between;
}
.duration-item {
display: flex;
flex: 1;
flex-direction: column;
padding-left: toRpx(20);
}
.item-label {
width: toRpx(100);
height: toRpx(44);
......@@ -583,19 +529,19 @@ export default {
justify-content: center;
margin-bottom: toRpx(46);
}
.item-value {
display: flex;
align-items: baseline;
}
.value-number {
color: #4673ff;
font-size: toRpx(40);
font-weight: 500;
font-family: "HarmonyOSSansSC";
}
.value-unit {
color: #666666;
font-size: toRpx(26);
......@@ -604,26 +550,27 @@ export default {
line-height: toRpx(36);
margin-left: toRpx(4);
}
.duration-item:first-child .item-label {
margin-bottom: toRpx(46);
}
.duration-item:last-child .item-label {
margin-bottom: toRpx(28);
}
.item-compare {
display: flex;
align-items: center;
margin-top: toRpx(8);
.compare-icon {
width: toRpx(28);
height: toRpx(28);
margin-left: toRpx(4);
}
}
.compare-text {
width: toRpx(104);
height: toRpx(36);
......@@ -634,74 +581,87 @@ export default {
text-align: left;
line-height: toRpx(36);
}
.compare-percent {
width: toRpx(72);
// width: toRpx(72);
height: toRpx(36);
color: #f24724;
color: #666;
font-size: toRpx(26);
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: left;
line-height: toRpx(36);
margin-left: toRpx(4);
}
}
// 我的列表
.my-list {
margin-top: toRpx(28);
display: flex;
flex-wrap: wrap;
gap: toRpx(28);
&.red {
color: #F24724;
}
&.green {
color: #35C376;
}
&.normal {
color: #FF9D0A;
}
}
}
// 我的列表
.my-list {
margin-top: toRpx(28);
display: flex;
flex-wrap: wrap;
gap: toRpx(28);
margin-bottom: toRpx(178);
.list-item {
width: toRpx(168);
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: toRpx(28);
position: relative;
.item-icon {
width: toRpx(96);
height: toRpx(96);
margin-bottom: toRpx(6);
}
.item-text {
width: toRpx(112);
height: toRpx(34);
color: #292d33;
font-size: toRpx(28);
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: center;
}
.badge {
position: absolute;
top: 0;
right: toRpx(24);
width: toRpx(24);
height: toRpx(24);
border-radius: toRpx(732);
background: #f24724;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: toRpx(20);
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: center;
line-height: 1;
}
}
}
}
// 我的学习时长卡片
.list-item {
width: toRpx(168);
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: toRpx(28);
position: relative;
.item-icon {
width: toRpx(96);
height: toRpx(96);
margin-bottom: toRpx(6);
}
.item-text {
width: toRpx(112);
height: toRpx(34);
color: #292d33;
font-size: toRpx(28);
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: center;
}
.badge {
position: absolute;
top: toRpx(4);
right: toRpx(38);
width: toRpx(24);
height: toRpx(24);
border-radius: toRpx(732);
background: #f24724;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: toRpx(20);
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: center;
line-height: 1;
}
}
}
}
// 我的学习时长卡片
.study-left {
width: toRpx(656);
......@@ -786,8 +746,9 @@ export default {
font-weight: 500;
font-size: toRpx(34);
color: #292D33;
.sprite-icon {
&.active {
&.active {
position: absolute;
top: 0;
z-index: -1;
......@@ -796,6 +757,7 @@ export default {
color: #3B73FF;
}
}
.first {
left: 0;
}
......@@ -826,6 +788,7 @@ export default {
border-radius: 50%;
right: toRpx(86);
}
&.active {
position: absolute;
top: 0;
......@@ -849,13 +812,13 @@ export default {
}
}
}
// 搜索框样式
.search-container {
padding: 0 toRpx(40);
margin-top: toRpx(32);
margin-bottom: toRpx(32);
.search-box {
width: toRpx(1274);
height: toRpx(80);
......@@ -866,7 +829,7 @@ export default {
justify-content: center;
padding: 0 toRpx(32);
position: relative;
.search-placeholder-wrapper {
display: flex;
align-items: center;
......@@ -876,11 +839,11 @@ export default {
top: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
.search-icon {
margin-right: toRpx(16);
}
.placeholder-text {
font-size: toRpx(32);
font-weight: 400;
......@@ -889,7 +852,7 @@ export default {
line-height: toRpx(48);
}
}
.search-input {
width: 100%;
height: toRpx(48);
......@@ -900,7 +863,7 @@ export default {
color: #333333;
text-align: center;
}
.clear-btn {
position: absolute;
right: toRpx(32);
......@@ -913,7 +876,7 @@ export default {
}
}
}
// 筛选组件区域样式
.filter-container {
display: flex;
......@@ -921,16 +884,16 @@ export default {
align-items: center;
padding: 0 toRpx(40);
margin-top: toRpx(32);
.filter-left {
display: flex;
align-items: center;
gap: toRpx(40);
.filter-item {
flex-shrink: 0;
}
.filter-btn {
display: flex;
align-items: center;
......@@ -942,13 +905,13 @@ export default {
font-size: toRpx(28);
color: #333333;
cursor: pointer;
.sprite-icon {
margin-left: toRpx(8);
}
}
}
.course-count {
width: toRpx(160);
height: toRpx(40);
......@@ -963,6 +926,7 @@ export default {
}
}
}
.tips {
display: flex;
align-items: center;
......@@ -973,8 +937,8 @@ export default {
color: #FF9D0A;
height: toRpx(48);
margin: toRpx(0) toRpx(40);
margin-top: toRpx(32);
margin: toRpx(0) toRpx(40);
margin-top: toRpx(32);
&-text {
margin-top: toRpx(4);
......
......@@ -464,22 +464,11 @@ export default {
// 切换到学习中心时显示弹窗
if (item.name === 'StudyCenter') {
this.showStudyPopup = true
const res = await uni.$api.commonApi.startExam()
if (res) {
this.showStudyPopup = true
}
}
// this.showBeisen = false
// if (item.isTrack) {
// // this.jumpUrl = jumpUrl
// // if (!this.jumpUrl) {
// // uni.showToast({
// // title: '培训账号未创建',
// // icon: 'none'
// // })
// // return
// // }
// } else {
// this.jumpUrl = ''
// }
},
handleFooter (val) {
this.footerBox = val
......
......@@ -212,7 +212,7 @@ const componentConfig = {
nullTips: '请选择座位数',
idKey: 'seat',
hideSearch: true,
loadComplete: false,
loadComplete: false
},
19: {
name: 'Customer',
......
......@@ -118,7 +118,7 @@ export default {
AgeRange,
City,
Seat,
Customer
Customer,
},
name: '',
props: {
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2
const index = 1
/**
*
0本地
......
......@@ -124,34 +124,7 @@
"h5" : {
"devServer" : {
"port" : 8080,
"https" : false,
"host" : "0.0.0.0",
"disableHostCheck" : true,
"proxy" : {
"^/rop-scrm-" : {
"target" : "https://scrm.test.glsx.com.cn",
"changeOrigin" : true,
"secure" : false
},
"^/rop-dj-" : {
"target" : "https://183.62.222.180",
"changeOrigin" : true,
"secure" : false,
"headers" : {
"Host" : "dj.test.glsx.com.cn"
}
},
"^/gsc-vcp-" : {
"target" : "http://gsc.test.glsx.com.cn",
"changeOrigin" : true,
"secure" : false
},
"^/rop-merchants/" : {
"target" : "https://rop-merchant.test.glsx.com.cn",
"changeOrigin" : true,
"secure" : false
}
}
"https" : false
}
}
}
}
\ No newline at end of file
......@@ -116,25 +116,25 @@
}
},
{
"path": "pages/boutique/myTask",
"path": "pages/common/studyCenter/myTask",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/boutique/myCourse",
"path": "pages/common/studyCenter/myCourse",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/boutique/myExam",
"path": "pages/common/studyCenter/myExam",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/boutique/leaderboard",
"path": "pages/common/studyCenter/leaderboard",
"style": {
"navigationStyle": "custom"
}
......@@ -275,7 +275,7 @@
"navigationStyle": "custom"
}
},
{
{
"path": "pages/usedCar/deliveryManagement/detail",
"style": {
"navigationStyle": "custom"
......@@ -286,6 +286,13 @@
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/filePreview",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": ""
}
}
],
"globalStyle": {
......@@ -301,4 +308,4 @@
"rpxCalcBaseDeviceWidth": 375,
"rpxCalcIncludeWidth": 750
}
}
\ No newline at end of file
}
<template>
<view class="file-preview-page">
<!-- 顶部导航栏 -->
<view class="nav-bar">
<view class="nav-back" @click="goBack" @tap="goBack">
<uni-icons type="arrow-left" size="20" color="#fff"></uni-icons>
</view>
<view class="nav-title">{{ fileName || getDefaultTitle() }}</view>
<view class="nav-placeholder"></view>
</view>
<!-- 预览内容区域 -->
<view class="preview-container">
<!-- 图片预览 -->
<view v-if="fileType === 1" class="image-preview">
<image :src="fileUrl" mode="aspectFit" class="preview-image" @load="onImageLoad" @error="onImageError" />
</view>
<!-- 视频预览 -->
<view v-else-if="fileType === 2" class="video-preview">
<video :src="fileUrl" controls autoplay class="preview-video" object-fit="contain" style="width: 100%; height: 100%"></video>
</view>
<!-- PDF预览 -->
<view v-else-if="fileType === 3" class="pdf-preview">
<!-- <web-view :src="fileUrl" class="pdf-webview"></web-view> -->
<lk-preview-office :url="fileUrl" fileType="pdf"></lk-preview-office>
</view>
<!-- 加载中状态 -->
<view v-else class="loading-container">
<view class="spinner"></view>
<text class="loading-text">加载中...</text>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'FilePreview',
data() {
return {
fileUrl: '',
fileType: 1, // 1: 图片, 2: 视频, 3: PDF
fileName: '',
loading: true,
error: false
}
},
onLoad(options) {
// 从路由参数获取文件信息
if (options.fileUrl) {
this.fileUrl = decodeURIComponent(options.fileUrl)
}
if (options.fileType) {
this.fileType = parseInt(options.fileType)
}
if (options.fileName) {
this.fileName = decodeURIComponent(options.fileName)
}
console.log('预览文件信息:', {
url: this.fileUrl,
type: this.fileType,
name: this.fileName
})
},
methods: {
goBack() {
console.log('返回按钮被点击')
// 使用 setTimeout 确保事件处理完成
setTimeout(() => {
uni.navigateBack({
delta: 1,
success: () => {
console.log('navigateBack 成功')
},
fail: err => {
console.log('navigateBack失败:', err)
// 如果没有上一级页面,跳转到首页
this.goToHomePage()
}
})
}, 100)
},
goToHomePage() {
console.log('跳转到首页')
// 请根据你的实际首页路径修改
const homePage = '/pages/index/index'
// 使用 redirectTo 而不是 reLaunch 避免页面栈问题
uni.redirectTo({
url: homePage,
fail: () => {
// 如果 redirectTo 失败,尝试 switchTab
uni.switchTab({
url: homePage,
fail: () => {
console.log('所有跳转方式都失败了')
// 最后尝试 reLaunch
uni.reLaunch({
url: homePage
})
}
})
}
})
},
getDefaultTitle() {
const titles = {
1: '图片预览',
2: '视频预览',
3: '文档预览'
}
return titles[this.fileType] || '文件预览'
},
onImageLoad() {
this.loading = false
console.log('图片加载成功')
},
onImageError(e) {
this.loading = false
this.error = true
console.error('图片加载失败:', e)
uni.showToast({
title: '图片加载失败',
icon: 'none'
})
}
}
}
</script>
<style scoped lang="scss">
.file-preview-page {
width: 100vw;
height: 100vh;
background: #000;
display: flex;
flex-direction: column;
position: relative;
}
.nav-bar {
height: toRpx(88);
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(0, 0, 0, 0.8);
padding: 0 toRpx(32);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999;
/* 移除 backdrop-filter 避免可能的渲染问题 */
.nav-back {
width: toRpx(60);
height: toRpx(60);
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
z-index: 10000;
position: relative;
/* 添加 pointer-events 确保可点击 */
pointer-events: auto;
}
.nav-title {
color: #fff;
font-size: toRpx(32);
font-weight: 500;
flex: 1;
text-align: center;
margin: 0 toRpx(60);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nav-placeholder {
width: toRpx(60);
}
}
.preview-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
margin-top: toRpx(88); /* 为固定导航栏留出空间 */
z-index: 1;
/* 确保内容不会阻挡导航栏 */
pointer-events: auto;
}
.image-preview {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.preview-image {
max-width: 100%;
max-height: 100%;
display: block;
}
}
.video-preview {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.preview-video {
width: 100%;
height: 100%;
}
}
.pdf-preview {
width: 100%;
height: 100%;
.pdf-webview {
width: 100%;
height: 100%;
}
}
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
.spinner {
width: toRpx(80);
height: toRpx(80);
border: toRpx(4) solid rgba(255, 255, 255, 0.3);
border-top: toRpx(4) solid #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: toRpx(20);
}
.loading-text {
font-size: toRpx(28);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* 响应式优化 */
@media screen and (max-width: 768px) {
.nav-bar {
height: toRpx(80);
padding: 0 toRpx(24);
}
.nav-title {
font-size: toRpx(28);
}
.nav-back,
.nav-placeholder {
width: toRpx(50);
height: toRpx(50);
}
.preview-container {
margin-top: toRpx(80);
}
}
</style>
<template>
<view class="leaderboard-container">
<view class="detail-box">
<!-- 顶部导航 -->
<view class="header">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000000"></uni-icons>
</view>
<view class="title">排行榜</view>
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000000"></uni-icons>
</view>
<view class="title">排行榜</view>
</view>
<!-- 左右布局 -->
......@@ -15,52 +13,56 @@
<!-- 左侧排行榜 -->
<view class="left-panel">
<view class="top-image-wrapper">
<image class="panel-image" :src="require('@/assets/images/studyCenter/Leaderboard-bg.png')" mode="scaleToFill" />
<image class="panel-image" :src="require('@/assets/images/studyCenter/Leaderboard-bg.png')"
mode="scaleToFill" />
</view>
<view class="tab-header">
<view class="tab-list">
<view
v-for="(tab, index) in tabList"
:key="index"
:class="['tab-item', { 'active': currentTab === index }]"
@click="switchTab(index)"
>
<view v-for="(tab, index) in tabList" :key="index" :class="['tab-item', { 'active': currentTab === index }]"
@click="switchTab(index)">
<text class="tab-text">{{ tab.label }}</text>
</view>
</view>
<view class="median-text">学习时长中位数:{{ medianTime }}小时</view>
<view class="median-text">学习时长中位数:{{ rank.median }}小时</view>
</view>
<view class="rank-list">
<view
v-for="(item, index) in leaderboardList"
:key="index"
:class="['rank-item', { 'current-user': item.isCurrentUser }]"
>
<view v-if="rank.currentUserRank" class="rank-item current-user">
<view class="rank-left">
<view v-if="item.rank <= 3 && !item.isCurrentUser" class="rank-badge medal">
<image class="medal-icon" :src="getMedalIcon(item.rank - 1)" mode="aspectFit" />
</view>
<view v-else :class="['rank-badge', 'number', { 'has-bg': item.isCurrentUser }, { 'gray-number': item.rank >= 4 && !item.isCurrentUser }]">
<text class="rank-number">{{ item.rank >= 100 ? '99+' : item.rank }}</text>
<view class="rank-badge number has-bg">
<template v-if="rank.currentUserRank.rank">
<text class="rank-number">{{ rank.currentUserRank.rank >= 100 ? '99+' : rank.currentUserRank.rank }}</text>
</template>
<text v-else class="rank-number">-</text>
</view>
<text class="user-name">{{ item.name }}</text>
<text class="user-name">{{ rank.currentUserRank.userName }}</text>
</view>
<text class="study-time">{{ item.hours }}小时</text>
<text class="study-time">{{ rank.currentUserRank.duration == null ? '-' : rank.currentUserRank.duration }}小时</text>
</view>
<scroll-view class="rank-scroll" scroll-y="true">
<view v-for="(item, index) in rank.rankList" :key="index"
:class="['rank-item']">
<view class="rank-left">
<view v-if="item.rank <= 3" class="rank-badge medal">
<image class="medal-icon" :src="getMedalIcon(item.rank - 1)" mode="aspectFit" />
</view>
<view v-else
:class="['rank-badge', 'number', { 'gray-number': item.rank >= 4 }]">
<text class="rank-number">{{ item.rank >= 100 ? '99+' : item.rank }}</text>
</view>
<text class="user-name">{{ item.userName }}</text>
</view>
<text class="study-time">{{ item.duration == null ? '-' : item.duration }}小时</text>
</view>
</scroll-view>
</view>
</view>
<!-- 右侧面板 -->
<view class="right-panel">
<view class="developing flex">
<image
class="developing-icon"
src="../../assets/images/common/developing.webp"
/>
<image class="developing-icon" src="../../../assets/images/common/developing.webp" />
功能开发中
</view>
</view>
......@@ -80,17 +82,16 @@ export default {
{ label: '周榜' },
{ label: '月榜' }
],
medianTime: 180,
leaderboardList: [],
currentUser: {
name: '李洪扬',
hours: 112
},
currentUserRank: 25
rank: {
median: 0,
currentUserRank: {},
rankList: []
}
}
},
mounted() {
this.generateMockData()
// this.generateMockData()
this.getStudyDurationRank()
},
methods: {
back() {
......@@ -98,7 +99,7 @@ export default {
},
switchTab(index) {
this.currentTab = index
this.generateMockData()
this.getStudyDurationRank()
},
getMedalIcon(index) {
const medals = [
......@@ -108,28 +109,20 @@ export default {
]
return medals[index]
},
generateMockData() {
const names = ['孟伟', '任小宣', '谭亦云', '李晓夏', '李文歆', '袁佳', '刘轩华', '高强', '张明', '王芳', '李娜', '赵伟', '陈静', '周杰', '吴磊', '郑丽', '黄涛', '徐敏', '孙鹏', '马超']
this.leaderboardList = []
this.leaderboardList.push({
rank: this.currentUserRank,
name: this.currentUser.name,
hours: this.currentUser.hours,
isCurrentUser: true
// 获取排行榜
async getStudyDurationRank() {
uni.showLoading({
title: '加载中'
})
let baseHours = 250
for (let i = 0; i < 100; i++) {
if ((i + 1) === this.currentUserRank) {
continue
}
this.leaderboardList.push({
rank: i + 1,
name: names[i % names.length] + (i > 19 ? i - 19 : ''),
hours: Math.max(10, baseHours - i * 2 - Math.floor(Math.random() * 5)),
isCurrentUser: false
try {
const res = await uni.$api.commonApi.getStudyDurationRank({
periodType: this.currentTab,
staffPhone: uni.$storage.get('userInfo').phone
})
console.log(res, 'res')
this.rank = res
} finally {
uni.hideLoading()
}
}
}
......@@ -137,53 +130,42 @@ export default {
</script>
<style lang="scss" scoped>
.leaderboard-container {
width: 100%;
height: 100vh;
.detail-box {
position: relative;
overflow: hidden;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding: toRpx(160) toRpx(64) 0;
&::after {
content: '';
background-image: url('@/assets/images/common/home-bg-1.webp');
background-size: 100% 100%;
background-repeat: no-repeat;
.nav-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.header {
position: relative;
z-index: 10;
background: transparent;
margin-bottom: toRpx(44);
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.nav-bar {
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
height: toRpx(88);
position: relative;
.back {
position: absolute;
left: toRpx(32);
display: flex;
align-items: center;
justify-content: center;
width: toRpx(60);
height: toRpx(60);
}
pointer-events: auto;
}
.title {
font-size: toRpx(36);
font-weight: 500;
color: #000000;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
......@@ -191,7 +173,7 @@ export default {
display: flex;
gap: toRpx(32);
padding: 0 toRpx(40);
height: calc(100vh - var(--status-bar-height) - toRpx(88) - toRpx(44));
// height: calc(100vh - var(--status-bar-height) - toRpx(88) - toRpx(44));
.left-panel {
width: toRpx(1084);
......@@ -272,12 +254,13 @@ export default {
.rank-list {
margin-top: toRpx(24);
padding: 0 toRpx(48) toRpx(48);
max-height: toRpx(1050);
overflow-y: auto;
.rank-item {
width: toRpx(988);
box-sizing: border-box;
margin: 0 toRpx(48);
// width: toRpx(988);
width: calc(100% - toRpx(96));
height: toRpx(128);
border-radius: toRpx(24);
background: transparent;
......@@ -304,6 +287,7 @@ export default {
align-items: center;
justify-content: center;
margin-right: toRpx(20);
background-color: #ffffff;
&.medal {
background: transparent;
......@@ -316,7 +300,6 @@ export default {
}
&.number {
background: transparent;
border: none;
&.has-bg {
......@@ -362,6 +345,10 @@ export default {
}
}
.rank-scroll {
max-height: toRpx(960);
}
}
}
......@@ -395,5 +382,3 @@ export default {
}
}
</style>
......@@ -123,7 +123,7 @@
},
goToMyTask() {
uni.navigateTo({
url: '/pages/boutique/myTask'
url: '/pages/common/studyCenter/myTask'
})
},
changeType(index, tagIndex) {
......
<template>
<popup ref="popup" @onConfirm="confirm" @onCancel="cancel">
<view class="popup-title flex">
上传合同协议
<view class="popup-close flex" @click="close">
<uni-icons type="closeempty" size="16"></uni-icons>
</view>
</view>
<template>
<view class="popup-body">
<view class="flex px-24 tips">
<view class="sprite-icon icon-study-tips"></view>
<text class="tips-text">上传完毕计入有效成交,订单才可参与提成/清分/积分发放!</text>
</view>
<view class="contract-upload-container">
<view class="upload-item-container">
<view class="upload-label">
合同协议
<text class="requiredLabel">*</text>
</view>
<view class="upload-wrapper">
<!-- 显示已上传的文件列表 -->
<view v-for="(file, index) in getContractFiles()" :key="index" class="uploaded-file-container">
<!-- PDF文件显示 -->
<view v-if="isPdfFile(file)" class="pdf-container" @click.stop="previewFile(file, 3)">
<view class="pdf-icon">
<view class="sprite-icon icon-pdf-xl"></view>
</view>
<view class="file-info">
<text class="file-name">{{ getFileName(file) }}</text>
<text class="file-size">{{ formatFileSize(file.size) }}</text>
</view>
</view>
<!-- 图片文件显示 -->
<image v-else :src="file.url || file" mode="aspectFill" class="uploaded-image" @click.stop="previewFile(file, 1)"></image>
<view class="delete-icon" @click.stop="deleteContractFile(index)">
<view class="sprite-icon icon-icon-circle-error"></view>
</view>
</view>
<!-- 上传按钮,当未达到最大限制时显示 -->
<view v-if="!hasReachedMax(uploadField)" class="upload-item" @click="handleContractUpload(uploadField)">
<view class="upload-placeholder">
<view class="sprite-icon icon-uploadAdd"></view>
<text class="upload-text">{{ getContractFiles().length > 0 ? getContractFiles().length + '/' + uploadField.maxCount : '图片或PDF' }}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload>
</popup>
</template>
<script type="text/ecmascript-6">
import Popup from '@/components/Popup.vue'
import { uploadFile } from '@/utils/ossUpload.js'
import permision from '@/js_sdk/wa-permission/permission.js'
export default {
components: {
Popup,
},
name: 'ContractPopup',
props: {
},
data() {
return {
uploadOptions: {},
data: null,
currentId: '',
contractData: {},
uploadField: {
key: 'contractFiles',
maxCount: 9,
maxSize: 10 * 1024 * 1024,
accept: 'image/*, .pdf'
},
}
},
mounted() {
},
methods: {
open(data) {
this.currentId = ''
this.data = data
this.$nextTick(() => {
this.$refs.popup.open()
})
},
cancel() {
this.$refs.popup.close()
this.$emit('cancel')
},
close() {
this.$refs.popup.close()
this.$emit('close')
},
// 处理合同协议上传
async handleContractUpload(uploadField) {
// #ifdef APP-PLUS
const photoLibrary = await permision.requestAndroidPermission('android.permission.READ_EXTERNAL_STORAGE')
const isOnline = await uni.$isNetWork()
if (photoLibrary != 1) {
uni.showToast({ title: '您的设备不支持文件选择功能或未授权访问,请前往设置中开启存储权限', icon: 'none' })
return
}
if (!isOnline) {
uni.showToast({ title: '当前无网络连接,请连接网络后重试', icon: 'none' })
return
}
// #endif
// 显示操作菜单
uni.showActionSheet({
itemList: ['拍照', '从相册选择', '选择文件'],
success: res => {
if (res.tapIndex === 0) {
// 拍照
this.takePhoto(uploadField)
} else if (res.tapIndex === 1) {
// 从相册选择
this.chooseImageFromAlbum(uploadField)
} else if (res.tapIndex === 2) {
// 选择文件(PDF等)
this.$refs.XeUpload.upload('file', {});
}
},
fail: err => {
console.log('选择操作失败', err)
}
})
},
// 拍照
takePhoto(uploadField) {
uni.chooseImage({
count: this.getRemainingCount(uploadField),
sizeType: ['original'],
sourceType: ['camera'],
success: async res => {
try {
const MAX_FILE_SIZE = 10 * 1024 * 1024 // 10MB
for (const file of res.tempFiles) {
if (file.size > MAX_FILE_SIZE) {
uni.showToast({ title: '文件大小不能超过10MB', icon: 'none' })
return
}
}
uni.showLoading({ title: '上传中...', mask: true })
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
uni.hideLoading()
this.addContractFile({
url,
type: 'image',
name: this.getFileNameFromPath(res.tempFilePaths[i]),
size: res.tempFiles[i].size
})
}
} catch (error) {
console.log('上传图片失败', error)
uni.showToast({ title: '图片上传失败,请重试', icon: 'none' })
}
},
fail: err => {
console.log('拍照失败', err)
uni.hideLoading()
if (err.errMsg.indexOf('cancel') === -1) {
uni.showToast({ title: '拍照失败', icon: 'none' })
}
}
})
},
// 从相册选择图片
chooseImageFromAlbum(uploadField) {
uni.chooseImage({
count: this.getRemainingCount(uploadField),
sizeType: ['original'],
sourceType: ['album'],
success: async res => {
try {
const MAX_FILE_SIZE = 10 * 1024 * 1024 // 10MB
for (const file of res.tempFiles) {
if (file.size > MAX_FILE_SIZE) {
uni.showToast({ title: '文件大小不能超过10MB', icon: 'none' })
return
}
}
uni.showLoading({ title: '上传中...', mask: true })
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
uni.hideLoading()
this.addContractFile({
url,
type: 'image',
name: this.getFileNameFromPath(res.tempFilePaths[i]),
size: res.tempFiles[i].size
})
}
} catch (error) {
console.log('上传图片失败', error)
uni.showToast({ title: '图片上传失败,请重试', icon: 'none' })
}
},
fail: err => {
console.log('选择图片失败', err)
uni.hideLoading()
if (err.errMsg.indexOf('cancel') === -1) {
uni.showToast({ title: '选择图片失败', icon: 'none' })
}
}
})
},
handleUploadCallback(e) {
console.log('handleUploadCallback', e)
// 检查回调类型
if (e.type === 'choose' && e.data && e.data.length > 0) {
const fileData = e.data[0]
// 检查文件大小 (10MB限制)
if (fileData.size > 10 * 1024 * 1024) {
uni.showToast({ title: '文件大小不能超过10MB', icon: 'none' })
return
}
// 检查文件类型 (只支持PDF)
if (fileData.type !== 'application/pdf' && !fileData.name.toLowerCase().endsWith('.pdf')) {
uni.showToast({ title: '只支持PDF文件', icon: 'none' })
return
}
// 开始上传
uni.showLoading({ title: '上传中...', mask: true })
// 使用tempFilePath进行上传
uploadFile(null, fileData.tempFilePath)
.then(url => {
uni.hideLoading()
// 添加到合同文件列表
this.addContractFile({
url: url,
type: 'pdf',
name: fileData.name,
size: fileData.size
})
uni.showToast({ title: '上传成功', icon: 'success' })
})
.catch(error => {
uni.hideLoading()
console.log('上传文件失败', error)
uni.showToast({ title: '文件上传失败,请重试', icon: 'none' })
})
} else if (e.type === 'error') {
console.log('上传组件错误', e)
uni.showToast({ title: '文件选择失败', icon: 'none' })
}
},
// 获取合同文件数组
getContractFiles() {
const files = this.contractData[this.uploadField.key]
return Array.isArray(files) ? files : []
},
// 检查是否是PDF文件
isPdfFile(file) {
if (typeof file === 'object' && file.type) {
return file.type === 'pdf'
}
const url = file.url || file
const ext = url.split('.').pop().toLowerCase()
return ext === 'pdf'
},
// 获取文件名
getFileName(file) {
if (typeof file === 'object' && file.name) {
return file.name
}
const url = file.url || file
return url.split('/').pop().split('?')[0]
},
// 从路径获取文件名
getFileNameFromPath(path) {
return path.split('/').pop()
},
// 格式化文件大小
formatFileSize(size) {
if (size < 1024) {
return size + 'B'
} else if (size < 1024 * 1024) {
return (size / 1024).toFixed(1) + 'KB'
} else {
return (size / (1024 * 1024)).toFixed(1) + 'MB'
}
},
// 检查是否达到最大上传数量
hasReachedMax(uploadField) {
const files = this.getContractFiles()
return files.length >= (uploadField.maxCount || 1)
},
// 获取剩余可上传数量
getRemainingCount(uploadField) {
const files = this.getContractFiles()
return Math.max(1, (uploadField.maxCount || 1) - files.length)
},
// 添加合同文件
addContractFile(file) {
if (!Array.isArray(this.contractData[this.uploadField.key])) {
this.$set(this.contractData, this.uploadField.key, [])
}
this.contractData[this.uploadField.key].push(file)
this.$emit('update:contractData', { ...this.contractData })
},
// 删除合同文件
deleteContractFile(index) {
uni.showModal({
title: '提示',
content: '确定要删除这个文件吗?',
success: res => {
if (res.confirm) {
if (Array.isArray(this.contractData[this.uploadField.key])) {
this.contractData[this.uploadField.key].splice(index, 1)
if (this.contractData[this.uploadField.key].length === 0) {
this.$delete(this.contractData, this.uploadField.key)
}
this.$emit('update:contractData', { ...this.contractData })
}
}
}
})
},
// 预览文件
previewFile(file, type) {
const url = file.url || file
const fileName = this.getFileName(file)
// 跳转到预览页面
uni.navigateTo({
url: `/pages/common/filePreview?fileUrl=${encodeURIComponent(url)}&fileType=${type}&fileName=${encodeURIComponent(fileName)}`
})
},
// 表单校验方法
validate() {
if (this.uploadField.required) {
const files = this.getContractFiles()
if (files.length === 0) {
uni.showToast({ title: `${this.uploadField.label}不能为空`, icon: 'none' })
return false
}
}
return true
},
confirm () {
if (this.validate){
this.$emit('onConfirm',this.contractData)
}
},
}
}
</script>
<style scoped lang="scss">
.popup-box {
border-radius: toRpx(32) toRpx(32) 0 0;
background: #ffffff;
height: 70vh;
.popup-title {
height: toRpx(104);
justify-content: center;
position: relative;
color: #333333;
font-size: toRpx(36);
font-weight: 500;
.popup-close {
position: absolute;
height: 100%;
top: 0;
right: 0;
padding: 0 toRpx(48);
font-weight: 400;
color: #1a1a1a;
}
}
.popup-tips {
color: #999ea8;
font-size: toRpx(28);
padding-left: toRpx(48);
}
.tips {
display: flex;
align-items: center;
font-size: toRpx(28);
width: 100%;
height: toRpx(56);
border-radius: toRpx(8);
opacity: 1;
background: #fef5ea;
// margin: toRpx(16) 0;
color: #ff9d0a;
.sprite-icon {
flex-shrink: 0;
}
&-text {
flex: 1;
}
.icon-study-tips {
margin-right: toRpx(8);
}
}
.popup-body {
height: calc(100% - #{toRpx(350)});
padding: 0 toRpx(48);
.popup-scroll-view {
height: 100%;
padding-top: toRpx(24);
}
}
.contract-upload-container {
margin-top: toRpx(32);
.upload-item-container {
align-items: flex-start;
margin-bottom: toRpx(32);
.upload-label {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
display: flex;
align-items: flex-start;
margin-right: toRpx(42);
width: toRpx(180);
margin-bottom: toRpx(16);
}
.requiredLabel {
color: #f24724;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
.upload-wrapper {
display: flex;
gap: toRpx(16);
flex: 1;
flex-wrap: wrap;
}
}
.upload-item {
height: toRpx(240);
border-radius: toRpx(12);
display: flex;
align-items: center;
justify-content: center;
position: relative;
opacity: 1;
background: #f5f8ff;
width: toRpx(320);
}
.upload-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #999999;
}
.upload-text {
margin-top: toRpx(12);
font-size: toRpx(24);
}
.uploaded-file-container {
position: relative;
height: toRpx(240);
border-radius: toRpx(12);
overflow: hidden;
width: toRpx(320);
}
.uploaded-image {
width: 100%;
height: 100%;
}
.pdf-container {
width: 100%;
height: 100%;
background: #f5f8ff;
display: flex;
flex-direction: column;
padding: toRpx(20);
box-sizing: border-box;
}
.pdf-icon {
display: flex;
justify-content: center;
margin-bottom: toRpx(16);
}
.file-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.file-name {
font-size: toRpx(24);
color: #333;
text-align: center;
word-break: break-all;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.file-size {
font-size: toRpx(20);
color: #999;
text-align: center;
margin-top: toRpx(8);
}
.delete-icon {
position: absolute;
top: toRpx(8);
right: toRpx(8);
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
}
}
</style>
......@@ -4,40 +4,27 @@
<view class="box">
<scroll-view class="scroll-view" scroll-y="true">
<view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
<!-- 使用v-for循环渲染产品组件,减少重复代码 -->
<template slot="frontGear">
<Product v-if="orderObj.frontGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="frontWindow">
<Product v-if="orderObj.frontWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearWindow">
<Product v-if="orderObj.rearWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearGear">
<Product v-if="orderObj.rearGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="sunRoof">
<Product v-if="orderObj.sunRoof" @changeTotalPrice="changeTotalPrice" :list="orderObj.sunRoof" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="package">
<Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList"></Package>
</template>
<template slot="skuGoods">
<SkuGoods v-if="orderObj.skuGoods" :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></SkuGoods>
<view class="total" v-if="totalPrice > 0">
<view class="total-left">总价</view>
<view class="total-right">¥{{ totalPrice }}</view>
<GlCell :formList="formList" :formData="orderObj" :titleList="defeat_titleList" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
<template slot="customer">
<view class="customer-title flex">
客户信息
<view
class="customer-file flex"
@click="
handleCell({
key: 'customer'
})
"
>
<view class="sprite-icon icon-customer-list"></view>
客户档案
</view>
</view>
</template>
<template slot="otherPay">
<view v-if="showPayTips" class="pay-tips">其他收款:当客户已向嘀加付款但无法使用流水补录时,新建工单应选择收款方为「嘀加收款」且支付方为「其他收款」。</view>
</template>
<template slot="reasonList">
<view class="reason-list flex flex-wrap">
<view class="reason-item" v-for="(item, index) in orderObj.shortcutList" :key="index" @click="reasonClick(item.confValue)">
{{ item.confValue }}
<view class="reason-item" v-for="(item, index) in reasonList" :key="index" @click="reasonClick(item.name)">
{{ item.name }}
</view>
</view>
</template>
......@@ -60,7 +47,7 @@ import Product from './Product.vue'
import Package from './Package.vue'
import SkuGoods from './SkuGoods.vue'
import { checkDailyReport, showNextModal } from '@/utils/modalUtils'
import { DEFEAT_FORM_LIST, popupTypeEnum, payTypeList } from '../contant'
import { DEFEAT_FORM_LIST, defeat_titleList, popupTypeEnum, payTypeList } from '../contant'
import { debounce } from 'lodash'
export default {
name: 'DefeatOrder',
......@@ -156,40 +143,46 @@ export default {
baseConfigData: {},
requiredList: [], // 录单设置的必填项
orderObj: {
customer: {},
customerSex: '1',
experienceFlag: 'Y',
payeeType: 1,
frontGear: null, // 1 ,回显upgradeGoodsPosition == 1
frontWindow: null, // 2
rearWindow: null, // 3
rearGear: null, // 4
sunRoof: null, // 5, 6,7
package: null,
skuGoods: null // upgradeGoodsPosition 为空,则是其他精品单商品
}, // 弹窗传入的数据},
deafeatReason: '',
customerName: '',
customerPhone: '',
salesType: 0
},
popupType: 0,
reasonList: [
{
select: false,
name: '回去考虑一下'
},
{
select: false,
name: '完全不需要'
},
{
select: false,
name: '问家里意见'
},
{
select: false,
name: '没钱'
},
{
select: false,
name: '开一两年就不用了'
},
{
select: false,
name: '车开不了那么久换车'
}
],
defeat_titleList,
externalData: [], //弹窗接口数据
popupTypeEnum,
externalData: [], //弹窗接口数据
subShopMerchantList: [], // 二级流量方列表
employeeList: [],
djPayList: [], // 嘀加收款方对应支付方式
merchantPayList: [], // 门店收款方对应支付方式
configPayTypeList: [], // 园区店配置支持的支付方式
payTypeList,
goodsList: [],
otherProduct: [],
positionTypeList: [],
valueKey: '',
totalPrice: 0,
// 产品槽位配置,用于循环渲染产品组件
productSlots: {
frontGear: true,
frontWindow: true,
rearGear: true,
rearWindow: true,
sunRoof: true
}
payTypeList
}
},
computed: {
......@@ -212,6 +205,7 @@ export default {
methods: {
initData() {
const { userInfo } = this
console.log(this.orderObj, 'this.orderObj')
if (!this.orderObj.id) {
const weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
this.$set(this.orderObj, 'todayShow', dayjs().format('YYYY-MM-DD') + ' ' + weeks[dayjs().day()])
......@@ -226,23 +220,24 @@ export default {
merchantName: userInfo.shopMerchantName
})
}
this.getShopMerchantPointConfig(userInfo.shopMerchantId)
this.getSubShopMerchantList(userInfo.shopMerchantId)
this.getSetting()
this.getConfig()
this.getConfigList()
// this.getEmployeeList()
this.getSelectOrderGoodsList()
this.getPositionList()
if (this.orderCreateType == 'createWithPay') this.getLastUserOrderInfo() // 补录订单不需要设置默认值
this.getLastUserOrderInfo()
},
// handlerUserInfo() {
// let userInfo = uni.$storage.get('userInfo')
// this.orderObj.sellerMerchantName = userInfo.merchantName
// this.orderObj.sellerMerchantId = userInfo.merchantId
// this.orderObj.sellerName = userInfo.name
// this.orderObj.sellerUserId = userInfo.uuid
// },
// 选择行事件
handleCell(val) {
console.log(val, this.orderObj)
let { payType } = this.orderObj,
{ pointsMultiRole } = this
this.popupTitle = ''
// 获取当前选中的popupType
this.popupType = Object.keys(this.popupTypeEnum).find(key => this.popupTypeEnum[key].key === val.value) * 1
console.log(val, 'val')
console.log(this.popupTypeEnum, 'this.popupTypeEnum')
this.popupType = Object.keys(this.popupTypeEnum).find(key => this.popupTypeEnum[key].key === val.key) * 1
// 获取对应的list字段
const popupConfig = this.popupTypeEnum[this.popupType]
if (popupConfig && popupConfig.list) {
......@@ -250,14 +245,23 @@ export default {
} else {
this.externalData = []
}
// 定义产品相关字段数组
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (productFields.includes(val.value)) {
this.valueKey = val.value
}
this.popupTitle = {
0: pointsMultiRole == 'Y' ? '销售顾问/录单员' : '推荐人',
4: '车型',
13: payType == 2 ? '4S店收款时间' : '嘀加收款时间'
}[this.popupType]
console.log(this.popupType, this.externalData, '-------------')
this.$refs.orderPopup.open()
},
// 获取上一个订单的销售顾问信息 并且不是再次下单
async getLastUserOrderInfo() {
const res = await uni.$api.boutiqueApi.getLastUserOrderInfo({
sellerUserId: this.userInfo.subLoginUser.uuid
})
this.$set(this.orderObj, 'employeeName', res.employeeName)
this.orderObj.userId = res.userId
console.log(res, '上一个订单的销售顾问信息')
},
// 单选框change事件
radioChange(e, val) {
console.log(e, val)
......@@ -266,74 +270,31 @@ export default {
this.changePayee()
}
},
// 输入框失去焦点事件
inputBlur(e, val) {
console.log(e, val)
console.log(this.orderObj)
this.orderObj.customer[val.value] = this.orderObj[val.value]
},
// 弹窗确认回调
onConfirm(val) {
console.log(val, 'onConfirm')
const { chooseContent } = val
this.externalData = []
// // const { chooseContent } = val
const chooseContent = utils.deepClone(val.chooseContent)
// 根据popupTypeEnum优化处理
const _typeValue = this.popupTypeEnum[this.popupType]
console.log(_typeValue)
// 定义产品相关字段数组
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (_typeValue.key == 'carBrand') {
// 车型
this.$set(this.orderObj, _typeValue.key, `${chooseContent.carBrand}-${chooseContent.carChildsBrandName}-${chooseContent.carSeriesName}`)
this.orderObj.customer = {
...(this.orderObj.customer || {}),
...chooseContent,
standNo: '',
plateNumber: ''
}
} else if (_typeValue.key == 'couponInfo') {
// 礼券
const { couponName, merchantCouponId, customerCouponCode } = chooseContent
Object.assign(this.orderObj, {
couponName: couponName,
merchantCouponId: merchantCouponId,
customerCouponCode: customerCouponCode
})
this.$set(this.orderObj, 'couponInfo', couponName + customerCouponCode)
} else if (productFields.includes(_typeValue.key)) {
if (_typeValue.key == 'skuGoods') {
if (!this.orderObj[_typeValue.key]) {
this.$set(this.orderObj, _typeValue.key, chooseContent)
} else {
// 过滤出已选的goodFlag为2的对象
const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2)
const singleGoods = chooseContent.filter(item => item.goodsFlag === 1)
const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2)
.filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.id === item.multipleSpecificationsGoods.id)
})
// 合并已选的goodFlag为2的对象
this.orderObj[_typeValue.key] = [...singleGoods, ...moreGoods, ...selectedGoods]
}
} else {
// 手动拼装和新增工单一样的结构
console.log(this.orderObj)
this.$set(this.orderObj, _typeValue.key, Array.isArray(chooseContent) ? chooseContent.map(item => ({ goodsFlag: 1, goods: { ...item, sellPrice: item.price } })) : [{ goodsFlag: 1, goods: chooseContent }])
}
// 商品类,需计算总价
setTimeout(() => {
this.changeTotalPrice()
}, 0)
} else if (_typeValue.key == 'todayShow') {
const weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
this.$set(this.orderObj, 'todayShow', dayjs(chooseContent).format('YYYY-MM-DD') + ' ' + weeks[dayjs(chooseContent).day()])
this.$set(this.orderObj, 'createDate', dayjs(chooseContent).format('YYYY-MM-DD'))
} else if (_typeValue.key) {
this.orderObj[_typeValue.targetIdKey] = chooseContent[_typeValue.sourceIdKey]
this.$set(this.orderObj, _typeValue.targetNameKey, chooseContent[_typeValue.sourceNameKey])
if (val.popupType == 19) {
console.log(chooseContent, 'chooseContent')
this.orderObj.customerName = chooseContent.customerName
this.orderObj.customerPhone = chooseContent.customerPhone
}
},
// 输入框失去焦点事件
inputBlur(e, val) {
console.log(e, val)
console.log(this.orderObj)
this.orderObj.customer[val.value] = this.orderObj[val.value]
},
checkRequired() {
console.log(this.orderObj, '必填项')
const phoneRex = /^[1]([3-9])[0-9]{9}$/
// 把formList中所有required为true的对象放到一个数组中
const requiredArr = []
......@@ -355,12 +316,7 @@ export default {
for (let i = 0; i < requiredArr.length; i++) {
const item = requiredArr[i]
// 兼容嵌套customer对象的情况
let value
if (item.value === 'customerName' || item.value === 'customerPhone' || item.value === 'standNo' || item.value === 'plateNumber') {
value = this.orderObj.customer ? this.orderObj.customer[item.value] : undefined
} else {
value = this.orderObj[item.value]
}
let value = this.orderObj[item.value]
// 0、false、'0'等视为有效,null/undefined/空字符串视为无效
if (value === undefined || value === null || value === '') {
uni.showToast({
......@@ -419,61 +375,62 @@ export default {
let staffCheck = await checkDailyReport()
if (staffCheck) return false
if (!this.checkRequired()) return
const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj)
const otherCustomer = ['customerSex', 'experienceFlag']
obj.customer = {
...obj.customer,
...otherCustomer.reduce((acc, key) => {
if (obj[key] !== undefined) {
acc[key] = obj[key]
delete obj[key]
}
return acc
}, {})
}
// 将 frontGear、frontWindow、rearGear、rearWindow、sunRoof 字段合并到 goodsList 中
const labelFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof']
let goodsList = []
labelFields.forEach(field => {
if (Array.isArray(obj[field]) && obj[field].length > 0) {
goodsList = goodsList.concat(obj[field])
}
delete obj[field]
})
if (goodsList.length > 0) {
obj.subOrderList = goodsList.map(item => {
return {
totalPrice: item.goods.sellPrice,
number: item.goods.number,
merchantGoodsId: item.goods.merchantGoodsId || item.goods.id,
baseGoodsId: item.goods.baseGoodsId
}
})
}
obj.notUpgradeOrderList = [{ customer: obj.customer, subOrderList: obj.subOrderList, confirmIndex: false, isTouchMove: false, txtStyle: 'left:0' }]
obj.subOrderList = !this.transmissionOfData?.isExpiredTraffic ? obj.subOrderList : []
if (this.transmissionOfData?.isExpiredTraffic) {
delete obj.customer?.['experienceFlag'] // 删除是否体验参数
obj['packageGoodsList'] = [] // 删除商品参数
console.log(this.orderObj, '提交参数')
let { default4SStoreInfo } = this.userInfo
console.log(default4SStoreInfo, '4s店信息')
let params = {
owner: {
ageRange: '',
carBrand: '',
carBrandId: '',
carChildsBrandId: '',
carChildsBrandName: '',
carColor: '',
carSeriesId: '',
carSeriesName: '',
carVin: '',
certificateNo: '',
city: '',
companion: '',
confirmStatus: false,
owner: '', //客户姓名
ownerGender: '',
phone: '', //客户手机号
price: '',
salesType: 0,
saveStatus: false,
seat: 5
},
total: 1,
mode: 1,
check: true,
insurancePrice: 0,
merchantId4s: default4SStoreInfo.merchantId,
merchantName4s: default4SStoreInfo.merchantName,
minEquityPrice: 0,
payType: 1,
defeatOrder: true,
payee: 0,
paymentDocList: [],
quotedPriceUpdate: 0,
referrer: '', //推荐人,
referrerId: '', //
transactionNo: ''
}
delete obj.carBrand
delete obj.couponInfo
delete obj.refusalReason
delete obj.customer
delete obj.subOrderList
delete obj.todayShow
delete obj.package
delete obj.payeeType
delete obj.skuGoods
delete obj.customerName
delete obj.customerPhone
console.log(obj, 'rucan')
params.owner.owner = this.orderObj.customerName
params.owner.phone = this.orderObj.customerPhone
params.owner.salesType = this.orderObj.salesType
params.referrer = this.orderObj.employeeName
params.referrerId = this.orderObj.userId
params.remark = this.orderObj.deafeatReason
params.defeatOrderTime = this.orderObj.createDate + ' 00:00:00'
console.log(params, 'rucan')
uni.showLoading({
title: '提交中...',
mask: true
})
const res = await uni.$api.boutiqueApi.notUpgradeOrder({ json: JSON.stringify(obj) })
const res = await uni.$api.equityApi.defeatOrderCreate(params)
console.log(res, '===submit')
if (res) {
uni.hideLoading()
......@@ -484,141 +441,7 @@ export default {
this.$emit('jump', 'OrderManagement')
}
}, 300),
// 计算所有产品的总价
changeTotalPrice() {
let total = 0
// 遍历所有商品
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
productFields.forEach(slotName => {
const productList = this.orderObj[slotName]
if (Array.isArray(productList) && productList.length > 0) {
// 计算每个产品的价格 * 数量,并累加到总价
productList.forEach(item => {
if (item.goods && item.goods.sellPrice && item.goods.number) {
total += parseFloat(item.goods.sellPrice) * parseInt(item.goods.number)
} else if (item.packageGoods && item.packageGoods.upgradePrice && item.packageGoods.number) {
console.log(item.packageGoods, '套餐')
// if (item.packageGoods.price) {
// total += parseFloat(item.packageGoods.price) * parseInt(item.packageGoods.number)
// } else {
// total += parseFloat(item.packageGoods.upgradePrice) * parseInt(item.packageGoods.number)
// }
item.packageGoods.goodsList.forEach(i => {
total += parseFloat(i.sellPrice) * parseInt(item.packageGoods.number)
})
} else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods && item.multipleSpecificationsGoods.goods.sellPrice && item.multipleSpecificationsGoods.number) {
total += parseFloat(item.multipleSpecificationsGoods.goods.sellPrice) * parseInt(item.multipleSpecificationsGoods.number)
}
})
}
})
console.log(total, 'total')
// 更新总价
this.totalPrice = total.toFixed(2)
},
// 获取上一个订单的销售顾问信息 并且不是再次下单
async getLastUserOrderInfo() {
const res = await uni.$api.boutiqueApi.getLastUserOrderInfo({
sellerUserId: this.userInfo.subLoginUser.uuid
})
this.$set(this.orderObj, 'employeeName', res.employeeName)
this.orderObj.userId = res.userId
console.log(res, '上一个订单的销售顾问信息')
},
async getShopMerchantPointConfig(merchantId) {
const res = await uni.$api.boutiqueApi.getShopMerchantPointConfig({ merchantId })
console.log(res)
if (res.pointsMultiRole == 'Y') {
const employeeCell = this.formList[0].find(item => item.label === '销售顾问')
if (employeeCell) employeeCell.label = '销售顾问/录单员'
// 找到formList中label为"交付专员"的对象,添加hidden: true
// const deliveryCell = this.formList[0].find(item => item.label === '交付专员')
// if (deliveryCell) {
// deliveryCell.hidden = false
// }
}
},
// 判断二级流量方
async getSubShopMerchantList(merchantId) {
const res = await uni.$api.boutiqueApi.getSubShopMerchantList({ merchantId })
console.log(res, '流量方')
if (res && res.length) {
this.subShopMerchantList = res
const cell = this.formList[0].find(item => item.label === '二级流量方')
if (cell) {
cell.hidden = false
}
}
},
// 动态获取 车型 车架 车牌 是否必填
getYQorderInfo() {
return new Promise(async (resolve, reject) => {
const YQorderSetting = uni.$storage.get('boutique_YQorderSetting')
if (YQorderSetting) return resolve(YQorderSetting)
else {
const { userInfo } = this
let { merchantId, merchantName } = userInfo.subLoginUser
const res = await uni.$api.boutiqueApi.getMerchantRecordingSettings({ merchantId, merchantName })
console.log(res)
if (res) {
uni.$storage.set('boutique_YQorderSetting', res)
resolve(res)
}
}
})
},
// 获取车型、车架号、车牌号必填规则
async getSetting() {
const res = await this.getYQorderInfo()
console.log(res, '========')
const dictionaryObj = {
carTypeRequiredFlag: 'carBrand',
standNoRequiredFlag: 'standNo',
plateNumRequiredFlag: 'plateNumber'
}
for (const key in dictionaryObj) {
const cell = this.formList[1].find(item => item.value === dictionaryObj[key])
if (cell) cell.required = res[key] == 'Y'
}
},
async getConfig() {
const res = await uni.$api.boutiqueApi.getYqStoreConfig({
yqMerchantId: this.orderObj.sellerMerchantId
})
console.log(res)
let m = res.supportPayTypes || []
let n = this.payTypeList
let list = n.filter(k => {
let idx = m.find(j => j == k.value)
return idx >= 0
})
// this.configPayTypeList = list
this.djPayList = [
...list?.filter(v => ![2, 5].includes(Number(v.value))),
{
name: '对公转账',
value: '6'
},
{
name: '其它收款',
value: '7'
}
]
this.merchantPayList = [...list?.filter(v => v.value == 2)]
this.changePayee()
console.log(this.djPayList, this.merchantPayList, 'list')
},
changePayee() {
const cell = this.formList[2].find(item => item.value === 'selectPayType')
if (cell) {
cell.radioList = this.orderObj.payeeType == 1 ? this.merchantPayList : this.djPayList
if (cell.radioList && cell.radioList.length > 0) {
cell.current = cell.radioList[0].value
// this.orderObj.selectPayType = cell.radioList[0].value
}
}
},
// 获取 销售顾问列表
async getEmployeeList() {
const { userInfo, orderObj } = this
......@@ -633,209 +456,12 @@ export default {
// this.orderObj.userId = data[0].uuid
}
},
async getPositionList() {
const res = await uni.$api.boutiqueApi.getPositionList({})
this.positionTypeList = res
},
// 商品列表
async getSelectOrderGoodsList() {
const { userInfo } = this
const res = await uni.$api.boutiqueApi.getOrderBaseGoodsList({
merchantId: userInfo.shopMerchantId,
upradeFlag: 'N'
})
// 分类映射
const posMap = {
frontGear: [1],
frontWindow: [2],
rearGear: [3],
rearWindow: [4],
sunRoof: [5, 6, 7]
}
// 初始化各类商品数组
const arrMap = {
frontGear: [],
frontWindow: [],
rearGear: [],
rearWindow: [],
sunRoof: []
}
// 目前战败下单,只能选取 太阳膜这个类别的商品
const dataList = res.filter(val => val.goodsType === 1).flatMap(val => val.upgradeGoodsList)
console.log(dataList)
dataList.forEach(subVal => {
subVal.positionStr = subVal.position
subVal.upgradePrice = subVal.sellPrice
subVal.price = subVal.sellPrice
subVal.goodsId = subVal.merchantGoodsId
Object.keys(posMap).forEach(key => {
if (posMap[key].includes(subVal.merchantGoodsPosition)) {
arrMap[key].push({ goodsFlag: 1, goods: subVal })
}
})
})
console.log('arrMap', arrMap)
// 批量设置 hidden 属性
Object.keys(arrMap).forEach(key => {
const cell = this.formList[2].find(item => item.value === key)
if (cell) cell.hidden = arrMap[key].length === 0
})
// 失效客户进来的战败单
console.log(this.transmissionOfData, '失效客户进来的战败单')
console.log(this.formList, '失效客户进来的战败单')
if (this.transmissionOfData?.isExpiredTraffic) {
this.formList[2].map(item => {
item.hidden = true
})
const isExpiredTrafficCell = this.formList[1].find(item => item.label === '是否体验')
if (isExpiredTrafficCell) {
isExpiredTrafficCell.hidden = true
}
}
const subOrderList = this.goodsList || []
let chooseList = []
console.log('subOrderList', subOrderList)
subOrderList.map(e => {
// 普通商品
if (e && !e.packageName) {
if (e.specificationData.indexOf(';~;') == -1) {
// 修复取值字段名字错误问题
if (!e.price) {
e.price = utils.decimal(Number(e.totalPrice / e.number), 2)
//最低价
}
e.sellPrice = e.price
e.goodsId = e.merchantGoodsId
if (!e.minSellPrice) e.minSellPrice = e.upgradeShopMinPrice
e.goodsInfo = {
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
}
e.merchantGoodsId = e.merchantGoodsId || e.id
chooseList.push({
goodsFlag: 1,
goods: e,
number: e.number,
active: true
})
}
// 多规格商品
// if (e.specificationData.indexOf(';~;') > -1) {
// // 修复取值字段名字错误问题
// if (!e.price) {
// e.price = utils.decimal(Number(e.totalPrice / e.number), 2)
// //最低价
// e.sellPrice = e.price
// }
// e.goodsId = e.merchantGoodsId
// if (!e.minSellPrice) e.minSellPrice = e.upgradeShopMinPrice
// e.goodsInfo = {
// goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
// }
// e.count = e.number
// e.merchantGoodsId = e.merchantGoodsId || e.id
// let specificdata = this.handleSpecificationsEcho(e)
// console.log(specificdata, 'specificdata')
// chooseList = chooseList.concat(specificdata)
// }
}
// 套餐
// if (e && e.packageName) {
// e.packageGoodsOrderList.forEach(g => {
// g.oldPrice = g.sellPrice || g.upgradePrice
// // g.sellPrice = g.sellPrice || g.upgradePrice;
// g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.sellPrice
// g.sellPrice = g.price
// })
// e.goodsList = e.packageGoodsOrderList
// e.upgradePrice = e.goodsList.reduce((prev, cur) => {
// console.log(prev, cur)
// return prev + cur.sellPrice
// }, 0)
// e.number = e.goodsList.length ? e.goodsList[0].number : 1
// e.price = e.goodsList.reduce((prev, cur) => {
// return prev + Number(cur.totalPrice) / Number(cur.number)
// }, 0)
// chooseList.push({
// isType: 'meal',
// active: true,
// goodsFlag: 3,
// packageGoods: e,
// number: e.number,
// totalPrice: e.price
// })
// }
})
console.log(chooseList, 'chooseList')
const _singleGoods = chooseList
// const _packageGoods = chooseList.filter(item => item.goodsFlag == 3)
// const _skuGoods = chooseList.filter(item => item.goodsFlag == 2) || []
console.log(_singleGoods, 'singleGoods')
if (_singleGoods) {
// 回显upgradeGoodsPosition 1:前挡 2:前窗 3:后窗 4:后挡 5、6、7:天窗。 为空则是其他精品
this.$set(
this.orderObj,
'frontGear',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 1)
)
this.$set(
this.orderObj,
'frontWindow',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 2)
)
this.$set(
this.orderObj,
'rearWindow',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 3)
)
this.$set(
this.orderObj,
'rearGear',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 4)
)
this.$set(
this.orderObj,
'sunRoof',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 5 || item.goods.upgradeGoodsPosition == 6 || item.goods.upgradeGoodsPosition == 7)
)
// 将没有upgradeGoodsPosition的商品添加到_skuGoods中
// const noPositionGoods = _singleGoods.filter(item => !item.goods.upgradeGoodsPosition)
// if (noPositionGoods.length > 0) {
// _skuGoods.push(...noPositionGoods)
// }
}
// if (_packageGoods) {
// this.$set(this.orderObj, 'package', _packageGoods)
// }
// console.log(_skuGoods, '_skuGoods')
// if (_skuGoods && _skuGoods.length) {
// this.$set(this.orderObj, 'skuGoods', _skuGoods)
// }
console.log(this.orderObj, 'this.orderObj')
this.changeTotalPrice()
},
// 获取不升级常用字符列表
getConfigList() {
uni.$api.boutiqueApi
.getConfigList({
confGroup: 'SMARTCARLIFE_NOT_UPGRADE_LABEL'
})
.then(data => {
console.log(data)
this.orderObj.shortcutList = data
})
},
reasonClick(text) {
let refusalReason = (this.orderObj.refusalReason || '') + text
this.orderObj.customer.refusalReason = refusalReason.substring(0, 30)
this.$set(this.orderObj, 'refusalReason', refusalReason.substring(0, 30))
console.log(this.orderObj.customer?.refusalReason)
let deafeatReason = (this.orderObj.deafeatReason || '') + text
// this.orderObj.customer.deafeatReason = deafeatReason.substring(0, 30)
this.$set(this.orderObj, 'deafeatReason', deafeatReason.substring(0, 30))
// console.log(this.orderObj.customer?.deafeatReason)
},
handleSpecificationsEcho(item) {
let skuArr = []
......@@ -1108,4 +734,14 @@ export default {
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
.customer-title {
.customer-file {
margin-left: 20rpx;
color: #347bff;
font-size: 24rpx;
.sprite-icon {
margin-right: 4rpx;
}
}
}
</style>
<!--工单信息卡片-->
<template>
<view class="order-card" @click.stop="cardClick">
<view class="order-card">
<view class="order-card-top-box flex justify-between">
<view class="flex item-center">
<text class="mr-20">{{ orderCardDetail.customerName }}</text>
......@@ -15,20 +15,10 @@
<!-- 待上传合同协议且是已支付的订单 -->
<view class="status text-center" :style="{ color: status[0].color, 'background-color': status[0].background }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view>
<view v-else class="status text-center" :style="{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }">
<!-- <view v-if="orderCardDetail.orderStatus == 1 || orderCardDetail.orderStatus == 3">
<view v-if="status[orderCardDetail.orderStatus].background">
<view class="arc y-center">
<view class="outside box-center" :style="{ 'background-color': status[orderCardDetail.orderStatus].background }" />
<view class="inside box-center" :style="{ 'background-color': status[orderCardDetail.orderStatus].color }" />
</view>
</view>
</view> -->
<!-- 优先显示已撤销的 然后是已施工的 最后是其他的 -->
<!-- {{li.status==9?status[li.status].text: (li.constructionFlag == 'Y'?'已施工':status[li.status].text) }} -->
{{ status[orderCardDetail.orderStatus].text }}
</view>
</view>
<view>
<view class="order-card-bottom-box">
<view class="info-box">
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj" :key="sindex">
<view class="order flex align-center">
......@@ -41,36 +31,46 @@
<view v-if="arr_index == 1">
<text class="split">|</text>
</view>
{{ orderCardDetail[k] }}
<text class="value-text">{{ orderCardDetail[k] }}</text>
</view>
</view>
</view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view>
<view v-else class="order-value-single">
<text class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
</view>
</view>
<view v-else class="order-value-single flex">
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text>
<text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
<view v-if="item.canCopy" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
</view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view>
</view>
</view>
</view>
</view>
<!-- 支付方式 -->
<view class="order-payType flex" v-if="orderCardDetail.selectPayType !== undefined && orderCardDetail.selectPayType !== null">
<view class="payType flex align-center">
<view class="payType-label">支付方式</view>
<view class="payType-value flex align-center">
{{ payType[orderCardDetail['selectPayType']] }}
<image v-if="orderCardDetail.selectPayType == 1" class="payType-image" :src="IMG_URL + 'miniProgram/wxPay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 2" class="payType-image" :src="IMG_URL + 'miniProgram/store_pay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 3" class="payType-image" :src="IMG_URL + 'miniProgram/posPay.png'" mode="" />
</view>
<view class="order flex align-center" v-if="orderCardDetail.orderStatus != '-1' && orderCardDetail.quotedPriceUpdate">
<view class="order-label">支付金额</view>
<view class="price flex">
<text class="unit">¥</text>
{{ orderCardDetail.quotedPriceUpdate || '' }}
</view>
<view v-if="orderCardDetail.status != 1 && orderCardDetail.selectPayType != 0 && orderCardDetail.total_price != 0" class="order-price flex align-center">
<view class="order-price-label">实付金额</view>
<view class="price">
<text class="unit">¥</text>
{{ orderCardDetail.totalPrice }}
</view>
<view class="refund-box" v-if="orderCardDetail.refundAmount">
部分退款
<text class="unit">¥</text>
{{ orderCardDetail.refundAmount }}
</view>
<!-- 已录单未签名 -->
<!-- <view wx:if="{{(item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0')}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,未录入权益合同
</view>
<view wx:elif="{{item.orderStatus == '3' && item.equityOrderStatus == '2'}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,尚未签名确认
</view> -->
<!-- <view wx:else>创建时间:{{item.createdTime}}</view> -->
</view>
</view>
<!-- 施工技师 -->
......@@ -78,34 +78,46 @@
<view class="staff-label">施工技师</view>
<view class="staff-value">{{ orderCardDetail.technicianName }}</view>
</view>
<PublishPopup ref="recordOrderPopup" popupClass="recordOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="请选择录单入口">
<template #content>
<view class="modatcontent">
<view class="modalbox com" :class="selectType == 1 ? 'act' : ''" @click="changeType(1)">
<view class="sprite-icon icon-createOrder"></view>
新增工单
</view>
<view class="modalbox cancle" :class="selectType == 2 ? 'act' : ''" @click="changeType(2)">
<view class="sprite-icon icon-defeatOrder"></view>
战败下单
</view>
<view v-if="isSettingExpiredTraffic && !isScan" class="modalbox cancle" :class="selectType == 3 ? 'act' : ''" @click="changeType(3)">
<view class="sprite-icon icon-isExpiredTrafficIcon"></view>
失效客户
</view>
<view class="modalbox cancle" v-if="orderCardDetail.constructionFlag !== 'Y' && orderCardDetail.selectPayType !== 1 && orderCardDetail.selectPayType !== 3 && orderCardDetail.selectPayType !== 4 && orderCardDetail.status !== 9" :class="selectType == 4 ? 'act' : ''" @click="changeType(4)">
<view class="sprite-icon icon-revokeOrder"></view>
撤销工单
<view v-if="orderCardDetail.zyPayStatus != 1" class="">
<view class="flex px-24 tips" v-if="(orderCardDetail.orderStatus == 3 && orderCardDetail.equityOrderStatus == 0 && orderCardDetail.equityGoodsFlag == 1) || (orderCardDetail.orderStatus == 5 && orderCardDetail.equityOrderStatus == 0)">
<view class="sprite-icon icon-study-tips"></view>
订单已支付,未录入权益合同
</view>
<!-- 已录单未签名 -->
<view class="flex px-24 tips" v-else-if="orderCardDetail.orderStatus == 3 && orderCardDetail.equityOrderStatus == 2">
<view class="sprite-icon icon-study-tips"></view>
订单已支付,尚未签名确认
</view>
</view>
<view class="item-footer">
<view class="btn_class">
<!-- 更多按钮 -->
<!-- <view v-if="buttonConfig.showMoreBtn">
<view class="order-btn default-btn padding_20" @click="handleMoreBtn">更多</view>
</view> -->
<!-- 接待记录按钮 -->
<!-- <view v-if="buttonConfig.showReceptionBtn">
<view class="order-btn default-btn padding_20" @click="jumpReception">接待记录</view>
</view> -->
<!-- 次要按钮 -->
<view v-for="(btn, index) in buttonConfig.secondaryButtons" :key="index">
<view class="order-btn default-btn" @click="() => handleClickBtn(btn.dataType)">
{{ btn.text }}
</view>
</view>
</template>
<template #footer>
<view class="footer-box flex justify-center">
<view class="cancle-btn btn" @click.stop="cancelSelection">取消</view>
<view class="sure-btn btn" @click.stop="confirmSelection">确认</view>
<!-- 主要按钮 -->
<view v-if="buttonConfig.primaryButton">
<view class="order-btn" @click="() => handleClickBtn(buttonConfig.primaryButton.dataType)">
{{ buttonConfig.primaryButton.text }}
</view>
</view>
</template>
</PublishPopup>
</view>
</view>
<NoticePopup ref="notice" title="提示" text="是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。" type="warning"></NoticePopup>
<ContractPopup ref="contractPopupRef" @onConfirm="onConfirm"></ContractPopup>
</view>
</template>
<script>
......@@ -114,7 +126,8 @@ import { interceptionMixin } from '@/mixin/index'
import utils from '@/utils/utils'
import { checkDailyReport, showNextModal } from '@/utils/modalUtils'
import PublishPopup from '@/components/PublishPopup.vue'
import { debounce } from 'lodash'
import NoticePopup from '@/components/NoticePopup.vue'
import ContractPopup from './ContractPopup.vue'
export default {
mixins: [interceptionMixin],
name: 'OrderCard',
......@@ -125,7 +138,9 @@ export default {
}
},
components: {
PublishPopup
PublishPopup,
NoticePopup,
ContractPopup
},
computed: {
payType() {
......@@ -133,6 +148,113 @@ export default {
},
status() {
return order_mixins.data.orderStatusObj || {}
},
buttonConfig() {
const config = {
showMoreBtn: false,
showReceptionBtn: false,
primaryButton: null,
secondaryButtons: []
}
const order = this.orderCardDetail
const localUser = this.localUserInfo
// 超管或商户类型1不可操作
if (localUser?.isSuper || localUser?.userType !== 2) {
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || (order.orderStatus == 6 && order.refundAmount)) && this.isOrder)
return config
}
// 待上传合同协议且是已支付的订单 (zyPayStatus == 1 且 orderStatus 为 3/4/7)
if (order.zyPayStatus == 1 && (order.orderStatus == 3 || order.orderStatus == 4 || order.orderStatus == 7)) {
config.showMoreBtn = order.showInvoiceEntrance || order.invoicing == 2
config.showReceptionBtn = order.orderStatus != '0'
config.primaryButton = { text: '上传协议', type: 'primary', dataType: 'upload' }
if (order.equityOrderStatus == 0 && order.equityGoodsFlag == 1) {
config.secondaryButtons.push({ text: '去处理', type: 'secondary', dataType: 'handle' })
}
return config
}
// 其他情况 - 订单状态不是4,11,9
if (order.orderStatus != '4' && order.orderStatus != 11 && order.orderStatus != 9) {
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || order.orderStatus == 6) && this.isOrder)
config.showReceptionBtn = order.orderStatus != '0'
// 修改协议按钮
if (order.canUpdateZyPayUrl == 1 && order.zyPayStatus == 2) {
config.secondaryButtons.push({ text: '修改协议', type: 'secondary', dataType: 'upload' })
}
if (this.isOrder) {
// 待跟进或待支付状态
if (order.orderStatus == '-1' || order.orderStatus == '0') {
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || (order.orderStatus == '-1' ? '去报价' : '去报价'),
type: 'primary',
dataType: 'price'
}
}
// 非已完成状态
else if (order.orderStatus != 6) {
// 战败状态
if (order.orderStatus == '2') {
config.secondaryButtons.push({ text: '战败', type: 'secondary', dataType: 'defeat' })
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '去支付',
type: 'primary',
dataType: 'pay'
}
}
// 已支付状态
else if (order.orderStatus == '3') {
if (order.equityGoodsFlag == '1') {
// config.secondaryButtons.push({ text: '客户签名', type: 'secondary', dataType: 'signature' })
}
// 已支付未录单
if (order.equityOrderStatus == '0' && order.equityGoodsFlag == '1') {
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '去处理',
type: 'primary',
dataType: 'handle'
}
}
}
// 已完成状态
else if (order.orderStatus == '5') {
// 已完成未录单
if (order.equityOrderStatus == '0' && order.equityGoodsFlag == '1') {
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '去处理',
type: 'primary',
dataType: 'handle'
}
}
}
// 其他状态
else {
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '处理',
type: 'primary',
dataType: 'default'
}
}
}
// 除待跟进工单,支付方式为门店收款的订单可以在工单详情页面展示撤销按钮
if (!(order.orderStatus == '-1' && order.selectPayType == 2)) {
config.secondaryButtons.push({ text: '撤销', type: 'secondary', dataType: 'revoke' })
}
}
} else {
// 订单状态为4,11,9的情况
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || order.orderStatus == 6) && this.isOrder)
}
return config
}
},
data() {
......@@ -250,127 +372,197 @@ export default {
}
],
localUserInfo: null,
isOrder: null
isOrder: null,
btnTxt: {
0: '去报价',
1: '确认方案',
2: '去支付',
3: '去处理',
'-1': '去报价',
5: '去处理'
}
}
},
mounted() {
this.localUserInfo = uni.$storage.get('userInfo')
this.isOrder = !(this.localUserInfo?.isSuper || this.localUserInfo?.loginRole == 3 || this.localUserInfo.loginRole == 5 || this.localUserInfo?.loginRole == 6)
},
methods: {
// 查看全部商品
showAllGoodsList: debounce(function (e) {
this.$emit('toggle-goods-list', {
item: this.orderCardDetail,
flag: !this.orderCardDetail.showAllGoodsListFlag
})
}, 300),
async jumpClick(name, item) {
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 ,9 已撤销 , 10 已关闭 , 11 已失效
// constructionFlag 施工标识(Y:已施工;N||null:未施工)
// failureFlag 订单失效状态(Y:已失效,N:未失效)
// console.log(e.currentTarget.dataset)
// return
if (this.localUserInfo.merchantAccountList && this.localUserInfo.merchantAccountList.length) {
try {
this.localUserInfo.merchantAccountList.map(e => {
if (e == 6 || e == 8) throw true
_methods: {
copyText(e) {
console.log(e)
uni.setClipboardData({
data: e,
success: () => {
uni.showToast({
title: '复制成功',
icon: 'success',
duration: 2000
})
} catch (error) {
this.localUserInfo.merchantType = error
}
})
},
handleClickBtn(type) {
switch (type) {
case 'upload':
// 处理上传协议
this.uploadContract()
break
case 'handle':
// 处理去处理
this.createorder()
break
case 'price':
// 处理去报价
break
case 'pay':
// 处理去支付
break
case 'defeat':
// 处理战败
break
case 'revoke':
// 处理撤销
this.revokeOrder()
break
case 'default':
// 处理默认情况
break
default:
// 其他情况
break
}
this.localUserInfo.isMake = !(this.localUserInfo?.isSuper || this.localUserInfo?.loginRole == 3 || this.localUserInfo?.loginRole == 5 || this.localUserInfo?.loginRole == 6 || this.localUserInfo?.loginRole == 7)
let { userType, isSuper, merchantType, isMake } = this.localUserInfo
console.log(item)
if (name == 'CreateOrder' || name == 'PremiumUpgrade') {
if (merchantType && !isSuper && isMake) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport()
if (staffCheck) return false
if (name == 'CreateOrder' && (await this.inspectionOfProhibitionBill())) return /**禁止提单 */
// 是微信支付直接跳转确认页面
if (userType == 2 && item?.selectPayType == 1) {
this.$emit('jump', 'ConfirmOrder', this.orderCardDetail)
} else if (userType == 2) {
item
? this.showSelectType({
item
})
: this.$emit('jump', name, { paramsData: this.orderCardDetail, type: 'createWithPay' })
} else {
utils.showNoAccess()
},
// 撤销工单方法
revokeOrder() {
// 配置弹窗按钮
this.$refs.notice.buttonsList = [
{
text: '取消',
type: 'default',
callback: () => {
this.transmissionOfData = null
this.$refs.notice.close()
}
},
{
text: '撤销',
type: 'primary',
callback: async () => {
// 校验订单是否可撤销(在退款流程中无法撤销)
let refundStep = await uni.$api.equityApi.getOrderRefundStep({ orderCode: this.orderCardDetail.payId })
if (refundStep?.data == 'Y') return _this.showRefundAlert()
this.repeal(this.orderCardDetail.id)
}
} else {
utils.showNoAccess()
}
// 已支付加已施工
} else if (item.constructionFlag == 'Y' && item.status != 10) {
this.$emit('jump', name, this.orderCardDetail)
} else {
this.$emit('jump', name, this.orderCardDetail)
}
]
// 打开弹窗
this.$refs.notice.open()
},
//修改客户信息
jumpUpdate() {
this.$emit('jump', 'UpdateOrderInfo', { paramsData: this.orderCardDetail, type: 'UpdateOrderInfo' })
},
//去处理
createorder() {
this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'CreateOrder' })
},
//上传协议
uploadContract() {
this.$refs.contractPopupRef.open({})
},
showRefundAlert(type) {
const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
uni.showModal({
title: '提示',
content: text,
showCancel: false,
confirmText: '好的'
})
},
// 确定是否要显示
showSelectType({ scene = '', item = {} }, scan = false) {
this.isScan = scan
// 当切换门店后,不支持录入失效客户工单,将selectType置为1录入工单
if ((!this.isSettingExpiredTraffic || scan) && this.selectType == 3) {
this.selectType = 1
repeal(id, revokeReason) {
uni.showLoading({
mask: true
})
let _this = this
let params = {
id
}
if (revokeReason) {
params.revokeReason = revokeReason
}
this.getCreateOrderSetting()
this.$nextTick(() => {
if (this.$refs.recordOrderPopup) {
this.$refs.recordOrderPopup.open()
uni.$api.equityApi.cancelOrderById(params).then(_res_ => {
if (_res_) {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'success'
})
this.transmissionOfData = null
this.$refs.notice.close()
setTimeout(() => {
this.$emit('refresh')
// _this.getList();
}, 500)
} else {
console.error('recordOrderPopup ref is not available')
uni.hideLoading()
}
})
},
// 获取轻改录单配置是否启用流量失效
getCreateOrderSetting() {
let merchantType = this.localUserInfo?.merchantAccountList.includes('6') || this.localUserInfo?.merchantAccountList.includes('8')
if (merchantType && !this.localUserInfo?.isSuper && this.localUserInfo?.loginRole != 3 && this.localUserInfo?.userType == 2 && this.localUserInfo?.shopMerchantId) {
uni.$api.boutiqueApi.getServiceBaseInfo({ merchantId: this.localUserInfo?.shopMerchantId }).then(res => {
this.isSettingExpiredTraffic = res?.trafficExpireFlag == 'Y'
})
onConfirm(val) {
console.log(val)
let urls = []
if (val && val.contractFiles && Array.isArray(val.contractFiles)) {
urls = val.contractFiles.map(file => file.url).filter(url => url)
}
},
changeType: debounce(function (type) {
this.selectType = type
}, 300),
confirmSelection: debounce(async function () {
this.$refs.recordOrderPopup.closePopup()
console.log('this.selectType', this.selectType)
if (this.selectType == 1) {
console.log(await this.inspectionOfProhibitionBill())
if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'createWithPay' })
} else if (this.selectType == 2 || this.selectType == 3) {
this.$emit('jump', 'DefeatOrder', { paramsData: this.orderCardDetail, type: 'createWithPay', isExpiredTraffic: this.selectType == 3 })
} else if (this.selectType == 4) {
let _this = this
uni.$api.boutiqueApi
.revokeOrder({
orderCode: this.orderCardDetail.orderCode
console.log(urls)
uni.$api.equityApi
.getQuotationInfoById({
id: this.orderCardDetail?.id
})
.then(res => {
console.log(res, 'res')
let orderInfo = {}
let { default4SStoreInfo } = this.userInfo
orderInfo.check = true
orderInfo.id = res.id
orderInfo.orderId = res.orderId
orderInfo.merchantId4s = default4SStoreInfo?.merchantId
orderInfo.merchantName4s = default4SStoreInfo?.merchantName
orderInfo.referrer = res.referrer
orderInfo.referrerId = res.referrerId
console.log(orderInfo, 'orderInfo')
uni.showLoading({
mask: true
})
.then(data => {
uni.showToast({
title: '操作成功',
icon: 'success'
uni.$api.equityApi
.updateCustomerInfo({
...orderInfo,
zyPayUrl: urls.join(',')
})
this.$emit('refresh')
})
}
}, 300),
cancelSelection() {
this.$refs.recordOrderPopup.closePopup()
},
cardClick: debounce(function () {
this.jumpClick(this.orderCardDetail.status == 3 ? 'ConfirmOrder' : this.orderCardDetail.status == 1 ? 'CreateOrder' : 'OrderDetail', this.orderCardDetail)
}, 300)
.then(result => {
console.log(result, 'resultresult')
this.$refs.contractPopupRef.close()
uni.hideLoading()
setTimeout(() => {
this.$emit('refresh')
// _this.getList();
}, 500)
})
.catch(err => {
console.log(err)
uni.hideLoading()
})
})
.catch(err => {
uni.hideLoading()
})
}
},
get methods() {
return this._methods
},
set methods(value) {
this._methods = value
}
}
</script>
......@@ -493,71 +685,47 @@ export default {
font-size: toRpx(24);
color: #999ea8;
font-weight: 400;
flex-shrink: 0;
}
.order-value {
font-size: toRpx(24);
color: #666666;
font-weight: 400;
.split {
margin: 0 toRpx(6);
}
min-width: 0;
}
}
/* 支付方式相关样式 */
.payType {
width: 50%;
padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box;
.payType-label {
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
color: #999ea8;
font-weight: 400;
.order-value-single,
.order-value-item {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.payType-value {
font-size: toRpx(24);
color: #666666;
font-weight: 400;
.value-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.order-price {
padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box;
padding-right: 0;
padding-left: toRpx(20);
.order-price-label {
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
font-weight: 400;
color: #999ea8;
}
.price {
display: flex;
align-items: center;
color: #4673ff;
font-size: toRpx(36);
font-weight: 700;
.split {
margin: 0 toRpx(6);
flex-shrink: 0;
}
}
.payType-image {
width: toRpx(32);
height: toRpx(32);
margin-left: toRpx(10);
}
.unit {
margin-right: toRpx(8);
color: #347bff;
font-size: toRpx(28);
font-weight: 700;
}
.price {
color: #347bff;
font-size: toRpx(36);
font-weight: 700;
}
.construction-staff {
width: 50%;
......@@ -613,4 +781,168 @@ export default {
margin-top: toRpx(12);
}
}
.item-footer {
display: flex;
justify-content: end;
align-items: center;
font-size: toRpx(24);
color: #9b9b9e;
border-top: 1 solid #ededed;
padding: toRpx(20) toRpx(32) 0;
}
.btn_class {
display: flex;
gap: toRpx(8);
margin-left: auto;
}
.order-btn {
box-sizing: border-box;
height: toRpx(56);
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(28);
color: #ffffff;
background: #347bff;
border-radius: toRpx(32);
padding: toRpx(8) toRpx(20);
flex-shrink: 0;
}
.order-btn.default-btn {
background: #ffffff;
border: toRpx(2) solid #347bff;
border-radius: toRpx(32);
color: #347bff;
}
.padding_20 {
padding: 0 toRpx(14);
}
.list .item .order {
font-size: toRpx(24);
color: #333333;
margin-bottom: toRpx(20);
display: flex;
align-items: center;
}
.list .item .order:last-of-type {
margin-bottom: 0;
}
.list .item .order .order-label {
width: toRpx(36);
color: #9b9b9e;
}
.list .item .order .order-value {
width: calc(100% - toRpx(136));
display: flex;
align-items: center;
}
.list .item .order .order-value .order-value-item:first-of-type {
max-width: 70%;
}
.list .item .order .order-value .order-value-item .split {
margin: 0 toRpx(6);
}
.list .item .order-price {
display: flex;
justify-content: flex-end;
/* align-items: center; */
align-items: flex-end;
font-size: toRpx(24);
color: #666666;
/* padding-top: var(--fontSize8); */
}
.list .item .order-price .price {
box-sizing: border-box;
color: #f24724;
font-size: toRpx(40);
margin-left: toRpx(20);
margin-bottom: calc(-1 * toRpx(8));
/* margin-top: var(--fontSize8); */
}
.list .item.gray .order-price .price {
color: #666 !important;
}
.list .item .order-price .price .unit {
font-size: toRpx(28);
}
.list .item .order-payType {
font-size: toRpx(24);
color: #333333;
/* margin-top: var(--fontSize50); */
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.list .item .btn {
border: toRpx(2) solid #666666;
border-radius: toRpx(12);
box-sizing: border-box;
font-size: toRpx(28);
color: #666666;
position: absolute;
right: toRpx(40);
bottom: toRpx(30);
width: toRpx(192);
height: toRpx(64);
}
.tips {
display: flex;
align-items: center;
font-size: toRpx(24);
width: 100%;
height: toRpx(56);
border-radius: toRpx(8);
opacity: 1;
background: #fef5ea;
margin: toRpx(16) 0;
color: #ff9d0a;
&-text {
margin-top: toRpx(4);
}
.icon-study-tips {
margin-right: toRpx(8);
}
}
.copy-btn {
display: flex;
align-items: center;
margin-left: auto;
color: #808291;
.copy {
margin-right: toRpx(8);
margin-left: toRpx(20);
}
}
.order-card-bottom-box {
border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(20);
}
.updateInfo {
color: #347bff;
font-size: var(--fontSize28);
margin-left: var(--fontSize16);
font-weight: normal;
margin-right: auto;
}
.updateInfo.isHide {
display: none;
}
</style>
<template>
<view class="order-management">
<view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名搜索" />
<view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons>
</view>
......@@ -20,123 +20,10 @@
<view class="sprite-icon icon-filter"></view>
</view>
</view>
<view class="px-48">
<view class="tips" v-if="waitInputCount">
<view class="sprite-icon icon-study-tips"></view>
{{ tipsProps.tipsText }}
<view @click.stop="waitinputorderClick" class="waitinputorder-btn">补录订单</view>
</view>
</view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard>
</z-paging>
<PublishPopup ref="WaitinputorderPopup" popupClass="waitinputorderPopup" :showClose="true" title="选择交易参考号">
<template #content>
<view class="popup-content px-48">
<view class="waitinputorder-tab-container">
<view class="waitinputorder-tab-buttons">
<view v-for="(item, index) in waitinputorderTabList" :key="index" class="waitinputorder-tab-button" :class="{ active: activeIndex === index }" @click="tabChange(index)">
<text>{{ item.name }}</text>
<view v-if="item.showQuestion" class="question-icon" @click.self="showQuestionPopup()">
<uni-icons type="help" size="16" color="#999"></uni-icons>
</view>
</view>
</view>
</view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" :refresher-triggered="triggered" @refresherrefresh="onRefresh" v-show="activeIndex === 0" @scrolltolower="pageonReachBottom">
<view v-if="normalOrderNoList.length > 0" class="order-gap">
<view v-for="(item, index) in normalOrderNoList" :key="index" class="order_no_item" :class="{ checkActive: checkListObj[item.tradeNo] }" @click="activeClick(item)">
<view class="message">
<view v-for="(subItem, idx) in itemFormObj" :key="idx" class="item flex align-center">
<view class="label">{{ subItem.label }}</view>
<view v-if="subItem.type === 'price'" class="value price_value">¥{{ priceFilter(item[subItem.prop]) }}</view>
<view v-else-if="subItem.type === 'select'" class="select_value" @click="selectTap(index)" :data-index="index">
<text class="text-hide">{{ filmOrderData[item.filmOrder] }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view v-else class="value flex align-center">
{{ subItem.type === 'time' ? formatDate(item[subItem.prop]) : item[subItem.prop] }}
<view v-if="subItem.type === 'copy'" class="copy-btn" @click.stop="copyText(item[subItem.prop])">
<view class="sprite-icon icon-icon-copy copy"></view>
复制
</view>
</view>
</view>
</view>
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view>
</view>
<view class="nothing flex" v-else>
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" :refresher-triggered="triggered1" @refresherrefresh="onRefresh1" v-show="activeIndex === 1" @scrolltolower="pageonReachBottom">
<view v-if="abnormalOrderNoList.length > 0" class="order-gap">
<view v-for="(item, index) in abnormalOrderNoList" :key="index" class="order_no_item" :class="{ checkActive: checkListObj[item.tradeNo] }" @click="activeClick(item)">
<view class="message">
<view v-for="(subItem, idx) in itemFormObj" :key="idx" class="item flex align-center">
<view class="label">{{ subItem.label }}</view>
<view v-if="subItem.type === 'price'" class="value price_value">¥{{ priceFilter(item[subItem.prop]) }}</view>
<view v-else-if="subItem.type === 'select'" class="select_value" @click="selectTap(index)" :data-index="index">
<text class="text-hide">{{ filmOrderData[item.filmOrder] }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view v-else class="value flex align-center">
{{ subItem.type === 'time' ? formatDate(item[subItem.prop]) : item[subItem.prop] }}
<view v-if="subItem.type === 'copy'" class="copy-btn" @click.stop="copyText(item[subItem.prop])">
<view class="sprite-icon icon-icon-copy copy"></view>
复制
</view>
</view>
</view>
</view>
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view>
</view>
<view class="nothing flex" v-else>
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view>
</view>
</template>
<template #footer>
<view class="footer-box flex justify-center">
<view class="cancle-btn btn" @click="cancelSelection">取消</view>
<view class="sure-btn btn" @click="confirmSelection">确认</view>
</view>
</template>
</PublishPopup>
<PublishPopup ref="abnormalTipsPopup" popupClass="abnormalTipsPopup" :showClose="true" title="超分账期" @confirm="confirmTips">
<template #content>
<scroll-view scroll-y class="ul px-48">
<view class="title">字段定义</view>
<view class="li">○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="li last">○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="title">操作指导</view>
<view class="li">① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单</view>
<view class="li">情况一:单笔支付直接补录创建工单</view>
<view class="li last">情况二:客户多笔支付,补录工单时勾选多笔交易流水</view>
<view class="li">② 特殊情况:需通知运营在后台关联工单</view>
<view class="li">情况一:客户支付定金时间与尾款时间间隔20天以上</view>
<view class="li">情况二:客户购买车辆2台及以上的费用,一笔支付</view>
<view class="li last">情况三:支付费用时误操作(多付了)需部分退款</view>
<view class="li last">操作流程:驻店在小程序点击新建工单,收款方选择嘀加收款,收款方式选择其它收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。</view>
</scroll-view>
</template>
</PublishPopup>
<OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" />
</view>
</template>
......@@ -199,7 +86,7 @@ export default {
{ tabName: '已支付', num: 0, value: 3 },
{ tabName: '已完成', num: 0, value: 5 },
{ tabName: '战败', num: 0, value: -1 },
{ tabName: '待上传协议', num: 0, value: 7 }
{ tabName: '待上传协议', value: 7 }
],
tabIndex: 0,
waitinputorderTabList: [
......@@ -212,7 +99,6 @@ export default {
dataList: [],
triggered: false,
triggered1: false,
waitInputCount: 0, // 添加待补录计数
waitOrderTimer: null, // 定时器引用
tipsProps: {
tipsText: '该门店产生异常订单,请点击补录!',
......@@ -234,10 +120,6 @@ export default {
uni.$track.add({ eventCode: 'app_order_management' })
this.localUserInfo = uni.$storage.get('userInfo') || {}
this.search()
this.startWaitOrderPolling()
},
beforeDestroy() {
this.clearWaitOrderPolling()
},
methods: {
clear() {
......@@ -253,13 +135,6 @@ export default {
this.$refs.paging.reload()
this.getStatByStatus()
},
async waitinputorderClick() {
if (await this.inspectionOfProhibitionBill()) return
if (!this.normalOrderNoList.length && !this.abnormalOrderNoList.length) {
this.getTransactionSerialNumber()
}
this.$refs.WaitinputorderPopup.open()
},
handleToggleGoodsList(data) {
this.$set(data.item, 'showAllGoodsListFlag', data.flag)
},
......@@ -312,7 +187,7 @@ export default {
params.transferIds = [localUserInfo.uuid]
}
if (params?.zyPayStatus == '1') params.orderStatus = 7
uni.$api.equitApi
uni.$api.equityApi
.orderStatistics(params)
.then(result => {
const labelList = ['total', 'waitQuotation', 'waitPay', 'paySuccess', 'completed', 'defeat']
......@@ -385,7 +260,7 @@ export default {
// } else {
// params.merchantId = storeInfo?.merchantId
// }
uni.$api.equitApi
uni.$api.equityApi
.quotationPage(params)
.then(result => {
console.log(result)
......@@ -396,32 +271,6 @@ export default {
console.log(err)
})
},
// 10s轮询一次待补录
getWaitOrder() {
uni.$api.boutiqueApi
.waitinputorder()
.then(result => {
let { waitInputCount } = result
this.waitInputCount = waitInputCount
})
.catch(err => {})
},
// 启动轮询
startWaitOrderPolling() {
// 立即执行一次
this.getWaitOrder()
// 设置定时器,每10秒执行一次
this.waitOrderTimer = setInterval(() => {
this.getWaitOrder()
}, 10000)
},
// 清除轮询定时器
clearWaitOrderPolling() {
if (this.waitOrderTimer) {
clearInterval(this.waitOrderTimer)
this.waitOrderTimer = null
}
},
// 价格过滤器
priceFilter(num) {
var pow = Math.pow(10, 2)
......@@ -441,12 +290,6 @@ export default {
copyOutTradeNo(item) {
this.$emit('copy-out-trade-no', item)
},
showQuestionPopup() {
this.$refs.abnormalTipsPopup.open()
},
confirmTips() {
this.$refs.abnormalTipsPopup.closePopup()
},
activeClick(item) {
if (this.checkListObj[item.tradeNo]) {
this.$delete(this.checkListObj, item.tradeNo)
......@@ -454,21 +297,6 @@ export default {
this.$set(this.checkListObj, item.tradeNo, item)
}
},
confirmSelection() {
const selectedItems = Object.values(this.checkListObj)
if (selectedItems.length === 0) {
uni.showToast({
title: '请选择交易参考号',
icon: 'none'
})
return
}
this.$refs.WaitinputorderPopup.closePopup()
this.$emit('jump', 'CreateOrder', {
selectedItems: selectedItems,
type: 'supplementOrder'
})
},
cancelSelection() {
this.checkListObj = {}
this.$refs.WaitinputorderPopup.closePopup()
......
<template>
<view class="order">
<view :class="['order-box', { hide: showUpload }]" :key="formKey">
<view class="common-title">修改客户信息</view>
<view class="box">
<scroll-view class="scroll-view" scroll-y="true">
<view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell>
</view>
<view class="btns flex">
<view class="btn save" @click="back">放弃</view>
<view @click="submit" class="btn">提交修改</view>
</view>
</scroll-view>
</view>
</view>
<!-- 弹窗 -->
<order-popup ref="orderPopup" :data="orderObj" :dataKey="valueKey" @onConfirm="onConfirm" :externalData="externalData" :popupType="popupType" :popupTitle="popupTitle" />
<template v-if="showUpload">
<view class="upload-box">
<upload-proof-of-payment @back="showUpload = false" @confirm="uploadConfirm" />
</view>
</template>
<!-- 支付弹框 -->
<OrderPay ref="OrderPay" @jumpSuccess="jumpSuccess" />
<NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup>
</view>
</template>
<script>
import utils from '@/utils/utils'
import OrderPopup from '@/components/OrderPopup/index.vue'
import GlCell from '../../../../components/Form/GlCell.vue'
import { UpdateOrderInfo, popupTypeEnum, payTypeList, titleList } from '../contant'
import { interceptionMixin } from '@/mixin/index'
import UploadProofOfPayment from './UploadProofOfPayment.vue'
import NoticePopup from '@/components/NoticePopup.vue'
import dayjs from 'dayjs'
import OrderPay from './OrderPay.vue'
import NP from 'number-precision'
export default {
name: 'CreateOrder',
mixins: [interceptionMixin],
components: {
GlCell,
OrderPopup,
UploadProofOfPayment,
OrderPay,
NoticePopup
},
props: {
transmissionOfData: {
type: Object,
default: () => null
}
},
data() {
return {
showUpload: false,
titleList,
formList: utils.deepClone(UpdateOrderInfo),
baseConfigData: {},
requiredList: [], // 录单设置的必填项
orderObj: {
owner: '',
phone: '',
salesType: 0,
carVin: '',
certificateNo: '',
notes: ''
}
}
},
computed: {
showPayTips() {
return this.orderObj.payee == 0 && this.orderObj.payType == 7
},
userInfo() {
return uni.$storage.get('userInfo') || {}
}
},
watch: {
transmissionOfData: {
handler(newVal, oldVal) {
if (newVal) {
console.log(newVal, 'newVal')
} else {
console.log(oldVal, 'oldVal')
}
}
}
},
mounted() {
this.baseConfigData = uni.$storage.get('mock_data') || {}
this.initData()
},
methods: {
initData() {
console.log('initData', this.transmissionOfData)
const { paramsData } = this.transmissionOfData
this.getQuotationInfoById(paramsData.id)
// 埋点
// uni.$track.add({ eventCode: 'app_create_order' })
},
async getQuotationInfoById(id) {
const data = await uni.$api.equityApi.getQuotationInfoById({ id })
console.log(data, 'data')
// this.orderInfo = data
this.orderObj.id = id
this.orderObj.ownerId = data.owner.id
this.orderObj.carVin = data.owner.carVin
this.orderObj.owner = data.owner.owner
this.orderObj.phone = data.owner.phone
this.orderObj.salesType = data.owner.salesType
this.orderObj.certificateNo = data.owner.certificateNo
this.orderObj.notes = data.notes
},
// 输入框失去焦点事件
inputBlur(e, val) {
console.log(e, val)
this.orderObj[val.value] = this.orderObj[val.value]
},
// 校验必填等规则
checkRequired() {
try {
const phoneRex = /^[1]([3-9])[0-9]{9}$/,
requiredArr = [],
onlyLabelItem = [],
{ orderObj } = this
this.formList.forEach(group => {
group.forEach(item => {
if (item.required === true && item.hidden !== true) {
if (item.isArray) onlyLabelItem.push(item)
else requiredArr.push(item)
}
})
})
// 遍历requiredArr,检查orderObj中是否有对应的值
for (let i = 0; i < requiredArr.length; i++) {
const item = requiredArr[i]
// 兼容嵌套customer对象的情况
let value = orderObj[item.value]
if (value === undefined || value === null || value === '') throw `${item.label}不能为空`
// 如果是customerPhone,添加phoneRex校验
if (item.value === 'phone' && !phoneRex.test(value)) throw `请输入正确的${item.label}`
}
if (orderObj.carVin) {
const vinRex = /^(?=.*[A-Za-z])[A-Za-z0-9]{17}$/
if (!vinRex.test(orderObj.carVin)) throw '请输入正确的车架号'
}
if (orderObj.certificateNo && orderObj.certificateNo.length != 18) throw '请输入正确的18位证件号'
return true
} catch (error) {
if (error)
uni.showToast({
title: error,
icon: 'none'
})
return false
}
},
// 提交
async submit() {
if (!this.checkRequired() || (await this.checkDailyReport())) return
let params = {
id: this.orderObj.id,
notes: this.orderObj.notes || '',
owner: {
id: this.orderObj.ownerId,
owner: this.orderObj.owner,
phone: this.orderObj.phone,
carVin: this.orderObj.carVin || '',
certificateNo: this.orderObj.certificateNo || '',
salesType: this.orderObj.salesType || 0
}
}
console.log(params, 'params')
uni.showLoading({
title: '提交中...',
mask: true
})
uni.$api.equityApi
.updateCustomerInfo(params)
.then(result => {
uni.hideLoading()
console.log(result)
this.$emit('jump', 'OrderManagement', {})
})
.catch(err => {
uni.hideLoading()
})
},
back() {
// 配置弹窗按钮
this.$refs.notice.buttonsList = [
{
text: '确认退出',
type: 'default',
callback: () => {
this.transmissionOfData = null
this.$refs.notice.close()
this.$emit('jump', 'OrderManagement', {})
}
},
{
text: '继续编辑',
type: 'primary',
callback: () => {
this.$refs.notice.close()
}
}
]
// 打开弹窗
this.$refs.notice.open()
}
}
}
</script>
<style scoped lang="scss">
.order {
height: 100%;
position: relative;
&-box {
visibility: visible;
height: 100%;
}
.hide {
opacity: 0;
visibility: hidden;
}
.upload-box {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
}
.box {
height: calc(100% - #{toRpx(120)});
padding-bottom: toRpx(24);
.scroll-view {
height: 100%;
}
}
.box-content {
padding: 0 toRpx(48);
}
.total {
display: flex;
justify-content: space-between;
align-items: center;
padding: toRpx(24) toRpx(32) toRpx(24) 0;
font-size: toRpx(28);
border-bottom: toRpx(2) solid #f7f7f6;
&-left {
color: #333;
font-weight: 500;
}
&-right {
color: #f24724;
font-weight: 500;
}
}
.pay-tips {
padding: toRpx(24) toRpx(24) toRpx(24) 0;
font-size: toRpx(24);
color: #999;
}
.btns {
position: absolute;
width: 100%;
bottom: 0;
padding: 24rpx 128rpx;
gap: 32rpx;
.save {
background: #3b73ff1a;
color: #4673ff;
font-size: 28rpx;
font-weight: 500;
}
}
.btn {
display: flex;
align-items: center;
justify-content: center;
width: toRpx(1130);
height: toRpx(80);
color: #fff;
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
.customer-title {
.customer-file {
margin-left: 20rpx;
color: #347bff;
font-size: 24rpx;
.sprite-icon {
margin-right: 4rpx;
}
}
}
</style>
......@@ -5,15 +5,15 @@ const FORM_LIST = [
value: 'referrer',
type: 'select',
key: 'employeeName',
required: true,
required: true
},
{
label: '交付专员',
value: 'deliveryName',
type: 'select',
required: true,
key: 'deliveryEmployeeName',
},
key: 'deliveryEmployeeName'
}
],
[
{
......@@ -94,7 +94,7 @@ const FORM_LIST = [
value: 'companion',
maxlength: '200',
type: 'input'
},
}
],
[
{
......@@ -129,8 +129,8 @@ const FORM_LIST = [
value: 'price',
maxlength: '8',
type: 'input',
required: true,
},
required: true
}
],
[
{
......@@ -141,7 +141,7 @@ const FORM_LIST = [
addHtml: 'skuGoods',
required: true,
isArray: true
},
}
],
[
{
......@@ -214,37 +214,12 @@ const DEFEAT_FORM_LIST = [
required: true
},
{
label: '销售顾问/录单员',
label: '推荐人员',
value: 'employeeName',
type: 'select',
// key: 'staffName',
required: true,
showText: 'shopMerchantName'
},
{
label: '交付专员',
value: 'deliveryEmployeeName',
type: 'select',
key: 'employeeName',
required: true,
// key: 'staffName',
hidden: true,
showText: 'shopMerchantName'
},
{
label: '二级流量方',
value: 'subShopMerchantName',
type: 'select',
required: true,
// key: 'subMerchantName',
hidden: true
},
{
label: '转化人员',
value: 'sellerName',
type: 'select',
// key: 'staffName',
required: true,
showText: 'merchantName'
}
],
[
......@@ -256,40 +231,6 @@ const DEFEAT_FORM_LIST = [
required: true
},
{
label: '客户来源',
value: 'salesType',
type: 'radio',
current: '0',
radioList: [
{
value: '0',
name: '售前'
},
{
value: '1',
name: '售后'
}
],
required: true,
hidden: true
},
{
label: '性别',
value: 'customerSex',
type: 'radio',
current: '1',
radioList: [
{
value: '1',
name: '男'
},
{
value: '2',
name: '女'
}
]
},
{
label: '手机号',
value: 'customerPhone',
maxlength: '11',
......@@ -298,165 +239,25 @@ const DEFEAT_FORM_LIST = [
inputType: 'number'
},
{
label: '选择车型',
value: 'carBrand',
type: 'select',
key: 'carInfo'
},
{
label: '车架号(VIN)',
value: 'standNo',
maxlength: '17',
type: 'input'
},
{
label: '车牌号',
value: 'plateNumber',
maxlength: '8',
type: 'input'
},
{
label: '是否体验',
value: 'experienceFlag',
type: 'radio',
current: 'Y',
required: true,
radioList: [
{
value: 'Y',
name: '是'
},
{
value: 'N',
name: '否'
}
]
}
],
[
{
label: '精品礼券',
value: 'couponInfo',
type: 'select',
key: 'name',
required: true,
hidden: true
},
{
label: '请选择产品',
onlyLabel: true,
required: true,
noBorder: true
},
{
label: '前挡',
value: 'frontGear',
type: 'select',
key: 'name',
labellIcon: 'front-gear',
addHtml: 'frontGear',
hidden: true
},
{
label: '前侧窗玻璃',
value: 'frontWindow',
type: 'select',
key: 'name',
labellIcon: 'front-window',
addHtml: 'frontWindow',
hidden: true
},
{
label: '后侧窗玻璃',
value: 'rearGear',
type: 'select',
key: 'name',
labellIcon: 'rear-gear',
addHtml: 'rearGear',
hidden: true
},
{
label: '后档',
value: 'rearWindow',
type: 'select',
key: 'name',
labellIcon: 'rear-window',
addHtml: 'rearWindow',
hidden: true
},
{
label: '天窗',
value: 'sunRoof',
type: 'select',
key: 'name',
labellIcon: 'sun-roof',
addHtml: 'sunRoof',
hidden: true
},
{
label: '套餐',
value: 'package',
type: 'select',
key: 'name',
addHtml: 'package',
hidden: true
},
{
label: '其他精品',
value: 'skuGoods',
type: 'select',
key: 'name',
addHtml: 'skuGoods',
hidden: true
},
{
label: '收款方式',
value: 'payee',
label: '客户来源',
value: 'salesType',
type: 'radio',
key: 'name',
current: '1',
current: '0',
radioList: [
{
value: '0',
name: '嘀加收款',
disabled: false
name: '售前'
},
{
value: '1',
name: '4s店收款',
disabled: false
name: '售后'
}
],
hidden: true
required: true
},
{
label: '支付方式',
value: 'payType',
type: 'radio',
key: 'name',
current: '0',
radioList: [
// {
// value: '3',
// name: 'POS机'
// },
// {
// value: '6',
// name: '对公转账'
// },
// {
// value: '7',
// name: '其他收款'
// }
],
addHtml: 'otherPay',
hidden: true
}
],
[
{
label: '车主拒升理由',
value: 'refusalReason',
label: '战败理由',
value: 'deafeatReason',
maxlength: '30',
type: 'textarea',
placeholder: '请输入 (30字以内)',
......@@ -468,6 +269,8 @@ const DEFEAT_FORM_LIST = [
]
]
const defeat_titleList = [null, { addHtml: 'customer' }]
const payTypeList = [
{
value: '1',
......@@ -585,11 +388,61 @@ const popupTypeEnum = {
key: 'customer'
}
}
const titleList = [
null,
{ addHtml: 'customer' },
{ name: '车辆信息' },
{ name: '增值车损险' },
{ name: '其他信息' },
const titleList = [null, { addHtml: 'customer' }, { name: '车辆信息' }, { name: '增值车损险' }, { name: '其他信息' }]
const UpdateOrderInfo = [
[
{
label: '车主姓名',
value: 'owner',
maxlength: '10',
type: 'input',
required: true
},
{
label: '手机号',
value: 'phone',
maxlength: '11',
inputType: 'number',
type: 'input',
required: true
},
{
label: '客户类型',
value: 'salesType',
type: 'radio',
current: 0,
radioList: [
{
value: 0,
name: '售前'
},
{
value: 1,
name: '售后'
}
]
},
{
label: '车架号(VIN码)',
value: 'carVin',
maxlength: '17',
type: 'input'
},
{
label: '身份证号',
value: 'certificateNo',
maxlength: '18',
type: 'input'
},
{
label: '订单备注',
value: 'notes',
maxlength: '100',
type: 'textarea',
placeholder: '请输入 (100字以内)',
class: 'cell-break'
}
]
]
export { FORM_LIST, popupTypeEnum, payTypeList, DEFEAT_FORM_LIST, titleList }
export { FORM_LIST, popupTypeEnum, payTypeList, DEFEAT_FORM_LIST, titleList, UpdateOrderInfo, defeat_titleList }
<template>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
@click="backPage"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">展业工具</view>
</view>
......@@ -17,46 +10,20 @@
<view class="detail-left">
<view class="common-title">展业</view>
<view class="content">
<image
class="banner"
src="../../../assets/images/common/tool_banner.png"
mode="scaleToFill"
/>
<image class="banner" src="../../../assets/images/common/tool_banner.png" mode="scaleToFill" />
<template v-if="toolComponentName !== 'DailyReport'">
<Entrance @entranceClick="entranceClick"></Entrance>
</template>
<template v-else>
<uni-calendar
ref="calendar"
:clearDate="false"
:endDate="endDate"
:showMonth="false"
@monthSwitch="currentMonth = `${$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
:date="currentDate"
/>
<uni-calendar ref="calendar" :clearDate="false" :endDate="endDate" :showMonth="false" @monthSwitch="currentMonth = `${$event.year}-${$event.month}`" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" :date="currentDate" />
</template>
</view>
</view>
<view class="detail-right">
<component
:is="toolComponentName"
@jump="jump"
:transmission-of-data="transmissionOfData"
:currentDate="currentDate"
:currentMonth="currentMonth"
@setCalendarSelected="selectedDays = $event"
/>
<component :is="toolComponentName" @jump="jump" :transmission-of-data="transmissionOfData" :currentDate="currentDate" :currentMonth="currentMonth" @setCalendarSelected="selectedDays = $event" />
</view>
</view>
<NoticePopup
ref="notice"
title="重要提示"
text="当前页面暂未保存,是否确认退出"
type="warning"
></NoticePopup>
<NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup>
</view>
</template>
......@@ -71,6 +38,7 @@ import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
import NoticePopup from '@/components/NoticePopup.vue'
import dayjs from 'dayjs'
import { interceptionMixin } from '@/mixin/index'
import UpdateOrderInfo from './components/UpdateOrderInfo.vue'
export default {
mixins: [interceptionMixin],
......@@ -82,9 +50,10 @@ export default {
OrderManagement,
NoticePopup,
UploadProofOfPayment,
OrderDetail
OrderDetail,
UpdateOrderInfo
},
data () {
data() {
return {
toolComponentName: '',
transmissionOfData: null,
......@@ -94,8 +63,7 @@ export default {
selectedDays: []
}
},
onLoad (options) {
console.log( uni.getWindowInfo())
onLoad(options) {
if (options.componentName) this.toolComponentName = options.componentName
if (options.currentDate) this.setCurrentDate(options.currentDate)
uni.$on('jumpToDailyReport', currentDate => {
......@@ -104,11 +72,11 @@ export default {
})
},
methods: {
setCurrentDate (currentDate) {
setCurrentDate(currentDate) {
this.currentDate = currentDate
this.currentMonth = dayjs(currentDate).format('YYYY-MM')
},
async entranceClick (item) {
async entranceClick(item) {
const noInterceptPage = ['DailyReport']
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
// 保存当前选择的组件信息,但不立即切换
......@@ -116,7 +84,7 @@ export default {
if (this.toolComponentName === selectedItem.name && (!this.transmissionOfData || this.transmissionOfData.type !== 'supplementOrder')) return
// 如果当前组件是OrderManagement,直接切换组件,不显示弹窗
// 只有从CreateOrder、DefeatOrder切换其他组件时需要二次确认
if (this.toolComponentName !== 'CreateOrder' && this.toolComponentName !== 'DefeatOrder') {
if (this.toolComponentName !== 'CreateOrder' && this.toolComponentName !== 'DefeatOrder' && this.toolComponentName !== 'UpdateOrderInfo') {
this.toolComponentName = selectedItem.name
this.transmissionOfData = null
return
......@@ -152,11 +120,11 @@ export default {
// 打开弹窗
this.$refs.notice.open()
},
backPage () {
backPage() {
uni.navigateBack()
},
// name:跳转组件名,val:跳转参数
jump (name, val) {
jump(name, val) {
this.toolComponentName = name
if (val) {
this.transmissionOfData = val
......
## 1.0.2(2023-11-01)
更换App端转换本地链接的方法;
添加App端文件拓展名过滤;
## 1.0.1(2023-09-04)
优化部分逻辑
## 1.0.0(2023-09-03)
支持图片、视频选择上传;H5、微信小程序,App支持文件选择上传
<!-- eslint-disable -->
<template>
<view>
<!-- #ifdef APP-PLUS -->
<view class="xe-upload" v-html="renderInput" :props="mergeProps" :change:props="XeUpload.renderProps"></view>
<!-- #endif -->
</view>
</template>
<script>
import {
chooseMedia,
chooseFile,
chooseMessageFile,
uploadFile,
} from '../../tools/apis';
import {
deepMerge,
awaitWrap,
base64ToPath,
isArray,
} from '../../tools/tools';
export default {
name: 'XeUpload',
props: {
options: {
default: () => ({}),
type: Object,
},
},
data() {
return {
id: 0, // APP上传框ID
renderInput: '', // APP上传框
};
},
computed: {
mergeOptions({ options = {} }) {
const tmpOptions = {
name: 'file',
};
return deepMerge(tmpOptions, options);
},
mergeProps({ id, renderInput, mergeOptions }) {
return {
id,
renderInput,
upload: mergeOptions,
};
},
},
methods: {
// 上传事件
async upload(type, config = {}) {
let tmpResult = [];
if (['image', 'video'].includes(type)) {
const [err, res] = await chooseMedia(type, config);
if (err) return this.handleError(err);
tmpResult = res?.tempFiles || [];
}
// H5 || APP-PLUS || MP-WEIXIN
if (['file'].includes(type)) {
let tmpFiles = {};
let tmpErr = null;
// #ifdef H5
[tmpErr, tmpFiles] = await chooseFile(config);
// #endif
// #ifdef MP-WEIXIN
[tmpErr, tmpFiles] = await chooseMessageFile(config);
// #endif
// #ifdef APP-PLUS
this.id = Math.floor(Math.random() * 100000000 + 1);
this.initInput(config.extension);
// #endif
if (tmpErr) return this.handleError(tmpErr);
tmpResult = tmpFiles?.tempFiles || [];
}
this.handleUpload(tmpResult);
},
// 初始化上传框
initInput(extension) {
const { id } = this;
let accept = extension;
if (isArray(extension)) {
accept = extension.join(',');
}
this.renderInput = `<input type="file" id="xe-upload-${id}" name="xe-upload" ${accept ? 'accept="' + accept + '"' : ''} />`;
},
// 文件上传(没有传入上传url时返回本地链接)
async handleUpload(files = []) {
if (files.filter((e) => Boolean(e)).length === 0) return;
const { mergeOptions } = this;
if (!mergeOptions.url) {
return this.handleEmits({
type: 'choose',
data: files,
});
}
const tmpUploads = files.map((e) =>
uploadFile(
{
...mergeOptions,
filePath: e.tempFilePath,
},
e,
)
);
const [err, res] = await awaitWrap(Promise.all(tmpUploads));
if (err) return this.handleError(err);
this.handleEmits({
type: 'success',
data: res,
});
},
// 处理失败事件
handleError(error) {
this.handleEmits({
type: 'warning',
data: error,
});
},
// 处理响应事件
async handleEmits(e) {
// #ifdef APP-PLUS
if (e.type === 'choose') {
// 将base64转为本地链接
for (let i = 0; i < e.data.length; i += 1) {
const item = e.data[i];
if (!item.base64Url) {
continue;
}
const [parseError, parseUrl] = await awaitWrap(base64ToPath(item.base64Url, item.name));
if (!parseError) {
e.data[i].tempFilePath = parseUrl;
} else {
e.data[i].tempFilePath = item.base64Url;
}
delete e.data[i].base64Url;
}
}
// #endif
this.$emit('callback', e);
},
},
};
</script>
<!-- #ifdef APP-PLUS -->
<script module="XeUpload" lang="renderjs">
import {
appUploadFile,
} from '../../tools/apis';
import {
awaitWrap,
fileToBase64,
} from '../../tools/tools';
export default {
data() {
return {
id: 0, // 上传框ID
uploadOptions: {}, // 上传配置
};
},
methods: {
// 处理 XeUpload 传入 renderjs 数据,以及调起上传框
renderProps(info) {
const { id, renderInput, upload } = info;
if (!renderInput) return;
this.id = id;
this.uploadOptions = upload;
this.$nextTick(() => {
const dom = document.getElementById(`xe-upload-${id}`);
dom.addEventListener('change', () => {
this.handleUpload();
});
dom?.click?.();
});
},
// 处理文件上传(没有传入url时返回本地链接)
async handleUpload() {
const {
url,
name,
header = {},
formData = {},
} = this.uploadOptions || {};
const dom = document.getElementById(`xe-upload-${this.id}`);
if (!dom.files[0]) return;
const tmpFileList = Array.from(dom.files);
const tmpUploads = [];
for (let i = 0; i < tmpFileList.length; i += 1) {
const e = tmpFileList[i];
let tmpType = 'file';
if (e.type.includes('image')) {
tmpType = 'image';
}
if (e.type.includes('video')) {
tmpType = 'video';
}
const tmpExts = {
size: e.size,
name: e.name,
type: e.type,
fileType: tmpType,
tempFilePath: '',
base64Url: '',
};
// 没有传入上传url时,直接返回本地链接
if (!url) {
const [parseError, parseUrl] = await awaitWrap(fileToBase64(dom.files[i]));
if (!parseError) {
tmpExts.base64Url = parseUrl;
}
tmpUploads.push(tmpExts);
continue;
};
const tmpData = new FormData();
tmpData.append(name, dom.files[i], e.name);
for (let key in formData) {
tmpData.append(key, formData[key]);
}
// 上传进度
const onprogress = (ev) => {
if(ev.lengthComputable) {
var result = (ev.loaded / ev.total) * 100;
this.handleRenderEmits({
type: 'onprogress',
data: {
progress: Math.floor(result),
current: i + 1,
total: tmpFileList.length,
},
});
};
}
tmpUploads.push(appUploadFile({
url,
header,
formData: tmpData
}, tmpExts, onprogress ));
}
// 没有传入上传url时,直接返回本地链接列表
if (!url) {
return this.handleRenderEmits({
type: 'choose',
data: tmpUploads,
});
}
this.handleRenderEmits({
type: 'onprogress',
data: {
progress: 0,
current: 1,
total: tmpFileList.length,
},
});
// 处理上传文件
const [err, res] = await awaitWrap(Promise.all(tmpUploads));
if (err) {
return this.handleRenderEmits({
type: 'warning',
data: err,
});
}
this.handleRenderEmits({
type: 'success',
data: res,
});
},
// 数据传输到XeUpload组件
handleRenderEmits(data) {
this.$ownerInstance.callMethod('handleEmits', data);
},
},
};
</script>
<!-- #endif -->
<style scoped>
.xe-upload {
display: none;
}
</style>
{
"id": "xe-upload",
"displayName": "文件选择、文件上传组件(图片,视频,文件等)",
"version": "1.0.2",
"description": "H5、微信小程序、App端支持图片,视频,文件选择上传;其他端暂不支持文件选择上传",
"keywords": [
"App、H5、微信小程序、图片,视频,文件上传"
],
"repository": "",
"engines": {
},
"dcloudext": {
"type": "component-vue",
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "无",
"permissions": "无"
},
"npmurl": ""
},
"uni_modules": {
"dependencies": [],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"Vue": {
"vue2": "y",
"vue3": "u"
},
"App": {
"app-vue": "y",
"app-nvue": "u"
},
"H5-mobile": {
"Safari": "y",
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "u",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序": {
"微信": "y",
"阿里": "y",
"百度": "y",
"字节跳动": "y",
"QQ": "y",
"钉钉": "y",
"快手": "y",
"飞书": "y",
"京东": "y"
},
"快应用": {
"华为": "y",
"联盟": "y"
}
}
}
}
}
\ No newline at end of file
# xe-upload
## 说明
不占用页面位置的上传组件;
H5、APP、微信小程序中可上传图片,视频和文件;其他端暂时只能上传图片和视频
> 上传图片通过[chooseMedia](https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia)及[chooseImage](https://uniapp.dcloud.net.cn/api/media/image.html#chooseimage)实现
> 上传视频通过[chooseMedia](https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia)及[chooseVideo](https://uniapp.dcloud.net.cn/api/media/video.html#choosevideo)实现
> H5端上传文件通过[chooseFile](https://uniapp.dcloud.net.cn/api/media/file.html#wx-choosemessagefile)实现
> APP上传文件通过[renderjs](https://uniapp.dcloud.net.cn/tutorial/renderjs.html#renderjs)实现
> 微信小程序上传文件通过[chooseMessageFile](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseMessageFile.html)实现
## 使用
Attributes
| 参数 | 说明 | 类型 | 默认值 |
| ----------- | ----------- | ----------- | ----------- |
| options | 请求配置(参数与uni.uploadFile的参数一致) | object | { name: 'file' } |
Events
| 事件名 | 说明 | 参数 |
| ----------- | ----------- | ----------- |
| callback | 接收数据 | { type, data } |
callback type
| 参数 | 说明 |
| ----------- | ----------- |
| warning | 提示信息(下文称warning回调) |
| success | 上传成功(下文称success回调) |
| choose | 选择文件(下文称choose回调) |
callback data
```
'callback.type === success' : [
{
"size": 176579, // 选择的文件的大小
"name": "Kafka.pdf", // 选择的文件的名称(小程序端可能会没有)
"type": "application/pdf",
"tempFilePath": "blob:http://192.168.137.1:8080/2585769b-3195-4f3d-b9f8-d9e99f55deec", // 临时路路径
"fileType": "file", // 文件类型[image, video, file]
"response": {
"result": {
"fileName": "Kafka.pdf",
"filePath": `http://localhost:3000/upload/e51d814b649122fc64892d0bc6383d07.pdf`,
},
"success": true,
}, // 上传返回的信息
}
]
'callback.type === choose' : [
{
"size": 176579, // 选择的文件的大小
"name": "Kafka.pdf", // 选择的文件的名称(小程序端可能会没有)
"type": "application/pdf",
"tempFilePath": "blob:http://192.168.137.1:8080/4204e460-f185-4fc9-9f4d-1bc50ab06981", // 文件临时路径
"fileType": "file", // 文件类型[image, video, file]
}
]
```
## 注意事项
#### 1、options入参中如果url为空,则choose回调的data列表中只有选择文件能得到的信息和临时路径,临时路径可用于自定义上传方法(APP除外);传入url选择文件后会自动上传到服务器,此时choose回调不会触发,而是执行success回调,success回调的data列表会包括选择文件能得到的信息
#### 2、APP端文件建议直接上传到服务器,拿到文件上传后的地址再进行其他操作(目前测试APP端file转换后的Blob Url无法用于uni.uploadFile,所以建议APP文件直接上传)
#### 3、APP端文件暂时支持单个上传
#### 4、当uni.chooseMedia可用时,会优先使用uni.chooseMedia
#### 5、具体使用可下载示例项目运行查看完整示例
// eslint-disable
import { awaitWrap } from './tools';
/**
* 从本地相册选择图片或使用相机拍照
* @param {object} config 参数详情 => https://uniapp.dcloud.net.cn/api/media/image.html#chooseimage
* @returns
*/
export const chooseImage = (config) => {
return awaitWrap(
new Promise((r, j) => {
uni.chooseImage({
...config,
success: (res) => {
const tmpFiles = res?.tempFiles.map((e) => ({
tempFilePath: e.path,
tempFile: e,
size: e.size,
name: e.name,
type: e.type,
fileType: 'image',
}));
return r({ type: 'image', ...res, tempFiles: tmpFiles });
},
fail: (err) => j({ mode: 'chooseImage', data: err }),
});
})
);
};
/**
* 拍摄视频或从手机相册中选视频,返回视频的临时文件路径
* @param {object} config 参数详情 => https://uniapp.dcloud.net.cn/api/media/video.html#choosevideo
* @returns
*/
export const chooseVideo = (config) => {
return awaitWrap(
new Promise((r, j) => {
uni.chooseVideo({
...config,
success: (res) => {
const tmpFiles = [{
...res,
tempFilePath: res.tempFilePath,
tempFile: res.tempFile ?? {},
size: res.size,
name: res.name,
type: res.tempFile?.type,
fileType: 'video',
}];
return r({ type: 'video', tempFiles: tmpFiles });
},
fail: (err) => j({ mode: 'chooseVideo', data: err }),
});
})
);
};
/**
* 拍摄或从手机相册中选择图片或视频
* @param {object} config 参数详情 => https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia
* @returns
*/
export const chooseMedia = (type, config) => {
if (!type) return console.error('chooseMedia type cannot be empty');
if (!uni.chooseMedia && type === 'image') return chooseImage(config);
if (!uni.chooseMedia && type === 'video') return chooseVideo(config);
return awaitWrap(
new Promise((r, j) => {
uni.chooseMedia({
...config,
mediaType: [type],
success: (res) => r(res),
fail: (err) => j({ mode: 'chooseMedia', data: err }),
});
})
);
};
/**
* 从本地选择文件(h5)
* @param {object} config 参数详情 => https://uniapp.dcloud.net.cn/api/media/file.html#wx-choosemessagefile
* @returns
*/
export const chooseFile = (config) => {
return awaitWrap(
new Promise((r, j) => {
uni.chooseFile({
...config,
success: (res) => {
const tmpFiles = res?.tempFiles.map((e) => {
let tmpType = 'file';
if (e.type.includes('image')) {
tmpType = 'image';
}
if (e.type.includes('video')) {
tmpType = 'video';
}
return {
tempFilePath: e.path,
tempFile: e,
size: e.size,
name: e.name,
type: e.type,
fileType: tmpType,
};
});
return r({ type: 'file', ...res, tempFiles: tmpFiles });
},
fail: (err) => j({ mode: 'chooseFile', data: err }),
});
})
);
};
/**
* 从本地选择文件(微信小程序)
* @param {object} config 参数详情 => https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseMessageFile.html
* @returns
*/
export const chooseMessageFile = (config) => {
return awaitWrap(
new Promise((r, j) => {
wx.chooseMessageFile({
...config,
success: (res) => {
const tmpFiles = res?.tempFiles.map((e) => ({
...e,
tempFilePath: e.path,
fileType: e.type ?? 'file',
}));
return r({ type: 'file', ...res, tempFiles: tmpFiles });
},
fail: (err) => j({ mode: 'chooseMessageFile', data: err }),
});
})
);
};
/**
* 上传
* @param {object} config 参数详情 => https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
* @param {object} exts 选择的文件的数据
* @returns {object} exts + response
*/
export const uploadFile = (config, exts = {}) => {
return new Promise((r, j) => {
uni.uploadFile({
...config,
success: (res) => r({ ...exts, response: JSON.parse(res.data) }),
fail: (err) => j({ mode: 'uploadFile', data: err }),
});
});
};
export const appUploadFile = (config, exts = {}, onprogress) => {
const { url, header, formData } = config;
return new Promise((r, j) => {
const xhr = new XMLHttpRequest();
xhr.open('POST', url, true);
for (let key in header) {
xhr.setRequestHeader(key, header[key]);
}
if (onprogress) {
xhr.upload.onprogress = onprogress;
}
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
r({ ...exts, response: JSON.parse(xhr.responseText) });
} else {
j({ mode: 'uploadFile', data: { data: xhr.responseText, errMsg: 'uploadFile fail.' } });
}
}
}
xhr.send(formData);
});
};
// eslint-disable
export const isObject = (obj) => {
return obj
? Object.prototype.toString.call(obj) === "[object Object]"
: false;
};
export const isArray = (arr) => {
return arr ? Array.isArray(arr) : false;
};
/**
* handle async await
* @param {*} promise promise
*/
export const awaitWrap = (promise) =>
promise.then((res) => [null, res]).catch((err) => [err, {}]);
/**
* 深拷贝
* @param {*} source
*/
export const deepClone = (source) => {
if (!isObject(source) && !isArray(source)) return source;
const targetObj = isArray(source) ? [] : {}; // 判断复制的目标是数组还是对象
for (let keys in source) {
// 遍历目标
if (source.hasOwnProperty(keys)) {
if (source[keys] && typeof source[keys] === "object") {
// 如果值是对象,就递归一下
targetObj[keys] = isArray(source[keys]) ? [] : {};
targetObj[keys] = deepClone(source[keys]);
} else {
// 如果不是,就直接赋值
targetObj[keys] = source[keys];
}
}
}
return targetObj;
};
/**
* @description JS对象深度合并
* @param {object} target 需要拷贝的对象
* @param {object} source 拷贝的来源对象
* @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
*/
export const deepMerge = (target = {}, source = {}) => {
target = deepClone(target);
if (typeof target !== "object" || typeof source !== "object") return false;
for (const prop in source) {
if (!source.hasOwnProperty(prop)) continue;
if (prop in target) {
if (typeof target[prop] !== "object") {
target[prop] = source[prop];
} else if (typeof source[prop] !== "object") {
target[prop] = source[prop];
} else if (target[prop].concat && source[prop].concat) {
target[prop] = target[prop].concat(source[prop]);
} else {
target[prop] = deepMerge(target[prop], source[prop]);
}
} else {
target[prop] = source[prop];
}
}
return target;
};
/**
* 将File对象转为 Blob Url
* @param {File} File对象
* @returns Blob Url
*/
export const fileToBlob = (file) => {
if (!file) return;
const fileType = file.type;
const blob = new Blob([file], { type: fileType || 'application/*' });
const blobUrl = window.URL.createObjectURL(blob);
return blobUrl;
};
/**
* 将File对象转为 base64
* @param {File} File对象
* @returns base64
*/
export const fileToBase64 = (file) => {
if (!file) return;
return new Promise((r, j) => {
const reader = new FileReader();
reader.onloadend = () => {
const base64String = reader.result;
r(base64String);
};
reader.onerror = () => {
j({ mode: 'fileToBase64', data: { errMsg: 'File to base64 fail.' } });
};
reader.readAsDataURL(file);
});
};
/**
* base64转临时路径(改自https://github.com/zhetengbiji/image-tools/blob/master/index.js)
* @param base64
* @returns
*/
function dataUrlToBase64(str) {
var array = str.split(',');
return array[array.length - 1];
};
function biggerThan(v1, v2) {
var v1Array = v1.split('.');
var v2Array = v2.split('.');
var update = false;
for (var index = 0; index < v2Array.length; index++) {
var diff = v1Array[index] - v2Array[index];
if (diff !== 0) {
update = diff > 0;
break;
}
}
return update;
};
var index = 0;
function getNewFileId() {
return Date.now() + String(index++);
};
export const base64ToPath = (base64, name = '') => {
return new Promise((r, j) => {
if (typeof plus !== 'object') {
return j(new Error('not support'));
}
var fileName = '';
if (name) {
const names = name.split('.');
const extName = names.splice(-1);
fileName = `${names.join('.')}-${getNewFileId()}.${extName}`;
} else {
const names = base64.split(',')[0].match(/data\:\S+\/(\S+);/);
if (!names) {
j(new Error('base64 error'));
}
const extName = names[1];
fileName = `${getNewFileId()}.${extName}`;
}
var basePath = '_doc';
var dirPath = 'uniapp_temp';
var filePath = `${basePath}/${dirPath}/${fileName}`;
if (!biggerThan(plus.os.name === 'Android' ? '1.9.9.80627' : '1.9.9.80472', plus.runtime.innerVersion)) {
plus.io.resolveLocalFileSystemURL(basePath, function (entry) {
entry.getDirectory(dirPath, {
create: true,
exclusive: false,
}, function (entry) {
entry.getFile(fileName, {
create: true,
exclusive: false,
}, function (entry) {
entry.createWriter(function (writer) {
writer.onwrite = function () {
r(filePath);
}
writer.onerror = j;
writer.seek(0);
writer.writeAsBinary(dataUrlToBase64(base64));
}, j)
}, j)
}, j)
}, j)
return;
}
var bitmap = new plus.nativeObj.Bitmap(fileName);
bitmap.loadBase64Data(base64, function () {
bitmap.save(filePath, {}, function () {
bitmap.clear();
r(filePath);
}, function (error) {
bitmap.clear();
j(error);
});
}, function (error) {
bitmap.clear();
j(error);
});
});
};
......@@ -3,7 +3,7 @@
## 一、页面路径
### 1. 我的课程页面
**路径**: `pages/boutique/myCourse.vue`
**路径**: `pages/common/studyCenter/myCourse.vue`
**使用的组件**:
- `components/HomeFrame/components/Study/RecommendCourse.vue` - 待学习 Tab
......@@ -13,7 +13,7 @@
---
### 2. 我的考试页面
**路径**: `pages/boutique/myExam.vue`
**路径**: `pages/common/studyCenter/myExam.vue`
**使用的组件**:
- `components/HomeFrame/components/Study/PassedExam.vue` - 已通过 Tab
......@@ -22,7 +22,7 @@
---
### 3. 我的任务页面
**路径**: `pages/boutique/myTask.vue`
**路径**: `pages/common/studyCenter/myTask.vue`
**使用的组件**:
- `components/HomeFrame/components/Study/LearnStatistics.vue` - 累计学习统计
......@@ -34,7 +34,7 @@
---
### 4. 排行榜页面
**路径**: `pages/boutique/leaderboard.vue`
**路径**: `pages/common/studyCenter/leaderboard.vue`
**使用的图片资源**:
- `assets/images/studyCenter/Leaderboard-bg.png` - 顶部占位图
......@@ -163,19 +163,19 @@
### pages.json
```json
{
"path": "pages/boutique/myTask",
"path": "pages/common/studyCenter/myTask",
"style": { "navigationStyle": "custom" }
},
{
"path": "pages/boutique/myCourse",
"path": "pages/common/studyCenter/myCourse",
"style": { "navigationStyle": "custom" }
},
{
"path": "pages/boutique/myExam",
"path": "pages/common/studyCenter/myExam",
"style": { "navigationStyle": "custom" }
},
{
"path": "pages/boutique/leaderboard",
"path": "pages/common/studyCenter/leaderboard",
"style": { "navigationStyle": "custom" }
}
```
......@@ -186,10 +186,10 @@
| 功能 | 跳转方法 | 页面路径 | 所在文件 |
|-----|---------|---------|---------|
| 我的课程 | `goToMyCourse()` | `/pages/boutique/myCourse` | StudyCenter.vue |
| 我的任务 | `goToMyTask()` | `/pages/boutique/myTask` | StudyCenter.vue |
| 我的考试 | `goToMyExam()` | `/pages/boutique/myExam` | StudyCenter.vue |
| 排行榜 | `goToLeaderboard()` | `/pages/boutique/leaderboard` | StudyCenter.vue |
| 我的课程 | `goToMyCourse()` | `/pages/common/studyCenter/myCourse` | StudyCenter.vue |
| 我的任务 | `goToMyTask()` | `/pages/common/studyCenter/myTask` | StudyCenter.vue |
| 我的考试 | `goToMyExam()` | `/pages/common/studyCenter/myExam` | StudyCenter.vue |
| 排行榜 | `goToLeaderboard()` | `/pages/common/studyCenter/leaderboard` | StudyCenter.vue |
---
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!