xcx 4 vuotta sitten
vanhempi
commit
3f1ca43263

BIN
image/zhengnengliangshiji.png Näytä tiedosto


BIN
src/assets/image/zhengnengliangshiji.png Näytä tiedosto


+ 71
- 6
src/pages/HuiAiXin/index.vue Näytä tiedosto

@@ -1,30 +1,95 @@
1 1
 <template>
2
-  <view class="page">
3
-    明星业主
2
+  <view class="page HuiAiXin">
3
+    <ScrollY :IsRefreshing="IsRefreshing" @Refresh="Refresh">
4
+
5
+      <!-- banner -->
6
+      <view class="Banner">
7
+        <view>
8
+          <BannerSwiper></BannerSwiper>
9
+        </view>
10
+      </view>
11
+
12
+      <!-- 明星业主 -->
13
+      <view class="StarOwnerList">
14
+        <view class="flex-h">
15
+          <view class="flex-item">
16
+            <image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/mingxingyezhu.png"></image>
17
+          </view>
18
+          <navigator url="./StarOwner/index" hover-class="other-navigator-hover" class="More">更多 <text class="iconfont iconjiantouright"></text></navigator>
19
+        </view>
20
+        <view class="ListContainer">
21
+          <scroll-view scroll-x="true">
22
+            <view class="List">
23
+              <navigator v-for="(item, index) in 10" :key="index" url="./StarOwner/StarOwnerDetail/index" hover-class="other-navigator-hover" class="Item">
24
+                <view class="Img"></view>
25
+                <text class="Info">业主家庭名称</text>
26
+              </navigator>
27
+            </view>
28
+            <view style="width: 100%; height: 20px;"></view>
29
+          </scroll-view>
30
+        </view>
31
+      </view>
32
+
33
+      <!-- 正能量事迹 -->
34
+      <view class="StoryList">
35
+        <view class="flex-h">
36
+          <view class="flex-item">
37
+            <image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/zhengnengliangshiji.png"></image>
38
+          </view>
39
+          <navigator url="./EnergyStory/index" hover-class="other-navigator-hover" class="More">更多 <text class="iconfont iconjiantouright"></text></navigator>
40
+        </view>
41
+        <view class="List">
42
+          <navigator v-for="(item, index) in 20" :key="index" url="./EnergyStory/EnergyStoryDetail/index" hover-class="other-navigator-hover" class="Item flex-h">
43
+            <view class="flex-item">
44
+              <text>事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题事迹标题</text>
45
+              <text>副标题</text>
46
+              <text>来源</text>
47
+            </view>
48
+            <view class="Img">
49
+              <view></view>
50
+            </view>
51
+          </navigator>
52
+        </view>
53
+      </view>
54
+
55
+    </ScrollY>
4 56
   </view>
5 57
 </template>
6 58
 
7 59
 <script>
8
-
60
+import ScrollY from '../../components/ScrollY/index'
61
+import BannerSwiper from '../../components/BannerSwiper/index'
9 62
 export default {
10
-  name: 'StarOwner',
63
+  name: 'HuiAiXin',
11 64
   data () {
12 65
     return {
13
-
66
+      IsRefreshing: false,
67
+      DataLock: false
14 68
     }
15 69
   },
16 70
   components: {
71
+    ScrollY,
72
+    BannerSwiper
17 73
   },
18 74
   created () {
19 75
     this.Init()
20 76
   },
21 77
   methods: {
22 78
     Init () {
79
+    },
80
+    Refresh (e) {
81
+      if (this.DataLock) return
82
+      this.DataLock = true
83
+      this.IsRefreshing = true
84
+      setTimeout(() => {
85
+        this.IsRefreshing = false
86
+        this.DataLock = false
87
+      }, 1000)
23 88
     }
24 89
   }
25 90
 }
26 91
 </script>
27 92
 
28
-<style lang="scss" scoped>
93
+<style lang="scss">
29 94
 @import "page.scss";
30 95
 </style>

+ 158
- 2
src/pages/HuiAiXin/page.scss Näytä tiedosto

