12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <view :style="$getStyle(styles)">
- <baseSwiper :list="dataLists" :attrsConfig="attrs" />
- </view>
- </template>
- <script>
- import baseSwiper from "./baseSwiper"
- import Mixin from "../Mixin";
- import {
- getShopBanner
- } from "./../api_list.js"
- export default {
- name: "SlySwiper",
- mixins: [Mixin],
- components: {
- baseSwiper
- },
- data() {
- return {
- // dataVal.dataMsg.dataList
- };
- },
- created() {
- },
- methods: {
-
- onNetworkRequest() {
- getShopBanner().then(res => {
- this.dataLists = res.list.map(el => {
- el.image = el.cover;
- return el
- })
- }).catch(err => {
- console.log('11 err', err)
- })
- }
- },
- mounted() {
- // this.list = componentJson.fields.list;
- // this.styles = componentJson.fields.styles;
- }
- }
- </script>
- <style lang="scss">
- </style>
|