activity-detail.vue 576 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="detail">
  3. <image :src="adsImage" mode="widthFix" show-menu-by-longpress></image>
  4. </view>
  5. </template>
  6. <script>
  7. export default{
  8. data(){
  9. return{
  10. adsImage:'',
  11. title:''
  12. }
  13. },
  14. onLoad(option) {
  15. this.adsImage = option.adsImage
  16. this.title= option.title
  17. console.log(this.title);
  18. if(this.title && this.title!==null && this.title !== 'null'){
  19. uni.setNavigationBarTitle({title:this.title});
  20. }
  21. }
  22. }
  23. </script>
  24. <style lang="scss">
  25. .detail{
  26. width: 100%;
  27. height: auto;
  28. image{
  29. width: 100%;
  30. height: auto;
  31. }
  32. }
  33. </style>