pages.json 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/home/home",
  5. "style": {
  6. // "navigationStyle": "custom",
  7. "backgroundColorTop": "#ff5d5b",
  8. "backgroundColorBottom": "#F8F8F8",
  9. // "navigationBarTitleText": "",
  10. "app-plus": {
  11. "titleNView": {
  12. // "backgroundImage": "./static/images/search.png",
  13. "searchInput": {
  14. "backgroundColor": "rgba(255,255,255,1)",
  15. "borderRadius": "16px", //输入框圆角
  16. "placeholder": "粘贴宝贝标题",
  17. "disabled": true //disable时点击输入框不置焦,可以跳到新页面搜索
  18. },
  19. "buttons": [{
  20. "text": "\ue847",
  21. "fontSrc": "/static/uni.ttf",
  22. "width": "auto",
  23. "fontSize": "22px"
  24. }]
  25. }
  26. }
  27. }
  28. }, {
  29. "path": "pages/index/index",
  30. "style": {
  31. "bounce": "none",
  32. "navigationStyle": "custom"
  33. }
  34. },
  35. {
  36. "path": "pages/order/order",
  37. "style": {
  38. "navigationBarTitleText": "订单管理",
  39. "enablePullDownRefresh": false
  40. }
  41. }, {
  42. "path": "pages/order/back-order",
  43. "style": {
  44. "navigationBarTitleText": "待发货",
  45. "enablePullDownRefresh": false
  46. }
  47. }, {
  48. "path": "pages/user/user-center",
  49. "style": {
  50. "navigationBarTitleText": "我的",
  51. "enablePullDownRefresh": false,
  52. "backgroundColorTop": "#ff5d5b",
  53. "app-plus": {
  54. "titleNView": {
  55. "buttons": [{
  56. "text": "\ue532",
  57. "fontSrc": "/static/uni.ttf",
  58. "width": "auto",
  59. "fontSize": "24px"
  60. },
  61. {
  62. "text": "\ue847",
  63. "fontSrc": "/static/uni.ttf",
  64. "width": "auto",
  65. "fontSize": "22px"
  66. }
  67. ]
  68. }
  69. }
  70. }
  71. }, {
  72. "path": "pages/shopping-cart/shopping-cart",
  73. "style": {
  74. "navigationBarTitleText": "购物车",
  75. "enablePullDownRefresh": false
  76. }
  77. }, {
  78. "path": "pages/user/login",
  79. "style": {
  80. "navigationBarTitleText": "登录",
  81. "enablePullDownRefresh": false,
  82. "navigationBarBackgroundColor": "#ff5d5b",
  83. "backgroundColor": "#ff5d5b"
  84. }
  85. }, {
  86. "path": "pages/user/find-pass",
  87. "style": {
  88. "navigationBarTitleText": "找回密码",
  89. "enablePullDownRefresh": false,
  90. "backgroundColor": "#ff5d5b"
  91. }
  92. }, {
  93. "path": "pages/register/step1",
  94. "style": {
  95. "navigationBarTitleText": "第一步",
  96. "enablePullDownRefresh": false,
  97. "backgroundColor": "#ff5d5b"
  98. }
  99. }, {
  100. "path": "pages/register/step2",
  101. "style": {
  102. "navigationBarTitleText": "第二步",
  103. "enablePullDownRefresh": false,
  104. "backgroundColor": "#ff5d5b"
  105. }
  106. }, {
  107. "path": "pages/register/step3",
  108. "style": {
  109. "navigationBarTitleText": "注册",
  110. "enablePullDownRefresh": false,
  111. "backgroundColor": "#ff5d5b"
  112. }
  113. }, {
  114. "path": "pages/user/simple-article",
  115. "style": {
  116. "navigationBarTitleText": "",
  117. "enablePullDownRefresh": false
  118. }
  119. }, {
  120. "path": "pages/user/vcode-login",
  121. "style": {
  122. "navigationBarTitleText": "登录",
  123. "enablePullDownRefresh": false,
  124. "navigationBarBackgroundColor": "#ff5d5b",
  125. "backgroundColor": "#ff5d5b"
  126. }
  127. }, {
  128. "path": "pages/user/setting",
  129. "style": {
  130. "navigationBarTitleText": "设置",
  131. "enablePullDownRefresh": false,
  132. "backgroundColorTop": "#ff5d5b"
  133. }
  134. }, {
  135. "path": "pages/message/message",
  136. "style": {
  137. "navigationBarTitleText": "消息",
  138. "enablePullDownRefresh": false
  139. }
  140. }, {
  141. "path": "pages/product/product-details",
  142. "style": {
  143. "navigationBarTitleText": "商品详情",
  144. "enablePullDownRefresh": false
  145. }
  146. },
  147. {
  148. "path": "pages/product/my-product",
  149. "style": {
  150. "navigationBarTitleText": "我的商品",
  151. "enablePullDownRefresh": true
  152. }
  153. }, {
  154. "path": "pages/product/my-product-tabbar",
  155. "style": {
  156. "navigationBarTitleText": "我的商品",
  157. "enablePullDownRefresh": true
  158. }
  159. }, {
  160. "path": "pages/product/product-edit",
  161. "style": {
  162. "navigationBarTitleText": "发布商品",
  163. "enablePullDownRefresh": false
  164. }
  165. }, {
  166. "path": "pages/order/order-details",
  167. "style": {
  168. "navigationBarTitleText": "订单详情",
  169. "enablePullDownRefresh": false
  170. }
  171. }, {
  172. "path": "pages/user/notice",
  173. "style": {
  174. "navigationBarTitleText": "官方公告",
  175. "enablePullDownRefresh": false
  176. }
  177. }, {
  178. "path": "pages/user/strategy",
  179. "style": {
  180. "navigationBarTitleText": "新手攻略",
  181. "enablePullDownRefresh": false
  182. }
  183. }, {
  184. "path": "pages/user/problem",
  185. "style": {
  186. "navigationBarTitleText": "常见问题",
  187. "enablePullDownRefresh": false
  188. }
  189. }, {
  190. "path": "pages/user/kefu",
  191. "style": {
  192. "navigationBarTitleText": "联系客服",
  193. "backgroundColorTop": "#ff5d5b",
  194. "enablePullDownRefresh": false
  195. }
  196. }, {
  197. "path": "pages/user/feedback",
  198. "style": {
  199. "navigationBarTitleText": "意见反馈",
  200. "enablePullDownRefresh": false,
  201. "backgroundColorTop": "#ff5d5b"
  202. }
  203. }, {
  204. "path": "pages/home/camera",
  205. "style": {
  206. "navigationBarTitleText": "扫一扫",
  207. "enablePullDownRefresh": false
  208. }
  209. }
  210. ,{
  211. "path" : "pages/order/cashier",
  212. "style" :
  213. {
  214. "navigationBarTitleText": "收银台",
  215. "enablePullDownRefresh": false
  216. }
  217. }
  218. ,{
  219. "path" : "pages/user/withdraw",
  220. "style" :
  221. {
  222. "navigationBarTitleText": "提现",
  223. "enablePullDownRefresh": false
  224. }
  225. }
  226. ,{
  227. "path" : "pages/user/bind-alipay",
  228. "style" :
  229. {
  230. "navigationBarTitleText": "绑定支付宝",
  231. "enablePullDownRefresh": false
  232. }
  233. }
  234. ,{
  235. "path" : "pages/user/nickname",
  236. "style" :
  237. {
  238. "navigationBarTitleText": "修改昵称",
  239. "enablePullDownRefresh": false
  240. }
  241. }
  242. ,{
  243. "path" : "pages/user/collection",
  244. "style" :
  245. {
  246. "navigationBarTitleText": "我的收藏",
  247. "enablePullDownRefresh": false
  248. }
  249. }
  250. ,{
  251. "path" : "pages/user/safe-pass",
  252. "style" :
  253. {
  254. "navigationBarTitleText": "设置安全密码",
  255. "enablePullDownRefresh": false
  256. }
  257. }
  258. ],
  259. "globalStyle": {
  260. "navigationBarTextStyle": "white",
  261. "navigationBarTitleText": "省心直供",
  262. "navigationBarBackgroundColor": "#ff5d5b",
  263. "backgroundColor": "#F8F8F8"
  264. },
  265. "tabBar": {
  266. "color": "#7A7E83",
  267. "selectedColor": "#ff5d5b",
  268. "borderStyle": "black",
  269. "backgroundColor": "#ffffff",
  270. "height":"44px",
  271. "iconWidth":"20px",
  272. "midButton": {
  273. "iconPath": "static/images/camera.png",
  274. "iconWidth": "36px",
  275. "height": "40px"
  276. },
  277. "list": [{
  278. "pagePath": "pages/home/home",
  279. "iconPath": "static/images/home.png",
  280. "selectedIconPath": "static/images/home_selected.png",
  281. "text": "首页"
  282. }, {
  283. "pagePath": "pages/order/back-order",
  284. "iconPath": "static/images/qiang.png",
  285. "selectedIconPath": "static/images/qiang_selected.png",
  286. "text": "待发货"
  287. }, {
  288. "pagePath": "pages/shopping-cart/shopping-cart",
  289. "iconPath": "static/images/kan.png",
  290. "selectedIconPath": "static/images/kan_selected.png",
  291. "text": "购物车"
  292. }, {
  293. "pagePath": "pages/user/user-center",
  294. "iconPath": "static/images/user.png",
  295. "selectedIconPath": "static/images/user_selected.png",
  296. "text": "我的"
  297. }]
  298. },
  299. "condition": { //模式配置,仅开发期间生效
  300. "current": 0, //当前激活的模式(list 的索引项)
  301. "list": [{
  302. "name": "", //模式名称
  303. "path": "", //启动页面,必选
  304. "query": "" //启动参数,在页面的onLoad函数里面得到
  305. }]
  306. }
  307. }