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
a301ed28
Commit
a301ed28
authored
Oct 22, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 领取奖励之后提示
parent
a0c7c728
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
.env.js
.env.js
+1
-1
results.vue
src/pages/advertisement/results.vue
+14
-4
No files found.
.env.js
View file @
a301ed28
;(
function
()
{
let
NODE_ENV
=
'
test
'
// dev:开发环境 | test:测试环境 | prod:生产环境
let
NODE_ENV
=
'
prod
'
// dev:开发环境 | test:测试环境 | prod:生产环境
let
ENV_VAR
=
null
let
VERSION
=
'v1.3.1'
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
...
...
src/pages/advertisement/results.vue
View file @
a301ed28
...
...
@@ -36,6 +36,9 @@
领取10天体验卡
</u-button>
</view>
<view>
<u-toast
ref=
"uToast"
/>
</view>
</view>
</
template
>
...
...
@@ -119,10 +122,17 @@ export default {
.
then
((
res
)
=>
{
// this.loading = false
// 切换题库
this
.
setPageInfo
(
this
.
selectedData
)
this
.
$u
.
vuex
(
'searchHistory'
,
[])
this
.
$u
.
route
({
type
:
'back'
,
this
.
$refs
.
uToast
.
show
({
title
:
'您已领取奖励,获得题库10天体验卡'
,
type
:
'success'
,
duration
:
1500
,
callback
:
()
=>
{
this
.
setPageInfo
(
this
.
selectedData
)
this
.
$u
.
vuex
(
'searchHistory'
,
[])
this
.
$u
.
route
({
type
:
'back'
,
})
},
})
})
.
catch
((
err
)
=>
{
...
...
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