|
@@ -5,8 +5,8 @@
|
|
<view class="top">
|
|
<view class="top">
|
|
<view class="topline" @click="goIndex">首页</view>
|
|
<view class="topline" @click="goIndex">首页</view>
|
|
<view class="topjt">></view>
|
|
<view class="topjt">></view>
|
|
- <view class="topline">{{topName}}</view>
|
|
|
|
- <view class="topjt">></view>
|
|
|
|
|
|
+ <view class="topline" @click="goList()">{{topName}}</view>
|
|
|
|
+ <view class="topjt" v-if="twoName">></view>
|
|
<view class="topline">{{twoName}}</view>
|
|
<view class="topline">{{twoName}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="htmlBox">
|
|
<view class="htmlBox">
|
|
@@ -16,13 +16,13 @@
|
|
</view>
|
|
</view>
|
|
<view class="itemArr" v-if="itemArr.length>0">
|
|
<view class="itemArr" v-if="itemArr.length>0">
|
|
<view class="itemArrLine" v-for="(item,index) in itemArr">
|
|
<view class="itemArrLine" v-for="(item,index) in itemArr">
|
|
- <view class="itemArrLeft">
|
|
|
|
|
|
+ <view class="itemArrLeft" >
|
|
<image src="../../static/pcimg/icon_fujian@2x.png" mode="" class="fileIcon"></image>
|
|
<image src="../../static/pcimg/icon_fujian@2x.png" mode="" class="fileIcon"></image>
|
|
- <view class="fileName">{{item.fileName}}</view>
|
|
|
|
|
|
+ <view class="fileName" @click="gofile(item.fileUrl)">{{item.fileName}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="dload">
|
|
|
|
|
|
+ <!-- <view class="dload">
|
|
<a class="dloadbtn" :href="item.fileUrl" target='_blank' >下载</a>
|
|
<a class="dloadbtn" :href="item.fileUrl" target='_blank' >下载</a>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="lbel">
|
|
<view class="lbel">
|
|
@@ -46,6 +46,8 @@
|
|
itemArr: [],
|
|
itemArr: [],
|
|
topName:'',
|
|
topName:'',
|
|
twoName:'',
|
|
twoName:'',
|
|
|
|
+ comment:'',
|
|
|
|
+ parentCode:'',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
@@ -53,12 +55,22 @@
|
|
this.id = opt.id
|
|
this.id = opt.id
|
|
this.topName=opt.topName;
|
|
this.topName=opt.topName;
|
|
this.twoName=opt.twoName;
|
|
this.twoName=opt.twoName;
|
|
|
|
+ this.comment=opt.comment;
|
|
|
|
+ this.parentCode=opt.parentCode
|
|
this.getDetailData()
|
|
this.getDetailData()
|
|
// uni.setNavigationBarTitle({
|
|
// uni.setNavigationBarTitle({
|
|
// title: this.topName
|
|
// title: this.topName
|
|
// })
|
|
// })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ gofile(url){
|
|
|
|
+ window.location.href=url
|
|
|
|
+ },
|
|
|
|
+ goList(){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'list?code='+this.parentCode+'&topName='+this.topName+'&comment='+this.comment
|
|
|
|
+ })
|
|
|
|
+ },
|
|
goIndex(){
|
|
goIndex(){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:'index'
|
|
url:'index'
|
|
@@ -204,4 +216,8 @@
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
+ .fileName{
|
|
|
|
+ text-decoration:underline;
|
|
|
|
+ color: #3F90F7;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|