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
835b7b8d
Commit
835b7b8d
authored
Aug 20, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-v1.1.0' into test
parents
0b45c468
2f353bf6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
.env.js
.env.js
+1
-1
answer.vue
src/pages/learn/answer.vue
+6
-6
boundQuestions.vue
src/pages/learn/boundQuestions.vue
+0
-1
No files found.
.env.js
View file @
835b7b8d
;(
function
()
{
let
NODE_ENV
=
'prod'
// dev:开发环境 | test:测试环境 | prod:生产环境
let
ENV_VAR
=
null
let
VERSION
=
'v1.
0.3
'
let
VERSION
=
'v1.
1.0
'
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
if
(
NODE_ENV
===
'dev'
)
{
ENV_VAR
=
require
(
'./.env.dev.js'
)
...
...
src/pages/learn/answer.vue
View file @
835b7b8d
...
...
@@ -225,15 +225,15 @@ export default {
},
onShow
()
{
// 从后台进入重新计算倒计时
if
(
this
.
source
===
3
&&
this
.
beginTime
)
{
const
timestamp
=
Utils
.
diffTime
(
this
.
beginTime
,
new
Date
())
this
.
timestamp
=
this
.
currentTime
-
timestamp
this
.
$u
.
vuex
(
'beginTime'
,
''
)
}
//
if (this.source === 3 && this.beginTime) {
//
const timestamp = Utils.diffTime(this.beginTime, new Date())
//
this.timestamp = this.currentTime - timestamp
//
this.$u.vuex('beginTime', '')
//
}
},
onHide
()
{
// 记录进入后台时间
if
(
this
.
source
===
3
)
this
.
$u
.
vuex
(
'beginTime'
,
new
Date
())
//
if (this.source === 3) this.$u.vuex('beginTime', new Date())
},
onLoad
(
e
)
{
if
(
e
?.
experience
)
this
.
experience
=
JSON
.
parse
(
e
.
experience
)
// 体验资格
...
...
src/pages/learn/boundQuestions.vue
View file @
835b7b8d
...
...
@@ -102,7 +102,6 @@ export default {
getApp
().
track
(
'scanCode-boundQuestionsPage'
,
trackParams
)
wx
.
scanCode
({
onlyFromCamera
:
true
,
success
:
(
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
result
&&
res
.
result
.
length
==
14
+
6
)
{
...
...
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