activityDetail.vue 568 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view>
  3. <u-image :src="src" mode="widthFix"></u-image>
  4. <view class="homeBtn" @click="home">
  5. <image src="/static/home.png" style="width: 40upx;height: 40upx;" />
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. src: '',
  14. activityId: '',
  15. }
  16. },
  17. onLoad(options) {
  18. this.activityId = options.activityId;
  19. this.src = options.poster;
  20. },
  21. methods: {
  22. home() {
  23. uni.navigateTo({
  24. url: "/pages/activityList/home/home?activityId=" + this.activityId,
  25. })
  26. },
  27. }
  28. }
  29. </script>
  30. <style>
  31. </style>