cooperationActiveReview.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="rf-category activityIntroduction">
  3. <view style="margin-top: 20upx;margin-left: 20upx;margin-right: 20upx;">
  4. <!-- 活动回顾 -->
  5. <view class="" style="overflow: hidden;">
  6. <view v-html="activityInfo.activityReview"></view>
  7. </view>
  8. <!-- 精彩回顾 -->
  9. <view style="width: 100%;margin: 20upx 0upx;" v-if="Object.keys(photos).length != 0">
  10. <text class="enterprise_style_span" style="margin: 20upx;">{{i18n('WonderfulReview')}}</text>
  11. <view id="wrap">
  12. <view v-for="(item,index) in photos" :key="index + 2" style="margin:20upx 0upx 0upx 20upx;">
  13. <img :src="websiteUrl+item" alt="" style="width: 100%;height: 150px;" mode="aspectFit"
  14. v-if="item" />
  15. <img :src="websiteUrl+'/def/projectdefault.png'" alt="" mode="aspectFit"
  16. style="width: 100%;height: 150upx;" v-else />
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name: "cooperationActiveReview",
  26. props: ['activityInfo', 'photos'],
  27. data() {
  28. return {
  29. }
  30. },
  31. watch: {
  32. "photos": function(val, oldVal) {
  33. console.log('new:', val, "oldVal", oldVal)
  34. },
  35. },
  36. methods: {
  37. i18n(data) {
  38. return this.$t('common.' + data);
  39. },
  40. }
  41. }
  42. </script>
  43. <style scoped lang="scss">
  44. // #wrap {
  45. // width: 100%;
  46. // // overflow: hidden;
  47. // // position: relative;
  48. // height: 500upx;
  49. // margin: 32upx;
  50. // }
  51. #img {
  52. width: 100%;
  53. }
  54. .activityIntroduction /deep/ img {
  55. max-width: 700upx !important;
  56. }
  57. /*.coo_box >>> img {*/
  58. /* width: 100%;height: 100%;*/
  59. /*}*/
  60. </style>