Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
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
new-sing
h5-base
Commits
7452c138
Commit
7452c138
authored
Sep 16, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权后置
parent
e2346e69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
spcShop.vue
src/components/buy/spcShop.vue
+8
-3
index.vue
src/components/newLesson/index.vue
+0
-1
bottomTab.vue
src/components/public/bottomTab.vue
+1
-0
index.js
src/router/index.js
+2
-1
No files found.
src/components/buy/spcShop.vue
View file @
7452c138
...
@@ -104,6 +104,11 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
...
@@ -104,6 +104,11 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
bindMobileApi
(
json
).
then
(
data
=>
{
bindMobileApi
(
json
).
then
(
data
=>
{
getUserDetailApi
().
then
(
res
=>
{
getUserDetailApi
().
then
(
res
=>
{
localStorage
.
setItem
(
'userDesc'
,
JSON
.
stringify
(
res
));
localStorage
.
setItem
(
'userDesc'
,
JSON
.
stringify
(
res
));
this
.
$sa
.
track
(
'buttonClick'
,{
tabTitle
:
'商品'
,
moduleTitle
:
'商品领取'
,
buttonName
:
'立即免费领取'
});
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"buy"
,
name
:
"buy"
,
query
:
query
query
:
query
...
@@ -180,7 +185,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
...
@@ -180,7 +185,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
background: white;
background: white;
// top: -42*@toVw;
// top: -42*@toVw;
padding: 20 * @toVw;
padding: 20 * @toVw;
border-radius:20*@toVw;
border-radius:20*@toVw;
.tip{font-size: 12*@toVw;color: #FF7875;position: absolute;top: 74 * @toVw;left: 47 * @toVw;}
.tip{font-size: 12*@toVw;color: #FF7875;position: absolute;top: 74 * @toVw;left: 47 * @toVw;}
.input-block{
.input-block{
width: 273*@toVw;height: 47*@toVw;
width: 273*@toVw;height: 47*@toVw;
...
@@ -205,7 +210,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
...
@@ -205,7 +210,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
height: 25*@toVw;
height: 25*@toVw;
line-height: 25*@toVw;
line-height: 25*@toVw;
font-size: 12*@toVw;
font-size: 12*@toVw;
}
}
input{
input{
padding: 10 * @toVw 0;
padding: 10 * @toVw 0;
...
@@ -250,7 +255,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
...
@@ -250,7 +255,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
.btn-block{
.btn-block{
text-align: center;margin-top: 27*@toVw;
text-align: center;margin-top: 27*@toVw;
.btn{
.btn{
width: 273*@toVw;height: 47*@toVw;background:#FE6C3D;color: white;line-height:47*@toVw; border-radius: 23*@toVw;
width: 273*@toVw;height: 47*@toVw;background:#FE6C3D;color: white;line-height:47*@toVw; border-radius: 23*@toVw;
}
}
}
}
}
}
...
...
src/components/newLesson/index.vue
View file @
7452c138
...
@@ -337,7 +337,6 @@
...
@@ -337,7 +337,6 @@
age
:
this
.
nowLesson
.
age
age
:
this
.
nowLesson
.
age
};
};
}
}
console
.
log
(
this
.
nowLesson
,
87654
)
break
;
break
;
case
3
:
case
3
:
this
.
$sa
.
track
(
"learnPart"
,
{
this
.
$sa
.
track
(
"learnPart"
,
{
...
...
src/components/public/bottomTab.vue
View file @
7452c138
...
@@ -37,6 +37,7 @@ export default {
...
@@ -37,6 +37,7 @@ export default {
// debugger
// debugger
let
userCourse2
=
JSON
.
parse
(
localStorage
.
getItem
(
"userCourse"
));
let
userCourse2
=
JSON
.
parse
(
localStorage
.
getItem
(
"userCourse"
));
this
.
ownDetail
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
));
this
.
ownDetail
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
));
if
(
userCourse2
){
if
(
userCourse2
){
this
.
userCourse2
=
userCourse2
this
.
userCourse2
=
userCourse2
}
}
...
...
src/router/index.js
View file @
7452c138
...
@@ -620,7 +620,8 @@ router.beforeEach((to, from, next) => {
...
@@ -620,7 +620,8 @@ router.beforeEach((to, from, next) => {
}
}
// extensionV1Shop
// extensionV1Shop
// extensionV1
// extensionV1
if
(
to
.
name
===
'author'
||
to
.
name
===
'bindMobile'
||
to
.
name
===
'noWechat'
||
to
.
name
===
'inspectorActivit'
||
to
.
name
===
'passShop'
||
to
.
name
===
'ybIndex'
)
{
// mpShop
if
(
to
.
name
===
'spcShop'
||
to
.
name
===
'mpShop'
||
to
.
name
===
'extensionV1'
||
to
.
name
===
'extensionV1Shop'
||
to
.
name
===
'author'
||
to
.
name
===
'bindMobile'
||
to
.
name
===
'noWechat'
||
to
.
name
===
'inspectorActivit'
||
to
.
name
===
'passShop'
||
to
.
name
===
'ybIndex'
)
{
// 无需登录的页面
// 无需登录的页面
console
.
log
(
488
)
console
.
log
(
488
)
next
()
next
()
...
...
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