Commit 361aac4d authored by chenyishuai@singsingenglish.com's avatar chenyishuai@singsingenglish.com

626

parents a17e39b8 be484649
......@@ -365,11 +365,9 @@ export default {
},
tabChange(index) {
console.log(index);
if(this.$refs.swipeRef){
console.log(this.$refs.swipeRef)
}
console.log(this.$refs.swipeRef);
this.tabIndex = index;
// this.$refs.swipeRef.swipeTo(index+1)
// if(index==2){
// setTimeout(() => {
// this.$refs.scrollItem._initScroll()
......@@ -473,6 +471,7 @@ export default {
text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
color: white;
font-size: 15 * @toVw;
transition: opacity 0.5s;
img {
width: 86 * @toVw;
position: absolute;
......
......@@ -6,10 +6,10 @@ import router from './router'
import store from './store'
import MintUI from 'mint-ui'
import VueClipboard from 'vue-clipboard2'
import sa from'sa-sdk-javascript';
import sa from 'sa-sdk-javascript';
import 'mint-ui/lib/style.css'
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 Vant from 'vant';
Vue.config.productionTip = false;
......@@ -19,11 +19,11 @@ Vue.prototype.$sa.init({
show_log: false,// 打印console,自己配置,可以看到自己是否踩点成功,以及
heatmap: {
//是否开启点击图,默认 default 表示开启,自动采集 $WebClick 事件,可以设置 'not_collect' 表示关闭
clickmap:'default',
clickmap: 'default',
//是否开启触达注意力图,默认 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.use(MintUI);
......@@ -40,21 +40,21 @@ Vue.component('scroll', scroll);
// Vue.prototype.$throw = (error)=> errorHandler(error,this);
/* eslint-disable no-new */
if(process.env.NODE_ENV != 'production'){
var vConsole = new VConsole();
}
// if(process.env.NODE_ENV != 'production'){
// var vConsole = new VConsole();
// }
router.beforeEach((to, from, next) => {
next()
router.beforeEach((to, from, next) => {
next()
// chrome
console.log(document.body.hasOwnProperty('scrollTop'))
if (document.body.scrollTop!==null){
console.log(document.body.hasOwnProperty('scrollTop'))
if (document.body.scrollTop !== null) {
document.body.scrollTop = 0
}
}
// firefox
if (document.documentElement!==null){
if (document.documentElement !== null) {
document.documentElement.scrollTop = 0
}
}
// // safari
// if (window.pageYOffset !== undefined){
// window.pageYOffset = 0
......@@ -68,7 +68,7 @@ new Vue({
template: '<App/>'
});
if (!Array.prototype.find) {
Array.prototype.find = function(predicate) {
Array.prototype.find = function (predicate) {
'use strict';
if (this == null) {
throw new TypeError('Array.prototype.find called on null or undefined');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment