he2802 пре 4 година
родитељ
комит
e7dfed68d4
4 измењених фајлова са 30 додато и 9 уклоњено
  1. 8 0
      common/httpList/note.js
  2. 1 1
      common/request.js
  3. 20 7
      pages2/course/keynote.vue
  4. 1 1
      pages2/course/read.vue

+ 8 - 0
common/httpList/note.js

@@ -17,4 +17,12 @@ export default {
 			noToken: true
 		})
 	},
+	noteRecommendList(data) {
+		return myRequest({
+			url: '/app/common/exam/note/recommendList',
+			method: 'get',
+			data: data,
+			noToken:true
+		})
+	},
 }

+ 1 - 1
common/request.js

@@ -1,4 +1,4 @@
-const BASE_URL = 'http://127.0.0.1:8088'   //
+const BASE_URL = 'http://192.168.0.222:8088'   //
 import store from '@/store/index.js'
 import api from './api.js'
 var num = 1

+ 20 - 7
pages2/course/keynote.vue

@@ -77,10 +77,10 @@
 					</u-col>
 				</u-row>
 				<view style="margin: 10rpx;">
-					<view class="tj_box" v-for="(item,index) in list" :key="index">
-						<image src="/static/banner.png"   style="width: 320rpx;height: 160rpx;"></image>
-						<view style="font-size: 24rpx;color: #666666;d">
-							2020年二级建造师继续教...
+					<view class="tj_box" v-for="(item,index) in recommendList" :key="index" @click="jumpDetail(item)">
+						<image :src="$method.splitImgHost(item.coverUrl)"   style="width: 320rpx;height: 160rpx;"></image>
+						<view style="font-size: 24rpx;color: #666666;text-align: left;">
+							{{item.name}}
 						</view>
 						<view>
 							<u-row >
@@ -95,7 +95,7 @@
 										活动价 
 									</text>
 									<text style="color: #E91313;font-size: 24rpx;font-weight: bold;">
-										¥499
+										¥{{item.price}}
 									</text>
 								</u-col>
 							</u-row>
@@ -136,16 +136,23 @@
 				current: 0,
 				id:0,
 				detail:{},
-				teacherList:[]
+				teacherList:[],
+				recommendList:[]
 			}
 		},
 		onLoad(option) {
 			this.id = option.id
 			this.getDetail()
+			this.noteRecommendList({fileId:this.id})
 		},
 		onShow(){
 		},
 		methods: {
+			jumpDetail(item) {
+				this.$navTo.togo('/pages2/course/keynote', {
+					id:item.fileId
+				});
+			},
 			getDetail(){
 				let self = this
 				this.$api.noteInfo(this.id).then(res => {
@@ -155,7 +162,6 @@
 							 teacherIds : self.detail.teacherIds
 						 }
 						 self.getTeacherList(param);
-						
 					} 
 				})
 			},
@@ -166,6 +172,13 @@
 					
 				})
 			},
+			noteRecommendList(param){
+				let self = this
+				this.$api.noteRecommendList(param).then(res => {
+					self.recommendList = res.data.data
+					
+				})
+			},
 			change(index) {
 				this.current = index;
 			},

+ 1 - 1
pages2/course/read.vue

@@ -10,7 +10,7 @@
 	export default {
 		data() {
 			return {
-				webUrl : 'http://192.168.0.222:8080/img/test.pdf'
+				webUrl : 'https://file-dev.xyyxt.net/oss/images/20210602/2021_6_2_1763607338.pdf'
 			}
 		},
 		onLoad(option) {