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

626

parents a17e39b8 be484649
...@@ -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;
......
...@@ -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');
......
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