SlySwiper.vue 832 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view :style="$getStyle(styles)">
  3. <baseSwiper :list="dataLists" :attrsConfig="attrs" />
  4. </view>
  5. </template>
  6. <script>
  7. import baseSwiper from "./baseSwiper"
  8. import Mixin from "../Mixin";
  9. import {
  10. getShopBanner
  11. } from "./../api_list.js"
  12. export default {
  13. name: "SlySwiper",
  14. mixins: [Mixin],
  15. components: {
  16. baseSwiper
  17. },
  18. data() {
  19. return {
  20. // dataVal.dataMsg.dataList
  21. };
  22. },
  23. created() {
  24. },
  25. methods: {
  26. onNetworkRequest() {
  27. getShopBanner().then(res => {
  28. this.dataLists = res.list.map(el => {
  29. el.image = el.cover;
  30. return el
  31. })
  32. }).catch(err => {
  33. console.log('11 err', err)
  34. })
  35. }
  36. },
  37. mounted() {
  38. // this.list = componentJson.fields.list;
  39. // this.styles = componentJson.fields.styles;
  40. }
  41. }
  42. </script>
  43. <style lang="scss">
  44. </style>