@@ -1,3 +1,159 @@
1
-.page {
1
+.page.HuiAiXin {
2 2
   width: 100%;
3
-}
3
+  height: 100%;
4
+  .Banner {
5
+    width: 100%;
6
+    padding-bottom: 38%;
7
+    position: relative;
8
+    overflow: hidden;
9
+    > view {
10
+      width: 100%;
11
+      position: absolute;
12
+      left: 0;
13
+      top: 0;
14
+      bottom: 0;
15
+      overflow: hidden;
16
+      background: #ccc;
17
+    }
18
+  }
19
+  .StarOwnerList {
20
+    padding: 20px 0;
21
+    background: #fff;
22
+    margin-top: 20px;
23
+    > .flex-h {
24
+      padding: 0 20px;
25
+      align-items: center;
26
+      margin-top: 10px;
27
+      > .flex-item {
28
+        > image {
29
+          height: 48px;
30
+        }
31
+      }
32
+      > .More {
33
+        font-size: 26px;
34
+        color: #999;
35
+        > text {
36
+          font-size: 26px;
37
+        }
38
+      }
39
+    }
40
+    > .ListContainer {
41
+      width: 100%;
42
+      position: relative;
43
+      overflow: hidden;
44
+      margin-top: 40px;
45
+      margin-bottom: 10px;
46
+      > scroll-view {
47
+        .List {
48
+          font-size: 0;
49
+          white-space: nowrap;
50
+          overflow: visible;
51
+          > .Item {
52
+            width: 80%;
53
+            position: relative;
54
+            overflow: hidden;
55
+            display: inline-block;
56
+            vertical-align: middle;
57
+            margin-left: 25px;
58
+            border-radius: 20px;
59
+            box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.08);
60
+            &:last-child {
61
+              margin-right: 25px;
62
+            }
63
+            > .Img {
64
+              width: 100%;
65
+              padding-bottom: 45%;
66
+              background: #ccc;
67
+              position: relative;
68
+              overflow: hidden;
69
+            }
70
+            > .Info {
71
+              display: block;
72
+              padding: 0 34px;
73
+              font-size: 24px;
74
+              line-height: 70px;
75
+              white-space: nowrap;
76
+              overflow: hidden;
77
+              text-overflow: ellipsis;
78
+              color: #333;
79
+            }
80
+          }
81
+        }
82
+      }
83
+    }
84
+  }
85
+  .StoryList {
86
+    padding: 20px 0;
87
+    background: #fff;
88
+    margin-top: 20px;
89
+    > .flex-h {
90
+      padding: 0 20px;
91
+      align-items: center;
92
+      margin-top: 10px;
93
+      > .flex-item {
94
+        > image {
95
+          height: 48px;
96
+        }
97
+      }
98
+      > .More {
99
+        font-size: 26px;
100
+        color: #999;
101
+        > text {
102
+          font-size: 26px;
103
+        }
104
+      }
105
+    }
106
+    > .List {
107
+      position: relative;
108
+      overflow: hidden;
109
+      margin-bottom: 30px;
110
+      padding-left: 30px;
111
+      > .Item {
112
+        padding: 40px 0;
113
+        border-bottom: 2px solid #f5f5f5;
114
+        > .flex-item {
115
+          margin-right: 20px;
116
+          > text {
117
+            display: block;
118
+            font-size: 28px;
119
+            line-height: 40px;
120
+            overflow: hidden;
121
+            margin-top: 6px;
122
+            &:nth-child(1) {
123
+              text-overflow: ellipsis;
124
+              display: -webkit-box;
125
+              -webkit-box-orient: vertical;
126
+              -webkit-line-clamp: 2;
127
+              margin-top: 0;
128
+            }
129
+            &:nth-child(2) {
130
+              color: #666;
131
+              font-size: 24px;
132
+              white-space: nowrap;
133
+              text-overflow: ellipsis;
134
+            }
135
+            &:nth-child(3) {
136
+              color: #FE4E45;
137
+              font-size: 24px;
138
+              white-space: nowrap;
139
+              text-overflow: ellipsis;
140
+            }
141
+          }
142
+        }
143
+        > .Img {
144
+          width: 34%;
145
+          margin-right: 20px;
146
+          position: relative;
147
+          overflow: hidden;
148
+          > view {
149
+            width: 100%;
150
+            padding-bottom: 70%;
151
+            background: #ccc;
152
+            position: relative;
153
+            overflow: hidden;
154
+          }
155
+        }
156
+      }
157
+    }
158
+  }
159
+}

+ 27
- 8
src/pages/HuiQuanYi/index.vue Näytä tiedosto

@@ -1,21 +1,40 @@
1 1
 <template>
2 2
   <view class="page HuiQuanYi">
3
-    <!-- <ScrollY :IsRefreshing="IsRefreshing" @Refresh="Refresh"> -->
3
+    <ScrollY :IsRefreshing="IsRefreshing" @Refresh="Refresh">
4 4
 
5 5
       <!-- banner -->
6
-      <!-- <view class="Banner">
6
+      <view class="Banner">
7 7
         <view>
8 8
           <BannerSwiper></BannerSwiper>
9 9
         </view>
10
-      </view> -->
10
+      </view>
11 11
 
