Tang 3 years ago
parent
commit
5b9b146654
4 changed files with 10 additions and 4 deletions
  1. 1 1
      common/request.js
  2. 1 1
      pages2/learn/my_learn.vue
  3. 4 1
      pages2/msg/index.vue
  4. 4 1
      pages2/wd/course.vue

+ 1 - 1
common/request.js

@@ -4,7 +4,7 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 
-export const BASE_URL = 'http://42.192.164.187:19005' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
+export const BASE_URL = 'http://192.168.1.222:5055' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
 
 
 export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/' //图片上传api  'https://file.xyyxt.net/

+ 1 - 1
pages2/learn/my_learn.vue

@@ -131,7 +131,7 @@ export default {
 		jumpPage(v, int) {
 			//int 1.课程学习 2.预约考试 3.进入刷题 4.查看详情 5.重修目录
 			if (int === 1) {
-				this.$navTo.togo('/pages2/course/detail?id=' + v.goodsId);
+				this.$navTo.togo('/pages2/wd/course?id=' + v.goodsId);
 			}
 			if (int === 2) {
 				this.$navTo.togo(`/pages2/appointment/index?goodsId=${v.goodsId}&gradeId=${v.gradeId}`);

+ 4 - 1
pages2/msg/index.vue

@@ -1,6 +1,9 @@
 <template>
 	<view style="padding: 20rpx;">
-		<view v-for="(item, index) in listData" :key="index" style="padding-bottom: 20rpx;">
+		<view v-if="!listData.length">
+			<u-empty text="消息列表为空" mode="message"></u-empty>
+		</view>
+		<view v-else v-for="(item, index) in listData" :key="index" style="padding-bottom: 20rpx;">
 			<navigator :url="`/pages2/msg/detail?id=${item.id}`" class="item" :style="item.receiptStatus === 1 ? 'opacity: 0.7' : ''">
 				<view style="display: flex;justify-content: space-between;align-items: center;height: 60rpx;">
 					<view style="color: #333333;font-size: 30rpx;font-weight: bold;display: flex;align-items: center;">

+ 4 - 1
pages2/wd/course.vue

@@ -1,6 +1,9 @@
 <template>
 	<view style="padding: 30rpx;">
-		<view @click="jump(item)" v-for="(item, index) in courseList" :key="index" style="margin-bottom: 30rpx;">
+		<view v-if="!courseList.length">
+			<u-empty text="暂无课程" mode="list"></u-empty>
+		</view>
+		<view v-else @click="jump(item)" v-for="(item, index) in courseList" :key="index" style="margin-bottom: 30rpx;">
 			<view class="class_item">
 				<image :src="$method.splitImgHost(item.coverUrl, true)" style="height: 316rpx;width: 100%;border-radius: 24rpx;"></image>
 				<view style="color: #333333;font-weight: bold;font-size: 32rpx;">{{ item.courseName }}</view>