|
@@ -89,42 +89,9 @@ var beautytopic = new Vue({
|
|
|
}
|
|
|
return false
|
|
|
},
|
|
|
- SwiperBanner: function(){
|
|
|
- setTimeout(function(){
|
|
|
- if (isPC) {
|
|
|
- var swiper = new Swiper('.swiper-container', {
|
|
|
- slidesPerView: 2,
|
|
|
- slidesPerColumn: 2,
|
|
|
- slidesPerGroup: 2,
|
|
|
- spaceBetween:0,
|
|
|
- slidesOffsetBefore:Number,
|
|
|
- autoplay:true,
|
|
|
- pagination: {
|
|
|
- el: '.swiper-pagination span'
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- var swiper = new Swiper('.swiper-container', {
|
|
|
- slidesPerView: 2,
|
|
|
- slidesPerColumn: 2,
|
|
|
- spaceBetween:0,
|
|
|
- slidesPerGroup: 2,
|
|
|
- autoplay: {
|
|
|
- delay: 3000,
|
|
|
- disableOnInteraction: false
|
|
|
- },
|
|
|
- pagination: {
|
|
|
- el: '.swiper-pagination'
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
- },300);
|
|
|
- },
|
|
|
},
|
|
|
mounted:function () {
|
|
|
var _this = this;
|
|
|
- _this.SwiperBanner();
|
|
|
if(globalUserData){
|
|
|
_this.userId = globalUserData.userId;
|
|
|
_this.userIdentity = globalUserData.userIdentity;
|
|
@@ -140,7 +107,39 @@ var beautytopic = new Vue({
|
|
|
}else {
|
|
|
_this.listLoading = true;
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
+ setTimeout(function(){
|
|
|
+ if (isPC) {
|
|
|
+ var swiper = new Swiper('.swiper-container', {
|
|
|
+ slidesPerView: 2,
|
|
|
+ slidesPerColumn: 2,
|
|
|
+ spaceBetween:0,
|
|
|
+ slidesPerGroup: 2,
|
|
|
+ autoplay: {
|
|
|
+ delay: 3000,
|
|
|
+ disableOnInteraction: false
|
|
|
+ },
|
|
|
+ pagination: {
|
|
|
+ el: '.swiper-pagination'
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ var swiper = new Swiper('.swiper-container', {
|
|
|
+ slidesPerView: 2,
|
|
|
+ slidesPerColumn: 2,
|
|
|
+ spaceBetween:0,
|
|
|
+ slidesPerGroup: 2,
|
|
|
+ autoplay: {
|
|
|
+ delay: 3000,
|
|
|
+ disableOnInteraction: false
|
|
|
+ },
|
|
|
+ pagination: {
|
|
|
+ el: '.swiper-pagination'
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ },500);
|
|
|
}
|
|
|
})
|
|
|
|