|
@@ -1,5 +1,5 @@
|
|
<template name="community">
|
|
<template name="community">
|
|
- <view class="home">
|
|
|
|
|
|
+ <view class="home" @touchstart="Dever.slide" @touchend="end">
|
|
<view class="card-bottom">
|
|
<view class="card-bottom">
|
|
<!-- 顶部分页栏 -->
|
|
<!-- 顶部分页栏 -->
|
|
<view class="top-tab">
|
|
<view class="top-tab">
|
|
@@ -30,18 +30,19 @@
|
|
export default {
|
|
export default {
|
|
name: "community",
|
|
name: "community",
|
|
props: {
|
|
props: {
|
|
- type : {
|
|
|
|
- type : String,
|
|
|
|
- value : null
|
|
|
|
- },
|
|
|
|
- type_id : {
|
|
|
|
- type : String,
|
|
|
|
- value : null
|
|
|
|
- },
|
|
|
|
- name : {
|
|
|
|
- type : String,
|
|
|
|
- value : null
|
|
|
|
|
|
+ info_id : {
|
|
|
|
+ type : String,
|
|
|
|
+ value : null
|
|
},
|
|
},
|
|
|
|
+ page_id : {
|
|
|
|
+ type : String,
|
|
|
|
+ value : null
|
|
|
|
+ },
|
|
|
|
+ parent_page_id : {
|
|
|
|
+ type : String,
|
|
|
|
+ value : null
|
|
|
|
+ },
|
|
|
|
+ index : 0
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -160,6 +161,12 @@ export default {
|
|
console.log(1);
|
|
console.log(1);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ end : function(e) {
|
|
|
|
+ var type = this.Dever.slideEnd(e);
|
|
|
|
+ if (type == 3 || type == 4) {
|
|
|
|
+ this.$emit('goIndex', this.index);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|