|
@@ -33,8 +33,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- <swiper class="scroll-view-height" @change="swipeIndex" @transition='cutS' @animationfinish='ani' -->
|
|
<!-- <swiper class="scroll-view-height" @change="swipeIndex" @transition='cutS' @animationfinish='ani' -->
|
|
- <swiper class="scroll-view-height" @change="swipeIndex"
|
|
|
|
- :current="current" :duration="300">
|
|
|
|
|
|
+ <swiper class="scroll-view-height" @change="swipeIndex" :current="current" :duration="300">
|
|
<swiper-item>
|
|
<swiper-item>
|
|
<scroll-view scroll-y="true" :refresher-enabled='refevent' :refresher-triggered="trigger"
|
|
<scroll-view scroll-y="true" :refresher-enabled='refevent' :refresher-triggered="trigger"
|
|
@refresherrefresh='repulling' @scrolltolower="relower" style="height: 100%;">
|
|
@refresherrefresh='repulling' @scrolltolower="relower" style="height: 100%;">
|
|
@@ -113,6 +112,40 @@
|
|
bansearchData: false
|
|
bansearchData: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ onShareTimeline() {
|
|
|
|
+ uni.share({
|
|
|
|
+ provider: "weixin",
|
|
|
|
+ scene: "WXSceneTimeline",
|
|
|
|
+ type: 0,
|
|
|
|
+ href: "http://uniapp.dcloud.io/",
|
|
|
|
+ title: "uni-app分享",
|
|
|
|
+ summary: "我正在使用丽湖双创小程序,赶紧跟我一起来体验!",
|
|
|
|
+ imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
|
|
|
|
+ success: function(res) {
|
|
|
|
+ console.log("success:" + JSON.stringify(res));
|
|
|
|
+ },
|
|
|
|
+ fail: function(err) {
|
|
|
|
+ console.log("fail:" + JSON.stringify(err));
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ // 分享
|
|
|
|
+ onShareAppMessage() {
|
|
|
|
+
|
|
|
|
+ uni.share({
|
|
|
|
+ provider: "weixin",
|
|
|
|
+ scene: "WXSceneSession",
|
|
|
|
+ type: 1,
|
|
|
|
+ summary: "我正在使用丽湖双创小程序,赶紧跟我一起来体验!",
|
|
|
|
+ success: function(res) {
|
|
|
|
+ console.log("success:" + JSON.stringify(res));
|
|
|
|
+ },
|
|
|
|
+ fail: function(err) {
|
|
|
|
+ console.log("fail:" + JSON.stringify(err));
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
watch: {
|
|
watch: {
|
|
searchText(val) {
|
|
searchText(val) {
|
|
if (this.bansearchData) return
|
|
if (this.bansearchData) return
|
|
@@ -212,7 +245,7 @@
|
|
this.classList2 = []
|
|
this.classList2 = []
|
|
this.teaLoading = 0 //0默认值 1加载中 2没有更多了
|
|
this.teaLoading = 0 //0默认值 1加载中 2没有更多了
|
|
this.teacurrentPage = 1
|
|
this.teacurrentPage = 1
|
|
-
|
|
|
|
|
|
+
|
|
if (this.searchText !== '') {
|
|
if (this.searchText !== '') {
|
|
this.classList = []
|
|
this.classList = []
|
|
this.reLoading = 0 //0默认值 1加载中 2没有更多了
|
|
this.reLoading = 0 //0默认值 1加载中 2没有更多了
|
|
@@ -220,7 +253,7 @@
|
|
this.searchText = ''
|
|
this.searchText = ''
|
|
this.getreList()
|
|
this.getreList()
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.getteaList()
|
|
this.getteaList()
|
|
|
|
|
|
},
|
|
},
|
|
@@ -286,7 +319,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
swipeIndex(index) {
|
|
swipeIndex(index) {
|
|
-
|
|
|
|
|
|
+
|
|
this.current = index.detail.current;
|
|
this.current = index.detail.current;
|
|
if (this.searchText !== '') {
|
|
if (this.searchText !== '') {
|
|
this.selectSearchdata()
|
|
this.selectSearchdata()
|