压图
Showing
54 changed files
with
46 additions
and
7 deletions
... | @@ -11,7 +11,7 @@ as.defineAvatar = "http://cdn.aiwanpai.com/s/d.jpg"; | ... | @@ -11,7 +11,7 @@ as.defineAvatar = "http://cdn.aiwanpai.com/s/d.jpg"; |
11 | as.shareLink = as.domains + "/index.html"; | 11 | as.shareLink = as.domains + "/index.html"; |
12 | as.shareImgUrl = as.domains + "/share.jpg"; | 12 | as.shareImgUrl = as.domains + "/share.jpg"; |
13 | as.shareTitle = "我C位出道,需要你的一票"; | 13 | as.shareTitle = "我C位出道,需要你的一票"; |
14 | as.shareDesc = "我参加了立白集团立乐家和嘉佳卡通卫视联合举办的“小戏骨选拔赛”,C位出道需要你的一票。你也想成为C位主角吗?不要犹豫了,赶紧来报名吧!" | 14 | as.shareDesc = "C位出道需要你的一票。你也想成为C位主角吗?不要犹豫了,赶紧来报名吧!" |
15 | as.success = function () { }; | 15 | as.success = function () { }; |
16 | as.appSuccess = function () { }; | 16 | as.appSuccess = function () { }; |
17 | 17 | ... | ... |
src/assets/imgs/bottom-grassland.png
100644 → 100755
src/assets/imgs/btn.png
100644 → 100755
src/assets/imgs/btn2.png
100644 → 100755
src/assets/imgs/checkbox-checked.png
100644 → 100755
src/assets/imgs/checkbox-uncheck.png
100644 → 100755
src/assets/imgs/draw-btn-prizelist.png
100644 → 100755
src/assets/imgs/draw-btn-viewprize.png
100644 → 100755
src/assets/imgs/draw-card-bg.png
100644 → 100755
src/assets/imgs/draw-card-frontbg.png
100644 → 100755
src/assets/imgs/draw-down.png
100644 → 100755
src/assets/imgs/draw-logo-01.png
100644 → 100755
src/assets/imgs/draw-logo-02.png
100644 → 100755
src/assets/imgs/draw-logo-03.png
100644 → 100755
src/assets/imgs/draw-logo-04.png
100644 → 100755
src/assets/imgs/draw-logo-05.png
100644 → 100755
src/assets/imgs/draw-logo-06.png
100644 → 100755
src/assets/imgs/draw-logo-07.png
100644 → 100755
src/assets/imgs/draw-logo-08.png
100644 → 100755
src/assets/imgs/draw-logo-09.png
100644 → 100755
src/assets/imgs/head-leap.png
100644 → 100755
src/assets/imgs/head-title.png
100644 → 100755
src/assets/imgs/icon-01.png
100644 → 100755
src/assets/imgs/icon-02.png
100644 → 100755
src/assets/imgs/icon-03.png
100644 → 100755
src/assets/imgs/icon-04.png
100644 → 100755
src/assets/imgs/idx-head.jpg
100644 → 100755
src/assets/imgs/leap-01.png
100644 → 100755
src/assets/imgs/leap-02.png
100644 → 100755
src/assets/imgs/leap-03.png
100644 → 100755
src/assets/imgs/leap-04.png
100644 → 100755
src/assets/imgs/list-btn-back.png
100644 → 100755
src/assets/imgs/list-btn-rule.png
100644 → 100755
src/assets/imgs/list-chain-link.png
100644 → 100755
src/assets/imgs/list-heart-red.png
100644 → 100755
src/assets/imgs/list-no-praise.png
100644 → 100755
src/assets/imgs/list-praised.png
100644 → 100755
src/assets/imgs/list-search-btn.png
100644 → 100755
src/assets/imgs/model-bottom.png
100644 → 100755
src/assets/imgs/model-close.png
100644 → 100755
src/assets/imgs/model-share-tip.png
100644 → 100755
src/assets/imgs/prize-item-coupon-bg.png
100644 → 100755
src/assets/imgs/prize-item-normal-bg.png
100644 → 100755
src/assets/imgs/prize.png
100644 → 100755
src/assets/imgs/rule.png
100644 → 100755
src/assets/imgs/title-bg.png
100644 → 100755
src/assets/imgs/walfare-qrcode.png
100644 → 100755
src/assets/imgs/welfare-bg.jpg
100644 → 100755
src/assets/imgs/welfare-cj.png
100644 → 100755
src/assets/imgs/welfare-qy.png
100644 → 100755
src/assets/imgs/welfare-top.jpg
100644 → 100755
... | @@ -7,11 +7,13 @@ | ... | @@ -7,11 +7,13 @@ |
7 | <div class="search-btn" @click="searchWorksHandler('searchBtn')"></div> | 7 | <div class="search-btn" @click="searchWorksHandler('searchBtn')"></div> |
8 | </div> | 8 | </div> |
9 | <van-row> | 9 | <van-row> |
10 | <van-col span="12" v-for="(item,index) in worksList" :key="index"> | 10 | <van-list v-model="isLoading" :finished="!hasMore" finished-text="" @load="refreshMore"> |
11 | <van-cell v-for="(itemList,index1) in worksList" :key="index1"> | ||
12 | <van-col span="12" v-for="(item,index2) in itemList" :key="index2"> | ||
11 | <div class="worksItem" @click="toWorksViewHandler(item.worksCode)"> | 13 | <div class="worksItem" @click="toWorksViewHandler(item.worksCode)"> |
12 | <div | 14 | <div |
13 | class="worksThumb" | 15 | class="worksThumb" |
14 | v-bind:style="{backgroundImage:'url(' + item.worksList[0].worksUrl + ')'}" | 16 | v-bind:style="{backgroundImage:'url(' + item.worksList && item.worksList[0] && item.worksList[0].worksUrl + ')'}" |
15 | ></div> | 17 | ></div> |
16 | <div class="worksDescription"> | 18 | <div class="worksDescription"> |
17 | <div class="worksNo">{{item.worksNo}}</div> | 19 | <div class="worksNo">{{item.worksNo}}</div> |
... | @@ -21,6 +23,7 @@ | ... | @@ -21,6 +23,7 @@ |
21 | </div> | 23 | </div> |
22 | </div> | 24 | </div> |
23 | </van-col> | 25 | </van-col> |
26 | </van-cell> | ||
24 | 27 | ||
25 | <van-col span="24" v-if="worksList.length == 0 "> | 28 | <van-col span="24" v-if="worksList.length == 0 "> |
26 | <div class="empty"> | 29 | <div class="empty"> |
... | @@ -30,6 +33,7 @@ | ... | @@ -30,6 +33,7 @@ |
30 | <div class="empty-message">没有搜到任何作品 !</div> | 33 | <div class="empty-message">没有搜到任何作品 !</div> |
31 | </div> | 34 | </div> |
32 | </van-col> | 35 | </van-col> |
36 | </van-list> | ||
33 | </van-row> | 37 | </van-row> |
34 | </div> | 38 | </div> |
35 | </template> | 39 | </template> |
... | @@ -44,7 +48,9 @@ import { httpGet } from "@/api/fetch-api"; | ... | @@ -44,7 +48,9 @@ import { httpGet } from "@/api/fetch-api"; |
44 | import Vue from "vue"; | 48 | import Vue from "vue"; |
45 | import { Row, Col } from "vant"; | 49 | import { Row, Col } from "vant"; |
46 | import { Icon } from "vant"; | 50 | import { Icon } from "vant"; |
51 | import { List, Cell } from "vant"; | ||
47 | 52 | ||
53 | Vue.use(List).use(Cell); | ||
48 | Vue.use(Icon); | 54 | Vue.use(Icon); |
49 | Vue.use(Row).use(Col); | 55 | Vue.use(Row).use(Col); |
50 | 56 | ||
... | @@ -52,13 +58,15 @@ export default { | ... | @@ -52,13 +58,15 @@ export default { |
52 | props: [""], | 58 | props: [""], |
53 | data() { | 59 | data() { |
54 | return { | 60 | return { |
61 | hasMore: true, | ||
62 | isLoading: false, | ||
55 | init: false, | 63 | init: false, |
56 | worksList: [], | 64 | worksList: [], |
57 | lastQuery: "", | 65 | lastQuery: "", |
58 | listForm: { | 66 | listForm: { |
59 | query: "", | 67 | query: "", |
60 | page: 1, | 68 | page: 1, |
61 | size: 10 | 69 | size: 20 |
62 | } | 70 | } |
63 | }; | 71 | }; |
64 | }, | 72 | }, |
... | @@ -82,9 +90,29 @@ export default { | ... | @@ -82,9 +90,29 @@ export default { |
82 | if (this.listForm.page != 1) { | 90 | if (this.listForm.page != 1) { |
83 | list = this.worksList; | 91 | list = this.worksList; |
84 | } | 92 | } |
85 | list = list.concat(res.list); | 93 | |
94 | let tempList = []; | ||
95 | for (let index = 0; index < res.list.length; index++) { | ||
96 | if (index % 2 == 0) { | ||
97 | tempList = []; | ||
98 | list.push(tempList); | ||
99 | } | ||
100 | tempList.push(res.list[index]); | ||
101 | } | ||
102 | // console.log(list); | ||
103 | |||
104 | // list = list.concat(res.list); | ||
86 | this.worksList = list; | 105 | this.worksList = list; |
106 | |||
107 | // 加载更多 | ||
108 | this.hasMore = res.list.length == this.listForm.size; | ||
109 | this.isLoading = false; | ||
87 | }); | 110 | }); |
111 | }, | ||
112 | refreshMore() { | ||
113 | // console.log("refresh more"); | ||
114 | this.listForm.page++; | ||
115 | this.searchWorksHandler(); | ||
88 | } | 116 | } |
89 | }, | 117 | }, |
90 | created() { | 118 | created() { |
... | @@ -137,11 +165,17 @@ export default { | ... | @@ -137,11 +165,17 @@ export default { |
137 | } | 165 | } |
138 | } | 166 | } |
139 | 167 | ||
168 | |||
140 | .van-row { | 169 | .van-row { |
141 | margin-top: 30px; | 170 | margin-top: 30px; |
142 | } | 171 | } |
143 | 172 | ||
173 | .van-cell{ | ||
174 | padding: 0; | ||
175 | } | ||
176 | |||
144 | .worksItem { | 177 | .worksItem { |
178 | margin: 0 auto 20px auto; | ||
145 | width: 300px; | 179 | width: 300px; |
146 | height: 275px; | 180 | height: 275px; |
147 | border: solid 1px #d1d0d0; | 181 | border: solid 1px #d1d0d0; |
... | @@ -164,6 +198,7 @@ export default { | ... | @@ -164,6 +198,7 @@ export default { |
164 | line-height: 60px; | 198 | line-height: 60px; |
165 | text-align: left; | 199 | text-align: left; |
166 | text-overflow: ellipsis; | 200 | text-overflow: ellipsis; |
201 | overflow: hidden; | ||
167 | } | 202 | } |
168 | 203 | ||
169 | .worksNo { | 204 | .worksNo { |
... | @@ -173,7 +208,9 @@ export default { | ... | @@ -173,7 +208,9 @@ export default { |
173 | width: 133px; | 208 | width: 133px; |
174 | } | 209 | } |
175 | .worksPriaseNo { | 210 | .worksPriaseNo { |
176 | width: 63px; | 211 | width: 60px; |
212 | text-align: right; | ||
213 | padding-right: 5px; | ||
177 | } | 214 | } |
178 | .worksPraise { | 215 | .worksPraise { |
179 | width: 28px; | 216 | width: 28px; | ... | ... |
... | @@ -236,6 +236,8 @@ export default { | ... | @@ -236,6 +236,8 @@ export default { |
236 | 236 | ||
237 | .container-title { | 237 | .container-title { |
238 | font-size: 28px; | 238 | font-size: 28px; |
239 | text-overflow: ellipsis; | ||
240 | overflow: hidden; | ||
239 | } | 241 | } |
240 | 242 | ||
241 | .auto-register-tips { | 243 | .auto-register-tips { | ... | ... |
... | @@ -135,7 +135,7 @@ export default { | ... | @@ -135,7 +135,7 @@ export default { |
135 | showWorksList() { | 135 | showWorksList() { |
136 | this.listVisiabled = true; | 136 | this.listVisiabled = true; |
137 | }, | 137 | }, |
138 | praiseSuccessHandler() {} | 138 | praiseSuccessHandler() {}, |
139 | }, | 139 | }, |
140 | created() { | 140 | created() { |
141 | this.initActivity(); | 141 | this.initActivity(); | ... | ... |
-
Please register or sign in to post a comment