|
@@ -182,7 +182,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="articleBox1">
|
|
|
- <img class="articlePic1" src="/static/images/testPic.png">
|
|
|
+ <img class="articlePic1" src="/static/images/testPic2.png">
|
|
|
</div>
|
|
|
|
|
|
<div class="articleCont1">
|
|
@@ -193,7 +193,7 @@
|
|
|
|
|
|
<div class="articleBox2">
|
|
|
<img class="articlePic2" src="/static/images/testPic2.png">
|
|
|
- <img class="articlePic3" src="/static/images/testPic3.png">
|
|
|
+ <img class="articlePic3" src="/static/images/testPic2.png">
|
|
|
</div>
|
|
|
|
|
|
<div class="articleCont2">
|
|
@@ -203,7 +203,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="articleCont3">
|
|
|
- <img class="articlePic4" src="/static/images/testPic3.png">
|
|
|
+ <img class="articlePic4" src="/static/images/testPic2.png">
|
|
|
<p class="text">
|
|
|
文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本
|
|
|
</p>
|
|
@@ -255,7 +255,7 @@
|
|
|
<div class="modelBox" v-if="showIndex == 3">
|
|
|
<div class="eventArticleBox">
|
|
|
<img class="eventArticlePic1" src="/static/images/testPic2.png">
|
|
|
- <img class="eventArticlePic2" src="/static/images/testPic3.png">
|
|
|
+ <img class="eventArticlePic2" src="/static/images/testPic2.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -547,7 +547,7 @@
|
|
|
|
|
|
<div class="region3">
|
|
|
<div class="imgBox">
|
|
|
- <img class="contPic" src="/static/images/testPic5.png">
|
|
|
+ <img class="contPic" src="/static/images/testPic2.png">
|
|
|
</div>
|
|
|
<div class="bottomDiv">
|
|
|
<p class="text">2020-02-03 14:00</p>
|
|
@@ -575,7 +575,7 @@
|
|
|
|
|
|
<div class="region5">
|
|
|
<div class="imgBox">
|
|
|
- <img class="contPic" src="/static/images/testPic5.png">
|
|
|
+ <img class="contPic" src="/static/images/testPic2.png">
|
|
|
<p class="text">晨练的十大好处</p>
|
|
|
</div>
|
|
|
<div class="wordDiv">
|
|
@@ -604,7 +604,8 @@
|
|
|
modelSwitchType: 'card',
|
|
|
showIndex: 0,
|
|
|
tran: 350, //横轴
|
|
|
- vert: 500 //纵轴
|
|
|
+ vert: 500, //纵轴
|
|
|
+ windowHeight: 0
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -623,7 +624,6 @@
|
|
|
this.modelSwitchType = 'show';
|
|
|
},
|
|
|
panel(e) {
|
|
|
- console.log(e);
|
|
|
if (e.currentTarget.dataset.index != this.showIndex) {
|
|
|
this.showIndex = e.currentTarget.dataset.index;
|
|
|
} else {
|
|
@@ -631,54 +631,31 @@
|
|
|
}
|
|
|
},
|
|
|
handleTouchEnd(e) {
|
|
|
-
|
|
|
- //方式1:
|
|
|
- // let xNumLeft = 20 / 750 * wx.getSystemInfoSync().windowWidth;
|
|
|
- // let xNumRight = 680 / 750 * wx.getSystemInfoSync().windowWidth;
|
|
|
- // let x = e.mp.changedTouches[0].pageX;
|
|
|
- // let average = 375 / 750 * wx.getSystemInfoSync().windowWidth;
|
|
|
- // let yNum = e.mp.changedTouches[0].pageY;
|
|
|
-
|
|
|
- // if (x <= average) {
|
|
|
- // this.tran = 0;
|
|
|
- // this.vert = yNum;
|
|
|
- // } else {
|
|
|
- // this.tran = 700;
|
|
|
- // this.vert = yNum;
|
|
|
- // }
|
|
|
-
|
|
|
- //方式2:
|
|
|
- // this.tran = e.mp.changedTouches[0].pageX;
|
|
|
- // this.vert = e.mp.changedTouches[0].pageY - 15;
|
|
|
-
|
|
|
- // if (this.tran <= 188) {
|
|
|
- // console.log('超过中间线了');
|
|
|
- // this.tran = 0;
|
|
|
- // } else {
|
|
|
- // this.tran = 350;
|
|
|
- // }
|
|
|
- // console.log('X:', this.tran);
|
|
|
- // console.log('Y:', this.vert);
|
|
|
- // console.log(wx.getSystemInfoSync());
|
|
|
- },
|
|
|
- handleChange(e) {
|
|
|
- // console.log(e);
|
|
|
- this.tran = e.detail.x;
|
|
|
- this.vert = e.detail.y;
|
|
|
- if (this.tran <= 188) {
|
|
|
- console.log('超过中间线了');
|
|
|
- this.tran = 0;
|
|
|
+ if (e.mp.changedTouches[0].pageX <= 188) {
|
|
|
+ this.tran = 0;
|
|
|
+ } else {
|
|
|
+ this.tran = 350;
|
|
|
+ }
|
|
|
+ if (this.windowHeight > 0) {
|
|
|
+ this.vert = e.mp.changedTouches[0].pageY - this.windowHeight;
|
|
|
} else {
|
|
|
- this.tran = 350;
|
|
|
+ this.vert = e.mp.changedTouches[0].pageY
|
|
|
}
|
|
|
- console.log('X:', this.tran);
|
|
|
- console.log('Y:', this.vert);
|
|
|
+ },
|
|
|
+ handleChange(e) {
|
|
|
},
|
|
|
showWhoCollecMe() {
|
|
|
wx.navigateTo({
|
|
|
url: './showWhoCollecMe'
|
|
|
});
|
|
|
}
|
|
|
+ },
|
|
|
+ onPageScroll(e) {
|
|
|
+ if (e.scrollTop > 0) {
|
|
|
+ this.windowHeight = e.scrollTop
|
|
|
+ } else {
|
|
|
+ this.windowHeight = 0
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|