Explorar o código

修改:1.修改课程预告、动态、实况列表的默认图片;2.修复默认头像无法显示的问题;3.我的订单增加tab:个人会费和机构会费

littleblue55 hai 1 semana
pai
achega
48f09892e2

+ 5 - 2
components/lgSwiper.vue

@@ -7,7 +7,8 @@
 				:class="index==currentIndex? 'swiper-item-active':'swiper-item-normal'" @click="swiperClick(slide)">
 				<view :class="index==currentIndex? 'swiper-item active':'swiper-item'">
 					<view style="width: 100%;height: 90%;position: relative;">
-						<image style="width: 100%;height: 100%;" mode="aspectFit" :src="slide[image]"></image>
+						<image style="width: 100%;height: 100%;" mode="aspectFit" 
+						:src="slide[image]?slide[image]:`${FILE_URL}/peixunyugao.jpg`"></image>
 						<view style="background: rgb(255 248 248 / 60%);
 							position: absolute;z-index: 9999;width: 100%;height: 100%;"
 							:class="index == currentIndex ? 'end-active':'end'"
@@ -30,10 +31,12 @@
 </template>
 
 <script>
+	import configService from '@/utils/baseurl.js'
 	export default {
 		data() {
 			return {
-				currentIndex: 0
+				currentIndex: 0,
+				FILE_URL: configService.FILE_URL
 			};
 		},
 		methods: {

+ 1 - 1
pages/dynamic/dynamic/dynamic.vue

@@ -14,7 +14,7 @@
 						<image
 							mode="aspectFill"
 							style="width: 250rpx;height: 200rpx;"
-							:src="item.cover ? item.cover : '/static/images/avatar-img/1.png'"></image>
+							:src="item.cover ? item.cover : `${FILE_URL}/xiehuidongtai.jpg`"></image>
 					</view>
 					<view class="content-box">
 						<view class="title" style="margin-bottom: 30rpx;">

+ 3 - 1
pages/goOnEdu/course/courseHome/courseHome.vue

@@ -32,7 +32,9 @@
 			<view v-for="(course,index) in filterCourses" :key="course.id">
 				<view class="course-item">
 					<view class="course-item-image">
-						<image class="course-image" :src="course.thumImg ? course.thumImg : course.cover"
+						<image class="course-image" :src="course.thumImg ? course.thumImg 
+						: (course.cover ? course.cover 
+						: `${FILE_URL}/peixunyugao.jpg`)"
 							mode="aspectFit" @click="toPage(course)"></image>
 					</view>
 					<view class="course-item-content">

+ 1 - 1
pages/goOnEdu/trainRecord/trainRecord.vue

@@ -14,7 +14,7 @@
 						<image
 							mode="aspectFill"
 							style="width: 250rpx;height: 200rpx;"
-							:src="item.cover ? item.cover : '/static/images/avatar-img/1.png'"></image>
+							:src="item.cover ? item.cover : `${FILE_URL}/peixunshikuang.jpg`"></image>
 					</view>
 					<view class="content-box">
 						<view class="title" style="margin-bottom: 30rpx;">

+ 23 - 11
pages/order/order.vue

@@ -37,6 +37,7 @@
 			iconSize="120"
 			textSize="58"
 			text="暂无数据"
+			margin-top="400"
 		>
 		</u-empty>
 		<view class="list-box">
@@ -77,7 +78,7 @@
 				</view>
 			</view>
 		</view>
-		<uni-load-more v-show="visualLoadMore" :status="loadMoreStatus"></uni-load-more>
+		<uni-load-more v-if="list.length !== 0" v-show="visualLoadMore" :status="loadMoreStatus"></uni-load-more>
 		<view class="buttom-block" v-if="false"></view>
 		<view class="bottom-box" v-if="false">
 			<view class="button" @click="onToInvoiceApplication">
@@ -109,6 +110,14 @@
 			label: '培训课程',
 			value: 9
 		},
+		{
+			label: '个人会费',
+			value: 1
+		},
+		{
+			label: '机构会费',
+			value: 2
+		}
 	]
 	const pageNum = ref(1)
 	const pageSize = ref(10)
@@ -123,16 +132,16 @@
 	})
 	
 	const list = ref([
-		{
-			id: '01',
-			title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
-			type: 8,
-			orderNo: '123456789987654321',
-			date: '2023年8月8日',
-			amount: 9.9,
-			invoice: true,
-			status: 1
-		},
+		// {
+		// 	id: '01',
+		// 	title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
+		// 	type: 8,
+		// 	orderNo: '123456789987654321',
+		// 	date: '2023年8月8日',
+		// 	amount: 9.9,
+		// 	invoice: true,
+		// 	status: 1
+		// },
 	])
 	function onItem(order) {
 		if (order.status === '2') {
@@ -286,6 +295,9 @@
 	::v-deep(.u-tab-item){
 		margin-right: 40rpx;
 	}
+	::v-deep(.u-empty){
+		height: auto !important;
+	}
 </style>
 <style lang="scss" scoped>
 	$certificate-width: 220rpx;

+ 1 - 1
pages/personalCenter/personalCenter.vue

@@ -4,7 +4,7 @@
 			<view class="icon-name-box">
 				<view class="icon-box">
 					<image class="icon"
-					:src="user.userIcon ?? '/static/images/avatar-img/1.png'"
+					:src="user.userIcon ? user.userIcon : '/static/images/avatar-img/1.png'"
 					@click="onIconOpen"
 					></image>
 				</view>

BIN=BIN
static/images/peixunshikuang.jpg


BIN=BIN
static/images/peixunyugao.jpg


BIN=BIN
static/images/xiehuidongtai.jpg


BIN=BIN
static/images/图片.zip