Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
808ead09
Commit
808ead09
authored
Jul 30, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-v1.0.0' of
https://git.banshouhui.com/wuzhenzhe/study
into dev-v1.0.0
parents
64eb24e7
037239af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
+10
-8
index.vue
src/components/answer-sheet/index.vue
+1
-1
index.vue
src/components/swiper-limited-load/index.vue
+1
-1
answer.vue
src/pages/learn/answer.vue
+2
-1
index.vue
src/pages/search/index.vue
+1
-0
u-search.vue
src/uview-ui/components/u-search/u-search.vue
+5
-5
No files found.
src/components/answer-sheet/index.vue
View file @
808ead09
...
@@ -186,7 +186,7 @@ export default {
...
@@ -186,7 +186,7 @@ export default {
}
}
.btn
{
.btn
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
5
0rpx
;
margin-top
:
20
0rpx
;
.confirm
{
.confirm
{
width
:
400rpx
;
width
:
400rpx
;
height
:
100rpx
;
height
:
100rpx
;
...
...
src/components/swiper-limited-load/index.vue
View file @
808ead09
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<swiper-item
v-for=
"(item, i) in swiperList"
:key=
"i"
>
<swiper-item
v-for=
"(item, i) in swiperList"
:key=
"i"
>
<view
class=
"u-flex subject"
>
<view
class=
"u-flex subject"
>
<view
class=
"title"
v-if=
"item.title"
><text
class=
"title-type"
>
{{
titleType
[
item
.
type
-
1
]
}}
</text>
{{
item
.
title
}}
</view>
<view
class=
"title"
v-if=
"item.title"
><text
class=
"title-type"
>
{{
titleType
[
item
.
type
-
1
]
}}
</text>
{{
item
.
title
}}
</view>
<view
class=
"content"
>
<view
class=
"content"
v-if=
"item.answerList"
>
<answer-sheet
<answer-sheet
ref=
"answerSheet"
ref=
"answerSheet"
:answerList=
"item.answerList"
:answerList=
"item.answerList"
...
...
src/pages/learn/answer.vue
View file @
808ead09
...
@@ -226,11 +226,12 @@ export default {
...
@@ -226,11 +226,12 @@ export default {
if
(
this
.
source
===
3
&&
this
.
beginTime
)
{
if
(
this
.
source
===
3
&&
this
.
beginTime
)
{
const
timestamp
=
Utils
.
diffTime
(
this
.
beginTime
,
new
Date
())
const
timestamp
=
Utils
.
diffTime
(
this
.
beginTime
,
new
Date
())
this
.
timestamp
=
this
.
currentTime
-
timestamp
this
.
timestamp
=
this
.
currentTime
-
timestamp
this
.
$u
.
vuex
(
'beginTime'
,
''
)
}
}
},
},
onHide
()
{
onHide
()
{
// 记录进入后台时间
// 记录进入后台时间
this
.
$u
.
vuex
(
'beginTime'
,
new
Date
())
if
(
this
.
source
===
3
)
this
.
$u
.
vuex
(
'beginTime'
,
new
Date
())
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
?.
experience
)
this
.
experience
=
JSON
.
parse
(
e
.
experience
)
// 体验资格
if
(
e
?.
experience
)
this
.
experience
=
JSON
.
parse
(
e
.
experience
)
// 体验资格
...
...
src/pages/search/index.vue
View file @
808ead09
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
bg-color=
"#fff"
bg-color=
"#fff"
v-model=
"keyword"
v-model=
"keyword"
@
custom=
"search"
@
custom=
"search"
@
search=
"search"
></u-search>
></u-search>
</view>
</view>
...
...
src/uview-ui/components/u-search/u-search.vue
View file @
808ead09
...
@@ -269,11 +269,11 @@ export default {
...
@@ -269,11 +269,11 @@ export default {
blur
()
{
blur
()
{
// 最开始使用的是监听图标@touchstart事件,自从hx2.8.4后,此方法在微信小程序出错
// 最开始使用的是监听图标@touchstart事件,自从hx2.8.4后,此方法在微信小程序出错
// 这里改为监听点击事件,手点击清除图标时,同时也发生了@blur事件,导致图标消失而无法点击,这里做一个延时
// 这里改为监听点击事件,手点击清除图标时,同时也发生了@blur事件,导致图标消失而无法点击,这里做一个延时
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
focused
=
false
;
//
this.focused = false;
},
100
)
//
}, 100)
this
.
show
=
false
;
//
this.show = false;
this
.
$emit
(
'blur'
,
this
.
keyword
);
//
this.$emit('blur', this.keyword);
},
},
// 点击搜索框,只有disabled=true时才发出事件,因为禁止了输入,意味着是想跳转真正的搜索页
// 点击搜索框,只有disabled=true时才发出事件,因为禁止了输入,意味着是想跳转真正的搜索页
clickHandler
()
{
clickHandler
()
{
...
...
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