Browse Source

fix:点击进入学习的位置

xuqiaoying 3 years ago
parent
commit
675af0d4fc
3 changed files with 6 additions and 5 deletions
  1. 2 2
      common/request.js
  2. 1 1
      pages/learn/index.scss
  3. 3 2
      pages/learn/index.vue

+ 2 - 2
common/request.js

@@ -5,8 +5,8 @@ import api from './api.js'
 var num = 1
 //接口api   
 // export const BASE_URL = 'https://api.xyyxt.net'   //release
-// export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
+export const BASE_URL = 'https://test.xyyxt.net'   //预发布
+// export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
 // export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地

+ 1 - 1
pages/learn/index.scss

@@ -143,7 +143,7 @@
 			align-items: center;
 			// justify-content: flex-start;
 			justify-content: space-between;
-			margin-top: 24rpx;
+			padding-top: 24rpx;
 		}
 
 		.class-warm {

+ 3 - 2
pages/learn/index.vue

@@ -70,7 +70,7 @@
 					<text class="titles">我的课程</text>
 
 					<view v-for="(item, index) in courseLists" :key="index" class="course_item">
-						<view>
+						<view  @click="studyIn(item.goodsId,item.gradeId,item,index)">
 							<view class="cou_titles">{{ item.goodsName }}</view>
 							<view v-if="item.serviceStartTime && item.serviceEndTime" class="learn_ranges">
 								<image class="l_range" src="/static/learn/learn_range.png"></image>
@@ -78,7 +78,7 @@
 								<text class="l_time">{{ item.serviceStartTime | formate('yyyy.mm.dd') }} - {{ item.serviceEndTime | formate('yyyy.mm.dd') }}</text>
 							</view>
 						</view>
-						<view class="c_downs">
+						<view class="c_downs"  @click="studyIn(item.goodsId,item.gradeId,item,index)">
 							<view class="lefts">
 								<image class="lefet_img" :src="$method.splitImgHost(item.coverUrl, true)" mode=""></image>
 								<view v-if="item.goodsType == 6" class="live_icon">直播</view>
@@ -1038,6 +1038,7 @@ export default {
 			this.appointTestShow = false
 		},
 		appointment(item, appoint) {
+			console.log('====', item,appoint, item.examApplyGoodsList)
 			this.appointItemIndex = item
 			if (item.examApplyGoodsList.length > 1) { // 多个考试预约				 
 				this.appointTestList = item.examApplyGoodsList