<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ![](https://box.kancloud.cn/011807262f48a4193ab79dd5a4f16b0a_370x491.gif) //index.js //獲取應用實例 var app = getApp() Page({ data: { switchData: [ { id: 1, color: 'darkorange', isOn: false }, { id: 2, color: 'darksalmon', isOn: true }, { id: 3, isOn: false, }, { id: 4, color: 'firebrick', isOn: true } ], }, //事件處理函數 bindViewTap: function() { wx.navigateTo({ url: '../logs/logs' }) }, onLoad: function () { console.log('onLoad') var that = this //調用應用實例的方法獲取全局數據 app.getUserInfo(function(userInfo){ //更新數據 that.setData({ userInfo:userInfo }) }) }, tapSwitch: function(event) { var index = event.currentTarget.id - 1; this.data.switchData[index].isOn = !this.data.switchData[index].isOn this.setData({ switchData: this.data.switchData }); } }) index.wxml <!--index.wxml--> <import src="../../utils/templates/switch/switch.wxml" /> <view class="container"> <text class="title">自定義switch</text> <view class="switch-container"> <view style="margin-right:20px" wx:for="{{switchData}}"> <template is="switch" data="{{isOn: item.isOn, id:item.id, onTintColor:item.color}}"/> </view> </view> <text class="title">微信switch</text> <view class="switch-container"> <switch/> </view> </view> index.wxss /**index.wxss**/ @import "../../utils/templates/switch/switch.wxss"; .title { font-size: 15; margin-bottom: 5px; color: gray; } .switch-container { display: flex; display: -webkit-flex; margin-bottom: 200rpx; }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看