You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
784 B
47 lines
784 B
<template>
|
|
<view class="">
|
|
<u-swiper :list="list"></u-swiper>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import api from '@/utils/api'
|
|
import utils from '@/utils'
|
|
import md5 from 'js-md5'
|
|
import store from '@/store'
|
|
import cont from "@/components/navigation/navigation.vue"
|
|
export default {
|
|
data() {
|
|
return {
|
|
list: [],
|
|
ticket:'',
|
|
}
|
|
},
|
|
|
|
onLoad() {
|
|
this.ticket= uni.getStorageSync('logInfo').data;
|
|
this.init();
|
|
},
|
|
|
|
onReady() {
|
|
|
|
},
|
|
methods: {
|
|
init(){
|
|
const post = api.banner({})
|
|
.then(res =>{
|
|
this.list=res.data;
|
|
for(var i=0;i<this.list.length;i++){
|
|
this.list[i].adImgPath='https://apitest.luck-work.com'+this.list[i].adImgPath
|
|
}
|
|
})
|
|
},
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
|
@import './index.css';
|
|
</style>
|
|
|