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 a02ca549
authored
Aug 13, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
d177e970
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
components/Insurance/components/InsuranceTable.vue
env.js
pages/equity/index.vue
components/Insurance/components/InsuranceTable.vue
View file @
a02ca54
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
class=
"input"
class=
"input"
placeholder=
"输入金额"
placeholder=
"输入金额"
:disabled=
"!i.show || !i.checked"
:disabled=
"!i.show || !i.checked"
:placeholder-style=
"`color:${i.show?'#999':'#ccc'}`"
:placeholder-style=
"`color:${i.show
&& i.checked
?'#999':'#ccc'}`"
@
blur=
"handleInput"
@
blur=
"handleInput"
:data-index=
"index"
:data-index=
"index"
/>
/>
...
@@ -139,7 +139,7 @@ export default {
...
@@ -139,7 +139,7 @@ export default {
insuranceList
=
uni
.
getStorageSync
(
storageKey
)
insuranceList
=
uni
.
getStorageSync
(
storageKey
)
if
(
insuranceList
)
{
if
(
insuranceList
)
{
insuranceList
.
map
(
e
=>
e
.
cost
=
''
)
insuranceList
.
map
(
e
=>
e
.
cost
=
''
)
this
.
insuranceList
=
insuranceList
this
.
insuranceList
=
JSON
.
parse
(
JSON
.
stringify
(
insuranceList
))
this
.
flag
=
true
this
.
flag
=
true
}
}
this
.
getMerchantInsuranceList
()
this
.
getMerchantInsuranceList
()
...
@@ -228,9 +228,9 @@ export default {
...
@@ -228,9 +228,9 @@ export default {
return
acc
;
return
acc
;
},
[])
},
[])
let
arr
=
[]
let
arr
=
[]
deduplicatedList
.
map
(
e
=>
{
deduplicatedList
.
map
(
e
=>
{
let
index
=
list
.
findIndex
(
item
=>
String
(
item
.
id
)
===
String
(
e
.
id
))
let
index
=
list
.
findIndex
(
item
=>
String
(
item
.
id
)
===
String
(
e
.
id
))
if
(
index
!=
-
1
)
arr
.
push
(
e
)
if
(
index
!=
-
1
)
arr
.
push
(
e
)
})
})
this
.
setInsuranceList
(
storageKey
,
arr
)
this
.
setInsuranceList
(
storageKey
,
arr
)
}
}
...
@@ -240,7 +240,8 @@ export default {
...
@@ -240,7 +240,8 @@ export default {
},
},
setInsuranceList
(
storageKey
,
value
)
{
setInsuranceList
(
storageKey
,
value
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
insuranceList
=
value
this
.
insuranceList
=
JSON
.
parse
(
JSON
.
stringify
(
value
))
value
.
map
(
e
=>
e
.
checked
=
true
)
uni
.
setStorageSync
(
storageKey
,
value
);
uni
.
setStorageSync
(
storageKey
,
value
);
this
.
flag
=
true
this
.
flag
=
true
},
},
...
@@ -362,6 +363,7 @@ export default {
...
@@ -362,6 +363,7 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
font-weight
:
700
;
font-weight
:
700
;
transition
:
all
0.25s
;
transition
:
all
0.25s
;
flex-shrink
:
0
;
}
}
.checked
{
.checked
{
background
:
#2c66f7
;
background
:
#2c66f7
;
...
...
env.js
View file @
a02ca54
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
index
=
1
;
const
index
=
4
;
/**
/**
*
*
0本地
0本地
...
...
pages/equity/index.vue
View file @
a02ca54
...
@@ -211,16 +211,16 @@ export default {
...
@@ -211,16 +211,16 @@ export default {
this
.
moduleList
[
index
].
showAlt
=
true
;
this
.
moduleList
[
index
].
showAlt
=
true
;
},
},
async
start
()
{
async
start
()
{
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
//
const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO"
//
"android.permission.RECORD_AUDIO"
);
//
);
if
(
result
!==
1
)
{
//
if (result !== 1) {
uni
.
showToast
({
//
uni.showToast({
title
:
"为了记录语音通话,请打开录音权限"
,
//
title: "为了记录语音通话,请打开录音权限",
icon
:
"none"
,
//
icon: "none",
});
//
});
return
;
//
return;
}
//
}
this
.
getSoure
();
this
.
getSoure
();
this
.
clearHistory
();
this
.
clearHistory
();
this
.
$refs
.
home
.
startAudio
();
this
.
$refs
.
home
.
startAudio
();
...
...
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