• 微信小程序--动画animation


    js:
    list:[],
    contentflag:false
     
    this.animation = wx.createAnimation({
    duration: 500,
    timingFunction: 'linear',
    })
     
    //
    var systemInfo = wx.getSystemInfoSync();
    var px = systemInfo.windowWidth;
    this.animation.translateX(-px).step()
    this.setData({
      animation: this.animation.export()
    });
     
    //下拉刷新
    bottomhd() {
      var _this = this;
      //调接口
    },
    //获取失败
    err() {
      var _this = this;
      var systemInfo = wx.getSystemInfoSync();
      var px = systemInfo.windowWidth;
      this.animation.translateX(px).step();
      _this.setData({
        animation: this.animation.export(),
      })
    },
     
    if (res.data.data.list.length < 10) {
      _this.setData({
        contentflag: true
      });
    }
     
    var id = e.currentTarget.dataset.id;
     
    wxml:
    <view  animation="{{animation}}">
      <scroll-view scroll-y class='brandcontent' bindscrolltolower="bottomhd">
        <view wx:for="{{list}}" wx:for-index="index" wx:for-item="item" data-id="{{item.code}}" data-name="{{item.name}}" bindtap='getid'>{{item.name}}</view>
        <view wx:if="{{contentflag}}">已经到底了</view>
      </scroll-view>
    </view>
  • 相关阅读:
    随笔一
    UISegmentedControl
    adobe as3 samples
    将flash的文字转换为flash可用的矢量图
    让drawRoundRect抗锯齿的最简单的方法
    AS3和FLEX优化技巧
    Spark project 超级强大的AS3库
    API汇集
    一个as3开发人员的话
    好公司职位要求
  • 原文地址:https://www.cnblogs.com/Super-scarlett/p/10309411.html
Copyright © 2020-2023  润新知