Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
2ce6b814
Commit
2ce6b814
authored
Jan 11, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
7e495175
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
index.vue
src/pages/index/index.vue
+3
-2
word.vue
src/pages/word/word.vue
+4
-3
index.js
src/utils/index.js
+0
-1
No files found.
src/pages/index/index.vue
View file @
2ce6b814
...
...
@@ -114,7 +114,7 @@
color: #4C50E7;"
@
click=
"jumpGarden(item.Id)"
>
查看更多
</text>
</view>
<view
class=
"gardenCon"
v-for=
"(item1,index1) in item.List"
:key=
"index1"
id=
"img"
>
<image
:src=
"item1.Img"
mode=
"aspectFill"
<image
:src=
"item1.Img"
mode=
"aspectFill"
:id=
"'img'+index1"
style=
"width: 100%;height:100%;border-radius: 24rpx 24rpx 0 0;"
></image>
<view
class=
"gardenTextBox"
:style=
"
{'background':`linear-gradient(to bottom,${item1.bgcolor},${item1.bgcolor1} , ${item1.bgcolor2})` }">
<view
class=
"gardenTitle one_line"
>
...
...
@@ -207,7 +207,8 @@
})
},
async
getColor
(
src
,
index
,
y
)
{
let
res
=
await
getImageColor
(
'myCanvas'
,
'img'
,
src
)
let
res
=
await
getImageColor
(
'myCanvas'
,
'img'
+
index
,
src
)
console
.
log
(
index
,
res
)
let
obj
=
{}
obj
.
formatres
=
`rgba(
${
res
.
r
}
,
${
res
.
g
}
,
${
res
.
b
}
,0.01)`
obj
.
formatres1
=
`rgba(
${
res
.
r
}
,
${
res
.
g
}
,
${
res
.
b
}
,0.6)`
...
...
src/pages/word/word.vue
View file @
2ce6b814
...
...
@@ -114,13 +114,14 @@
if
(
options
.
ChapterId
&&
options
.
CourseId
&&
options
.
PrevChapterId
){
this
.
getData
()
}
const
userInfo
=
uni
.
getStorageSync
(
'user
i
nfo'
);
this
.
readMsg
.
Stu_Account_Id
=
userInfo
.
Account
Id
??
0
const
userInfo
=
uni
.
getStorageSync
(
'user
I
nfo'
);
this
.
readMsg
.
Stu_Account_Id
=
userInfo
.
Id
??
0
this
.
readMsg
.
CourseId
=
options
.
CourseId
??
0
this
.
readMsg
.
ChapterId
=
options
.
ChapterId
??
0
this
.
reviewMsg
.
Stu_Account_Id
=
userInfo
.
Account
Id
??
0
this
.
reviewMsg
.
Stu_Account_Id
=
userInfo
.
Id
??
0
this
.
reviewMsg
.
CourseId
=
options
.
CourseId
??
0
this
.
reviewMsg
.
ChapterId
=
options
.
ChapterId
??
0
console
.
log
(
124
,
userInfo
.
Id
)
},
}
</
script
>
...
...
src/utils/index.js
View file @
2ce6b814
...
...
@@ -222,7 +222,6 @@ export let isLogin = () => {
}
}
export
let
getImageColor
=
async
(
canvasID
,
imgID
,
imgSrc
)
=>
{
let
res
=
{
r
:
1
,
g
:
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment