|
@@ -21,8 +21,8 @@
|
|
|
<view class="list-icon"></view>
|
|
<view class="list-icon"></view>
|
|
|
<view class="list-title2">学习资料</view>
|
|
<view class="list-title2">学习资料</view>
|
|
|
<!-- 资料 -->
|
|
<!-- 资料 -->
|
|
|
- <view style="width: 690rpx;margin-left: 40px;margin-top: 10px;">
|
|
|
|
|
- <view class="ziliao">{{item.courseName}}</view>
|
|
|
|
|
|
|
+ <view style="width: 690rpx;margin-left: 40px;margin-top: 10px;" v-for="(item,index) in item.videoElseList" :key="index">
|
|
|
|
|
+ <view class="ziliao">{{item.videoElesName}}</view>
|
|
|
<image src="../../static/xiazai.png" class="xiazai" @click="download(item)"></image>
|
|
<image src="../../static/xiazai.png" class="xiazai" @click="download(item)"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="height:20px"></view>
|
|
<view style="height:20px"></view>
|
|
@@ -42,6 +42,7 @@
|
|
|
phone:'xxxxxxxxxxx',//手机号
|
|
phone:'xxxxxxxxxxx',//手机号
|
|
|
fileUrl:'https://chuanghai-tech.com/video/txt.pdf',//下载链接
|
|
fileUrl:'https://chuanghai-tech.com/video/txt.pdf',//下载链接
|
|
|
list:[],//当前页面数组数据
|
|
list:[],//当前页面数组数据
|
|
|
|
|
+ list2:[],//下载的东西2
|
|
|
token:'',//缓存token
|
|
token:'',//缓存token
|
|
|
resultDecodeN:'',//解密后数据
|
|
resultDecodeN:'',//解密后数据
|
|
|
}
|
|
}
|
|
@@ -73,12 +74,13 @@
|
|
|
this.$fns.rsaDecode(shu[3])+this.$fns.rsaDecode(shu[4])+
|
|
this.$fns.rsaDecode(shu[3])+this.$fns.rsaDecode(shu[4])+
|
|
|
this.$fns.rsaDecode(shu[5])+this.$fns.rsaDecode(shu[6])+
|
|
this.$fns.rsaDecode(shu[5])+this.$fns.rsaDecode(shu[6])+
|
|
|
this.$fns.rsaDecode(shu[7])+this.$fns.rsaDecode(shu[8])+
|
|
this.$fns.rsaDecode(shu[7])+this.$fns.rsaDecode(shu[8])+
|
|
|
- this.$fns.rsaDecode(shu[9])
|
|
|
|
|
|
|
+ this.$fns.rsaDecode(shu[9])+this.$fns.rsaDecode(shu[10])
|
|
|
//解析
|
|
//解析
|
|
|
console.log(JSON.parse(this.resultDecodeN));
|
|
console.log(JSON.parse(this.resultDecodeN));
|
|
|
//获取数组
|
|
//获取数组
|
|
|
JSON.parse(this.resultDecodeN).forEach(data => {
|
|
JSON.parse(this.resultDecodeN).forEach(data => {
|
|
|
this.list.push(data)
|
|
this.list.push(data)
|
|
|
|
|
+ // this.list2.push(data.videoElseList)
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({ title: res.data.message, icon: 'none' });
|
|
uni.showToast({ title: res.data.message, icon: 'none' });
|
|
@@ -96,11 +98,11 @@
|
|
|
download(item) {
|
|
download(item) {
|
|
|
if(this.isIos()){
|
|
if(this.isIos()){
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url:'/pages/IOSDownLoad/IOSDownLoad?url='+item.courseUrl
|
|
|
|
|
|
|
+ url:'/pages/IOSDownLoad/IOSDownLoad?url='+item.videoElesUrl
|
|
|
})
|
|
})
|
|
|
}else{
|
|
}else{
|
|
|
//直接在浏览器中打开
|
|
//直接在浏览器中打开
|
|
|
- window.location.href = item.courseUrl;
|
|
|
|
|
|
|
+ window.location.href = 'http://139.199.2.142:8081//img'+item.videoElesUrl;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//判断是否ios
|
|
//判断是否ios
|
|
@@ -214,6 +216,7 @@
|
|
|
}
|
|
}
|
|
|
/* 资料 */
|
|
/* 资料 */
|
|
|
.ziliao{
|
|
.ziliao{
|
|
|
|
|
+ width: 170px;
|
|
|
line-height: 40rpx;
|
|
line-height: 40rpx;
|
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
|
float: left;
|
|
float: left;
|