Merge branch 'feature/registerYas' of git.yoho.cn:fe/yohobuywap-node into feature/registerYas
Showing
14 changed files
with
6 additions
and
101 deletions
doraemon/middleware/vue.js
deleted
100644 → 0
doraemon/views/vue/index.hbs
deleted
100644 → 0
public/js/activity/demo.vue.page.js
deleted
100644 → 0
1 | -require('../vue-render')(Vue => { | ||
2 | - //注册子组件 | ||
3 | - require('../vue-component/app-child')(Vue); | ||
4 | - //注册父组件 | ||
5 | - Vue.component('app', { | ||
6 | - template: require('activity/demo/index.html'), | ||
7 | - data() { | ||
8 | - return { | ||
9 | - msg: 'app' | ||
10 | - } | ||
11 | - }, | ||
12 | - methods: { | ||
13 | - click() { | ||
14 | - alert(this.msg) | ||
15 | - } | ||
16 | - } | ||
17 | - }); | ||
18 | -}) |
@@ -127,6 +127,8 @@ var singleDay = { | @@ -127,6 +127,8 @@ var singleDay = { | ||
127 | $swiperTab.on('click', function() { | 127 | $swiperTab.on('click', function() { |
128 | var index = $(this).index(); | 128 | var index = $(this).index(); |
129 | 129 | ||
130 | + $('body').scrollTop(0); | ||
131 | + | ||
130 | $swiperTab.removeClass('active').eq(index).addClass('active'); | 132 | $swiperTab.removeClass('active').eq(index).addClass('active'); |
131 | 133 | ||
132 | if (self.$productTab.eq(index).find('li').length > 0) { | 134 | if (self.$productTab.eq(index).find('li').length > 0) { |
@@ -242,6 +242,7 @@ seckillObj = { | @@ -242,6 +242,7 @@ seckillObj = { | ||
242 | data = $.extend(data, {isApp: yoho.isApp}); | 242 | data = $.extend(data, {isApp: yoho.isApp}); |
243 | $('.product-list').html(self.listTemplate(data)); | 243 | $('.product-list').html(self.listTemplate(data)); |
244 | lazyload('img.lazy'); | 244 | lazyload('img.lazy'); |
245 | + window.scrollTo(0, 0); | ||
245 | window.rePosFooter(); | 246 | window.rePosFooter(); |
246 | }, | 247 | }, |
247 | error: function(data) { | 248 | error: function(data) { |
public/js/vue-component/app-child.js
deleted
100644 → 0
public/js/vue-render.js
deleted
100644 → 0
public/scss/activity/demo/_index.css
deleted
100644 → 0
1 | - | ||
2 | -.input { | ||
3 | - border: solid 1px #ccc; | ||
4 | -} | ||
5 | -button { | ||
6 | - display: block; | ||
7 | - width: 100px; | ||
8 | - height: 40px; | ||
9 | - color: #fff; | ||
10 | - background-color: green; | ||
11 | -} | ||
12 | -* { | ||
13 | - margin-top: 10px !important; | ||
14 | - margin-bottom: 10px !important; | ||
15 | -} | ||
16 | -.parent, .child { | ||
17 | - padding: 20px; | ||
18 | - border: solid 1px #ccc; | ||
19 | -} | ||
20 | -h4{ | ||
21 | - color: red; | ||
22 | -} |
public/vue/activity/demo/index.html
deleted
100644 → 0
-
Please register or login to post a comment