1. {
  2. "path" : "pages/search/search",
  3. "style" :
  4. {
  5. "navigationBarTitleText": "",
  6. "enablePullDownRefresh": false,
  7. "app-plus": {
  8. // 配置导航栏
  9. "titleNView": {
  10. // 导航栏搜索框
  11. "searchInput": {
  12. "align":"center",
  13. "backgroundColor":"#F5F4F2",
  14. "borderRadius":"4px",
  15. //"disabled": true, disabled设置为true后搜索栏将不能输入信息
  16. "placeholder":"搜索帖子",
  17. "placeholderColor":"#6D6C67"
  18. },
  19. "buttons":[{
  20. "color":"#333333",
  21. "colorPressed":"#FD597C",
  22. "float":"right",
  23. "fontSize":"20px",
  24. "text":"搜索"
  25. }]
  26. }
  27. }
  28. }
  29. }

image.png

取消左侧默认返回按钮,从左侧进入的动画效果

  1. {
  2. "path" : "pages/user-list/user-list",
  3. "style" :
  4. {
  5. // app端配置
  6. "app-plus": {
  7. // 动画效果,从左侧进入
  8. "animationType":"slide-in-left",
  9. // 导航栏配置
  10. "titleNView": {
  11. // 取消返回按钮
  12. "autoBackButton":false,
  13. // 导航栏搜索框
  14. "searchInput": {
  15. "align":"center",
  16. "backgroundColor":"#F5F4F2",
  17. "borderRadius":"4px",
  18. "placeholder":"搜索",
  19. "placeholderColor":"#6D6C67"
  20. },
  21. "buttons":[{
  22. "color":"#333333",
  23. "colorPressed":"#FD597C",
  24. "float":"right",
  25. "fontSize":"20px",
  26. "text":"取消"
  27. }]
  28. }
  29. }
  30. }
  31. }