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
361aac4d
Commit
361aac4d
authored
Jun 26, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Plain Diff
626
parents
a17e39b8
be484649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
starRank.vue
src/components/star/starRank.vue
+3
-4
main.js
src/main.js
+16
-16
No files found.
src/components/star/starRank.vue
View file @
361aac4d
...
@@ -365,11 +365,9 @@ export default {
...
@@ -365,11 +365,9 @@ export default {
},
},
tabChange
(
index
)
{
tabChange
(
index
)
{
console
.
log
(
index
);
console
.
log
(
index
);
if
(
this
.
$refs
.
swipeRef
){
console
.
log
(
this
.
$refs
.
swipeRef
);
console
.
log
(
this
.
$refs
.
swipeRef
)
}
this
.
tabIndex
=
index
;
this
.
tabIndex
=
index
;
// this.$refs.swipeRef.swipeTo(index+1)
// if(index==2){
// if(index==2){
// setTimeout(() => {
// setTimeout(() => {
// this.$refs.scrollItem._initScroll()
// this.$refs.scrollItem._initScroll()
...
@@ -473,6 +471,7 @@ export default {
...
@@ -473,6 +471,7 @@ export default {
text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
color: white;
color: white;
font-size: 15 * @toVw;
font-size: 15 * @toVw;
transition: opacity 0.5s;
img {
img {
width: 86 * @toVw;
width: 86 * @toVw;
position: absolute;
position: absolute;
...
...
src/main.js
View file @
361aac4d
...
@@ -6,10 +6,10 @@ import router from './router'
...
@@ -6,10 +6,10 @@ import router from './router'
import
store
from
'./store'
import
store
from
'./store'
import
MintUI
from
'mint-ui'
import
MintUI
from
'mint-ui'
import
VueClipboard
from
'vue-clipboard2'
import
VueClipboard
from
'vue-clipboard2'
import
sa
from
'sa-sdk-javascript'
;
import
sa
from
'sa-sdk-javascript'
;
import
'mint-ui/lib/style.css'
import
'mint-ui/lib/style.css'
import
scroll
from
"./base/scroll/scroll"
import
scroll
from
"./base/scroll/scroll"
import
{
Popup
,
Lazyload
,
Button
,
Dialog
,
Toast
}
from
'vant'
;
import
{
Popup
,
Lazyload
,
Button
,
Dialog
,
Toast
}
from
'vant'
;
// import VConsole from "VConsole"
// import VConsole from "VConsole"
// import Vant from 'vant';
// import Vant from 'vant';
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
...
@@ -19,11 +19,11 @@ Vue.prototype.$sa.init({
...
@@ -19,11 +19,11 @@ Vue.prototype.$sa.init({
show_log
:
false
,
// 打印console,自己配置,可以看到自己是否踩点成功,以及
show_log
:
false
,
// 打印console,自己配置,可以看到自己是否踩点成功,以及
heatmap
:
{
heatmap
:
{
//是否开启点击图,默认 default 表示开启,自动采集 $WebClick 事件,可以设置 'not_collect' 表示关闭
//是否开启点击图,默认 default 表示开启,自动采集 $WebClick 事件,可以设置 'not_collect' 表示关闭
clickmap
:
'default'
,
clickmap
:
'default'
,
//是否开启触达注意力图,默认 default 表示开启,自动采集 $WebStay 事件,可以设置 'not_collect' 表示关闭
//是否开启触达注意力图,默认 default 表示开启,自动采集 $WebStay 事件,可以设置 'not_collect' 表示关闭
scroll_notice_map
:
'default'
,
scroll_notice_map
:
'default'
,
},
},
is_track_single_page
:
true
is_track_single_page
:
true
});
});
Vue
.
prototype
.
$sa
.
quick
(
'autoTrack'
)
Vue
.
prototype
.
$sa
.
quick
(
'autoTrack'
)
Vue
.
use
(
MintUI
);
Vue
.
use
(
MintUI
);
...
@@ -40,21 +40,21 @@ Vue.component('scroll', scroll);
...
@@ -40,21 +40,21 @@ Vue.component('scroll', scroll);
// Vue.prototype.$throw = (error)=> errorHandler(error,this);
// Vue.prototype.$throw = (error)=> errorHandler(error,this);
/* eslint-disable no-new */
/* eslint-disable no-new */
if
(
process
.
env
.
NODE_ENV
!=
'production'
){
//
if(process.env.NODE_ENV != 'production'){
var
vConsole
=
new
VConsole
();
//
var vConsole = new VConsole();
}
//
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
next
()
next
()
// chrome
// chrome
console
.
log
(
document
.
body
.
hasOwnProperty
(
'scrollTop'
))
console
.
log
(
document
.
body
.
hasOwnProperty
(
'scrollTop'
))
if
(
document
.
body
.
scrollTop
!==
null
)
{
if
(
document
.
body
.
scrollTop
!==
null
)
{
document
.
body
.
scrollTop
=
0
document
.
body
.
scrollTop
=
0
}
}
// firefox
// firefox
if
(
document
.
documentElement
!==
null
)
{
if
(
document
.
documentElement
!==
null
)
{
document
.
documentElement
.
scrollTop
=
0
document
.
documentElement
.
scrollTop
=
0
}
}
// // safari
// // safari
// if (window.pageYOffset !== undefined){
// if (window.pageYOffset !== undefined){
// window.pageYOffset = 0
// window.pageYOffset = 0
...
@@ -68,7 +68,7 @@ new Vue({
...
@@ -68,7 +68,7 @@ new Vue({
template
:
'<App/>'
template
:
'<App/>'
});
});
if
(
!
Array
.
prototype
.
find
)
{
if
(
!
Array
.
prototype
.
find
)
{
Array
.
prototype
.
find
=
function
(
predicate
)
{
Array
.
prototype
.
find
=
function
(
predicate
)
{
'use strict'
;
'use strict'
;
if
(
this
==
null
)
{
if
(
this
==
null
)
{
throw
new
TypeError
(
'Array.prototype.find called on null or undefined'
);
throw
new
TypeError
(
'Array.prototype.find called on null or undefined'
);
...
...
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