日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)百度小程序教程:page-search搜索頁模板
  • page-search 搜索頁模板
    • 示例
    • 頁面內(nèi)容
      • 搜索頁模板
    • npm 依賴
    • Bug & Tip

    page-search 搜索頁模板

    從開發(fā)者工具 v2.25.1-rc 版本開始支持。

    萊西ssl適用于網(wǎng)站、小程序/APP、API接口等需要進行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:13518219792(備注:SSL證書合作)期待與您的合作!

    解釋:搜索頁模板。包括搜索框、搜索推薦、搜索運營、搜索結(jié)果列表等內(nèi)容。

    示例

    掃碼體驗

    代碼示例

    請使用百度APP掃碼

    頁面內(nèi)容

    搜索頁模板

    包括導(dǎo)航欄、搜索框、搜索歷史區(qū)域、搜索推薦區(qū)域、搜索推薦列表、搜索結(jié)果列表等內(nèi)容,開發(fā)者可根據(jù)自身需要添加或刪除模塊。
    頁面路徑:index/index

    代碼示例

    • SWAN
    • JSON
     
     
     
    1. title="搜索"
    2. has-back="{{showBack}}"
    3. backgroundColor="#fff"
    4. bindnavigateback="navigateBack">
    5. search-icon-color="#999"
    6. placeholder="{{searchPlaceholder}}"
    7. preset-word="{{searchPresetword}}"
    8. value="{=searchValue=}"
    9. focus="{=isFocus=}"
    10. bindsearch="search"
    11. bindclear="clear"
    12. bindinput="input"
    13. bindfocus="focus"
    14. theme="white"/>
    15. title="歷史搜索"
    16. max-height="367.75rpx"
    17. s-if="historyItems.length > 0 && searchValue == ''">
    18. 全部刪除
    19. 完成
    20. class="history-label history-label-{{item.status}}"
    21. hover-class="history-label-hover"
    22. hover-start-time="0"
    23. hover-stay-time="0"
    24. data-status="{{item.status}}"
    25. data-index="{{index}}"
    26. data-value="{{item.label}}"
    27. catchtap="historyLabelTap"
    28. bindlongpress="historyLableLongpress">{{item.label}}
    29. class="icon-delete"
    30. s-if="item.status === 1"
    31. name="delete"
    32. color="#999"
    33. size="21.74rpx">
    34. title="大家都在搜"
    35. max-height="289.86rpx"
    36. s-if="operateItems.length > 0 && searchValue == ''">
    37. class="operate-item {{index % 2 == 0 ? '' : 'operate-odd'}}"
    38. hover-class="operate-item-hover"
    39. hover-stay-time="100"
    40. bindtap="operateItemTap"
    41. data-item="{{item}}">{{item}}
    42. class="suggestion-item-container"
    43. hover-class="suggestion-item-hover"
    44. hover-stay-time="100"
    45. bindtap="suggestionTap"
    46. data-item="{{item.label}}">
    47. {{text}}
    48. class="search-result-item-container"
    49. hover-class="search-result-item-hover"
    50. hover-stay-time="100"
    51. data-item="{{item}}"
    52. bindtap="resultItemTap">
    53. {{text}}
    54. {{item.desc}}
    55. class="search-status"
    56. loading="{{pageStatus.loading}}"
    57. loading-title="{{pageStatus.loadingTitle}}"
    58. bind:smtreloading="reloading"
    59. title="{{pageStatus.title}}"
    60. desc="{{pageStatus.desc}}"
    61. icon="{{pageStatus.icon}}"
    62. showBtn="{{pageStatus.showBtn}}"
    63. btnText="{{pageStatus.btnText}}">
     
     
     
    1. {
    2. "navigationBarTitleText": "智能小程序示例",
    3. "navigationStyle": "custom",
    4. "usingComponents": {
    5. "topbar": "../components/topbar/topbar",
    6. "search-block": "../components/search-block/search-block",
    7. "smt-search-bar": "@smt-ui/component/src/search-bar",
    8. "smt-icon": "@smt-ui/component/src/icon",
    9. "smt-page-status": "@smt-ui/component/src/page-status"
    10. }
    11. }

    npm 依賴

    名稱 版本號
    @smt-ui/componentlatest

    Bug & Tip

    • Tip:該模板使用了 ES6 語法,需要開啟開發(fā)者工具的增強編譯,操作步驟參看開啟說明;同時也需開啟上傳代碼時樣式自動補全。
    • Tip:以上代碼示例為小程序前端代碼,可直接在模擬器和真機預(yù)覽。
    • Tip:模板中使用的是測試數(shù)據(jù),開發(fā)者需要從接口中獲取真實的數(shù)據(jù)。

    當(dāng)前題目:創(chuàng)新互聯(lián)百度小程序教程:page-search搜索頁模板
    分享網(wǎng)址:http://www.dlmjj.cn/article/dhegoes.html