governmentArticlesDetail.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/publics/governmentArticlesDetail/governmentArticlesDetail.wxml-->
  2. <view>
  3. <view style="background: linear-gradient(#508FF4, #508ff4f5);padding: 0 30rpx 10rpx 30rpx;">
  4. <view style="font-size: 40rpx;font-family: PingFang SC;font-weight: bold;color: #fff;padding-top: 40rpx;">{{articles.DOCTITLE}}</view>
  5. <view style="display: flex;font-size: 28rpx;color: #fff;padding: 40rpx 0;">
  6. <view style="display: flex;">
  7. <view>日期:</view>
  8. <view>{{articles.DOCRELTIME}}</view>
  9. </view>
  10. <view style="display: flex;margin-left: 10rpx;">
  11. <view>来源:</view>
  12. <view>{{articles.DOCSOURCENAME}}</view>
  13. </view>
  14. </view>
  15. <view style="display: flex;justify-content: space-between;">
  16. <view style="display: flex;font-size: 28rpx;color: #fff;">
  17. <view>字号大小:</view>
  18. <view bindtap="chooseFontSize" data-size="大" class="{{fontSize === '大' ? 'fontActive' : ''}}" style="margin-left: 20rpx;">大</view>
  19. <view bindtap="chooseFontSize" data-size="中" class="{{fontSize === '中' ? 'fontActive' : ''}}" style="margin: 0 30rpx;">中</view>
  20. <view bindtap="chooseFontSize" data-size="小" class="{{fontSize === '小' ? 'fontActive' : ''}}">小</view>
  21. </view>
  22. <!-- <view style="display: flex;font-size: 28rpx;color: #e4e4e4;">
  23. <view>分享:</view>
  24. <image style="width:38rpx;height:31rpx;" src="{{imgUrl}}public-weibo.png" />
  25. <image style="margin: 0 20rpx;width:38rpx;height:31rpx;" src="{{imgUrl}}public-weixin.png" />
  26. <image style="width:38rpx;height:31rpx;" src="{{imgUrl}}public-qqkongjian.png" />
  27. </view> -->
  28. </view>
  29. <!-- <view style="width: 693rpx;height: 77rpx;background: linear-gradient(90deg, #004A93, #508FF4);box-shadow: 0 9rpx 10rpx 0 rgba(80,143,244,0.3);border-radius: 39rpx;display: flex;align-items: center;justify-content: center;margin: 40rpx 0;">
  30. <image style="width:37rpx;height:37rpx;" src="{{imgUrl}}public-voice.png" />
  31. <view style="color: #FFFFFF;font-size: 32rpx;font-family: PingFang SC;font-weight: 400;margin-left: 20rpx;" bindtap="audioPlay">语音播报</view>
  32. </view> -->
  33. </view>
  34. <view style="background: #F4F8FF;border-top: 1px solid #508FF4;margin: 50rpx 30rpx 0 30rpx;padding: 20rpx 20rpx;overflow: hidden;padding: 0 30rpx;">
  35. <rich-text style="font-size: 30px!important;" nodes="{{articles.DOCHTMLCON}}" />
  36. </view>
  37. <view wx:if="{{isFile && fileList.length > 0}}" style="padding: 0 30rpx;">
  38. <view style="font-size: 38rpx;font-family: PingFang SC;font-weight: bold;color: #333333;border-bottom: 1px solid #C5C5C5;padding: 70rpx 0 20rpx 0;">附件下载</view>
  39. <view wx:for="{{fileList}}" wx:key="index" style="display: flex;justify-content: space-between;color: #333333;height: 150rpx;align-items: center;font-size: 30rpx;">
  40. <view style="overflow: hidden;text-overflow: ellipsis;-webkit-line-clamp: 3;display: -webkit-box;-webkit-box-orient: vertical;width: 500rpx;">{{index + 1}}.{{item.APPDESC}}</view>
  41. <view bindtap="downloadFile" data-url="{{item.APPFILE}}" style="width: 151rpx;height: 50rpx;border: 1px solid #C5C5C5;border-radius: 4px;background: #FFFFFF;text-align: center;line-height: 50rpx;">下载</view>
  42. </view>
  43. </view>
  44. <view wx:if="{{zcyw.length>0}}" class="zcyw">
  45. <view class="zcyw-title">政策原文:</view>
  46. <view class="zcyw-content">
  47. <view wx:for="{{zcyw}}" wx:key="index" class="zcyw-item" bindtap="goDetail" data-id="{{item.DOCID}}">
  48. <view class="zcyw-item-title">{{index+1}}.{{item.DOCTITLE}}</view>
  49. </view>
  50. </view>
  51. </view>
  52. <view style="height:50rpx"></view>
  53. </view>