日日日日人人人夜夜夜2017_美女被c出白浆_国产精品毛片va一区二区三区_啪啪av大全导航福利网址

  • <ul id="ms0om"><pre id="ms0om"></pre></ul>
    <samp id="ms0om"></samp>
    <strike id="ms0om"></strike>
  • 小程序自定義實現loading,小程序,站長入門,新手站長網
    • 首頁
    • 站長入門
      • 外貿建站
      • WooCommerce
      • 建站入門
      • 域名知識
      • 編程代碼
      • 工具資源
      • 網站優化
      • 數據庫
      • 服務器
      • 小程序
      • 電商
      • 編程英語
    • Cms文章
      • wordpress
      • pbootcms
      • zblog
      • 易優
      • 帝國cms
      • 迅睿
    • PB 教程
      • 新手入門教程
      • Pbootcms文章
      • 用戶使用手冊
      • 常見問題解答
      • pbootcms小程序
    • 應用市場
    • 筆記分享
      • 網絡安全
      • 自媒體
      • 抖音
      • 快手
      • 其他
      • 手機技巧
    • 會員中心
    首頁 > 站長入門 > 小程序 >

    小程序自定義實現loading

    2022-10-29 發布在 小程序0

    <loading>{{正在加載...}}</loading> //內容也是可自定義的

    效果圖:




    二、代碼實現:

    1.loading 組件的view實<!-- loading開始 -->








     
    <em id="__mceDel">      <view class="loading" wx:if="{{loadingFlag}}">        <view class="loading_mask"></view>
            <view class="weui-loadmore">
              <view class="weui-loading"></view>
              <text class="weui-loadmore__tips">正在加載</text>
            </view>
         </view>
           <!-- loading結束 --><br><br>調用的頁面組件實現:<br> 配置:</em>


          {"usingComponents": {"com-loading":"../component/comLoading/loading"}}
       調用的頁面調用:(可以自定義加載時的文字顯示)
         <com-loading pro-content="正在加載"></com-loading>

    2.組件js:

    properties: {
        proContent:{
          type:String,
          value:"正在加載..."
        },
      },

    3.css樣式




































     
    /* loading樣式開始 */
    .loading{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
    .loading_mask{
      position: absolute;
      width: 45%;
      margin: 14em 22.5%;
      height: 2.6em;
      border-radius: 20rpx;
      background: #000;
      opacity: .5;
    }
    .weui-loadmore {
      position: absolute;
      width: 45%;
      margin: 16em 22.5%;
      line-height: 2.6em;
      font-size: 14px;
      color: #fff;
      text-align: center;
    }
    .weui-icon_toast.weui-loading{
      margin:30px 0 0;
      width:38px;
      height:38px;
      vertical-align:baseline;
    }
    .weui-loading{
        width:20px;
        height:20px;
        display:inline-block;
        vertical-align:middle;
        -webkit-animation:weuiLoading 1s steps(12, end) infinite;
        animation:weuiLoading 1s steps(12, end) infinite;
        background:transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;
        background-size:100%;
      }
      .weui-loading.weui-loading_transparent,
      .weui-btn_loading.weui-btn_primary .weui-loading,
      .weui-btn_loading.weui-btn_warn .weui-loading{
        background-image:url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect xmlns='http://www.w3.org/2000/svg' width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.56)' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.5)' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.43)' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.38)' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.32)' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.28)' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.25)' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.2)' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.17)' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.14)' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.1)' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.03)' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E");
      }
      @-webkit-keyframes weuiLoading{
        0%{
        -webkit-transform:rotate3d(0, 0, 1, 0deg);
            transform:rotate3d(0, 0, 1, 0deg);
        }
        100%{
        -webkit-transform:rotate3d(0, 0, 1, 360deg);
            transform:rotate3d(0, 0, 1, 360deg);
        }
      }
      @keyframes weuiLoading{
        0%{
        -webkit-transform:rotate3d(0, 0, 1, 0deg);
            transform:rotate3d(0, 0, 1, 0deg);
        }
        100%{
        -webkit-transform:rotate3d(0, 0, 1, 360deg);
            transform:rotate3d(0, 0, 1, 360deg);
        }
      }
    .weui-loadmore__tips {
      display: inline-block;
      vertical-align: middle;
      color: rgba(0,0,0,0.9);
      color: var(--weui-FG-0);
    }

    如果您的問題還未解決可以聯系站長付費協助。 加入我們

    有問題可以加入技術QQ群一起交流學習
    本站vip會員 請加入無憂模板網 VIP群(50604020) PS:加入時備注用戶名或昵稱
    普通注冊會員或訪客 請加入無憂模板網 技術交流群(50604130)
    客服微信號:15898888535
    聲明:本站所有文章資源內容,如無特殊說明或標注,均為采集網絡資源。如若內容侵犯了原著者的合法權益,可聯系站長刪除。

    加載 內容 loading 組件 定義 程序 lt 代碼 實現 gt
    賞
    上一篇 小程序布局方式
    下一篇 微信小程序swiper輪播圖片自適應高度

    相關文章

    • 泰安SEO內容頁優化的關鍵步驟;泰安seo內容頁優化的關鍵步驟
    • SEO優化員工的工作內容及技巧(seo優化專員工作的內容有哪些)
    • SEO深度優化平臺廣告分析:助你實現網站流量暴漲
    • 三水網絡推廣專家,助您實現SEO優化的目標
    • seo內容優化幫你火21星熱情(seo資訊引流拓客)
    • SEO優化任務:提升網站排名,實現更高流量與曝光

    熱門

    • 1 微信小程序中使用HTTPS調用自帶文本安全內容檢測接口 踩坑
    • 2 微信小程序+php 對接獲取access token實例
    • 3 微信小程序 對接php代碼例子
    • 4 微信小程序復制文字功能詳解

    應用市場

    • ¥100 采集文章自動推送百度插件 PHP插件支持推送百度當天文章

      ¥100 采集文章自動推送百度插件 PHP插件支持推送百度當天文章

      2023-07-03

    • ¥50 pbootcms副欄目多選功能 默認只能多選一個 此插件可多選多個欄目

      ¥50 pbootcms副欄目多選功能 默認只能多選一個 此插件可多選多個欄目

      2023-07-03

    • ¥200 網站維護/網站修改/問題解決/網站搬遷/php修改/asp修改/網站搬家

      ¥200 網站維護/網站修改/問題解決/網站搬遷/php修改/asp修改/網站搬家

      2023-07-03

    • ¥100  根據標題生成圖片,文章頁自動配標題配圖,避免版權問題,所有cms通用php

      ¥100 根據標題生成圖片,文章頁自動配標題配圖,避免版權問題,所有cms通用php

      2023-07-03

    熱門標簽

    置頂   發短   撤銷   時光   Centos8   長度   發多   基礎庫   Helvetica   找到   NET   投資   有關   db   客戶機   HP   SEOer   創建   播放量   消費者   工具欄   衛生紙   專業版   nova8   申訴   低調   Neue   首先   業務   暴富   歷程   stripos   馬木馬   USB   苦惱   網址   博主   產品   文檔   爆單  
    • 站長入門
    • Cms文章
    • PB 教程
    • 應用市場
    • 筆記分享
    • 會員中心
    • XML地圖

    Copyright ? 2018-2020 新手站長網 All Rights Reserved.
    免責聲明:本站所有資源(模板、圖片、字體等)搜集整理于互聯網或者網友提供,僅供學習與交流使用,如果不小心侵犯到你的權益,請及時聯系我們刪除該資源,郵箱mcuv#qq.com。 魯ICP備2021016954號-3 網站模板

    實用工具

    覺得文章有用就打賞一下吧

    微信掃一掃打賞

    感谢您访问我们的网站,您可能还对以下资源感兴趣:

    日日日日人人人夜夜夜2017_美女被c出白浆_国产精品毛片va一区二区三区_啪啪av大全导航福利网址
    <ul id="mw2sk"><pre id="mw2sk"></pre></ul>
    <ul id="mw2sk"></ul>