activity-detail.vue 477 B

1234567891011121314151617181920212223242526272829303132
  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. uni.setNavigationBarTitle({title:this.title});
  18. }
  19. }
  20. </script>
  21. <style lang="scss">
  22. .detail{
  23. width: 100%;
  24. height: auto;
  25. image{
  26. width: 100%;
  27. height: auto;
  28. }
  29. }
  30. </style>