12
-    <!-- </ScrollY> -->
12
+      <!-- 业主资讯 -->
13
+      <view class="NewsList">
14
+        <view class="flex-h">
15
+          <view class="flex-item">
16
+            <image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/yezhuzixun.png"></image>
17
+          </view>
18
+          <navigator url="./OwnersNews/index" hover-class="other-navigator-hover" class="More">更多 <text class="iconfont iconjiantouright"></text></navigator>
19
+        </view>
20
+        <view class="List">
21
+          <navigator v-for="(item, index) in 10" class="flex-h" :key="index" url="./OwnersNews/NewsDetail/index" hover-class="other-navigator-hover">
22
+            <view class="Num"><text>{{index + 1}}</text></view>
23
+            <view class="flex-item">
24
+              <text>资讯标题</text>
25
+              <text>1234</text>
26
+            </view>
27
+          </navigator>
28
+        </view>
29
+      </view>
30
+
31
+    </ScrollY>
13 32
   </view>
14 33
 </template>
15 34
 
16 35
 <script>
17
-// import ScrollY from '../../components/ScrollY/index'
18
-// import BannerSwiper from '../../components/BannerSwiper/index'
36
+import ScrollY from '../../components/ScrollY/index'
37
+import BannerSwiper from '../../components/BannerSwiper/index'
19 38
 export default {
20 39
   name: 'HuiQuanYi',
21 40
   data () {
@@ -25,8 +44,8 @@ export default {
25 44
     }
26 45
   },
27 46
   components: {
28
-    // ScrollY,
29
-    // BannerSwiper
47
+    ScrollY,
48
+    BannerSwiper
30 49
   },
31 50
   created () {
32 51
     this.Init()

+ 114
- 0
src/pages/HuiQuanYi/page.scss Näytä tiedosto

@@ -16,4 +16,118 @@
16 16
       background: #ccc;
17 17
     }
18 18
   }
19
+  .NewsList {
20
+    padding: 20px 0;
21
+    background: #fff;
22
+    margin-top: 20px;
23
+    > .flex-h {
24
+      padding: 0 20px;
25
+      align-items: center;
26
+      margin-top: 10px;
27
+      > .flex-item {
28
+        > image {
29
+          height: 48px;
30
+        }
31
+      }
32
+      > .More {
33
+        font-size: 26px;
34
+        color: #999;
35
+        > text {
36
+          font-size: 26px;
37
+        }
38
+      }
39
+    }
40
+    > .List {
41
+      position: relative;
42
+      overflow: hidden;
43
+      margin-top: 40px;
44
+      margin-bottom: 30px;
45
+      > .flex-h {
46
+        align-items: center;
47
+        &:nth-child(1) {
48
+          > .Num {
49
+            > text {
50
+              width: 40px;
51
+              text-align: center;
52
+              line-height: 40px;
53
+              display: inline-block;
54
+              border-radius: 100%;
55
+              background: #fe4e45;
56
+              color: #fff;
57
+              box-shadow: 0 10px 20px 5px rgba(254, 78, 69, 0.1);
58
+            }
59
+          }
60
+        }
61
+        &:nth-child(2) {
62
+          > .Num {
63
+            > text {
64
+              display: inline-block;
65
+              width: 40px;
66
+              text-align: center;
67
+              line-height: 40px;
68
+              display: inline-block;
69
+              border-radius: 100%;
70
+              background: #fe7e48;
71
+              color: #fff;
72
+              box-shadow: 0 10px 20px 5px rgba(254, 126, 72, 0.1);
73
+            }
74
+          }
75
+        }
76
+        &:nth-child(3) {
77
+          > .Num {
78
+            > text {
79
+              width: 40px;
80
+              text-align: center;
81
+              line-height: 40px;
82
+              display: inline-block;
83
+              border-radius: 100%;
84
+              background: #ffa93a;
85
+              color: #fff;
86
+              box-shadow: 0 10px 20px 5px rgba(255, 169, 58, 0.1);
87
+            }
88
+          }
89
+        }
90
+        > .Num {
91
+          width: 56px;
92
+          margin-left: 10px;
93
+          text-align: center;
94
+          font-size: 0;
95
+          height: 40px;
96
+          overflow: visible;
97
+          > text {
98
+            font-size: 24px;
99
+            color: #999;
100
+          }
101
+        }
102
+        > .flex-item {
103
+          padding: 20px 0;
104
+          margin-left: 10px;
105
+          border-bottom: 2px solid #f5f5f5;
106
+          font-size: 0;
107
+          white-space: nowrap;
108
+          > text {
109
+            display: inline-block;
110
+            vertical-align: middle;
111
+            max-width: 100%;
112
+            font-size: 28px;
113
+            line-height: 1.5;
114
+            white-space: nowrap;
115
+            overflow: hidden;
116
+            text-overflow: ellipsis;
117
+            &:nth-child(1) {
118
+              max-width: 88%;
119
+              white-space: nowrap;
120
+              overflow: hidden;
121
+              text-overflow: ellipsis;
122
+            }
123
+            &:nth-child(2) {
124
+              color: #999;
125
+              width: 10%;
126
+              margin-left: 2%;
127
+            }
128
+          }
129
+        }
130
+      }
131
+    }
132
+  }
19 133
 }

