Browse Source

fix: 调整6个页面模块

wenxingxing 19 giờ trước cách đây
mục cha
commit
378ae18a63

+ 1 - 1
pages/index/course.vue

@@ -177,7 +177,7 @@ export default {
 
 		// 获取学习记录课程列表
 		async getCourseStudyListMethos() {
-			const res = await getCourseStudyList({},
+			const res = await getCourseStudyList({courseType:0},
 				this.recentPage.pageNum,
 				this.recentPage.pageSize,
 			);

+ 2 - 1
pages/index/index.vue

@@ -69,7 +69,7 @@
 								</view>
 							</view>
 							<view class="fv-info">
-								<text class="fv-title">{{ item.courseName }}</text>
+								<text class="fv-title ellipsis">{{ item.courseName }}</text>
 								<text class="fv-desc">{{ item.courseDesc }}</text>
 								<view class="btn-watch" @click.stop="onWatchLive(item)">立即观看</view>
 							</view>
@@ -171,6 +171,7 @@ export default {
 			})
 		},
 		onBannerClick() {
+			return
 			uni.navigateTo({
 				url: '/pages/index/course'
 			})

+ 4 - 3
pages/index/video.vue

@@ -70,7 +70,8 @@
 						</view>
 						<view class="recent-info">
 							<text class="recent-title">{{ item.courseName }}</text>
-							<text class="recent-meta">{{ item.courseDesc }}</text>
+							<!-- <text class="recent-meta">{{ item.courseDesc }}</text> -->
+							<text class="recent-progress">已学: {{ item.progress }}%</text>
 							<view class="y-end">
 								<view class="btn-watch" @click.stop="onCourseClick(item)">回看</view>
 							</view>
@@ -174,7 +175,7 @@ export default {
 
 		// 获取学习记录课程列表
 		async getCourseStudyListMethos() {
-			const res = await getCourseStudyList({},
+			const res = await getCourseStudyList({courseType:1},
 				this.recentPage.pageNum,
 				this.recentPage.pageSize,
 			);
@@ -665,7 +666,7 @@ export default {
 	overflow: hidden;
 	text-overflow: ellipsis;
 	display: -webkit-box;
-	-webkit-line-clamp: 1;
+	-webkit-line-clamp: 2;
 	-webkit-box-orient: vertical;
 }
 

+ 1 - 1
pages/shopping/productDetails.vue

@@ -112,7 +112,7 @@
 				</view> -->
 			</view>
 			<view class="btn-box">
-				<view class="btn cart" @click="addCart('cart')">加入购物车</view>
+				<view v-if="false" class="btn cart" @click="addCart('cart')">加入购物车</view>
 				<view class="btn buy" @click="addCart('buy')">{{buyText}}</view>
 			</view>
 		</view>

+ 1 - 1
pages_mall/index.vue

@@ -20,7 +20,7 @@
 					:color="currentTab === 1 ? '#FF233C' : '#999'"></u-icon>
 				<text>分类</text>
 			</view> -->
-			<view class="tab-item" :class="{active: currentTab === 1}" @click="switchTab(1)">
+			<view v-if="false" class="tab-item" :class="{active: currentTab === 1}" @click="switchTab(1)">
 				<view class="icon-wrap">
 					<u-icon :name="currentTab === 1 ? 'shopping-cart-fill' : 'shopping-cart'" size="28"
 						:color="currentTab === 1 ? '#FF233C' : '#999'"></u-icon>

+ 3 - 3
pages_points/integralGoodsDetails.vue

@@ -2,7 +2,7 @@
 	<view class="content">
 		<view class="cont-box">
 			<view class="goods-banner" @click="showImg()">
-				<view class="cartbox" @click.stop="goCart()">
+				<view v-if="false" class="cartbox" @click.stop="goCart()">
 					<view class="box">
 						<u-badge type="error" max="99" :value="cartNum" bgColor="#FF233C"></u-badge>
 					</view>
@@ -42,7 +42,7 @@
 						style="font-size: 20rpx;">元</text></view>
 			</view>
 			<view class="btn-box">
-				<view class="btn add" @click="openPop">
+				<view v-if="false" class="btn add" @click="openPop">
 					加入购物车
 				</view>
 				<view class="btn buy" @click="submit()">
@@ -73,7 +73,7 @@
 						<u-number-box v-model="num" integer :step="1" :min="1" :max="100000"></u-number-box>
 					</view>
 				</view>
-				<view class="es-max-btn x-c" @click="addCart">
+				<view v-if="false" class="es-max-btn x-c" @click="addCart">
 					加入购物车
 				</view>
 			</view>