Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0498f384
authored
Sep 26, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 新增signhttp
1 parent
9f93e038
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1063 additions
and
221 deletions
api/module/evaluation.js
api/request/signHttp.js
components/HomeFrame/index.vue
env.js
package.json
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/FormCell.vue
pages/evaluationForm/components/GeneralPopup.vue
pages/evaluationForm/components/SelectCar.vue
pages/evaluationForm/components/SelectCity.vue
pages/evaluationForm/components/SortByNameList.vue
pages/evaluationForm/components/uploadMedia.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/index.vue
uni.scss
yarn.lock
api/module/evaluation.js
View file @
0498f38
import
http
from
'../request/
h
ttp'
import
http
from
'../request/
signH
ttp'
// ${pathEnum.evaluation}
module
.
exports
=
{
module
.
exports
=
{
/** 车型 */
/** 评估单列表 */
carBandList
(
data
)
{
evalOrderList
(
data
)
{
return
http
.
post
({
console
.
log
(
http
)
method
:
'glsx.accounts.base.car.brand.complete'
,
return
http
.
post
(
`/evalOrder/page`
,
{
projectName
:
'evaluation'
,
...
data
...
data
})
})
}
}
...
...
api/request/signHttp.js
0 → 100644
View file @
0498f38
import
{
Request
}
from
'glsk-toolkit'
import
{
signSecretKey
,
pathEnum
,
domain
,
djDomain
,
evaluationDomain
,
merchantDomain
}
from
'../../env'
const
HOST
=
{
scrm
:
domain
,
dj
:
djDomain
,
eva
:
evaluationDomain
,
merchant
:
merchantDomain
,
ip
:
'http://192.168.1.169:8292'
}
function
createRequestInstance
()
{
const
{
sessionId
}
=
uni
.
$storage
?.
get
()
||
{}
console
.
log
(
'创建request实例,当前sessionId:'
,
sessionId
)
return
new
Request
({
baseURL
:
`
${
HOST
[
'eva'
]}
`
,
appId
:
signSecretKey
.
appKey
,
appSecret
:
signSecretKey
.
secret
,
params
:
{
sessionId
},
response
:
{
code_key
:
'code'
,
code_success_value
:
'0'
,
data_key
:
'data'
,
errId
:
'errId'
,
errId_logout_value
:
'21'
},
events
:
{
response
:
(
responseData
,
config
)
=>
{
console
.
log
(
'response事件触发'
,
responseData
,
config
)
},
error
:
(
error
,
config
)
=>
{
console
.
log
(
'error事件触发'
,
error
,
config
)
},
request
:
(
request
,
config
)
=>
{
console
.
log
(
'request事件触发'
,
request
,
config
)
},
logout
:
config
=>
{
console
.
log
(
'logout事件触发'
,
config
)
const
pages
=
getCurrentPages
(),
currentPage
=
pages
[
pages
.
length
-
1
]
uni
.
hideLoading
()
if
(
currentPage
.
route
!=
'pages/common/login'
)
uni
.
reLaunch
({
url
:
'/pages/common/login'
})
}
}
})
}
const
requestProxy
=
{
get
:
function
(
target
,
prop
,
receiver
)
{
const
instance
=
createRequestInstance
()
if
(
instance
&&
typeof
instance
[
prop
]
===
'function'
)
{
return
function
(...
args
)
{
if
([
'get'
,
'post'
,
'request'
,
'fetch'
].
includes
(
prop
))
{
if
(
args
[
0
]
&&
typeof
args
[
0
]
===
'object'
)
{
const
{
sessionId
}
=
uni
.
$storage
?.
get
()
||
{}
args
[
0
].
sessionId
=
sessionId
}
}
return
instance
[
prop
].
apply
(
instance
,
args
)
}
}
return
instance
?
instance
[
prop
]
:
undefined
}
}
export
default
new
Proxy
({},
requestProxy
)
components/HomeFrame/index.vue
View file @
0498f38
<
template
>
<
template
>
<view
<view
class=
"container"
@
click=
"handleTouchStart"
>
class=
"container"
@
click=
"handleTouchStart"
>
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<left-side
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"changeTab"
@
stopAudio=
"stopAudio"
@
showReadCountTips=
"showReadCountTips"
@
closeTips=
"closeTips"
/>
:userInfo=
"userInfo"
<view
class=
"tips-box"
:style=
"tipsObject.style"
@
click
.
stop=
"closeTips"
>
{{
tipsObject
.
text
}}
</view>
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"changeTab"
@
stopAudio=
"stopAudio"
@
showReadCountTips=
"showReadCountTips"
@
closeTips=
"closeTips"
/>
<view
class=
"tips-box"
:style=
"tipsObject.style"
@
click
.
stop=
"closeTips"
>
{{
tipsObject
.
text
}}
</view>
<view
class=
"right-side"
>
<view
class=
"right-side"
>
<view
:class=
"['app-content-box right-content',
{ 'show-content-box': tabIndex == 0 }]">
<view
:class=
"['app-content-box right-content',
{ 'show-content-box': tabIndex == 0 }]">
<view
<view
class=
"start"
@
click=
"start"
>
class=
"start"
@
click=
"start"
>
<template
v-if=
"sceneType != 4"
>
<template
v-if=
"sceneType != 4"
>
<view
class=
"sprite-icon icon-start-text"
></view>
<view
class=
"sprite-icon icon-start-text"
></view>
</
template
>
</
template
>
...
@@ -33,14 +15,7 @@
...
@@ -33,14 +15,7 @@
<view
class=
"module-box box-class"
>
<view
class=
"module-box box-class"
>
<view
class=
"common-title"
>
产品介绍
</view>
<view
class=
"common-title"
>
产品介绍
</view>
<view
class=
"content-box"
>
<view
class=
"content-box"
>
<swiper-component
<swiper-component
:moduleList=
"moduleList"
@
click=
"swiperClick"
:stopAutoPlay=
"previewOff"
:imgKey=
"bannerKey"
:loadComplete=
"loadComplete"
:noDataObject=
"swiperNoDataObject"
></swiper-component>
:moduleList=
"moduleList"
@
click=
"swiperClick"
:stopAutoPlay=
"previewOff"
:imgKey=
"bannerKey"
:loadComplete=
"loadComplete"
:noDataObject=
"swiperNoDataObject"
></swiper-component>
</view>
</view>
</view>
</view>
<view
class=
"tool-box box-class"
>
<view
class=
"tool-box box-class"
>
...
@@ -53,36 +28,19 @@
...
@@ -53,36 +28,19 @@
<view
class=
"content-right box-class"
>
<view
class=
"content-right box-class"
>
<view
class=
"common-title"
>
服务中心
</view>
<view
class=
"common-title"
>
服务中心
</view>
<view
class=
"content-box"
>
<view
class=
"content-box"
>
<MessageIndex
<MessageIndex
class=
"message-box"
ref=
"messageRef"
/>
class=
"message-box"
ref=
"messageRef"
/>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
:class=
"['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]"
>
<view
:class=
"['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]"
>
<component
<component
:is=
"'Point'"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
:is=
"'Point'"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
</view>
</view>
<
template
v-if=
"tabIndex != 0 && tabIndex != 99"
>
<
template
v-if=
"tabIndex != 0 && tabIndex != 99"
>
<component
<component
:is=
"componentName"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
:isPermissionFunction=
"isPermission"
/>
:is=
"componentName"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
:isPermissionFunction=
"isPermission"
/>
</
template
>
</
template
>
</view>
</view>
<view
<view
class=
"store-addr"
v-if=
"footerBox"
>
class=
"store-addr"
v-if=
"footerBox"
>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
</view>
</view>
...
@@ -90,41 +48,17 @@
...
@@ -90,41 +48,17 @@
<view
:class=
"['detail', { show: id }]"
>
<view
:class=
"['detail', { show: id }]"
>
<slot
name=
"detail"
/>
<slot
name=
"detail"
/>
</view>
</view>
<view
<view
class=
"point-page"
v-if=
"!showHome"
>
class=
"point-page"
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
v-if=
"!showHome"
>
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<!-- 未点击开始接待,弹窗 -->
<MessageBox
<MessageBox
ref=
"previewRef"
@
confirm=
"previewHandler('preview', true)"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"previewHandler('previewCancel')"
@
close=
"previewHandler('previewClose')"
></MessageBox>
ref=
"previewRef"
@
confirm=
"previewHandler('preview', true)"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"previewHandler('previewCancel')"
@
close=
"previewHandler('previewClose')"
></MessageBox>
<!-- 停留弹框 -->
<!-- 停留弹框 -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 -->
<!-- 退出弹框 -->
<MessageBox
<MessageBox
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
<view
class=
"footer"
>
<view
class=
"footer"
>
<view
<view
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
<
template
v-if=
"finishDoneText"
>
<
template
v-if=
"finishDoneText"
>
{{
finishDoneText
}}
{{
finishDoneText
}}
</
template
>
</
template
>
...
@@ -133,10 +67,7 @@
...
@@ -133,10 +67,7 @@
<text>
(推荐)
</text>
<text>
(推荐)
</text>
</
template
>
</
template
>
</view>
</view>
<view
<view
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
仍要退出
仍要退出
<text>
(不推荐)
</text>
<text>
(不推荐)
</text>
</view>
</view>
...
@@ -145,11 +76,7 @@
...
@@ -145,11 +76,7 @@
<!-- 升级弹框 -->
<!-- 升级弹框 -->
<update-box
/>
<update-box
/>
<slot
name=
"content"
/>
<slot
name=
"content"
/>
<web-view
<web-view
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
<!-- <web-view
<!-- <web-view
ref="studyWebview"
ref="studyWebview"
:src="jumpUrl"
:src="jumpUrl"
...
@@ -203,7 +130,7 @@ export default {
...
@@ -203,7 +130,7 @@ export default {
loadComplete
:
Boolean
,
loadComplete
:
Boolean
,
swiperNoDataObject
:
Object
swiperNoDataObject
:
Object
},
},
data
()
{
data
()
{
return
{
return
{
studyUrl
:
''
,
studyUrl
:
''
,
jumpUrl
:
''
,
jumpUrl
:
''
,
...
@@ -219,35 +146,35 @@ export default {
...
@@ -219,35 +146,35 @@ export default {
previewOff
:
false
previewOff
:
false
}
}
},
},
mounted
()
{
mounted
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
},
},
provide
()
{
provide
()
{
return
{
return
{
showPage
:
this
.
handleShowPage
,
showPage
:
this
.
handleShowPage
,
hideFooter
:
this
.
handleFooter
hideFooter
:
this
.
handleFooter
}
}
},
},
computed
:
{
computed
:
{
previewRef
()
{
previewRef
()
{
return
this
.
$refs
.
previewRef
return
this
.
$refs
.
previewRef
},
},
finishRef
()
{
finishRef
()
{
return
this
.
$refs
.
finish
return
this
.
$refs
.
finish
},
},
componentName
()
{
componentName
()
{
let
tabs
=
this
.
$refs
.
leftBox
?.
tabs
let
tabs
=
this
.
$refs
.
leftBox
?.
tabs
return
tabs
?
tabs
[
this
.
tabIndex
].
name
:
''
return
tabs
?
tabs
[
this
.
tabIndex
].
name
:
''
},
},
sceneType
()
{
sceneType
()
{
const
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
return
sceneType
return
sceneType
}
}
},
},
methods
:
{
methods
:
{
async
changeTab
({
item
,
index
})
{
async
changeTab
({
item
,
index
})
{
if
(
index
==
0
)
this
.
$refs
.
messageRef
.
getMessageSummary
()
if
(
index
==
0
)
this
.
$refs
.
messageRef
.
getMessageSummary
()
this
.
previewOff
=
index
!=
0
this
.
previewOff
=
index
!=
0
this
.
$emit
(
'changeTab'
,
index
)
this
.
$emit
(
'changeTab'
,
index
)
...
@@ -266,16 +193,16 @@ export default {
...
@@ -266,16 +193,16 @@ export default {
// this.jumpUrl = ''
// this.jumpUrl = ''
// }
// }
},
},
handleFooter
(
val
)
{
handleFooter
(
val
)
{
this
.
footerBox
=
val
this
.
footerBox
=
val
},
},
backHome
()
{
backHome
()
{
this
.
showHome
=
true
this
.
showHome
=
true
Promise
.
resolve
().
then
(()
=>
{
Promise
.
resolve
().
then
(()
=>
{
this
.
$refs
.
pointRef
?.
$refs
?.
centerRef
?.
init
&&
this
.
$refs
.
pointRef
.
$refs
.
centerRef
.
init
()
this
.
$refs
.
pointRef
?.
$refs
?.
centerRef
?.
init
&&
this
.
$refs
.
pointRef
.
$refs
.
centerRef
.
init
()
})
})
},
},
jump
(
val
)
{
jump
(
val
)
{
this
.
showHome
=
true
this
.
showHome
=
true
if
(
val
==
'CustomerFile'
)
{
if
(
val
==
'CustomerFile'
)
{
this
.
tabIndex
=
2
this
.
tabIndex
=
2
...
@@ -283,12 +210,12 @@ export default {
...
@@ -283,12 +210,12 @@ export default {
}
}
this
.
start
()
this
.
start
()
},
},
handleShowPage
(
name
,
transfer
)
{
handleShowPage
(
name
,
transfer
)
{
this
.
transfer
=
transfer
this
.
transfer
=
transfer
this
.
showHome
=
false
this
.
showHome
=
false
this
.
pointComponentName
=
name
this
.
pointComponentName
=
name
},
},
handleOperation
(
val
,
data
)
{
handleOperation
(
val
,
data
)
{
const
{
type
}
=
val
const
{
type
}
=
val
// 提取公共的webview设置逻辑
// 提取公共的webview设置逻辑
...
@@ -358,32 +285,32 @@ export default {
...
@@ -358,32 +285,32 @@ export default {
}
}
},
},
// 学习中心修改阅读状态,打开后才修改
// 学习中心修改阅读状态,打开后才修改
async
getStudyCenterRead
(
id
)
{
async
getStudyCenterRead
(
id
)
{
const
res
=
await
uni
.
$api
.
commonApi
.
getStudyCenterRead
({
id
})
const
res
=
await
uni
.
$api
.
commonApi
.
getStudyCenterRead
({
id
})
},
},
showReadCountTips
(
res
)
{
showReadCountTips
(
res
)
{
this
.
tipsObject
=
res
this
.
tipsObject
=
res
},
},
closeTips
()
{
closeTips
()
{
this
.
$refs
.
leftBox
.
readCount
=
0
this
.
$refs
.
leftBox
.
readCount
=
0
this
.
tipsObject
=
{
this
.
tipsObject
=
{
style
:
''
,
style
:
''
,
text
:
''
text
:
''
}
}
},
},
swiperClick
(
e
)
{
swiperClick
(
e
)
{
uni
.
$track
.
add
({
uni
.
$track
.
add
({
eventCode
:
'app_product_Introduction'
eventCode
:
'app_product_Introduction'
})
})
this
.
previewOff
=
true
this
.
previewOff
=
true
this
.
$emit
(
'swiperClick'
,
e
)
this
.
$emit
(
'swiperClick'
,
e
)
},
},
previewHandler
(
name
,
off
=
false
)
{
previewHandler
(
name
,
off
=
false
)
{
this
.
previewOff
=
off
this
.
previewOff
=
off
this
.
$emit
(
name
)
this
.
$emit
(
name
)
},
},
start
()
{
start
()
{
const
{
sceneType
}
=
this
const
{
sceneType
}
=
this
if
(
sceneType
==
7
)
return
//二手车无接待功能
if
(
sceneType
==
7
)
return
//二手车无接待功能
uni
.
$track
.
add
({
uni
.
$track
.
add
({
...
@@ -391,11 +318,11 @@ export default {
...
@@ -391,11 +318,11 @@ export default {
})
})
this
.
$emit
(
'start'
)
this
.
$emit
(
'start'
)
},
},
async
updateApp
(
requested
=
false
)
{
async
updateApp
(
requested
=
false
)
{
if
(
!
requested
)
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
if
(
!
requested
)
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
this
.
checkVersion
()
this
.
checkVersion
()
},
},
async
entranceClick
(
item
)
{
async
entranceClick
(
item
)
{
// 清除评估单的图片视频资源缓存
// 清除评估单的图片视频资源缓存
if
(
item
.
name
===
'EvaluationFormList'
)
{
if
(
item
.
name
===
'EvaluationFormList'
)
{
mediaResourceManager
.
cleanupExpired
()
mediaResourceManager
.
cleanupExpired
()
...
...
env.js
View file @
0498f38
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
2
const
index
=
0
/**
/**
*
*
0本地
0本地
...
@@ -49,7 +49,7 @@ const domain = {
...
@@ -49,7 +49,7 @@ const domain = {
}[
target
[
index
]]
}[
target
[
index
]]
const
djDomain
=
{
const
djDomain
=
{
ip
:
'http://
192.168.2.59:8292
'
,
ip
:
'http://
dj.dev.glsx.com.cn
'
,
// ip: 'http://192.168.2.80:8558',
// ip: 'http://192.168.2.80:8558',
dev
:
'http://dj.dev.glsx.com.cn'
,
dev
:
'http://dj.dev.glsx.com.cn'
,
beta
:
'https://dj.beta.glsx.com.cn'
,
//预发布 appid: wx9f91c1ec493eb425
beta
:
'https://dj.beta.glsx.com.cn'
,
//预发布 appid: wx9f91c1ec493eb425
...
@@ -58,6 +58,16 @@ const djDomain = {
...
@@ -58,6 +58,16 @@ const djDomain = {
pet
:
'https://cdptest.glsx.com.cn'
//压测 appid: wx7ce755e425603084
pet
:
'https://cdptest.glsx.com.cn'
//压测 appid: wx7ce755e425603084
}[
target
[
index
]]
}[
target
[
index
]]
const
evaluationDomain
=
{
ip
:
'http://192.168.1.221:5003'
,
// ip: 'http://192.168.2.80:8558',
dev
:
'http://gsc.dev.glsx.com.cn'
,
beta
:
'https://dj.beta.glsx.com.cn'
,
//预发布 appid: wx9f91c1ec493eb425
uat
:
'http://gsc.test.glsx.com.cn '
,
//测试 appid: wxe10067a63c1856ac
prod
:
'https://dj.glsx.com.cn'
,
pet
:
'https://cdptest.glsx.com.cn'
//压测 appid: wx7ce755e425603084
}[
target
[
index
]]
const
merchantDomain
=
{
const
merchantDomain
=
{
ip
:
'http://rop-merchant.dev.glsx.com.cn'
,
ip
:
'http://rop-merchant.dev.glsx.com.cn'
,
dev
:
'http://rop-merchant.dev.glsx.com.cn'
,
dev
:
'http://rop-merchant.dev.glsx.com.cn'
,
...
@@ -68,7 +78,7 @@ const merchantDomain = {
...
@@ -68,7 +78,7 @@ const merchantDomain = {
}[
target
[
index
]]
}[
target
[
index
]]
const
djSecretKey
=
{
const
djSecretKey
=
{
ip
:
{},
ip
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
dev
:
{
dev
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
...
@@ -91,6 +101,33 @@ const djSecretKey = {
...
@@ -91,6 +101,33 @@ const djSecretKey = {
}
}
}[
target
[
index
]]
}[
target
[
index
]]
const
signSecretKey
=
{
ip
:
{
appKey
:
'App_PromoteBusiness'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
dev
:
{
appKey
:
'App_PromoteBusiness'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
uat
:
{
appKey
:
'App_PromoteBusiness'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
beta
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
prod
:
{
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
},
pet
:
{
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
}
}[
target
[
index
]]
const
pathEnum
=
{
const
pathEnum
=
{
sso
:
'/rop-scrm-sso/'
,
sso
:
'/rop-scrm-sso/'
,
shopmall
:
'/rop-scrm-shopmall/'
,
shopmall
:
'/rop-scrm-shopmall/'
,
...
@@ -110,7 +147,8 @@ const pathEnum = {
...
@@ -110,7 +147,8 @@ const pathEnum = {
boutique
:
'/rop-dj-car-boutique/'
,
boutique
:
'/rop-dj-car-boutique/'
,
merchants
:
'/rop-merchants/'
,
merchants
:
'/rop-merchants/'
,
pad
:
'/rop-dj-pad/'
,
pad
:
'/rop-dj-pad/'
,
clue
:
'/rop-scrm-clue/'
clue
:
'/rop-scrm-clue/'
,
evaluation
:
'/gsc-vcp-pad-facade/'
}
}
const
CONFIG_ENV_MAP
=
{
const
CONFIG_ENV_MAP
=
{
1
:
'develop'
,
1
:
'develop'
,
...
@@ -126,5 +164,7 @@ module.exports = {
...
@@ -126,5 +164,7 @@ module.exports = {
env
:
CONFIG_ENV_MAP
[
index
],
env
:
CONFIG_ENV_MAP
[
index
],
djDomain
,
djDomain
,
merchantDomain
,
merchantDomain
,
djSecretKey
djSecretKey
,
signSecretKey
,
evaluationDomain
}
}
package.json
View file @
0498f38
...
@@ -7,10 +7,11 @@
...
@@ -7,10 +7,11 @@
"dayjs"
:
"^1.11.11"
,
"dayjs"
:
"^1.11.11"
,
"eslint-config-prettier"
:
"^9.1.0"
,
"eslint-config-prettier"
:
"^9.1.0"
,
"eslint-plugin-prettier"
:
"^5.1.3"
,
"eslint-plugin-prettier"
:
"^5.1.3"
,
"glsk-toolkit"
:
"^1.0.
0
"
,
"glsk-toolkit"
:
"^1.0.
3
"
,
"hammerjs"
:
"^2.0.8"
,
"hammerjs"
:
"^2.0.8"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"number-precision"
:
"^1.6.0"
,
"number-precision"
:
"^1.6.0"
,
"pinyin.js"
:
"^2.0.0"
,
"prettier"
:
"^3.3.2"
,
"prettier"
:
"^3.3.2"
,
"webpack-spritesmith"
:
"^1.1.0"
"webpack-spritesmith"
:
"^1.1.0"
}
}
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
0498f38
This diff is collapsed.
Click to expand it.
pages/evaluationForm/components/FormCell.vue
View file @
0498f38
...
@@ -24,8 +24,19 @@
...
@@ -24,8 +24,19 @@
<view
class=
"sprite-icon icon-icon-select"
></view>
<view
class=
"sprite-icon icon-icon-select"
></view>
</view>
</view>
</template>
</template>
<
template
v-if=
"field.type === 'calendar'"
>
<view
class=
"flex align-center from-value"
>
<template
v-if=
"field.targetObj ? formData[field.targetObj][field.targetKey] : formData[field.targetKey]"
>
{{
field
.
targetObj
?
formData
[
field
.
targetObj
][
field
.
targetKey
]
:
formData
[
field
.
targetKey
]
}}
</
template
>
<
template
v-else
>
<span
class=
"placeholder"
>
请选择
</span>
</
template
>
<view
class=
"sprite-icon icon-icon-select"
></view>
</view>
</template>
<
template
v-if=
"field.type === 'radio'"
>
<
template
v-if=
"field.type === 'radio'"
>
<radio-group
class=
"radio-group flex align-center"
@
change=
"
radioChange
"
>
<radio-group
class=
"radio-group flex align-center"
@
change=
"
e => radioChange(e, field)
"
>
<label
class=
"uni-list-cell uni-list-cell-pd align-center flex ml-48"
v-for=
"(item, index) in field.radioList"
:key=
"item.value"
>
<label
class=
"uni-list-cell uni-list-cell-pd align-center flex ml-48"
v-for=
"(item, index) in field.radioList"
:key=
"item.value"
>
<radio
style=
"transform: scale(0.7)"
:value=
"item.value"
:checked=
"index === current"
/>
<radio
style=
"transform: scale(0.7)"
:value=
"item.value"
:checked=
"index === current"
/>
...
@@ -34,9 +45,9 @@
...
@@ -34,9 +45,9 @@
</radio-group>
</radio-group>
</
template
>
</
template
>
<
template
v-if=
"field.type === 'pricek'"
>
<
template
v-if=
"field.type === 'pricek'"
>
<picker
@
change=
"
bindPickerChange"
range-key=
"name"
:value=
"
index"
:range=
"field.fieldPickerArray"
>
<picker
@
change=
"
e => bindPickerChange(e, field)"
range-key=
"name"
:value=
"field.
index"
:range=
"field.fieldPickerArray"
>
<view
class=
"flex align-center from-value"
>
<view
class=
"flex align-center from-value"
>
<template
v-if=
"field.targetObj ? formData[field.targetObj][field.targetKey] : formData[field.targetKey]"
>
<template
v-if=
"field.targetObj ? formData[field.targetObj][field.target
Name
Key] : formData[field.targetKey]"
>
{{
field
.
targetObj
?
formData
[
field
.
targetObj
][
field
.
targetNameKey
]
:
formData
[
field
.
targetNameKey
]
}}
{{
field
.
targetObj
?
formData
[
field
.
targetObj
][
field
.
targetNameKey
]
:
formData
[
field
.
targetNameKey
]
}}
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -47,7 +58,8 @@
...
@@ -47,7 +58,8 @@
</picker>
</picker>
</template>
</template>
<
template
v-if=
"field.type === 'textarea'"
>
<
template
v-if=
"field.type === 'textarea'"
>
<textarea
placeholder=
"请输入 (1000字以内)"
v-model=
"formData.carCondition"
maxlength=
"1000"
/>
<textarea
v-if=
"field.targetObj"
placeholder=
"请输入 (1000字以内)"
v-model=
"formData[field.targetObj][field.targetKey]"
maxlength=
"1000"
/>
<textarea
v-else
placeholder=
"请输入 (1000字以内)"
v-model=
"formData[field.targetKey]"
maxlength=
"1000"
/>
</
template
>
</
template
>
<
template
v-if=
"field.type === 'pdf'"
>
<
template
v-if=
"field.type === 'pdf'"
>
<view
class=
"flex-1"
>
<view
class=
"flex-1"
>
...
@@ -99,7 +111,13 @@ export default {
...
@@ -99,7 +111,13 @@ export default {
return
{
return
{
userInfo
:
{},
userInfo
:
{},
current
:
0
,
current
:
0
,
index
:
0
index
:
0
,
info
:
{
lunar
:
true
,
range
:
true
,
insert
:
false
,
selected
:
[]
}
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -111,10 +129,11 @@ export default {
...
@@ -111,10 +129,11 @@ export default {
const
value
=
e
.
detail
.
value
const
value
=
e
.
detail
.
value
this
.
$emit
(
'radioChange'
,
value
)
this
.
$emit
(
'radioChange'
,
value
)
},
},
bindPickerChange
(
e
)
{
bindPickerChange
(
e
,
field
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
)
const
index
=
e
.
detail
.
value
const
index
=
e
.
detail
.
value
this
.
index
=
index
field
.
index
=
index
this
.
$emit
(
'pickerChange'
,
index
)
this
.
$emit
(
'pickerChange'
,
index
,
field
)
},
},
updateFormData
(
data
)
{
updateFormData
(
data
)
{
this
.
$emit
(
'update:formData'
,
data
)
this
.
$emit
(
'update:formData'
,
data
)
...
...
pages/evaluationForm/components/GeneralPopup.vue
View file @
0498f38
...
@@ -119,8 +119,19 @@ export default {
...
@@ -119,8 +119,19 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
border-radius
:
toRpx
(
32
)
toRpx
(
32
)
0
0
;
border-radius
:
toRpx
(
32
)
toRpx
(
32
)
0
0
;
.popup-top-box
{
.popup-top-box
{
padding
:
0
toRpx
(
32
);
padding
:
0
toRpx
(
48
);
height
:
toRpx
(
68
);
height
:
toRpx
(
112
);
width
:
100%
;
background-color
:
#fff
;
color
:
#333333
;
font-size
:
toRpx
(
36
);
.popup-top-box-title
{
flex
:
1
;
text-align
:
center
;
}
.icon-close
{
text-align
:
end
;
}
}
}
.footer-box
{
.footer-box
{
width
:
100%
;
width
:
100%
;
...
...
pages/evaluationForm/components/SelectCar.vue
View file @
0498f38
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<template
v-slot:content
>
<template
v-slot:content
>
<StepTab
:steps=
"steps"
:currentStep=
"currentStep"
:clickable=
"true"
@
step-change=
"onStepChange"
:isShowStepNumber=
"false"
></StepTab>
<StepTab
:steps=
"steps"
:currentStep=
"currentStep"
:clickable=
"true"
@
step-change=
"onStepChange"
:isShowStepNumber=
"false"
></StepTab>
<view
class=
"list-component"
>
<view
class=
"list-component"
>
<SortByNameList
:items=
"currentStepData"
:activeValue=
"currentSelectedId"
:activeField=
"'id'"
:itemNameField=
"'name'"
:groupKeyField=
"'letter'"
:itemsPerRow=
"3"
:itemSpacing=
"32"
@
item-click=
"handleItemClick"
/>
<SortByNameList
:items=
"currentStepData"
:activeValue=
"currentSelectedId"
:activeField=
"'id'"
:itemNameField=
"'name'"
:groupKeyField=
"'letter'"
:itemsPerRow=
"3"
:itemSpacing=
"32"
@
item-click=
"handleItemClick"
:enableFastScroll=
"false"
/>
</view>
</view>
</
template
>
</
template
>
</GeneralPopup>
</GeneralPopup>
...
...
pages/evaluationForm/components/SelectCity.vue
0 → 100644
View file @
0498f38
<
template
>
<GeneralPopup
ref=
"carPopup"
popupClass=
"carPopup"
:list=
"list"
:title=
"title"
>
<template
v-slot:content
>
<StepTab
:steps=
"steps"
:currentStep=
"currentStep"
:clickable=
"true"
@
step-change=
"onStepChange"
:isShowStepNumber=
"false"
></StepTab>
<view
class=
"list-component"
>
<SortByNameList
:items=
"currentStepData"
:activeValue=
"currentSelectedId"
:activeField=
"'id'"
:itemNameField=
"'name'"
:groupKeyField=
"'letter'"
:itemsPerRow=
"3"
:itemSpacing=
"32"
@
item-click=
"handleItemClick"
/>
</view>
</
template
>
</GeneralPopup>
</template>
<
script
>
import
GeneralPopup
from
'./GeneralPopup.vue'
import
SortByNameList
from
'./SortByNameList.vue'
import
StepTab
from
'./StepTab.vue'
import
{
sign
,
md532
,
md516
}
from
'utils/common'
import
pinyin
from
'pinyin.js'
export
default
{
name
:
'SelectCar'
,
components
:
{
GeneralPopup
,
SortByNameList
,
StepTab
},
props
:
{
title
:
{
type
:
String
,
default
:
'选择车型'
},
list
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
currentStep
:
0
,
currentSelectedId
:
null
,
steps
:
[
{
label
:
'选择省份'
,
number
:
1
},
{
label
:
'选择市'
,
number
:
2
},
{
label
:
'选择区'
,
number
:
3
}
],
carBrandData
:
[],
selectedBrand
:
null
,
selectedSeries
:
null
,
selectedModel
:
null
,
selectedYear
:
null
,
loadingYearData
:
false
// 添加加载状态标记
}
},
computed
:
{
currentStepData
()
{
let
data
=
[]
switch
(
this
.
currentStep
)
{
case
0
:
data
=
this
.
carBrandData
.
map
(
item
=>
this
.
addLetterToItem
(
item
))
break
case
1
:
data
=
(
this
.
selectedBrand
?.
districts
||
[]).
map
(
item
=>
this
.
addLetterToItem
(
item
))
break
case
2
:
data
=
(
this
.
selectedSeries
?.
districts
||
[]).
map
(
item
=>
this
.
addLetterToItem
(
item
))
break
case
3
:
data
=
(
this
.
selectedModel
?.
districts
||
[]).
map
(
item
=>
this
.
addLetterToItem
(
item
))
break
default
:
data
=
[]
}
console
.
log
(
`Step
${
this
.
currentStep
}
data:`
,
data
.
length
,
'items'
)
return
data
}
},
methods
:
{
loadCarData
()
{
let
that
=
this
uni
.
request
({
url
:
'http://eshield.test.glsx.com.cn/nesi/apiRegion/search?keyword=全国&sub_admin=3&extensions_code=0'
,
method
:
'GET'
,
data
:
{},
dataType
:
'json'
,
success
(
result
)
{
console
.
log
(
'请求结果:'
,
JSON
.
parse
(
result
.
data
.
data
))
let
{
status
,
districts
}
=
JSON
.
parse
(
result
.
data
.
data
)
if
(
status
===
0
&&
districts
)
{
that
.
carBrandData
=
districts
[
0
].
districts
console
.
log
(
'carBrandData'
,
that
.
carBrandData
)
}
else
{
console
.
error
(
'Invalid car data format:'
,
result
)
}
},
fail
(
error
)
{
console
.
log
(
error
,
'error'
)
}
})
},
// 加载指定车型的年份数据
loadYearDataForModel
(
model
)
{
console
.
log
(
'loadYearDataForModel'
,
model
)
// 如果已经加载过数据,则不再重复加载
if
(
model
.
districts
&&
model
.
districts
.
length
>
0
)
{
return
Promise
.
resolve
(
model
.
districts
)
}
this
.
loadingYearData
=
true
let
that
=
this
const
params
=
{
app_key
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
v
:
'1.0.0'
,
timestamp
:
'1234567890'
,
source
:
'dev_author'
,
method
:
'glsx.accounts.base.car.types'
,
format
:
'json'
,
csId
:
model
.
id
}
const
secret
=
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const
signature
=
sign
(
params
,
secret
)
console
.
log
(
'签名结果:'
,
signature
)
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
url
:
'http://qcdidicb.glsx.com.cn/router?method=glsx.accounts.base.car.types'
,
method
:
'GET'
,
dataType
:
'json'
,
success
(
result
)
{
console
.
log
(
'请求结果:'
,
result
)
if
(
result
.
data
&&
result
.
data
.
code
===
'0'
&&
result
.
data
.
data
&&
result
.
data
.
data
.
carinfos
)
{
model
.
districts
=
result
.
data
.
data
.
carinfos
this
.
loadingYearData
=
false
resolve
(
model
.
districts
)
}
else
{
reject
(
new
Error
(
'Invalid car data format'
))
}
},
fail
(
error
)
{
console
.
log
(
error
,
'error'
)
}
})
})
},
open
()
{
console
.
log
(
'Opening car selector popup'
)
this
.
$refs
.
carPopup
.
open
()
this
.
loadCarData
()
},
onStepChange
(
index
)
{
console
.
log
(
`Changing step from
${
this
.
currentStep
}
to
${
index
}
`
)
// 限制只能前进到已选择的下一级
if
(
index
===
0
)
{
this
.
currentStep
=
0
}
else
if
(
index
===
1
&&
this
.
selectedBrand
)
{
this
.
currentStep
=
1
}
else
if
(
index
===
2
&&
this
.
selectedSeries
)
{
this
.
currentStep
=
2
}
else
if
(
index
===
3
&&
this
.
selectedModel
)
{
// 如果还没有年份数据,则加载
if
(
!
this
.
selectedModel
.
districts
||
this
.
selectedModel
.
districts
.
length
===
0
)
{
this
.
loadYearDataForModel
(
this
.
selectedModel
).
then
(()
=>
{
this
.
currentStep
=
3
})
}
else
{
this
.
currentStep
=
3
}
}
// 重置当前步骤的选中ID
this
.
currentSelectedId
=
null
},
// 处理项目点击事件
handleItemClick
(
item
)
{
console
.
log
(
'Item clicked:'
,
item
)
this
.
currentSelectedId
=
item
.
id
if
(
this
.
currentStep
===
0
)
{
this
.
selectedBrand
=
item
this
.
selectedSeries
=
null
this
.
selectedModel
=
null
this
.
selectedYear
=
null
this
.
currentStep
=
1
this
.
$emit
(
'brand-selected'
,
item
)
}
else
if
(
this
.
currentStep
===
1
)
{
this
.
selectedSeries
=
item
this
.
selectedModel
=
null
this
.
selectedYear
=
null
this
.
currentStep
=
2
this
.
$emit
(
'series-selected'
,
item
)
}
else
if
(
this
.
currentStep
===
2
)
{
this
.
selectedModel
=
item
this
.
selectedYear
=
null
this
.
$emit
(
'model-selected'
,
item
)
// 当点击第三层车型选择时,才去请求第四级数据
// this.loadYearDataForModel(item).then(years => {
// if (years && years.length > 0) {
// this.currentStep = 3
// }
// this.$emit('model-selected', item)
// })
}
},
// 为数据项添加首字母
addLetterToItem
(
item
)
{
if
(
!
item
||
!
item
.
name
)
{
return
{
...
item
,
letter
:
'#'
}
}
try
{
const
firstChar
=
item
.
name
.
charAt
(
0
)
if
(
/
[\u
4e00-
\u
9fa5
]
/
.
test
(
firstChar
))
{
let
pinyinResult
try
{
pinyinResult
=
pinyin
(
firstChar
)
}
catch
(
e1
)
{
console
.
warn
(
'pinyin without options failed:'
,
e1
)
try
{
pinyinResult
=
pinyin
(
firstChar
,
{
style
:
0
})
}
catch
(
e2
)
{
console
.
warn
(
'pinyin with simple options failed:'
,
e2
)
const
simplePinyinMap
=
{
安
:
'A'
,
北
:
'B'
,
重
:
'C'
,
重
:
'C'
,
川
:
'C'
,
大
:
'D'
,
东
:
'D'
,
福
:
'F'
,
甘
:
'G'
,
广
:
'G'
,
贵
:
'G'
,
海
:
'H'
,
河
:
'H'
,
黑
:
'H'
,
湖
:
'H'
,
吉
:
'J'
,
江
:
'J'
,
辽
:
'L'
,
内
:
'N'
,
宁
:
'N'
,
青
:
'Q'
,
山
:
'S'
,
陕
:
'S'
,
上
:
'S'
,
四
:
'S'
,
台
:
'T'
,
天
:
'T'
,
西
:
'X'
,
新
:
'X'
,
云
:
'Y'
,
浙
:
'Z'
}
return
{
...
item
,
letter
:
simplePinyinMap
[
firstChar
]
||
'#'
}
}
}
let
letter
=
'#'
if
(
pinyinResult
&&
pinyinResult
.
length
>
0
)
{
if
(
Array
.
isArray
(
pinyinResult
[
0
]))
{
letter
=
pinyinResult
[
0
][
0
].
charAt
(
0
).
toUpperCase
()
}
else
if
(
typeof
pinyinResult
[
0
]
===
'string'
)
{
letter
=
pinyinResult
[
0
].
charAt
(
0
).
toUpperCase
()
}
else
if
(
typeof
pinyinResult
===
'string'
)
{
letter
=
pinyinResult
.
charAt
(
0
).
toUpperCase
()
}
}
if
(
/^
[
A-Z
]
$/
.
test
(
letter
))
{
return
{
...
item
,
letter
}
}
else
{
const
simplePinyinMap
=
{
安
:
'A'
,
阿
:
'A'
}
return
{
...
item
,
letter
:
simplePinyinMap
[
firstChar
]
||
'#'
}
}
}
else
{
const
letter
=
firstChar
.
toUpperCase
()
return
{
...
item
,
letter
:
/^
[
A-Z
]
$/
.
test
(
letter
)
?
letter
:
'#'
}
}
}
catch
(
error
)
{
console
.
error
(
'获取首字母失败:'
,
error
)
return
{
...
item
,
letter
:
'#'
}
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
::v-deep
.carPopup
{
.content
{
width
:
100%
;
height
:
toRpx
(
764
);
background-color
:
#fff
;
box-sizing
:
border-box
;
overflow
:
hidden
;
.list-component
{
width
:
100%
;
height
:
calc
(
100%
-
#{
toRpx
(
100
)}
);
}
}
}
</
style
>
pages/evaluationForm/components/SortByNameList.vue
View file @
0498f38
<
template
>
<
template
>
<view
class=
"container-list"
>
<view
class=
"container"
>
<view
v-if=
"groupedItems && Object.keys(groupedItems).length > 0"
>
<!-- 主内容区域 - 使用scroll-view -->
<view
v-for=
"(groupItems, groupKey) in groupedItems"
:key=
"groupKey"
>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
:scroll-into-view=
"currentScrollId"
@
scroll=
"onScroll"
>
<view
class=
"group-header"
>
<view
v-if=
"groupedItems && Object.keys(groupedItems).length > 0"
>
<text
class=
"group-label"
>
{{
groupKey
}}
</text>
<view
v-for=
"(groupItems, groupKey) in groupedItems"
:key=
"groupKey"
:id=
"`group-$
{groupKey}`">
</view>
<view
class=
"group-header"
>
<text
class=
"group-label"
>
{{
groupKey
}}
</text>
</view>
<view
class=
"items-box"
>
<view
class=
"items-box"
>
<view
v-for=
"item in groupItems"
:key=
"getItemKey(item)"
v-if=
"item[itemNameField]"
:class=
"['item',
{ active: isActiveItem(item) }]" @tap="onItemClick(item)">
<view
v-for=
"item in groupItems"
:key=
"getItemKey(item)"
v-if=
"item[itemNameField]"
:class=
"['item',
{ active: isActiveItem(item) }]" @tap="onItemClick(item)">
{{
item
[
itemNameField
]
}}
{{
item
[
itemNameField
]
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-else-if=
"items && items.length === 0"
class=
"empty-state"
>
<view
v-else-if=
"items && items.length === 0"
class=
"empty-state"
>
<text>
暂无数据
</text>
<text>
暂无数据
</text>
</view>
</view>
<view
v-else
class=
"loading-state"
>
<text>
加载中...
</text>
</view>
</scroll-view>
<view
v-else
class=
"loading-state"
>
<!-- 字母索引列表 - 仅在启用快速滚动时显示 -->
<text>
加载中...
</text>
<view
v-if=
"enableFastScroll && groupKeys.length > 0"
class=
"letter-index"
>
<view
v-for=
"key in groupKeys"
:key=
"key"
class=
"letter-item"
@
tap=
"scrollToLetter(key)"
>
{{
key
}}
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -69,6 +79,17 @@ export default {
...
@@ -69,6 +79,17 @@ export default {
groupKeyField
:
{
groupKeyField
:
{
type
:
String
,
type
:
String
,
default
:
'letter'
default
:
'letter'
},
// 是否启用快速滚动功能
enableFastScroll
:
{
type
:
Boolean
,
default
:
true
}
},
data
()
{
return
{
currentScrollId
:
''
}
}
},
},
computed
:
{
computed
:
{
...
@@ -98,6 +119,14 @@ export default {
...
@@ -98,6 +119,14 @@ export default {
})
})
return
sortedGroups
return
sortedGroups
},
// 获取所有字母分组的键
groupKeys
()
{
if
(
!
this
.
groupedItems
)
{
return
[]
}
return
Object
.
keys
(
this
.
groupedItems
)
}
}
},
},
methods
:
{
methods
:
{
...
@@ -113,73 +142,132 @@ export default {
...
@@ -113,73 +142,132 @@ export default {
isActiveItem
(
item
)
{
isActiveItem
(
item
)
{
return
item
[
this
.
activeField
]
===
this
.
activeValue
return
item
[
this
.
activeField
]
===
this
.
activeValue
},
// 滚动到指定字母分组
scrollToLetter
(
key
)
{
this
.
currentScrollId
=
`group-
${
key
}
`
// 强制更新DOM后清除currentScrollId,避免重复点击同一字母失效
this
.
$nextTick
(()
=>
{
setTimeout
(()
=>
{
this
.
currentScrollId
=
''
},
100
)
})
},
// 监听滚动事件(可选,可用于高亮当前字母)
onScroll
(
e
)
{
// 这里可以根据滚动位置更新当前激活的字母索引
// 例如:计算当前可视区域的第一个分组字母,并高亮显示
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.container
{
position
:
relative
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.scroll-view
{
height
:
100%
;
background-color
:
#ffffff
;
}
.container-list
{
.container-list
{
background-color
:
#ffffff
;
background-color
:
#ffffff
;
height
:
100%
;
height
:
100%
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
.group-header
{
.letter-index
{
display
:
flex
;
position
:
absolute
;
align-items
:
center
;
right
:
toRpx
(
16
);
padding
:
toRpx
(
0
)
toRpx
(
48
);
top
:
50%
;
background-color
:
#f5f7fa
;
transform
:
translateY
(
-50%
);
height
:
toRpx
(
40
);
display
:
flex
;
.group-label
{
flex-direction
:
column
;
font-size
:
toRpx
(
28
);
align-items
:
center
;
font-weight
:
400
;
justify-content
:
center
;
color
:
#888
;
z-index
:
10
;
}
background-color
:
rgba
(
255
,
255
,
255
,
0.7
);
}
border-radius
:
toRpx
(
10
);
padding
:
toRpx
(
5
)
toRpx
(
2
);
}
.items-box
{
.letter-item
{
display
:
flex
;
width
:
toRpx
(
20
);
flex-wrap
:
wrap
;
height
:
toRpx
(
20
);
padding
:
toRpx
(
16
)
toRpx
(
48
);
line-height
:
toRpx
(
20
);
box-sizing
:
border-box
;
text-align
:
center
;
margin
:
0
-toRpx
(
16
);
font-size
:
toRpx
(
26
);
border-bottom
:
toRpx
(
1
)
solid
#f0f2f5
;
color
:
#333
;
margin
:
toRpx
(
8
)
0
;
border-radius
:
toRpx
(
3
);
&:active
{
background-color
:
#347bff
;
color
:
#fff
;
}
}
}
.item
{
.group-header
{
width
:
calc
(
33.333%
-
#{
toRpx
(
32
)}
);
display
:
flex
;
margin
:
toRpx
(
16
);
align-items
:
center
;
padding
:
toRpx
(
12
)
toRpx
(
24
);
padding
:
toRpx
(
0
)
toRpx
(
48
);
color
:
#333333
;
background-color
:
#f5f7fa
;
font-size
:
toRpx
(
32
);
height
:
toRpx
(
40
);
.group-label
{
font-size
:
toRpx
(
28
);
font-weight
:
400
;
font-weight
:
400
;
white-space
:
nowrap
;
color
:
#888
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
border-radius
:
toRpx
(
8
);
border
:
toRpx
(
2
)
solid
#dce0e6
;
text-align
:
center
;
box-sizing
:
border-box
;
&
:active
{
background-color
:
#f5f7fa
;
}
&
.active
{
background
:
#dee7ff
;
color
:
#347bff
;
}
}
}
}
.items-box
{
display
:
flex
;
flex-wrap
:
wrap
;
padding
:
toRpx
(
16
)
toRpx
(
48
);
box-sizing
:
border-box
;
margin
:
0
-toRpx
(
16
);
border-bottom
:
toRpx
(
1
)
solid
#f0f2f5
;
}
.empty-state
{
.item
{
padding
:
toRpx
(
60
)
toRpx
(
48
);
width
:
calc
(
33.333%
-
#{
toRpx
(
32
)}
);
text-align
:
center
;
margin
:
toRpx
(
16
);
color
:
#999
;
padding
:
toRpx
(
12
)
toRpx
(
24
);
font-size
:
toRpx
(
32
);
color
:
#333333
;
font-size
:
toRpx
(
32
);
font-weight
:
400
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
border-radius
:
toRpx
(
8
);
border
:
toRpx
(
2
)
solid
#dce0e6
;
text-align
:
center
;
box-sizing
:
border-box
;
&
:active
{
background-color
:
#f5f7fa
;
}
}
.loading-state
{
&
.active
{
padding
:
toRpx
(
60
)
toRpx
(
48
);
background
:
#dee7ff
;
text-align
:
center
;
color
:
#347bff
;
color
:
#666
;
font-size
:
toRpx
(
32
);
}
}
}
}
.empty-state
{
padding
:
toRpx
(
60
)
toRpx
(
48
);
text-align
:
center
;
color
:
#999
;
font-size
:
toRpx
(
32
);
}
.loading-state
{
padding
:
toRpx
(
60
)
toRpx
(
48
);
text-align
:
center
;
color
:
#666
;
font-size
:
toRpx
(
32
);
}
</
style
>
</
style
>
pages/evaluationForm/components/uploadMedia.vue
0 → 100644
View file @
0498f38
<
template
>
<view
class=
"upload-grid"
:style=
"gridStyle"
>
<view
class=
"flex upload-item-container"
:class=
"
{ fullwidth: field.fullwidth }" v-for="field in uploadFields" :key="field.key">
<view
class=
"upload-label"
>
{{
field
.
label
}}
<text
class=
"requiredLabel"
v-if=
"field.required"
>
*
</text>
</view>
<view
class=
"upload-images-wrapper"
>
<!-- 显示已上传的图片列表 -->
<view
v-for=
"(image, index) in getImages(field)"
:key=
"index"
class=
"uploaded-image-container"
>
<image
:src=
"image"
mode=
"aspectFill"
class=
"uploaded-image"
></image>
<view
class=
"delete-icon"
@
click
.
stop=
"deleteImage(field.key, index)"
>
<uni-icons
type=
"clear"
size=
"16"
color=
"#fff"
></uni-icons>
</view>
</view>
<!-- 上传按钮,当未达到最大限制时显示 -->
<view
v-if=
"!hasReachedMax(field)"
class=
"upload-item"
@
click=
"handleImageUpload(field)"
>
<view
class=
"upload-placeholder"
>
<view
class=
"sprite-icon icon-uploadAdd"
></view>
<text
class=
"upload-text"
>
{{
field
.
maxCount
>
1
?
getImages
(
field
).
length
+
'/'
+
field
.
maxCount
:
'上传图片'
}}
</text>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
uploadFile
}
from
'@/utils/ossUploadFile/uploadFile.js'
export
default
{
name
:
'UploadMedia'
,
props
:
{
// 上传字段配置数组
uploadFields
:
{
type
:
Array
,
required
:
true
,
default
:
()
=>
[]
},
// 图片数据对象(统一使用一个变量)
imagesData
:
{
type
:
Object
,
default
:
()
=>
({})
},
// 新增:配置upload-grid的列数
gridColumns
:
{
type
:
Number
,
default
:
2
}
},
computed
:
{
// 计算grid样式
gridStyle
()
{
return
{
'grid-template-columns'
:
`repeat(
${
this
.
gridColumns
}
, 1fr)`
}
}
},
methods
:
{
// 处理图片上传
handleImageUpload
(
field
)
{
// 显示操作菜单,让用户选择拍照或从相册选择
uni
.
showActionSheet
({
itemList
:
[
'拍照'
,
'从相册选择'
],
success
:
res
=>
{
if
(
res
.
tapIndex
===
0
)
{
// 拍照
this
.
takePhoto
(
field
)
}
else
if
(
res
.
tapIndex
===
1
)
{
// 从相册选择
this
.
chooseImageFromAlbum
(
field
)
}
},
fail
:
err
=>
{
console
.
log
(
'选择操作失败'
,
err
)
}
})
},
// 拍照
takePhoto
(
field
)
{
uni
.
chooseImage
({
count
:
this
.
getRemainingCount
(
field
),
sizeType
:
[
'compressed'
],
sourceType
:
[
'camera'
],
success
:
async
res
=>
{
try
{
// 上传所有选择的图片
for
(
const
tempFilePath
of
res
.
tempFilePaths
)
{
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
this
.
addImage
(
field
,
url
)
}
}
catch
(
error
)
{
console
.
log
(
'上传图片失败'
,
error
)
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
})
}
},
fail
:
err
=>
{
console
.
log
(
'拍照失败'
,
err
)
if
(
err
.
errMsg
.
indexOf
(
'cancel'
)
===
-
1
)
{
uni
.
showToast
({
title
:
'拍照失败'
,
icon
:
'none'
})
}
}
})
},
// 从相册选择
chooseImageFromAlbum
(
field
)
{
uni
.
chooseImage
({
count
:
this
.
getRemainingCount
(
field
),
sizeType
:
[
'compressed'
],
sourceType
:
[
'album'
],
success
:
async
res
=>
{
try
{
// 上传所有选择的图片
for
(
const
tempFilePath
of
res
.
tempFilePaths
)
{
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
this
.
addImage
(
field
,
url
)
}
}
catch
(
error
)
{
console
.
log
(
'上传图片失败'
,
error
)
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
})
}
},
fail
:
err
=>
{
console
.
log
(
'选择图片失败'
,
err
)
if
(
err
.
errMsg
.
indexOf
(
'cancel'
)
===
-
1
)
{
uni
.
showToast
({
title
:
'选择图片失败'
,
icon
:
'none'
})
}
}
})
},
// 获取指定字段的图片数组
getImages
(
field
)
{
// 确保返回的是数组
return
Array
.
isArray
(
this
.
imagesData
[
field
.
key
])
?
this
.
imagesData
[
field
.
key
]
:
[]
},
// 检查是否达到最大上传数量
hasReachedMax
(
field
)
{
const
images
=
this
.
getImages
(
field
)
return
images
.
length
>=
(
field
.
maxCount
||
1
)
},
// 获取剩余可上传数量
getRemainingCount
(
field
)
{
const
images
=
this
.
getImages
(
field
)
return
Math
.
max
(
1
,
(
field
.
maxCount
||
1
)
-
images
.
length
)
},
// 添加图片到对应的数组中(确保响应式更新)
addImage
(
field
,
url
)
{
// 确保字段存在且是数组
if
(
!
Array
.
isArray
(
this
.
imagesData
[
field
.
key
]))
{
this
.
$set
(
this
.
imagesData
,
field
.
key
,
[])
}
// 添加新图片
this
.
$set
(
this
.
imagesData
[
field
.
key
],
this
.
imagesData
[
field
.
key
].
length
,
url
)
// 触发父组件更新
this
.
$emit
(
'update:imagesData'
,
this
.
imagesData
)
},
// 删除图片
deleteImage
(
key
,
index
)
{
if
(
Array
.
isArray
(
this
.
imagesData
[
key
]))
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定要删除这张图片吗?'
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
// 使用splice确保响应式更新
this
.
imagesData
[
key
].
splice
(
index
,
1
)
// 如果数组为空,可以选择删除该字段
if
(
this
.
imagesData
[
key
].
length
===
0
)
{
this
.
$delete
(
this
.
imagesData
,
key
)
}
// 触发父组件更新
this
.
$emit
(
'update:imagesData'
,
this
.
imagesData
)
}
}
})
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
/* 上传按钮样式 */
.upload-btn
{
width
:
toRpx
(
200
);
height
:
toRpx
(
64
);
border-radius
:
toRpx
(
32
);
border
:
toRpx
(
2
)
dashed
#999999
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
color
:
#999999
;
font-size
:
toRpx
(
28
);
}
/* 上传区域样式 */
.upload-section
{
margin-bottom
:
toRpx
(
24
);
grid-column
:
1
/
-1
;
padding
:
toRpx
(
32
)
toRpx
(
48
);
border-radius
:
toRpx
(
16
);
background-color
:
#fff
;
}
.upload-grid
{
display
:
grid
;
gap
:
toRpx
(
24
);
/* 移除固定的grid-template-columns,改为通过内联样式动态设置 */
}
.upload-item-container
{
align-items
:
flex-start
;
margin-bottom
:
toRpx
(
32
);
.upload-label
{
color
:
#666666
;
font-size
:
toRpx
(
26
);
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
);
}
//
图片包装器,使用
flex
布局显示多张图片
.upload-images-wrapper
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
toRpx
(
16
);
flex
:
1
;
}
//
fullwidth
类样式,使字段占据整行
&
.fullwidth
{
grid-column
:
1
/
-1
;
//
跨越所有列
.upload-label
{
flex
:
none
;
}
}
}
.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
(
240
);
}
.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-image-container
{
position
:
relative
;
height
:
toRpx
(
240
);
border-radius
:
toRpx
(
12
);
overflow
:
hidden
;
width
:
toRpx
(
240
);
}
.uploaded-image
{
width
:
100%
;
height
:
100%
;
}
.delete-icon
{
position
:
absolute
;
top
:
toRpx
(
8
);
right
:
toRpx
(
8
);
width
:
toRpx
(
32
);
height
:
toRpx
(
32
);
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
border-radius
:
50%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
pages/evaluationForm/confirmCar.vue
View file @
0498f38
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
</view>
</view>
<view
class=
"detail-content"
>
<view
class=
"detail-content"
>
<view
class=
"box-class mt-16"
>
<view
class=
"box-class mt-16"
>
<view
class=
"bg-title"
></view>
<view
class=
"form-container-upload"
>
<view
class=
"form-container-upload"
>
<view
class=
"upload-section"
>
<view
class=
"upload-section"
>
<view
class=
"section-title"
>
交接清单
</view>
<view
class=
"section-title"
>
交接清单
</view>
...
...
pages/evaluationForm/index.vue
View file @
0498f38
...
@@ -114,15 +114,30 @@ export default {
...
@@ -114,15 +114,30 @@ export default {
{
tabName
:
'已驳回'
,
count
:
0
}
{
tabName
:
'已驳回'
,
count
:
0
}
]),
]),
dataList
:
[
dataList
:
[
{
name
:
'1'
,
count
:
1
,
previousStatus
:
10
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'1'
,
count
:
1
,
previousStatus
:
'10'
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'2'
,
count
:
1
,
previousStatus
:
20
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'2'
,
count
:
1
,
previousStatus
:
'20'
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'3'
,
count
:
1
,
previousStatus
:
30
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'3'
,
count
:
1
,
previousStatus
:
'30'
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'4'
,
count
:
1
,
previousStatus
:
40
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'4'
,
count
:
1
,
previousStatus
:
'40'
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'5'
,
count
:
1
,
previousStatus
:
50
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'5'
,
count
:
1
,
previousStatus
:
'50'
,
subStatus
:
''
,
paymentType
:
'1'
},
{
name
:
'6'
,
count
:
1
,
previousStatus
:
-
1
,
subStatus
:
''
,
paymentType
:
'1'
}
{
name
:
'6'
,
count
:
1
,
previousStatus
:
'-1'
,
subStatus
:
''
,
paymentType
:
'1'
}
]
]
}
}
},
},
mounted
()
{
uni
.
$api
.
evaluationApi
.
evalOrderList
({
t
:
{
conversionUserId
:
''
,
previousOwnerName
:
''
,
previousOwnerPhone
:
''
,
vin
:
''
,
evalOrderNo
:
''
,
status
:
''
},
current
:
1
,
size
:
10
})
},
methods
:
{
methods
:
{
jumpToDetails
(
type
)
{
jumpToDetails
(
type
)
{
this
.
$emit
(
'jump'
,
type
)
this
.
$emit
(
'jump'
,
type
)
...
...
uni.scss
View file @
0498f38
...
@@ -15,18 +15,18 @@ $detailVW: 100vmin * (1173 / 768);
...
@@ -15,18 +15,18 @@ $detailVW: 100vmin * (1173 / 768);
$margin
:
0
calc
((
100vmax
-
#{
$detailVW
}
)
/
2
);
$margin
:
0
calc
((
100vmax
-
#{
$detailVW
}
)
/
2
);
@import
"./assets/css/sprite.scss"
;
@import
'./assets/css/sprite.scss'
;
@import
"./assets/css/common.scss"
;
@import
'./assets/css/common.scss'
;
@import
'@js-preview/docx/lib/index.css'
;
@import
'@js-preview/docx/lib/index.css'
;
@import
'@js-preview/excel/lib/index.css'
;
@import
'@js-preview/excel/lib/index.css'
;
@font-face
{
@font-face
{
font-family
:
"number-700"
;
font-family
:
'number-700'
;
src
:
url(
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf"
)
;
src
:
url(
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf'
)
;
}
}
@font-face
{
@font-face
{
font-family
:
"number-400"
;
font-family
:
'number-400'
;
src
:
url(
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-400-Regular.ttf"
)
;
src
:
url(
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-400-Regular.ttf'
)
;
}
}
@keyframes
show-view
{
@keyframes
show-view
{
...
@@ -98,7 +98,7 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
...
@@ -98,7 +98,7 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
}
}
.byd-layout
{
.byd-layout
{
background
:
url(
"@/assets/images/media/byd-media-bg.webp"
)
no-repeat
;
background
:
url(
'@/assets/images/media/byd-media-bg.webp'
)
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
}
}
...
@@ -128,7 +128,6 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
...
@@ -128,7 +128,6 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
}
}
}
}
.common-title
{
.common-title
{
width
:
100%
;
width
:
100%
;
height
:
toRpx
(
120
);
height
:
toRpx
(
120
);
...
@@ -149,7 +148,7 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
...
@@ -149,7 +148,7 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
linear-gradient
(
0deg
,
#94c2ff
00
0%
,
#5294ff
100%
);
background
:
linear-gradient
(
0deg
,
#94c2ff
00
0%
,
#5294ff
100%
);
opacity
:
.15
;
opacity
:
0
.15
;
}
}
&
:
:
before
{
&
:
:
before
{
...
@@ -160,11 +159,48 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
...
@@ -160,11 +159,48 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
z-index
:
-1
;
z-index
:
-1
;
width
:
toRpx
(
136
);
width
:
toRpx
(
136
);
height
:
toRpx
(
136
);
height
:
toRpx
(
136
);
opacity
:
.6
;
opacity
:
0
.6
;
background
:
linear-gradient
(
-44
.4deg
,
#94c2ff
00
0%
,
#5294ff
100%
);
background
:
linear-gradient
(
-44
.4deg
,
#94c2ff
00
0%
,
#5294ff
100%
);
filter
:
blur
(
toRpx
(
24
));
filter
:
blur
(
toRpx
(
24
));
}
}
}
.bg-title
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
toRpx
(
120
);
display
:
flex
;
align-items
:
center
;
padding-left
:
toRpx
(
48
);
color
:
#333333
;
font-size
:
toRpx
(
34
);
font-weight
:
500
;
&
:
:
after
{
content
:
''
;
position
:
absolute
;
left
:
0
;
top
:
0
;
z-index
:
-2
;
width
:
100%
;
height
:
100%
;
background
:
linear-gradient
(
0deg
,
#94c2ff
00
0%
,
#5294ff
100%
);
opacity
:
0
.15
;
}
&
:
:
before
{
content
:
''
;
position
:
absolute
;
left
:
toMinusRpx
(
20
);
top
:
toMinusRpx
(
28
);
z-index
:
-1
;
width
:
toRpx
(
136
);
height
:
toRpx
(
136
);
opacity
:
0
.6
;
background
:
linear-gradient
(
-44
.4deg
,
#94c2ff
00
0%
,
#5294ff
100%
);
filter
:
blur
(
toRpx
(
24
));
}
}
}
@keyframes
left-in
{
@keyframes
left-in
{
0
%
{
0
%
{
...
@@ -174,11 +210,11 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
...
@@ -174,11 +210,11 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
left
:
toRpx
(
240
);
left
:
toRpx
(
240
);
}
}
}
}
@keyframes
left-out
{
@keyframes
left-out
{
0
%
{
0
%
{
left
:
toRpx
(
240
);
left
:
toRpx
(
240
);
}
}
100
%
{
100
%
{
left
:
100%
;
left
:
100%
;
}
}
}
\ No newline at end of file
\ No newline at end of file
}
yarn.lock
View file @
0498f38
...
@@ -412,10 +412,10 @@ globule@^1.0.0:
...
@@ -412,10 +412,10 @@ globule@^1.0.0:
lodash "^4.17.21"
lodash "^4.17.21"
minimatch "~3.0.2"
minimatch "~3.0.2"
glsk-toolkit@^1.0.
0
:
glsk-toolkit@^1.0.
3
:
version "1.0.
0
"
version "1.0.
3
"
resolved "https://registry.npmmirror.com/glsk-toolkit/-/glsk-toolkit-1.0.
0.tgz#99c9c63a6923fcc1a227bb24df3d60509303c484
"
resolved "https://registry.npmmirror.com/glsk-toolkit/-/glsk-toolkit-1.0.
3.tgz#df102884275e01633f6d7a80efef8c59e7237277
"
integrity sha512-
1zM8hp9+UsDpuoUnE03Sd0nkivqqtk/Y8R5DTvSmaYle2ChW1n/5gMdWESChTiOnkaZuv2RyfvIynzLxOkd5yQ
==
integrity sha512-
h1rRmLIIFvVh/CNcF5KqAbhCLStPgUAKS4Jx2awAYnURS1l2e1MAhzk9OSbL4hKyn5Tvz6vdLhT5CwWQASu+HA
==
dependencies:
dependencies:
"@sentry/browser" "^7.101.1"
"@sentry/browser" "^7.101.1"
crypto-js "^4.2.0"
crypto-js "^4.2.0"
...
@@ -733,6 +733,11 @@ performance-now@^2.1.0:
...
@@ -733,6 +733,11 @@ performance-now@^2.1.0:
resolved "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
resolved "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==
integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==
pinyin.js@^2.0.0:
version "2.0.0"
resolved "https://registry.npmmirror.com/pinyin.js/-/pinyin.js-2.0.0.tgz#c61735a105fad9f8515010b5ce00114eb65f26cd"
integrity sha512-HpljMH6dDmySP+uoll8AkejePNKzoCiSq6rQAv6Fif9Kp3PZsEwrEt+vC9oBC0O/Nf7e6kQ6Lxfv+BQQ48jbjg==
pixelsmith@^2.3.0:
pixelsmith@^2.3.0:
version "2.6.0"
version "2.6.0"
resolved "https://registry.npmmirror.com/pixelsmith/-/pixelsmith-2.6.0.tgz#1da28bdabfc3c829b5905b9f27d906b39a48d119"
resolved "https://registry.npmmirror.com/pixelsmith/-/pixelsmith-2.6.0.tgz#1da28bdabfc3c829b5905b9f27d906b39a48d119"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment