path-live.vue 750 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view class="activity">
  3. <image :src="banner" mode="widthFix"></image>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. banner:'',
  11. }
  12. },
  13. onLoad() {
  14. },
  15. methods:{
  16. GetHomeLiveAdvertising(){
  17. this.CommonService.GetHomeLiveAdvertising().then(response =>{
  18. this.banner = response.data
  19. }).catch(error =>{
  20. this.$util.msg(error.msg,3000);
  21. })
  22. }
  23. },
  24. onPullDownRefresh() {
  25. setTimeout(() => {
  26. this.GetHomeLiveAdvertising()
  27. uni.stopPullDownRefresh()
  28. }, 200)
  29. },
  30. onShow() {
  31. this.GetHomeLiveAdvertising()
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. .activity{
  37. width: 100%;
  38. height: auto;
  39. image{
  40. width: 100%;
  41. height: auto;
  42. }
  43. }
  44. </style>