activity-detail.vue 492 B

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