Browse Source

feat: 短剧组推广 - H5样式 & build H5

zhengxy 2 years ago
parent
commit
f33c72d475

File diff suppressed because it is too large
+ 0 - 1
qwh5/dist/css/playletGroupH5.8c813ab4.css


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/css/playletGroupH5.f8c32d37.css


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/index.html


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/js/app.1d74ff38.js


qwh5/dist/js/extend.f4ea8d61.js → qwh5/dist/js/extend.d55a3069.js


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/js/playletGroupH5.b6fd7389.js


+ 1 - 1
qwh5/src/views/extend.vue

29
     Toast.clear();
29
     Toast.clear();
30
     if (res.rst) {
30
     if (res.rst) {
31
       if (getQueryString('jumpLink')) {
31
       if (getQueryString('jumpLink')) {
32
-        // 注:测试参数拼接如果修改,playletGroupH5.vue 中 handleGetPlayletGroup() 处参数拼接也要同步修改
32
+        // 注:url 参数拼接如果修改,playletGroupH5.vue 中 handleGetPlayletGroup() 处参数拼接也要同步修改
33
         let jumpLink = decodeURIComponent(getQueryString('jumpLink'))
33
         let jumpLink = decodeURIComponent(getQueryString('jumpLink'))
34
         if (jumpLink.indexOf('?') != -1) {
34
         if (jumpLink.indexOf('?') != -1) {
35
           let url = jumpLink + '&params=' + res.rst.external_userid + '&userId=' + res.rst.external_userid;
35
           let url = jumpLink + '&params=' + res.rst.external_userid + '&userId=' + res.rst.external_userid;

+ 27 - 23
qwh5/src/views/playletGroupH5.vue

16
 
16
 
17
     <div class="playlet-wrap">
17
     <div class="playlet-wrap">
18
       <div class="playlet-item" v-for="(item, idx) in playletGroup.list" :key="idx" @click="onClickPlay(item)">
18
       <div class="playlet-item" v-for="(item, idx) in playletGroup.list" :key="idx" @click="onClickPlay(item)">
19
+        <div class="cover-wrap">
20
+          <!-- cover contain fill none scale-down -->
21
+          <van-image class="p-img" :src="item.playlet_cover" radius="10" fit="contain" />
22
+          <img class="play-btn" src="@/assets/img/play-btn.png" />
23
+        </div>
19
         <div class="p-name">{{ item.playlet_name }}</div>
24
         <div class="p-name">{{ item.playlet_name }}</div>
20
-        <!-- cover contain fill none scale-down -->
21
-        <van-image class="p-img" :src="item.playlet_cover" radius="10" fit="contain" />
22
-        <img class="play-btn" src="@/assets/img/play-btn.png" />
23
       </div>
25
       </div>
24
     </div>
26
     </div>
25
   </div>
27
   </div>
241
   // S 竖版 1行2个剧
243
   // S 竖版 1行2个剧
242
   .playlet-wrap {
244
   .playlet-wrap {
243
     display: flex;
245
     display: flex;
244
-    align-items: center;
245
     justify-content: space-between;
246
     justify-content: space-between;
246
     flex-wrap: wrap;
247
     flex-wrap: wrap;
247
     .playlet-item {
248
     .playlet-item {
249
       width: 48%;
250
       width: 48%;
250
       // height: 250px;
251
       // height: 250px;
251
       margin-bottom: 16px;
252
       margin-bottom: 16px;
252
-      position: relative;
253
       background-color: #fff;
253
       background-color: #fff;
254
       padding: 10px;
254
       padding: 10px;
255
+      .cover-wrap {
256
+        position: relative;
257
+        .p-img {
258
+          width: 100%;
259
+          height: 220px;
260
+        }
261
+        .play-btn {
262
+          width: 40px;
263
+          height: 40px;
264
+          position: absolute;
265
+          top: 50%;
266
+          left: 50%;
267
+          transform: translate(-50%, -50%);
268
+        }
269
+      }
255
       .p-name {
270
       .p-name {
256
-        padding: 6px 6px 3px;
271
+        padding: 6px;
272
+        text-align: center;
257
         font-size: 16px;
273
         font-size: 16px;
258
-        color: #333;
259
-        white-space: nowrap;
260
-        overflow: hidden;
261
-        text-overflow: ellipsis;
262
-      }
263
-      .p-img {
264
-        margin-top: 10px;
265
-        width: 100%;
266
-        height: 220px;
267
-      }
268
-      .play-btn {
269
-        width: 40px;
270
-        height: 40px;
271
-        position: absolute;
272
-        top: 50%;
273
-        left: 50%;
274
-        transform: translate(-50%, -50%);
274
+        color: #555;
275
+        font-weight: 700;
276
+        // white-space: nowrap;
277
+        // overflow: hidden;
278
+        // text-overflow: ellipsis;
275
       }
279
       }
276
     }
280
     }
277
   }
281
   }