Przeglądaj źródła

修改部分页面样式及细节

zaijin 2 lat temu
rodzic
commit
5fd39cf1fd

+ 1 - 4
h5_web/pages/index/index.vue

@@ -251,10 +251,7 @@ export default {
      */
     swiperClick(index) {
       if (this.bannerList[index].jumpUrl) {
-        let url = this.bannerList[index].jumpUrl.split('#')[1];
-        this.$u.route({
-          url: url
-        });
+        location.href = this.bannerList[index].jumpUrl
       } else {
         this.$u.route({
           url: 'pages/bannerDetails/bannerDetails',

+ 6 - 0
h5_web/pages/publicCourse/publicCourse.scss

@@ -25,6 +25,8 @@ page {
 
         .image {
           border-radius: 8rpx !important;
+					border: solid 1px #666;
+					padding: 5rpx;
         }
 
         .play-btn {
@@ -40,6 +42,10 @@ page {
         font-size: 28rpx;
         color: #3f3f3f;
         margin-bottom: 6rpx;
+				white-space: nowrap;
+				overflow: hidden;
+				text-overflow: ellipsis;
+				-o-text-overflow: ellipsis;
       }
 
       &-subtitle {

+ 7 - 7
h5_web/pages/publicCourse/publicCourse.vue

@@ -45,7 +45,7 @@ export default {
       videoList: [],
       page: {
         num: 1,
-        size: 12,
+        size: 10,
         total: 0
       }
     });
@@ -68,7 +68,7 @@ export default {
 			const { code, data } = await this.$u.api.publicClasses.getPublicClassesListApi({ id: 1, pageNum: num, pageSize: size });
 			if (code === 200) {
 				this.videoList = this.videoList.concat(data?.rows ?? [])
-				this.page.total = Number(data?.total ?? 0);
+				this.page.total = Number(data?.pages ?? 0);
 				if (this.page.num >= this.page.total) this.status = 'nomore';
 				else this.status = 'loading';
 			}
@@ -79,11 +79,11 @@ export default {
 			})
 			if (code === 200) {
 				const type = this.iswap();
-				const { text } = data.find((item) => item.label === type);
-				if (!location.href.includes(text)) {
-					location.href = text;
-					return
-				}
+				// const { text } = data.find((item) => item.label === type);
+				// if (!location.href.includes(text)) {
+				// 	location.href = text;
+				// 	return
+				// }
 				this.handleVideoList()
 			}
 		},