afaa4c36 by joe

压图

1 parent 94b758ac
Showing 54 changed files with 81 additions and 42 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
......

84.4 KB | W: | H:

38.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.9 KB | W: | H:

3.33 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.19 KB | W: | H:

2.06 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

770 Bytes | W: | H:

371 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

313 Bytes | W: | H:

163 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.01 KB | W: | H:

1.76 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.82 KB | W: | H:

2.54 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

38.8 KB | W: | H:

11.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

25.5 KB | W: | H:

8.73 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

390 Bytes | W: | H:

238 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.09 KB | W: | H:

1.15 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.53 KB | W: | H:

1.31 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

6.62 KB | W: | H:

3.17 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.67 KB | W: | H:

1.67 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.79 KB | W: | H:

2.28 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

8.09 KB | W: | H:

3.78 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.65 KB | W: | H:

2.38 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.27 KB | W: | H:

2.16 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.94 KB | W: | H:

1.56 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

57.6 KB | W: | H:

25.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

72.9 KB | W: | H:

25.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.45 KB | W: | H:

965 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.89 KB | W: | H:

1.46 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.05 KB | W: | H:

2.5 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.24 KB | W: | H:

2.6 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

636 KB | W: | H:

210 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

18.6 KB | W: | H:

8.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

35.9 KB | W: | H:

14 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

86.7 KB | W: | H:

36.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

19.2 KB | W: | H:

8.07 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.4 KB | W: | H:

1.29 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

3.89 KB | W: | H:

1.73 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.89 KB | W: | H:

554 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

618 Bytes | W: | H:

415 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

752 Bytes | W: | H:

446 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

752 Bytes | W: | H:

475 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.23 KB | W: | H:

1.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

79.8 KB | W: | H:

23.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.59 KB | W: | H:

839 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

51 KB | W: | H:

15.6 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

89.8 KB | W: | H:

30.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

90 KB | W: | H:

25.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

312 KB | W: | H:

82.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

104 KB | W: | H:

31.2 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

12.3 KB | W: | H:

4.99 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

16.1 KB | W: | H:

5.93 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

105 KB | W: | H:

10.2 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

239 KB | W: | H:

59.2 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

319 KB | W: | H:

74.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

120 KB | W: | H:

56.5 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
...@@ -7,29 +7,33 @@ ...@@ -7,29 +7,33 @@
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 <div class="worksItem" @click="toWorksViewHandler(item.worksCode)"> 11 <van-cell v-for="(itemList,index1) in worksList" :key="index1">
12 <div 12 <van-col span="12" v-for="(item,index2) in itemList" :key="index2">
13 class="worksThumb" 13 <div class="worksItem" @click="toWorksViewHandler(item.worksCode)">
14 v-bind:style="{backgroundImage:'url(' + item.worksList[0].worksUrl + ')'}" 14 <div
15 ></div> 15 class="worksThumb"
16 <div class="worksDescription"> 16 v-bind:style="{backgroundImage:'url(' + item.worksList && item.worksList[0] && item.worksList[0].worksUrl + ')'}"
17 <div class="worksNo">{{item.worksNo}}</div> 17 ></div>
18 <div class="worksName">{{item.name}}</div> 18 <div class="worksDescription">
19 <div class="worksPriaseNo">{{item.praiseNumber}}</div> 19 <div class="worksNo">{{item.worksNo}}</div>
20 <div class="worksPraise"></div> 20 <div class="worksName">{{item.name}}</div>
21 <div class="worksPriaseNo">{{item.praiseNumber}}</div>
22 <div class="worksPraise"></div>
23 </div>
24 </div>
25 </van-col>
26 </van-cell>
27
28 <van-col span="24" v-if="worksList.length == 0 ">
29 <div class="empty">
30 <div class="empty-icon">
31 <van-icon name="warn-o" />
32 </div>
33 <div class="empty-message">没有搜到任何作品 !</div>
21 </div> 34 </div>
22 </div> 35 </van-col>
23 </van-col> 36 </van-list>
24
25 <van-col span="24" v-if="worksList.length == 0 ">
26 <div class="empty">
27 <div class="empty-icon">
28 <van-icon name="warn-o" />
29 </div>
30 <div class="empty-message">没有搜到任何作品 !</div>
31 </div>
32 </van-col>
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 {
......
...@@ -3,21 +3,21 @@ ...@@ -3,21 +3,21 @@
3 <head-view></head-view> 3 <head-view></head-view>
4 <bottom-tool v-model="activityIndex"></bottom-tool> 4 <bottom-tool v-model="activityIndex"></bottom-tool>
5 5
6 <works-list-view 6 <works-list-view
7 v-model="formData" 7 v-model="formData"
8 v-if="init" 8 v-if="init"
9 v-show="listVisiabled" 9 v-show="listVisiabled"
10 v-on:showRule="showRuleHandler" 10 v-on:showRule="showRuleHandler"
11 v-on:worksDetail="showWorksDetail" 11 v-on:worksDetail="showWorksDetail"
12 ></works-list-view> 12 ></works-list-view>
13 13
14 <member-works-view 14 <member-works-view
15 v-model="memberWorks" 15 v-model="memberWorks"
16 v-if="init && !listVisiabled" 16 v-if="init && !listVisiabled"
17 v-on:back="showWorksList" 17 v-on:back="showWorksList"
18 v-on:praiseSuccess="praiseSuccessHandler" 18 v-on:praiseSuccess="praiseSuccessHandler"
19 v-on:showShare="shareModelVisiable=true" 19 v-on:showShare="shareModelVisiable=true"
20 ></member-works-view> 20 ></member-works-view>
21 21
22 <biz-model v-model="model"></biz-model> 22 <biz-model v-model="model"></biz-model>
23 23
...@@ -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();
......