Q3学习计划
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
4.4 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. {
  2. //
  3. "easycom": {
  4. // @/components/$1/$1.vue
  5. "autoscan": true,
  6. //
  7. "custom": {
  8. // uni-ui
  9. "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
  10. // Xtx components
  11. "^Xtx(.*)": "@/components/Xtx$1.vue"
  12. }
  13. },
  14. "pages": [
  15. //pageshttps://uniapp.dcloud.io/collocation/pages
  16. {
  17. "path": "pages/index/index",
  18. "style": {
  19. "navigationStyle": "custom", //
  20. "navigationBarTextStyle": "white",
  21. "navigationBarTitleText": "首页"
  22. }
  23. },
  24. {
  25. "path": "pages/my/my",
  26. "style": {
  27. "navigationStyle": "custom", //
  28. "navigationBarTextStyle": "white",
  29. "navigationBarTitleText": "我的"
  30. }
  31. },
  32. {
  33. "path": "pages/cart/cart",
  34. "style": {
  35. "navigationBarTitleText": "购物车"
  36. }
  37. },
  38. {
  39. "path": "pages/cart/cart2",
  40. "style": {
  41. "navigationBarTitleText": "购物车"
  42. }
  43. },
  44. {
  45. "path": "pages/category/category",
  46. "style": {
  47. "navigationBarTitleText": "分类"
  48. }
  49. },
  50. {
  51. "path": "pages/login/login",
  52. "style": {
  53. "navigationBarTitleText": "登录"
  54. }
  55. },
  56. {
  57. "path" : "pages/hot/hot",
  58. "style" :
  59. {
  60. "navigationBarTitleText" : "热门推荐"
  61. }
  62. },
  63. {
  64. "path" : "pages/goods/goods",
  65. "style" :
  66. {
  67. "navigationBarTitleText" : "商品详情"
  68. }
  69. }
  70. ],
  71. "globalStyle": {
  72. "navigationBarTextStyle": "black",
  73. "navigationBarTitleText": "",
  74. "navigationBarBackgroundColor": "#F8F8F8",
  75. "backgroundColor": "#F8F8F8"
  76. },
  77. // TabBar
  78. "tabBar": {
  79. "color": "#333",
  80. "selectedColor": "#27ba9b",
  81. "backgroundColor": "#fff",
  82. "borderStyle": "white",
  83. "list": [
  84. {
  85. "text": "首页",
  86. "pagePath": "pages/index/index",
  87. "iconPath": "static/tabs/home_default.png",
  88. "selectedIconPath": "static/tabs/home_selected.png"
  89. },
  90. {
  91. "text": "分类",
  92. "pagePath": "pages/category/category",
  93. "iconPath": "static/tabs/category_default.png",
  94. "selectedIconPath": "static/tabs/category_selected.png"
  95. },
  96. {
  97. "text": "购物车",
  98. "pagePath": "pages/cart/cart",
  99. "iconPath": "static/tabs/cart_default.png",
  100. "selectedIconPath": "static/tabs/cart_selected.png"
  101. },
  102. {
  103. "text": "我的",
  104. "pagePath": "pages/my/my",
  105. "iconPath": "static/tabs/user_default.png",
  106. "selectedIconPath": "static/tabs/user_selected.png"
  107. }
  108. ]
  109. },
  110. //
  111. "subPackages": [
  112. {
  113. //
  114. "root": "pagesMember",
  115. "pages": [
  116. {
  117. "path" : "settings/settings",
  118. "style" :
  119. {
  120. "navigationBarTitleText" : "设置"
  121. }
  122. },
  123. {
  124. "path" : "profile/profile",
  125. "style" :
  126. {
  127. "navigationStyle": "custom",
  128. "navigationBarTextStyle": "white",
  129. "navigationBarTitleText" : "个人中心"
  130. }
  131. },
  132. {
  133. "path" : "address/address",
  134. "style" :
  135. {
  136. "navigationBarTitleText" : "地址管理"
  137. }
  138. },
  139. {
  140. "path" : "address-form/address-form",
  141. "style" :
  142. {
  143. "navigationBarTitleText" : ""
  144. }
  145. }
  146. ]
  147. },
  148. {
  149. "root": "pagesOrder",
  150. "pages": [
  151. {
  152. "path": "create/create",
  153. "style": {
  154. "navigationBarTitleText": "填写订单"
  155. }
  156. },
  157. {
  158. "path": "detail/detail",
  159. "style": {
  160. "navigationBarTitleText": "订单详情",
  161. "navigationStyle": "custom"
  162. }
  163. },
  164. {
  165. "path": "payment/payment",
  166. "style": {
  167. "navigationBarTitleText": "支付结果"
  168. }
  169. },
  170. {
  171. "path": "list/list",
  172. "style": {
  173. "navigationBarTitleText": "订单列表"
  174. }
  175. }
  176. ]
  177. }
  178. ],
  179. //
  180. "preloadRule": {
  181. "pages/my/my": {
  182. "network": "all",
  183. "packages": ["pagesMember"]
  184. }
  185. }
  186. }