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 0616e6a5
authored
Oct 14, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 更换请求连接
1 parent
e872580d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
19 deletions
env.js
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/FormCell.vue
pages/evaluationForm/components/SelectCity.vue
pages/evaluationForm/evaluationFormDetails.vue
pages/evaluationForm/signInfo.vue
env.js
View file @
0616e6a
...
@@ -104,27 +104,33 @@ const djSecretKey = {
...
@@ -104,27 +104,33 @@ const djSecretKey = {
const
signSecretKey
=
{
const
signSecretKey
=
{
ip
:
{
ip
:
{
appKey
:
'App_PromoteBusiness'
,
appKey
:
'App_PromoteBusiness'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
,
carBasrUrl
:
'http://qcdidicb.glsx.com.cn/router'
},
},
dev
:
{
dev
:
{
appKey
:
'App_PromoteBusiness'
,
appKey
:
'App_PromoteBusiness'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
,
carBasrUrl
:
'http://qcdidicb.glsx.com.cn/router'
},
},
uat
:
{
uat
:
{
appKey
:
'App_PromoteBusiness'
,
appKey
:
'App_PromoteBusiness'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
,
carBasrUrl
:
'http://qcdidicb.glsx.com.cn/router'
},
},
beta
:
{
beta
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
,
carBasrUrl
:
'http://didicb.glsx.com.cn/router'
},
},
prod
:
{
prod
:
{
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
,
carBasrUrl
:
'http://didicb.glsx.com.cn/router'
},
},
pet
:
{
pet
:
{
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
,
carBasrUrl
:
'http://didicb.glsx.com.cn/router'
}
}
}[
target
[
index
]]
}[
target
[
index
]]
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
0616e6a
...
@@ -150,6 +150,7 @@ import { throttle } from 'lodash'
...
@@ -150,6 +150,7 @@ import { throttle } from 'lodash'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
import
{
sign
,
md532
,
md516
}
from
'utils/common'
import
{
sign
,
md532
,
md516
}
from
'utils/common'
import
{
signSecretKey
}
from
'@/env.js'
export
default
{
export
default
{
name
:
'AddEvaluationFrom'
,
name
:
'AddEvaluationFrom'
,
components
:
{
components
:
{
...
@@ -633,7 +634,7 @@ export default {
...
@@ -633,7 +634,7 @@ export default {
const
signature
=
sign
(
params
,
secret
)
const
signature
=
sign
(
params
,
secret
)
uni
.
request
({
uni
.
request
({
url
:
'http://qcdidicb.glsx.com.cn/router
?method=glsx.accounts.base.car.brand.complete'
,
url
:
signSecretKey
.
carBasrUrl
+
'
?method=glsx.accounts.base.car.brand.complete'
,
method
:
'GET'
,
method
:
'GET'
,
dataType
:
'json'
,
dataType
:
'json'
,
data
:
{
data
:
{
...
@@ -675,7 +676,7 @@ export default {
...
@@ -675,7 +676,7 @@ export default {
// 优化请求方式,避免重复请求
// 优化请求方式,避免重复请求
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
request
({
uni
.
request
({
url
:
'http://qcdidicb.glsx.com.cn/router
?method=glsx.accounts.base.car.types'
,
url
:
signSecretKey
.
carBasrUrl
+
'
?method=glsx.accounts.base.car.types'
,
method
:
'GET'
,
method
:
'GET'
,
dataType
:
'json'
,
dataType
:
'json'
,
data
:
{
data
:
{
...
...
pages/evaluationForm/components/FormCell.vue
View file @
0616e6a
...
@@ -187,13 +187,16 @@ export default {
...
@@ -187,13 +187,16 @@ export default {
}
}
if
(
field
.
key
===
'depositPrice'
)
{
if
(
field
.
key
===
'depositPrice'
)
{
// 过滤掉所有非数字字符
// 过滤掉所有非数字字符
const
filteredValue
=
value
.
replace
(
/
[^
1-9
]
/g
,
''
)
const
filteredValue
=
value
.
replace
(
/
[^\d]
/g
,
''
)
if
(
filteredValue
!==
value
)
{
console
.
log
(
'filteredValue'
,
filteredValue
)
value
=
filteredValue
// 确保是正整数(大于0)
const
positiveIntValue
=
filteredValue
&&
parseInt
(
filteredValue
,
10
)
>
0
?
filteredValue
:
''
console
.
log
(
'positiveIntValue'
,
positiveIntValue
)
if
(
positiveIntValue
!==
value
)
{
if
(
field
.
targetObj
)
{
if
(
field
.
targetObj
)
{
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
v
alue
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
positiveIntV
alue
}
else
{
}
else
{
this
.
formData
[
field
.
targetKey
]
=
v
alue
this
.
formData
[
field
.
targetKey
]
=
positiveIntV
alue
}
}
this
.
$emit
(
'formDataChange'
,
this
.
formData
)
this
.
$emit
(
'formDataChange'
,
this
.
formData
)
return
return
...
...
pages/evaluationForm/components/SelectCity.vue
View file @
0616e6a
...
@@ -114,6 +114,11 @@ export default {
...
@@ -114,6 +114,11 @@ export default {
let
{
status
,
districts
}
=
JSON
.
parse
(
data
.
data
)
let
{
status
,
districts
}
=
JSON
.
parse
(
data
.
data
)
if
(
status
===
0
&&
districts
)
{
if
(
status
===
0
&&
districts
)
{
that
.
provinceData
=
districts
[
0
].
districts
that
.
provinceData
=
districts
[
0
].
districts
const
chongqingProvince
=
that
.
provinceData
.
find
(
province
=>
province
.
code
===
'500000'
)
if
(
chongqingProvince
&&
chongqingProvince
.
districts
&&
chongqingProvince
.
districts
.
length
>
1
)
{
chongqingProvince
.
districts
=
[
chongqingProvince
.
districts
[
0
]]
}
console
.
log
(
'provinceData'
,
that
.
provinceData
)
console
.
log
(
'provinceData'
,
that
.
provinceData
)
that
.
updateSelectionWithLoadedData
()
that
.
updateSelectionWithLoadedData
()
}
else
{
}
else
{
...
...
pages/evaluationForm/evaluationFormDetails.vue
View file @
0616e6a
...
@@ -697,11 +697,6 @@ export default {
...
@@ -697,11 +697,6 @@ export default {
const
tabExists
=
this
.
tabs
.
some
(
tab
=>
tab
.
key
===
key
)
const
tabExists
=
this
.
tabs
.
some
(
tab
=>
tab
.
key
===
key
)
if
(
tabExists
)
{
if
(
tabExists
)
{
this
.
activeTabKey
=
key
this
.
activeTabKey
=
key
// 滚动到顶部
uni
.
pageScrollTo
({
scrollTop
:
0
,
duration
:
0
})
}
}
},
},
getFieldValue
(
obj
,
path
)
{
getFieldValue
(
obj
,
path
)
{
...
...
pages/evaluationForm/signInfo.vue
View file @
0616e6a
...
@@ -613,8 +613,9 @@ export default {
...
@@ -613,8 +613,9 @@ export default {
cell
:
'元'
,
cell
:
'元'
,
inputType
:
'number'
,
inputType
:
'number'
,
disabled
:
false
,
disabled
:
false
,
maxlength
:
7
,
isCell
:
true
,
isCell
:
true
,
pattern
:
'^
\\d*$'
// 只允许数字输入
pattern
:
'^
[1-9]\\d*$'
},
},
{
{
key
:
'finalPrice'
,
key
:
'finalPrice'
,
...
...
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