|
@@ -66,23 +66,24 @@
|
|
|
<view v-show="current == 1">
|
|
|
<view class="lecture-box">
|
|
|
<view class="title">
|
|
|
- 这是后台配置的讲义标题过长省略这是后台配置的讲义标题过长省略
|
|
|
+ {{courseHandoutsData.handoutsName}}
|
|
|
+ <!-- 这是后台配置的讲义标题过长省略这是后台配置的讲义标题过长省略 -->
|
|
|
</view>
|
|
|
<view class="btn" @click="openDocument">
|
|
|
<u-icon name="download" color="#007AFF" size="40"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="lecture-content">
|
|
|
+ <!-- <view class="lecture-content">
|
|
|
<rich-text :nodes="'讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容讲义内容'"></rich-text>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
|
|
|
- <view class="inputBottom">
|
|
|
+ <!-- <view class="inputBottom">
|
|
|
<view style="width: 10%;"><image src="/static/icon/note3.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image></view>
|
|
|
<view style="width: 73%;height: 100%;padding: 10rpx 0;">
|
|
|
<u-input class="input" height="60" fixed="true" placeholder="您可以在这里输入笔记内容" type="textarea" :custom-style="inputStyle" v-model="noteValue" />
|
|
|
</view>
|
|
|
<view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;" @click="postNote">提交</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
|
|
|
</view>
|
|
|
<!--笔记 -->
|
|
@@ -1238,20 +1239,24 @@ export default {
|
|
|
this.current = index;
|
|
|
},
|
|
|
openDocument() {
|
|
|
- console.log(111)
|
|
|
+ let self = this;
|
|
|
+ // console.log(this.$method.splitImgHost(this.courseHandoutsData.handoutsUrl))
|
|
|
uni.downloadFile({
|
|
|
- url: 'https://gw.alipayobjects.com/os/bmw-prod/c134022a-1088-47e2-bb76-a33ec0519101.pdf?spm=a2c4g.11186623.0.0.cf863d1fUcFiPN&file=c134022a-1088-47e2-bb76-a33ec0519101.pdf',
|
|
|
+ url: this.$method.splitImgHost(this.courseHandoutsData.handoutsUrl),
|
|
|
success: function (res) {
|
|
|
console.log(999)
|
|
|
var filePath = res.tempFilePath;
|
|
|
uni.openDocument({
|
|
|
filePath: filePath,
|
|
|
- showMenu: true,
|
|
|
+ showMenu: self.courseHandoutsData.canDownload == 1 ? true : false,
|
|
|
success: function (res) {
|
|
|
console.log(res,'打开文档成功');
|
|
|
},
|
|
|
fail:function(err) {
|
|
|
- console.log(err)
|
|
|
+ uni.showToast({
|
|
|
+ icon:'none',
|
|
|
+ title:'文档地址错误'
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
}
|