|
|
@ -5,7 +5,7 @@ |
|
|
|
<view class="relative"> |
|
|
|
<!-- 日历 --> |
|
|
|
<!-- <Calendar @selected-change="onDateChange" :show-back="true" ref="calendar" @handleFindPoint="handleFindPoint" /> --> |
|
|
|
<u-swiper :list="list" border-radius="0" height="400"></u-swiper> |
|
|
|
<u-swiper :list="list" border-radius="0" height="400" @click="gitSwiper"></u-swiper> |
|
|
|
<!-- 上传 导入wbs --> |
|
|
|
<!-- <Upload @success="onUploadSuccess" @error="onUploadError" /> --> |
|
|
|
|
|
|
@ -14,9 +14,12 @@ |
|
|
|
</view> |
|
|
|
<Volume /> |
|
|
|
<VolumeProject /> |
|
|
|
<view class="news-title"> 新闻中心 </view> |
|
|
|
<!-- <view style="height: 25rpx; width: 100%"></view> --> |
|
|
|
<view style="padding-top: 25rpx"> |
|
|
|
<view class="news-title"> 新闻中心 </view> |
|
|
|
</view> |
|
|
|
<view class="news-content" v-for="(item, index) in newsList" :key="index" @click="jumpDetail(item)"> |
|
|
|
<view class="mb-2"> |
|
|
|
<view class="mb-2" style="font-weight: 600; color: rgba(0, 0, 0, 0.85)"> |
|
|
|
{{ item.title }} |
|
|
|
</view> |
|
|
|
<view class="flex justify-between" style="font-size: 24rpx"> |
|
|
@ -92,6 +95,33 @@ export default { |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapMutations('project', ['setProjects', 'setDotList']), |
|
|
|
gitSwiper(e) { |
|
|
|
const data = this.list[e]; |
|
|
|
if (data.jumpUrl) { |
|
|
|
const jumpType = data.jumpType; |
|
|
|
if (jumpType === 1) { |
|
|
|
uni.navigateTo({ url: `/pages/detail-webview/detail-webview?jumpUrl=${data.jumpUrl}` }); |
|
|
|
} else if (jumpType === 2) { |
|
|
|
uni.downloadFile({ |
|
|
|
url: data.jumpUrl, |
|
|
|
success: function (res) { |
|
|
|
var filePath = res.tempFilePath; |
|
|
|
uni.openDocument({ |
|
|
|
filePath: filePath, |
|
|
|
showMenu: true, |
|
|
|
}); |
|
|
|
}, |
|
|
|
}); |
|
|
|
} else if (jumpType === 3) { |
|
|
|
uni.previewImage({ |
|
|
|
urls: [data.jumpUrl], |
|
|
|
longPressActions: { |
|
|
|
itemList: ['发送给朋友', '保存图片', '收藏'], |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// 查看文章详情 |
|
|
|
jumpDetail(item) { |
|
|
|
if (item.articleUrl) { |
|
|
@ -231,6 +261,7 @@ page { |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
.news-title { |
|
|
|
margin-top: 25rpx; |
|
|
|
font-weight: bold; |
|
|
|
font-size: 32rpx; |
|
|
|
border-left: 4rpx solid #3dadff; |
|
|
|