1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="activity">
- <image :src="banner" mode="widthFix"></image>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- banner:'',
- }
- },
- onLoad() {
-
- },
- methods:{
- GetHomeLiveAdvertising(){
- this.CommonService.GetHomeLiveAdvertising().then(response =>{
- this.banner = response.data
- }).catch(error =>{
- this.$util.msg(error.msg,3000);
- })
- }
- },
- onPullDownRefresh() {
- setTimeout(() => {
- this.GetHomeLiveAdvertising()
- uni.stopPullDownRefresh()
- }, 200)
- },
- onShow() {
- this.GetHomeLiveAdvertising()
- }
- }
- </script>
-
- <style lang="scss">
- .activity{
- width: 100%;
- height: auto;
- image{
- width: 100%;
- height: auto;
- }
- }
- </style>
|