+ 35
- 4
src/pages/WoDe/index.vue Näytä tiedosto

@@ -1,6 +1,37 @@
1 1
 <template>
2
-  <view class="page">
3
-    我的
2
+  <view class="page WoDe">
3
+
4
+    <!-- 背景 -->
5
+    <view class="Bg">
6
+      <image mode="widthFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/wodebeijingtu.png"></image>
7
+      <view class="centerLabel">
8
+        <view class="flex-h">
9
+          <view class="Icon">
10
+            <image mode="widthFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/morentouxiang.png"></image>
11
+          </view>
12
+          <view class="flex-item">
13
+            <!-- <navigator url="../SignIn/index" hover-class="other-navigator-hover" class="SiginIn">立即登录</navigator> -->
14
+            <text>用户名</text>
15
+            <text>123456789</text>
16
+          </view>
17
+        </view>
18
+      </view>
19
+    </view>
20
+
21
+    <!-- tab -->
22
+    <view class="TabList">
23
+      <navigator url="./MyActivityList/index" hover-class="other-navigator-hover" class="flex-h">
24
+        <view><image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/wodeicon1.png"></image></view>
25
+        <text class="flex-item">我的报名</text>
26
+        <text class="iconfont iconjiantouright"></text>
27
+      </navigator>
28
+      <navigator url="./Feedback/index" hover-class="other-navigator-hover" class="flex-h">
29
+        <view><image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/wodeicon2.png"></image></view>
30
+        <text class="flex-item">意见反馈</text>
31
+        <text class="iconfont iconjiantouright"></text>
32
+      </navigator>
33
+    </view>
34
+
4 35
   </view>
5 36
 </template>
6 37
 
@@ -25,6 +56,6 @@ export default {
25 56
 }
26 57
 </script>
27 58
 
28
-<style lang="scss" scoped>
59
+<style lang="scss">
29 60
 @import "page.scss";
30
-</style>
61
+</style>

+ 89
- 2
src/pages/WoDe/page.scss Näytä tiedosto

@@ -1,3 +1,90 @@
1
-.page {
1
+.page.WoDe {
2 2
   width: 100%;
3
-}
3
+  height: 100%;
4
+  overflow-y: scroll;
5
+  background: #fff;
6
+  > .Bg {
7
+    width: 100%;
8
+    position: relative;
9
+    overflow: hidden;
10
+    z-index: 1;
11
+    > image {
12
+      width: 100%;
13
+      display: block;
14
+      z-index: 1;
15
+      position: relative;
16
+    }
17
+    > .centerLabel {
18
+      width: 100%;
19
+      z-index: 2;
20
+      > view {
21
+        padding: 0 44px;
22
+        align-items: center;
23
+        > .Icon {
24
+          width: 122px;
25
+          height: 122px;
26
+          border-radius: 100%;
27
+          background: #fff;
28
+          position: relative;
29
+          overflow: hidden;
30
+          margin-right: 26px;
31
+          > image {
32
+            width: 100%;
33
+          }
34
+        }
35
+        > .flex-item {
36
+          > .SiginIn {
37
+            font-size: 32px;
38
+            font-weight: bold;
39
+            line-height: 40px;
40
+          }
41
+          > text {
42
+            display: block;
43
+            white-space: nowrap;
44
+            font-size: 32px;
45
+            font-weight: bold;
46
+            line-height: 40px;
47
+            &:nth-child(2) {
48
+              font-size: 24px;
49
+              margin-top: 10px;
50
+            }
51
+          }
52
+        }
53
+      }
54
+    }
55
+  }
56
+  > .TabList {
57
+    padding-top: 54px;
58
+    border-radius: 28px 28px 0 0;
59
+    background: #fff;
60
+    z-index: 2;
61
+    margin-top: -54px;
62
+    position: relative;
63
+    padding-left: 40px;
64
+    > .flex-h {
65
+      align-items: center;
66
+      border-bottom: 2px solid #f5f5f5;
67
+      padding: 26px 0;
68
+      > view {
69
+        width: 60px;
70
+        margin-right: 20px;
71
+        font-size: 0;
72
+        > image {
73
+          height: 50px;
74
+          display: inline-block;
75
+        }
76
+      }
77
+      > .flex-item {
78
+        font-size: 28px;
79
+        line-height: 40px;
80
+        margin-right: 20px;
81
+        color: #333;
82
+      }
83
+      > .iconfont {
84
+        font-size: 26px;
85
+        color: #999;
86
+        margin-right: 20px;
87
+      }
88
+    }
89
+  }
90
+}