shopro.js 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962
  1. import http from '@/shopro/request/index'
  2. import share from '@/shopro/share';
  3. const state = {
  4. shop: {}, // 商城信息
  5. wechat: {}, // 微信配置
  6. share: {}, // 分享配置
  7. payment: {}, // 支付配置
  8. addons: [], // 插件配置
  9. chat: uni.getStorageSync("chat") || {}, // 客服配置
  10. store: {}, // 商城信息
  11. tabbarData: [], //自定义底部导航数据
  12. recharge: uni.getStorageSync("recharge") || {}, //充值配置
  13. homeTemplate: [], // 首页模板数据
  14. userTemplate: [], // 个人中心模板数据
  15. floatData: {}, // 悬浮按钮数据
  16. popupData: {}, // 弹窗数据
  17. hasTemplate: true, //是否有模板数据
  18. shareInfo: {} // 默认分享数据
  19. }
  20. const getters = {
  21. initShop: state => state.shop,
  22. initStore: state => state.store,
  23. initShare: state => state.share,
  24. initPayment: state => state.payment,
  25. initAddons: state => state.addons,
  26. initChat: state => state.chat,
  27. initWechat: state => state.wechat,
  28. initRecharge: state => state.recharge,
  29. hasTemplate: state => state.hasTemplate,
  30. homeTemplate: state => state.homeTemplate,
  31. userTemplate: state => state.userTemplate,
  32. floatData: state => state.floatData,
  33. popupData: state => state.popupData,
  34. tabbarData: state => state.tabbarData,
  35. shareInfo: state => state.shareInfo
  36. }
  37. const actions = {
  38. // 初始化数据
  39. async appInit({
  40. commit,
  41. dispatch
  42. }, options) {
  43. let config = {
  44. addons: ["alisms", "epay", "shopro", "summernote"],
  45. payment: ["wechat"],
  46. shop: {
  47. copyright: ["版权所有", "Copyright 2022-2028"],
  48. name: '中宏商城'
  49. }
  50. }
  51. commit('CONFIG', config);
  52. return config;
  53. // const result = await http('common.init');
  54. // if (result.code === 1) {
  55. // commit('CONFIG', config);
  56. // if (!options?.query?.token) {
  57. // dispatch('autoLogin');
  58. // }
  59. // return result.data;
  60. // }
  61. // return true;
  62. },
  63. // 获取模板数据
  64. async getTemplate({
  65. commit
  66. }, options) {
  67. let shop_id = 0;
  68. // #ifdef H5
  69. if (options?.query.shop_id) {
  70. shop_id = options.query.shop_id;
  71. }
  72. // #endif
  73. // #ifdef MP
  74. if (options?.query.scene) {
  75. let scene = decodeURIComponent(options?.query.scene);
  76. let sceneObj = scene.split('=');
  77. if (sceneObj[0] === 'shop_id') {
  78. shop_id = sceneObj[1]
  79. }
  80. }
  81. // #endif
  82. let template = {
  83. "home": [
  84. {
  85. "id": 27592,
  86. "type": "banner",
  87. "category": "home",
  88. "name": "轮播图",
  89. "content": {
  90. "name": "",
  91. "style": 1,
  92. "height": 530,
  93. "radius": 0,
  94. "x": 0,
  95. "y": 0,
  96. "list": [
  97. {
  98. "image": "http://file.shopro.top/uploads/20210522/edb232dbdf32b7e4df0eb6d079d471b6.png",
  99. "path": "",
  100. "path_type": 1,
  101. "name": "",
  102. "bgcolor": "#a71f23",
  103. "path_name": ""
  104. },
  105. {
  106. "image": "http://file.shopro.top/uploads/20210522/89e158b63896889422342043af5e741f.png",
  107. "path": "",
  108. "path_type": 1,
  109. "name": "",
  110. "bgcolor": "#e2d1c0",
  111. "path_name": ""
  112. }
  113. ]
  114. },
  115. "decorate_id": 1
  116. },
  117. {
  118. "id": 27593,
  119. "type": "banner",
  120. "category": "home",
  121. "name": "轮播图",
  122. "content": {
  123. "name": "",
  124. "style": 1,
  125. "height": 189,
  126. "radius": 0,
  127. "x": 0,
  128. "y": 0,
  129. "list": [
  130. {
  131. "name": "",
  132. "bgcolor": "#fa6c2c",
  133. "image": "https://demo.shopro.top/uploads/20220423/4322c0d3af68cff3a1046767de847c69.png",
  134. "path": "",
  135. "path_name": "",
  136. "path_type": 1
  137. }
  138. ]
  139. },
  140. "decorate_id": 1
  141. },
  142. {
  143. "id": 27594,
  144. "type": "menu",
  145. "category": "home",
  146. "name": "菜单组",
  147. "content": {
  148. "name": "",
  149. "style": 4,
  150. "list": [
  151. {
  152. "name": "签到有礼",
  153. "image": "http://file.shopro.top/uploads/20210518/884360099a48d435e23e24091fb7084f.png",
  154. "path": "/pages/activity/sign/index",
  155. "path_name": "签到中心",
  156. "path_type": 1
  157. },
  158. {
  159. "name": "品质拼团",
  160. "image": "http://file.shopro.top/uploads/20210518/ce173c7d81d9521350620e51b0166808.png",
  161. "path": "/pages/activity/groupon/list",
  162. "path_name": "今日必拼",
  163. "path_type": 1
  164. },
  165. {
  166. "name": "限时秒杀",
  167. "image": "http://file.shopro.top/uploads/20210518/cdc081320a7676753af09dbfad64b0f5.png",
  168. "path": "/pages/activity/seckill/list",
  169. "path_name": "限时秒杀",
  170. "path_type": 1
  171. },
  172. {
  173. "name": "领福利",
  174. "image": "http://file.shopro.top/uploads/20210518/c7b17849d22f345b4886d9a7dc6ef72a.png",
  175. "path": "/pages/app/coupon/list",
  176. "path_name": "优惠券中心",
  177. "path_type": 1
  178. },
  179. {
  180. "image": "https://demo.shopro.top/uploads/20220626/5acbdf5a34b50b1cdf092a3e5c29b76d.jpg",
  181. "path": "/pages/goods/list?id=163",
  182. "name": "日用百货",
  183. "path_name": "商品列表-美食酒水",
  184. "path_type": 1
  185. },
  186. {
  187. "image": "http://file.shopro.top/uploads/20210518/6dde00b61b242f8c9ed79c65d3fb0b1d.png",
  188. "path": "/pages/goods/list?id=44",
  189. "name": "居家生活",
  190. "path_name": "商品列表-居家生活",
  191. "path_type": 1
  192. },
  193. {
  194. "image": "http://file.shopro.top/uploads/20210518/755895207ed20ab11c141f5f2cf4946e.png",
  195. "path": "/pages/goods/list?id=69",
  196. "name": "数码电器",
  197. "path_name": "商品列表-数码家电",
  198. "path_type": 1
  199. },
  200. {
  201. "image": "http://file.shopro.top/uploads/20210518/9cf90a9392c7765bdfc2a5854e1295ff.png",
  202. "path": "/pages/goods/list?id=73",
  203. "name": "服装鞋包",
  204. "path_name": "商品列表-服饰鞋包",
  205. "path_type": 1
  206. }
  207. ]
  208. },
  209. "decorate_id": 1
  210. },
  211. {
  212. "id": 27595,
  213. "type": "adv",
  214. "category": "home",
  215. "name": "广告魔方",
  216. "content": {
  217. "list": [
  218. {
  219. "image": "http://file.shopro.top/uploads/20210522/a31e0f90ce8765583c60012ac94f967c.png",
  220. "name": "",
  221. "path": "",
  222. "path_name": "",
  223. "path_type": 1
  224. },
  225. {
  226. "image": "http://file.shopro.top/uploads/20210518/cddb5d90a4241f6235d16368534bc730.png",
  227. "name": "",
  228. "path": "/pages/index/category?id=177",
  229. "path_name": "分类-1",
  230. "path_type": 1
  231. },
  232. {
  233. "image": "http://file.shopro.top/uploads/20210518/e047d312fb5930de972ae288b9b3bae7.png",
  234. "name": "",
  235. "path": "",
  236. "path_name": "",
  237. "path_type": 1
  238. }
  239. ],
  240. "name": "",
  241. "style": 3
  242. },
  243. "decorate_id": 1
  244. },
  245. {
  246. "id": 27596,
  247. "type": "coupons",
  248. "category": "home",
  249. "name": "优惠券",
  250. "content": {
  251. "ids": "35,36",
  252. "name": "",
  253. "style": 1,
  254. "bgcolor1": "#EFC480",
  255. "bgcolor2": "#EFC480",
  256. "pricecolor": "#4F3A1E",
  257. "color": "#A8700D"
  258. },
  259. "decorate_id": 1
  260. },
  261. {
  262. "id": 27597,
  263. "type": "groupon",
  264. "category": "home",
  265. "name": "拼团",
  266. "content": {
  267. "id": 128,
  268. "name": "特价拼团",
  269. "style": 1,
  270. "groupon_name": "拼团",
  271. "team_num": "3"
  272. },
  273. "decorate_id": 1
  274. },
  275. {
  276. "id": 27598,
  277. "type": "seckill",
  278. "category": "home",
  279. "name": "秒杀",
  280. "content": {
  281. "id": 129,
  282. "name": "限时秒杀",
  283. "style": 2,
  284. "seckill_name": "秒杀"
  285. },
  286. "decorate_id": 1
  287. },
  288. {
  289. "id": 27599,
  290. "type": "title-block",
  291. "category": "home",
  292. "name": "标题栏",
  293. "content": {
  294. "name": "为你推荐",
  295. "color": "#000000",
  296. "image": "https://file.shopro.top/imgs/title2.png"
  297. },
  298. "decorate_id": 1
  299. },
  300. {
  301. "id": 27600,
  302. "type": "goods-list",
  303. "category": "home",
  304. "name": "自定义商品",
  305. "content": {
  306. "ids": "34,32,31,8",
  307. "image": "",
  308. "name": "",
  309. "style": 2
  310. },
  311. "decorate_id": 1
  312. },
  313. {
  314. "id": 27601,
  315. "type": "category-tabs",
  316. "category": "home",
  317. "name": "分类选项卡",
  318. "content": {
  319. "ids": "44,69,70,71,72,73",
  320. "category_arr": [
  321. {
  322. "id": 44,
  323. "name": "居家生活",
  324. "type": "",
  325. "image": "http://file.shopro.top/uploads/20210519/b505c4c6c4aefdb3467877f2ef21c534.jpeg",
  326. "pid": 43,
  327. "weigh": 0,
  328. "description": "",
  329. "status": "normal",
  330. "createtime": 1621406730,
  331. "updatetime": 1663139447,
  332. "children": [
  333. {
  334. "id": 45,
  335. "name": "厨房用品",
  336. "type": "",
  337. "image": "",
  338. "pid": 44,
  339. "weigh": 0,
  340. "description": "",
  341. "status": "normal",
  342. "createtime": 1621406730,
  343. "updatetime": 1663139447,
  344. "children": [
  345. {
  346. "id": 46,
  347. "name": "刀剪砧板",
  348. "type": "",
  349. "image": "http://file.shopro.top/uploads/20210519/71bd6b2223883394227b9db8fdc25573.png",
  350. "pid": 45,
  351. "weigh": 0,
  352. "description": "",
  353. "status": "normal",
  354. "createtime": 1621406730,
  355. "updatetime": 1621406730
  356. },
  357. {
  358. "id": 47,
  359. "name": "餐厨配件",
  360. "type": "",
  361. "image": "http://file.shopro.top/uploads/20210519/49c57efbed5658475e3c6391884a9272.png",
  362. "pid": 45,
  363. "weigh": 0,
  364. "description": "",
  365. "status": "normal",
  366. "createtime": 1621406730,
  367. "updatetime": 1621406730
  368. },
  369. {
  370. "id": 48,
  371. "name": "锅具",
  372. "type": "",
  373. "image": "http://file.shopro.top/uploads/20210519/537dfd7826387ee2c7000ba9f8301c09.png",
  374. "pid": 45,
  375. "weigh": 0,
  376. "description": "",
  377. "status": "normal",
  378. "createtime": 1621406730,
  379. "updatetime": 1621406730
  380. }
  381. ]
  382. },
  383. {
  384. "id": 49,
  385. "name": "收纳日用",
  386. "type": "",
  387. "image": "",
  388. "pid": 44,
  389. "weigh": 0,
  390. "description": "",
  391. "status": "normal",
  392. "createtime": 1621406730,
  393. "updatetime": 1663139447,
  394. "children": [
  395. {
  396. "id": 50,
  397. "name": "居家拖鞋",
  398. "type": "",
  399. "image": "http://file.shopro.top/uploads/20210519/69f29fcaaa444e884814a6991163c664.png",
  400. "pid": 49,
  401. "weigh": 0,
  402. "description": "",
  403. "status": "normal",
  404. "createtime": 1621406730,
  405. "updatetime": 1621406730
  406. },
  407. {
  408. "id": 51,
  409. "name": "毛巾浴巾",
  410. "type": "",
  411. "image": "http://file.shopro.top/uploads/20210519/2ef329f37299b5f24f2c6dc5699ea3f3.png",
  412. "pid": 49,
  413. "weigh": 0,
  414. "description": "",
  415. "status": "normal",
  416. "createtime": 1621406730,
  417. "updatetime": 1621406730
  418. },
  419. {
  420. "id": 52,
  421. "name": "晾晒除味",
  422. "type": "",
  423. "image": "http://file.shopro.top/uploads/20210519/f803b74827a3d6184996df5f4a2f7a28.png",
  424. "pid": 49,
  425. "weigh": 0,
  426. "description": "",
  427. "status": "normal",
  428. "createtime": 1621406730,
  429. "updatetime": 1621406730
  430. },
  431. {
  432. "id": 53,
  433. "name": "收纳",
  434. "type": "",
  435. "image": "http://file.shopro.top/uploads/20210519/5e54a0cbb4237b22288a51826ab0e2df.png",
  436. "pid": 49,
  437. "weigh": 0,
  438. "description": "",
  439. "status": "normal",
  440. "createtime": 1621406730,
  441. "updatetime": 1621406730
  442. }
  443. ]
  444. },
  445. {
  446. "id": 54,
  447. "name": "家具家装",
  448. "type": "",
  449. "image": "",
  450. "pid": 44,
  451. "weigh": 0,
  452. "description": "",
  453. "status": "normal",
  454. "createtime": 1621406730,
  455. "updatetime": 1663139447,
  456. "children": [
  457. {
  458. "id": 55,
  459. "name": "地毯窗帘",
  460. "type": "",
  461. "image": "http://file.shopro.top/uploads/20210519/a5fbadf850f786650449b4e2dfee0731.png",
  462. "pid": 54,
  463. "weigh": 0,
  464. "description": "",
  465. "status": "normal",
  466. "createtime": 1621406730,
  467. "updatetime": 1621406730
  468. },
  469. {
  470. "id": 56,
  471. "name": "灯具",
  472. "type": "",
  473. "image": "http://file.shopro.top/uploads/20210519/f4d413ef6755330478202ba618fd28c9.png",
  474. "pid": 54,
  475. "weigh": 0,
  476. "description": "",
  477. "status": "normal",
  478. "createtime": 1621406730,
  479. "updatetime": 1621406730
  480. },
  481. {
  482. "id": 57,
  483. "name": "小件家具",
  484. "type": "",
  485. "image": "http://file.shopro.top/uploads/20210519/aae1f4e46b7b8bc29c28a1fd793ebcca.png",
  486. "pid": 54,
  487. "weigh": 0,
  488. "description": "",
  489. "status": "normal",
  490. "createtime": 1621406730,
  491. "updatetime": 1621406730
  492. },
  493. {
  494. "id": 58,
  495. "name": "办公书房家具",
  496. "type": "",
  497. "image": "http://file.shopro.top/uploads/20210519/b1e96baa73d4e331386d1d84fcc2d953.png",
  498. "pid": 54,
  499. "weigh": 0,
  500. "description": "",
  501. "status": "normal",
  502. "createtime": 1621406730,
  503. "updatetime": 1621406730
  504. },
  505. {
  506. "id": 59,
  507. "name": "卧室家具",
  508. "type": "",
  509. "image": "http://file.shopro.top/uploads/20210519/72902b8ce141796b05f65545a0d31c11.png",
  510. "pid": 54,
  511. "weigh": 0,
  512. "description": "",
  513. "status": "normal",
  514. "createtime": 1621406730,
  515. "updatetime": 1621406730
  516. },
  517. {
  518. "id": 60,
  519. "name": "客餐厅家具",
  520. "type": "",
  521. "image": "http://file.shopro.top/uploads/20210519/326b14421329e472a43989591cf33951.png",
  522. "pid": 54,
  523. "weigh": 0,
  524. "description": "",
  525. "status": "normal",
  526. "createtime": 1621406730,
  527. "updatetime": 1621406730
  528. }
  529. ]
  530. },
  531. {
  532. "id": 61,
  533. "name": "家居饰品",
  534. "type": "",
  535. "image": "",
  536. "pid": 44,
  537. "weigh": 0,
  538. "description": "",
  539. "status": "normal",
  540. "createtime": 1621406730,
  541. "updatetime": 1663139447,
  542. "children": [
  543. {
  544. "id": 63,
  545. "name": "居家布艺",
  546. "type": "",
  547. "image": "http://file.shopro.top/uploads/20210519/d1c17ab34d58a284c376d8a85f7d774c.png",
  548. "pid": 61,
  549. "weigh": 0,
  550. "description": "",
  551. "status": "normal",
  552. "createtime": 1621407084,
  553. "updatetime": 1621407084
  554. },
  555. {
  556. "id": 64,
  557. "name": "家饰",
  558. "type": "",
  559. "image": "http://file.shopro.top/uploads/20210519/83a28223fa8a74a041d3b3b005566d8e.png",
  560. "pid": 61,
  561. "weigh": 0,
  562. "description": "",
  563. "status": "normal",
  564. "createtime": 1621407084,
  565. "updatetime": 1621407084
  566. },
  567. {
  568. "id": 65,
  569. "name": "抱枕靠垫",
  570. "type": "",
  571. "image": "http://file.shopro.top/uploads/20210519/5b759e8a5e9710a8fe5f91cb2825dead.png",
  572. "pid": 61,
  573. "weigh": 0,
  574. "description": "",
  575. "status": "normal",
  576. "createtime": 1621407084,
  577. "updatetime": 1621407084
  578. }
  579. ]
  580. },
  581. {
  582. "id": 62,
  583. "name": "床上用品",
  584. "type": "",
  585. "image": "",
  586. "pid": 44,
  587. "weigh": 0,
  588. "description": "",
  589. "status": "normal",
  590. "createtime": 1621406730,
  591. "updatetime": 1663139447,
  592. "children": [
  593. {
  594. "id": 66,
  595. "name": "床垫床褥",
  596. "type": "",
  597. "image": "http://file.shopro.top/uploads/20210519/06b66796800b7f4aeab8470cb4a89321.png",
  598. "pid": 62,
  599. "weigh": 0,
  600. "description": "",
  601. "status": "normal",
  602. "createtime": 1621407084,
  603. "updatetime": 1621407084
  604. },
  605. {
  606. "id": 67,
  607. "name": "被枕盖毯",
  608. "type": "",
  609. "image": "http://file.shopro.top/uploads/20210519/c47d0495436320166f7bc43b420895db.png",
  610. "pid": 62,
  611. "weigh": 0,
  612. "description": "",
  613. "status": "normal",
  614. "createtime": 1621407084,
  615. "updatetime": 1621407084
  616. },
  617. {
  618. "id": 68,
  619. "name": "床品件套",
  620. "type": "",
  621. "image": "http://file.shopro.top/uploads/20210519/33d7ec68ef16a1d5f6109d1eb9a11f2e.png",
  622. "pid": 62,
  623. "weigh": 0,
  624. "description": "",
  625. "status": "normal",
  626. "createtime": 1621407084,
  627. "updatetime": 1621407084
  628. }
  629. ]
  630. }
  631. ]
  632. },
  633. {
  634. "id": 69,
  635. "name": "数码家电",
  636. "type": "",
  637. "image": "http://file.shopro.top/uploads/20210519/b330cd09cd55c038c1743aef21545241.png",
  638. "pid": 43,
  639. "weigh": 0,
  640. "description": "",
  641. "status": "normal",
  642. "createtime": 1621407282,
  643. "updatetime": 1663139447,
  644. "children": [
  645. {
  646. "id": 74,
  647. "name": "个护电器",
  648. "type": "",
  649. "image": "",
  650. "pid": 69,
  651. "weigh": 0,
  652. "description": "",
  653. "status": "normal",
  654. "createtime": 1621408286,
  655. "updatetime": 1663139447,
  656. "children": [
  657. {
  658. "id": 75,
  659. "name": "头发护理",
  660. "type": "",
  661. "image": "http://file.shopro.top/uploads/20210519/b1621ccc627b56b950cedd127ff9670d.png",
  662. "pid": 74,
  663. "weigh": 0,
  664. "description": "",
  665. "status": "normal",
  666. "createtime": 1621408286,
  667. "updatetime": 1621408286
  668. },
  669. {
  670. "id": 76,
  671. "name": "身体护理",
  672. "type": "",
  673. "image": "http://file.shopro.top/uploads/20210519/58ad6a858055d8856cdcc2c2e5a6f34b.png",
  674. "pid": 74,
  675. "weigh": 0,
  676. "description": "",
  677. "status": "normal",
  678. "createtime": 1621408286,
  679. "updatetime": 1621408286
  680. },
  681. {
  682. "id": 77,
  683. "name": "口腔护理",
  684. "type": "",
  685. "image": "http://file.shopro.top/uploads/20210519/fd6c18d2bcc98f9efdb5dc360d21d8f5.png",
  686. "pid": 74,
  687. "weigh": 0,
  688. "description": "",
  689. "status": "normal",
  690. "createtime": 1621408286,
  691. "updatetime": 1621408286
  692. }
  693. ]
  694. },
  695. {
  696. "id": 78,
  697. "name": "数码办公",
  698. "type": "",
  699. "image": "",
  700. "pid": 69,
  701. "weigh": 0,
  702. "description": "",
  703. "status": "normal",
  704. "createtime": 1621408286,
  705. "updatetime": 1663139447,
  706. "children": [
  707. {
  708. "id": 79,
  709. "name": "车载用品",
  710. "type": "",
  711. "image": "http://file.shopro.top/uploads/20210519/20d3c8c3fd8d66bfaf2e087503cede1d.png",
  712. "pid": 78,
  713. "weigh": 0,
  714. "description": "",
  715. "status": "normal",
  716. "createtime": 1621408286,
  717. "updatetime": 1621408286
  718. },
  719. {
  720. "id": 80,
  721. "name": "手机配件",
  722. "type": "",
  723. "image": "http://file.shopro.top/uploads/20210519/4ebc26813030ee6870e06c7671973d0d.png",
  724. "pid": 78,
  725. "weigh": 0,
  726. "description": "",
  727. "status": "normal",
  728. "createtime": 1621408286,
  729. "updatetime": 1621408286
  730. },
  731. {
  732. "id": 81,
  733. "name": "3C数码",
  734. "type": "",
  735. "image": "http://file.shopro.top/uploads/20210519/17fe8d63f3e33700a555d42ad4005aaa.png",
  736. "pid": 78,
  737. "weigh": 0,
  738. "description": "",
  739. "status": "normal",
  740. "createtime": 1621408286,
  741. "updatetime": 1621408286
  742. }
  743. ]
  744. },
  745. {
  746. "id": 82,
  747. "name": "生活电器",
  748. "type": "",
  749. "image": "",
  750. "pid": 69,
  751. "weigh": 0,
  752. "description": "",
  753. "status": "normal",
  754. "createtime": 1621408286,
  755. "updatetime": 1663139447,
  756. "children": [
  757. {
  758. "id": 83,
  759. "name": "空气调节",
  760. "type": "",
  761. "image": "http://file.shopro.top/uploads/20210519/d90a03d7b31787af2173cae27ff0ca71.png",
  762. "pid": 82,
  763. "weigh": 0,
  764. "description": "",
  765. "status": "normal",
  766. "createtime": 1621408286,
  767. "updatetime": 1621408286
  768. },
  769. {
  770. "id": 84,
  771. "name": "衣物护理",
  772. "type": "",
  773. "image": "http://file.shopro.top/uploads/20210519/99459989079cab8b6e1de8da20fa8078.png",
  774. "pid": 82,
  775. "weigh": 0,
  776. "description": "",
  777. "status": "normal",
  778. "createtime": 1621408286,
  779. "updatetime": 1621408286
  780. },
  781. {
  782. "id": 85,
  783. "name": "清洁电器",
  784. "type": "",
  785. "image": "http://file.shopro.top/uploads/20210519/1cc8b5c44d6c3d0e136ba4717f1f96f6.png",
  786. "pid": 82,
  787. "weigh": 0,
  788. "description": "",
  789. "status": "normal",
  790. "createtime": 1621408286,
  791. "updatetime": 1621408286
  792. },
  793. {
  794. "id": 86,
  795. "name": "两季电器",
  796. "type": "",
  797. "image": "http://file.shopro.top/uploads/20210519/b52a0191f1092abc22701185a8ca2b6d.png",
  798. "pid": 82,
  799. "weigh": 0,
  800. "description": "",
  801. "status": "normal",
  802. "createtime": 1621408286,
  803. "updatetime": 1621408286
  804. }
  805. ]
  806. }
  807. ]
  808. },
  809. {
  810. "id": 70,
  811. "name": "运动旅行",
  812. "type": "",
  813. "image": "http://file.shopro.top/uploads/20210519/225422d99ca344883fc5a1a52a6f2ad5.png",
  814. "pid": 43,
  815. "weigh": 0,
  816. "description": "",
  817. "status": "normal",
  818. "createtime": 1621407282,
  819. "updatetime": 1663139447,
  820. "children": [
  821. {
  822. "id": 87,
  823. "name": "运动健身",
  824. "type": "",
  825. "image": "",
  826. "pid": 70,
  827. "weigh": 0,
  828. "description": "",
  829. "status": "normal",
  830. "createtime": 1621408286,
  831. "updatetime": 1663139447,
  832. "children": [
  833. {
  834. "id": 88,
  835. "name": "瑜伽美体",
  836. "type": "",
  837. "image": "http://file.shopro.top/uploads/20210519/f1220b340e780b2ff00f54127cf751b0.png",
  838. "pid": 87,
  839. "weigh": 0,
  840. "description": "",
  841. "status": "normal",
  842. "createtime": 1621408286,
  843. "updatetime": 1621408286
  844. },
  845. {
  846. "id": 89,
  847. "name": "按摩护具",
  848. "type": "",
  849. "image": "http://file.shopro.top/uploads/20210519/ccfd1de922f35e721b56baf680279330.png",
  850. "pid": 87,
  851. "weigh": 0,
  852. "description": "",
  853. "status": "normal",
  854. "createtime": 1621408286,
  855. "updatetime": 1621408286
  856. }
  857. ]
  858. },
  859. {
  860. "id": 90,
  861. "name": "女子运动",
  862. "type": "",
  863. "image": "",
  864. "pid": 70,
  865. "weigh": 0,
  866. "description": "",
  867. "status": "normal",
  868. "createtime": 1621408286,
  869. "updatetime": 1663139447,
  870. "children": [
  871. {
  872. "id": 91,
  873. "name": "女士运动鞋",
  874. "type": "",
  875. "image": "http://file.shopro.top/uploads/20210519/3b9a6bc539c0050bbeb4d4c859b2e71d.png",
  876. "pid": 90,
  877. "weigh": 0,
  878. "description": "",
  879. "status": "normal",
  880. "createtime": 1621408286,
  881. "updatetime": 1621408286
  882. },
  883. {
  884. "id": 92,
  885. "name": "女士运动内衣/泳装",
  886. "type": "",
  887. "image": "http://file.shopro.top/uploads/20210519/2fb83b8cae4f3566df54bb4e766d02f5.png",
  888. "pid": 90,
  889. "weigh": 0,
  890. "description": "",
  891. "status": "normal",
  892. "createtime": 1621408286,
  893. "updatetime": 1621408286
  894. },
  895. {
  896. "id": 93,
  897. "name": "女士运动T恤",
  898. "type": "",
  899. "image": "http://file.shopro.top/uploads/20210519/598c06df8cc64a6927ecf3a68c12005a.png",
  900. "pid": 90,
  901. "weigh": 0,
  902. "description": "",
  903. "status": "normal",
  904. "createtime": 1621408286,
  905. "updatetime": 1621408286
  906. },
  907. {
  908. "id": 94,
  909. "name": "女士户外服装",
  910. "type": "",
  911. "image": "http://file.shopro.top/uploads/20210519/6f7365b7982b658790cf505f6c1c50d2.png",
  912. "pid": 90,
  913. "weigh": 0,
  914. "description": "",
  915. "status": "normal",
  916. "createtime": 1621408286,
  917. "updatetime": 1621408286
  918. },
  919. {
  920. "id": 95,
  921. "name": "女士运动裤装",
  922. "type": "",
  923. "image": "http://file.shopro.top/uploads/20210519/76e48d40c43fe2ba0ebbd0118cfe51a3.png",
  924. "pid": 90,
  925. "weigh": 0,
  926. "description": "",
  927. "status": "normal",
  928. "createtime": 1621408286,
  929. "updatetime": 1621408286
  930. },
  931. {
  932. "id": 96,
  933. "name": "女士运动外套/卫衣",
  934. "type": "",
  935. "image": "http://file.shopro.top/uploads/20210519/5ddb25444b3baa0b14b22ab4ea92fd06.png",
  936. "pid": 90,
  937. "weigh": 0,
  938. "description": "",
  939. "status": "normal",
  940. "createtime": 1621408286,
  941. "updatetime": 1621408286
  942. }
  943. ]
  944. },
  945. {
  946. "id": 97,
  947. "name": "男子运动",
  948. "type": "",
  949. "image": "",
  950. "pid": 70,
  951. "weigh": 0,
  952. "description": "",
  953. "status": "normal",
  954. "createtime": 1621408286,
  955. "updatetime": 1663139447,
  956. "children": [
  957. {
  958. "id": 98,
  959. "name": "男士运动鞋",
  960. "type": "",
  961. "image": "http://file.shopro.top/uploads/20210519/22de478fafea0dd85b2dd2183578ad92.png",
  962. "pid": 97,
  963. "weigh": 0,
  964. "description": "",
  965. "status": "normal",
  966. "createtime": 1621408286,
  967. "updatetime": 1621408286
  968. },
  969. {
  970. "id": 99,
  971. "name": "男士运动T恤",
  972. "type": "",
  973. "image": "http://file.shopro.top/uploads/20210519/3f6dce5eed0586c86f07aa4abf060558.png",
  974. "pid": 97,
  975. "weigh": 0,
  976. "description": "",
  977. "status": "normal",
  978. "createtime": 1621408286,
  979. "updatetime": 1621408286
  980. },
  981. {
  982. "id": 100,
  983. "name": "男士户外服装",
  984. "type": "",
  985. "image": "http://file.shopro.top/uploads/20210519/9ad4a70998bc4ef2c1eafe7debb7d769.png",
  986. "pid": 97,
  987. "weigh": 0,
  988. "description": "",
  989. "status": "normal",
  990. "createtime": 1621408286,
  991. "updatetime": 1621408286
  992. },
  993. {
  994. "id": 101,
  995. "name": "男士运动裤装",
  996. "type": "",
  997. "image": "http://file.shopro.top/uploads/20210519/9536e3e327f1a66513367c1282522e6a.png",
  998. "pid": 97,
  999. "weigh": 0,
  1000. "description": "",
  1001. "status": "normal",
  1002. "createtime": 1621408286,
  1003. "updatetime": 1621408286
  1004. },
  1005. {
  1006. "id": 102,
  1007. "name": "男士运动外套/卫衣",
  1008. "type": "",
  1009. "image": "http://file.shopro.top/uploads/20210519/a21cdca293151bd1c36af393d251424a.png",
  1010. "pid": 97,
  1011. "weigh": 0,
  1012. "description": "",
  1013. "status": "normal",
  1014. "createtime": 1621408286,
  1015. "updatetime": 1621408286
  1016. }
  1017. ]
  1018. }
  1019. ]
  1020. },
  1021. {
  1022. "id": 71,
  1023. "name": "亲子母婴",
  1024. "type": "",
  1025. "image": "http://file.shopro.top/uploads/20210519/05ecdfeaee42cefa15834966a09a6bb9.png",
  1026. "pid": 43,
  1027. "weigh": 0,
  1028. "description": "",
  1029. "status": "normal",
  1030. "createtime": 1621407282,
  1031. "updatetime": 1663139447,
  1032. "children": [
  1033. {
  1034. "id": 103,
  1035. "name": "玩具图书",
  1036. "type": "",
  1037. "image": "",
  1038. "pid": 71,
  1039. "weigh": 0,
  1040. "description": "",
  1041. "status": "normal",
  1042. "createtime": 1621408757,
  1043. "updatetime": 1663139447,
  1044. "children": [
  1045. {
  1046. "id": 104,
  1047. "name": "图书",
  1048. "type": "",
  1049. "image": "http://file.shopro.top/uploads/20210519/125d48b497de8bce7e7febc4dac75696.png",
  1050. "pid": 103,
  1051. "weigh": 0,
  1052. "description": "",
  1053. "status": "normal",
  1054. "createtime": 1621408757,
  1055. "updatetime": 1621408757
  1056. },
  1057. {
  1058. "id": 105,
  1059. "name": "文具",
  1060. "type": "",
  1061. "image": "http://file.shopro.top/uploads/20210519/5447e331c98cdd480ada05313009183a.png",
  1062. "pid": 103,
  1063. "weigh": 0,
  1064. "description": "",
  1065. "status": "normal",
  1066. "createtime": 1621408757,
  1067. "updatetime": 1621408757
  1068. },
  1069. {
  1070. "id": 106,
  1071. "name": "玩具",
  1072. "type": "",
  1073. "image": "http://file.shopro.top/uploads/20210519/d8957062909571aaff1bbc213f39e1b9.png",
  1074. "pid": 103,
  1075. "weigh": 0,
  1076. "description": "",
  1077. "status": "normal",
  1078. "createtime": 1621408757,
  1079. "updatetime": 1621408757
  1080. }
  1081. ]
  1082. },
  1083. {
  1084. "id": 107,
  1085. "name": "洗护喂养",
  1086. "type": "",
  1087. "image": "",
  1088. "pid": 71,
  1089. "weigh": 0,
  1090. "description": "",
  1091. "status": "normal",
  1092. "createtime": 1621408757,
  1093. "updatetime": 1663139447,
  1094. "children": [
  1095. {
  1096. "id": 108,
  1097. "name": "喂养",
  1098. "type": "",
  1099. "image": "http://file.shopro.top/uploads/20210519/6262e491bb4ea126faf827a9088eb559.png",
  1100. "pid": 107,
  1101. "weigh": 0,
  1102. "description": "",
  1103. "status": "normal",
  1104. "createtime": 1621408757,
  1105. "updatetime": 1621408757
  1106. },
  1107. {
  1108. "id": 109,
  1109. "name": "洗护",
  1110. "type": "",
  1111. "image": "http://file.shopro.top/uploads/20210519/210c7ee394f1dd07f0664ed619831cee.png",
  1112. "pid": 107,
  1113. "weigh": 0,
  1114. "description": "",
  1115. "status": "normal",
  1116. "createtime": 1621408757,
  1117. "updatetime": 1621408757
  1118. },
  1119. {
  1120. "id": 110,
  1121. "name": "尿裤纸品",
  1122. "type": "",
  1123. "image": "http://file.shopro.top/uploads/20210519/87900549416a72ee49840d2162279ef9.png",
  1124. "pid": 107,
  1125. "weigh": 0,
  1126. "description": "",
  1127. "status": "normal",
  1128. "createtime": 1621408757,
  1129. "updatetime": 1621408757
  1130. }
  1131. ]
  1132. },
  1133. {
  1134. "id": 111,
  1135. "name": "童鞋",
  1136. "type": "",
  1137. "image": "",
  1138. "pid": 71,
  1139. "weigh": 0,
  1140. "description": "",
  1141. "status": "normal",
  1142. "createtime": 1621408757,
  1143. "updatetime": 1663139447,
  1144. "children": [
  1145. {
  1146. "id": 112,
  1147. "name": "学步鞋",
  1148. "type": "",
  1149. "image": "http://file.shopro.top/uploads/20210519/7ae6ac376930ae33be3be5e525a4997d.png",
  1150. "pid": 111,
  1151. "weigh": 0,
  1152. "description": "",
  1153. "status": "normal",
  1154. "createtime": 1621408757,
  1155. "updatetime": 1621408757
  1156. },
  1157. {
  1158. "id": 113,
  1159. "name": "儿童鞋",
  1160. "type": "",
  1161. "image": "http://file.shopro.top/uploads/20210519/e5069eb86f34ad29a9ea6e2e4f3278b0.png",
  1162. "pid": 111,
  1163. "weigh": 0,
  1164. "description": "",
  1165. "status": "normal",
  1166. "createtime": 1621408757,
  1167. "updatetime": 1621408757
  1168. }
  1169. ]
  1170. },
  1171. {
  1172. "id": 114,
  1173. "name": "童装",
  1174. "type": "",
  1175. "image": "",
  1176. "pid": 71,
  1177. "weigh": 0,
  1178. "description": "",
  1179. "status": "normal",
  1180. "createtime": 1621408757,
  1181. "updatetime": 1663139447,
  1182. "children": [
  1183. {
  1184. "id": 115,
  1185. "name": "内衣/配搭",
  1186. "type": "",
  1187. "image": "http://file.shopro.top/uploads/20210519/55edea5dc20a0888a2de713cb496717f.png",
  1188. "pid": 114,
  1189. "weigh": 0,
  1190. "description": "",
  1191. "status": "normal",
  1192. "createtime": 1621408757,
  1193. "updatetime": 1621408757
  1194. },
  1195. {
  1196. "id": 116,
  1197. "name": "连体衣/礼盒",
  1198. "type": "",
  1199. "image": "http://file.shopro.top/uploads/20210519/896a113bc7af9a5ba765dd0cd42decf9.png",
  1200. "pid": 114,
  1201. "weigh": 0,
  1202. "description": "",
  1203. "status": "normal",
  1204. "createtime": 1621408757,
  1205. "updatetime": 1621408757
  1206. },
  1207. {
  1208. "id": 117,
  1209. "name": "外套/套装",
  1210. "type": "",
  1211. "image": "http://file.shopro.top/uploads/20210519/caa7b8e17dabf96d2b97738f5013cc21.png",
  1212. "pid": 114,
  1213. "weigh": 0,
  1214. "description": "",
  1215. "status": "normal",
  1216. "createtime": 1621408757,
  1217. "updatetime": 1621408757
  1218. },
  1219. {
  1220. "id": 118,
  1221. "name": "卫衣/毛衫",
  1222. "type": "",
  1223. "image": "http://file.shopro.top/uploads/20210519/f85c23f234d67e40cb2848c7c5e422e9.png",
  1224. "pid": 114,
  1225. "weigh": 0,
  1226. "description": "",
  1227. "status": "normal",
  1228. "createtime": 1621408757,
  1229. "updatetime": 1621408757
  1230. }
  1231. ]
  1232. }
  1233. ]
  1234. },
  1235. {
  1236. "id": 72,
  1237. "name": "个护清洁",
  1238. "type": "",
  1239. "image": "http://file.shopro.top/uploads/20210519/ea0eef9b5e58af66347cfd8fa5d5e308.png",
  1240. "pid": 43,
  1241. "weigh": 0,
  1242. "description": "",
  1243. "status": "normal",
  1244. "createtime": 1621407282,
  1245. "updatetime": 1663139447,
  1246. "children": [
  1247. {
  1248. "id": 119,
  1249. "name": "彩妆香水",
  1250. "type": "",
  1251. "image": "",
  1252. "pid": 72,
  1253. "weigh": 0,
  1254. "description": "",
  1255. "status": "normal",
  1256. "createtime": 1621409206,
  1257. "updatetime": 1663139447,
  1258. "children": [
  1259. {
  1260. "id": 120,
  1261. "name": "美妆工具",
  1262. "type": "",
  1263. "image": "http://file.shopro.top/uploads/20210519/f3a5185b18c56d48a7aa2c5b392dcb16.png",
  1264. "pid": 119,
  1265. "weigh": 0,
  1266. "description": "",
  1267. "status": "normal",
  1268. "createtime": 1621409206,
  1269. "updatetime": 1621409206
  1270. },
  1271. {
  1272. "id": 121,
  1273. "name": "香水香氛",
  1274. "type": "",
  1275. "image": "http://file.shopro.top/uploads/20210519/6448fdf8d73ac95cb83eacb35d01dc1e.png",
  1276. "pid": 119,
  1277. "weigh": 0,
  1278. "description": "",
  1279. "status": "normal",
  1280. "createtime": 1621409206,
  1281. "updatetime": 1621409206
  1282. },
  1283. {
  1284. "id": 122,
  1285. "name": "彩妆修容",
  1286. "type": "",
  1287. "image": "http://file.shopro.top/uploads/20210519/f830c911ead7a24d38e45ebd54da0b0f.png",
  1288. "pid": 119,
  1289. "weigh": 0,
  1290. "description": "",
  1291. "status": "normal",
  1292. "createtime": 1621409206,
  1293. "updatetime": 1621409206
  1294. }
  1295. ]
  1296. },
  1297. {
  1298. "id": 123,
  1299. "name": "个人护理",
  1300. "type": "",
  1301. "image": "",
  1302. "pid": 72,
  1303. "weigh": 0,
  1304. "description": "",
  1305. "status": "normal",
  1306. "createtime": 1621409206,
  1307. "updatetime": 1663139447,
  1308. "children": [
  1309. {
  1310. "id": 124,
  1311. "name": "女性护理",
  1312. "type": "",
  1313. "image": "http://file.shopro.top/uploads/20210519/c1a7752d7a840fc92f3972c0cf6d720a.png",
  1314. "pid": 123,
  1315. "weigh": 0,
  1316. "description": "",
  1317. "status": "normal",
  1318. "createtime": 1621409206,
  1319. "updatetime": 1621409206
  1320. },
  1321. {
  1322. "id": 125,
  1323. "name": "口腔护理",
  1324. "type": "",
  1325. "image": "http://file.shopro.top/uploads/20210519/295d569d562beb7623f5897d3405e4fb.png",
  1326. "pid": 123,
  1327. "weigh": 0,
  1328. "description": "",
  1329. "status": "normal",
  1330. "createtime": 1621409206,
  1331. "updatetime": 1621409206
  1332. },
  1333. {
  1334. "id": 126,
  1335. "name": "身体护理",
  1336. "type": "",
  1337. "image": "http://file.shopro.top/uploads/20210519/8f3f39bd122b926e168db31e65b33de9.png",
  1338. "pid": 123,
  1339. "weigh": 0,
  1340. "description": "",
  1341. "status": "normal",
  1342. "createtime": 1621409206,
  1343. "updatetime": 1621409206
  1344. },
  1345. {
  1346. "id": 127,
  1347. "name": "洗发护发",
  1348. "type": "",
  1349. "image": "http://file.shopro.top/uploads/20210519/93e2d689cff40f40a9fdecccf0d1e906.png",
  1350. "pid": 123,
  1351. "weigh": 0,
  1352. "description": "",
  1353. "status": "normal",
  1354. "createtime": 1621409206,
  1355. "updatetime": 1621409206
  1356. }
  1357. ]
  1358. },
  1359. {
  1360. "id": 128,
  1361. "name": "面部护理",
  1362. "type": "",
  1363. "image": "",
  1364. "pid": 72,
  1365. "weigh": 0,
  1366. "description": "",
  1367. "status": "normal",
  1368. "createtime": 1621409206,
  1369. "updatetime": 1663139447,
  1370. "children": [
  1371. {
  1372. "id": 129,
  1373. "name": "护肤工具",
  1374. "type": "",
  1375. "image": "http://file.shopro.top/uploads/20210519/1391b0998e6e3226b156d67a3d23e869.png",
  1376. "pid": 128,
  1377. "weigh": 0,
  1378. "description": "",
  1379. "status": "normal",
  1380. "createtime": 1621409206,
  1381. "updatetime": 1621409206
  1382. },
  1383. {
  1384. "id": 130,
  1385. "name": "卸妆洁面",
  1386. "type": "",
  1387. "image": "http://file.shopro.top/uploads/20210519/d85e0d073a65011d047bedd7edb4b7e9.png",
  1388. "pid": 128,
  1389. "weigh": 0,
  1390. "description": "",
  1391. "status": "normal",
  1392. "createtime": 1621409206,
  1393. "updatetime": 1621409206
  1394. },
  1395. {
  1396. "id": 131,
  1397. "name": "基础护肤",
  1398. "type": "",
  1399. "image": "http://file.shopro.top/uploads/20210519/347674f375179016e010ea186d6b1cbb.png",
  1400. "pid": 128,
  1401. "weigh": 0,
  1402. "description": "",
  1403. "status": "normal",
  1404. "createtime": 1621409206,
  1405. "updatetime": 1621409206
  1406. }
  1407. ]
  1408. }
  1409. ]
  1410. },
  1411. {
  1412. "id": 73,
  1413. "name": "服饰鞋包",
  1414. "type": "",
  1415. "image": "http://file.shopro.top/uploads/20210519/cbe5177c5c987ec72830fa936307b751.png",
  1416. "pid": 43,
  1417. "weigh": 0,
  1418. "description": "",
  1419. "status": "normal",
  1420. "createtime": 1621407282,
  1421. "updatetime": 1663139447,
  1422. "children": [
  1423. {
  1424. "id": 144,
  1425. "name": "箱包",
  1426. "type": "",
  1427. "image": "",
  1428. "pid": 73,
  1429. "weigh": 0,
  1430. "description": "",
  1431. "status": "normal",
  1432. "createtime": 1621409861,
  1433. "updatetime": 1663139447,
  1434. "children": [
  1435. {
  1436. "id": 145,
  1437. "name": "行李箱",
  1438. "type": "",
  1439. "image": "http://file.shopro.top/uploads/20210519/09cb8ccd7257759bd4d6b8c9d7108ced.png",
  1440. "pid": 144,
  1441. "weigh": 0,
  1442. "description": "",
  1443. "status": "normal",
  1444. "createtime": 1621409861,
  1445. "updatetime": 1621409861
  1446. },
  1447. {
  1448. "id": 146,
  1449. "name": "钱包及小皮件",
  1450. "type": "",
  1451. "image": "http://file.shopro.top/uploads/20210519/4e4129fcdae5ffdbfcd38bd804d9f4b3.png",
  1452. "pid": 144,
  1453. "weigh": 0,
  1454. "description": "",
  1455. "status": "normal",
  1456. "createtime": 1621409861,
  1457. "updatetime": 1621409861
  1458. },
  1459. {
  1460. "id": 147,
  1461. "name": "女士包袋",
  1462. "type": "",
  1463. "image": "http://file.shopro.top/uploads/20210519/11e467ccfee62a802b9dd520b5bc4b10.png",
  1464. "pid": 144,
  1465. "weigh": 0,
  1466. "description": "",
  1467. "status": "normal",
  1468. "createtime": 1621409861,
  1469. "updatetime": 1621409861
  1470. },
  1471. {
  1472. "id": 148,
  1473. "name": "男士包袋",
  1474. "type": "",
  1475. "image": "http://file.shopro.top/uploads/20210519/02a10cd84196c1dd059a4d107add889a.png",
  1476. "pid": 144,
  1477. "weigh": 0,
  1478. "description": "",
  1479. "status": "normal",
  1480. "createtime": 1621409861,
  1481. "updatetime": 1621409861
  1482. }
  1483. ]
  1484. },
  1485. {
  1486. "id": 149,
  1487. "name": "鞋靴",
  1488. "type": "",
  1489. "image": "",
  1490. "pid": 73,
  1491. "weigh": 0,
  1492. "description": "",
  1493. "status": "normal",
  1494. "createtime": 1621409861,
  1495. "updatetime": 1663139447,
  1496. "children": [
  1497. {
  1498. "id": 150,
  1499. "name": "鞋配",
  1500. "type": "",
  1501. "image": "http://file.shopro.top/uploads/20210519/4d7c5428d8b39000a1a07b9cffcb1fc8.png",
  1502. "pid": 149,
  1503. "weigh": 0,
  1504. "description": "",
  1505. "status": "normal",
  1506. "createtime": 1621409861,
  1507. "updatetime": 1621409861
  1508. },
  1509. {
  1510. "id": 151,
  1511. "name": "拖鞋",
  1512. "type": "",
  1513. "image": "http://file.shopro.top/uploads/20210519/f0f4c0e2cec6cb326312b42f045a20fc.png",
  1514. "pid": 149,
  1515. "weigh": 0,
  1516. "description": "",
  1517. "status": "normal",
  1518. "createtime": 1621409861,
  1519. "updatetime": 1621409861
  1520. },
  1521. {
  1522. "id": 152,
  1523. "name": "女鞋",
  1524. "type": "",
  1525. "image": "http://file.shopro.top/uploads/20210519/0aceb062c4bbf75ebe59aff542871b0c.png",
  1526. "pid": 149,
  1527. "weigh": 0,
  1528. "description": "",
  1529. "status": "normal",
  1530. "createtime": 1621409861,
  1531. "updatetime": 1621409861
  1532. },
  1533. {
  1534. "id": 153,
  1535. "name": "男鞋",
  1536. "type": "",
  1537. "image": "http://file.shopro.top/uploads/20210519/c7c11ea39df1c16fe9c098e0243bfd25.png",
  1538. "pid": 149,
  1539. "weigh": 0,
  1540. "description": "",
  1541. "status": "normal",
  1542. "createtime": 1621409861,
  1543. "updatetime": 1621409861
  1544. }
  1545. ]
  1546. },
  1547. {
  1548. "id": 154,
  1549. "name": "女装",
  1550. "type": "",
  1551. "image": "",
  1552. "pid": 73,
  1553. "weigh": 0,
  1554. "description": "",
  1555. "status": "normal",
  1556. "createtime": 1621409861,
  1557. "updatetime": 1663139447,
  1558. "children": [
  1559. {
  1560. "id": 155,
  1561. "name": "女士外套",
  1562. "type": "",
  1563. "image": "http://file.shopro.top/uploads/20210519/bdfb38417cb9058be3a89c6b8c8ee2c6.png",
  1564. "pid": 154,
  1565. "weigh": 0,
  1566. "description": "",
  1567. "status": "normal",
  1568. "createtime": 1621409861,
  1569. "updatetime": 1621409861
  1570. },
  1571. {
  1572. "id": 156,
  1573. "name": "女式衬衫",
  1574. "type": "",
  1575. "image": "http://file.shopro.top/uploads/20210519/02be3efee5d0ad3690d012241e4f786e.jpeg",
  1576. "pid": 154,
  1577. "weigh": 0,
  1578. "description": "",
  1579. "status": "normal",
  1580. "createtime": 1621409861,
  1581. "updatetime": 1621409861
  1582. },
  1583. {
  1584. "id": 157,
  1585. "name": "女士裙装",
  1586. "type": "",
  1587. "image": "http://file.shopro.top/uploads/20210519/4285eb455cf4ba396985b60db99b2952.png",
  1588. "pid": 154,
  1589. "weigh": 0,
  1590. "description": "",
  1591. "status": "normal",
  1592. "createtime": 1621409861,
  1593. "updatetime": 1621409861
  1594. }
  1595. ]
  1596. },
  1597. {
  1598. "id": 158,
  1599. "name": "男装",
  1600. "type": "",
  1601. "image": "",
  1602. "pid": 73,
  1603. "weigh": 0,
  1604. "description": "",
  1605. "status": "normal",
  1606. "createtime": 1621409861,
  1607. "updatetime": 1663139447,
  1608. "children": [
  1609. {
  1610. "id": 159,
  1611. "name": "男士裤装",
  1612. "type": "",
  1613. "image": "http://file.shopro.top/uploads/20210519/b9fe1efe2b26eb0f060a26bae677d30d.jpeg",
  1614. "pid": 158,
  1615. "weigh": 0,
  1616. "description": "",
  1617. "status": "normal",
  1618. "createtime": 1621409861,
  1619. "updatetime": 1621409861
  1620. },
  1621. {
  1622. "id": 160,
  1623. "name": "男士卫衣",
  1624. "type": "",
  1625. "image": "http://file.shopro.top/uploads/20210519/13f08a3efeeb2b91890efdc4e096ab61.jpeg",
  1626. "pid": 158,
  1627. "weigh": 0,
  1628. "description": "",
  1629. "status": "normal",
  1630. "createtime": 1621409861,
  1631. "updatetime": 1621409861
  1632. },
  1633. {
  1634. "id": 161,
  1635. "name": "男士衬衫",
  1636. "type": "",
  1637. "image": "http://file.shopro.top/uploads/20210519/80749ed38259d70d2347a9d3157421bd.png",
  1638. "pid": 158,
  1639. "weigh": 0,
  1640. "description": "",
  1641. "status": "normal",
  1642. "createtime": 1621409861,
  1643. "updatetime": 1621409861
  1644. },
  1645. {
  1646. "id": 162,
  1647. "name": "男士外套",
  1648. "type": "",
  1649. "image": "http://file.shopro.top/uploads/20210519/33aebe2cedf450ac6d0bbde0034635d3.png",
  1650. "pid": 158,
  1651. "weigh": 0,
  1652. "description": "",
  1653. "status": "normal",
  1654. "createtime": 1621409861,
  1655. "updatetime": 1621409861
  1656. }
  1657. ]
  1658. }
  1659. ]
  1660. }
  1661. ],
  1662. "style": 1
  1663. },
  1664. "decorate_id": 1
  1665. }
  1666. ],
  1667. "user": [
  1668. {
  1669. "id": 27604,
  1670. "type": "user",
  1671. "category": "user",
  1672. "name": "用户卡片",
  1673. "content": {
  1674. "name": "用户卡片",
  1675. "image": "http://file.shopro.top/uploads/20210518/c4e353836a5d04e92697d22f95d0c5a5.png",
  1676. "style": 2,
  1677. "color": "#eeeeee"
  1678. },
  1679. "decorate_id": 1
  1680. },
  1681. {
  1682. "id": 27605,
  1683. "type": "order-card",
  1684. "category": "user",
  1685. "name": "订单卡片",
  1686. "content": [
  1687. ],
  1688. "decorate_id": 1
  1689. },
  1690. {
  1691. "id": 27606,
  1692. "type": "wallet-card",
  1693. "category": "user",
  1694. "name": "资产卡片",
  1695. "content": [
  1696. ],
  1697. "decorate_id": 1
  1698. },
  1699. {
  1700. "id": 27607,
  1701. "type": "grid-list",
  1702. "category": "user",
  1703. "name": "宫格列表",
  1704. "content": {
  1705. "name": "",
  1706. "list": [
  1707. {
  1708. "name": "商品收藏",
  1709. "image": "http://file.shopro.top/uploads/20210518/b726f027bd679f0f5a36c6e301430790.png",
  1710. "path": "/pages/user/favorite",
  1711. "path_name": "我的收藏",
  1712. "path_type": 1
  1713. },
  1714. {
  1715. "name": "浏览足迹",
  1716. "image": "http://file.shopro.top/uploads/20210518/d4e05c1560722ec63fde08e3217d3296.png",
  1717. "path": "/pages/user/view-log",
  1718. "path_name": "浏览足迹",
  1719. "path_type": 1
  1720. },
  1721. {
  1722. "name": "积分商城",
  1723. "image": "http://file.shopro.top/uploads/20210518/234139fd11f6f8451e4c517f256c6b45.png",
  1724. "path": "/pages/app/score/list",
  1725. "path_name": "积分商品",
  1726. "path_type": 1
  1727. },
  1728. {
  1729. "name": "我的拼团",
  1730. "image": "http://file.shopro.top/uploads/20210518/5d53a6e7f940c5ef925f63c1810c8429.png",
  1731. "path": "/pages/activity/groupon/my-groupon",
  1732. "path_name": "我的拼团",
  1733. "path_type": 1
  1734. },
  1735. {
  1736. "name": "常见问题",
  1737. "image": "http://file.shopro.top/uploads/20210518/555ef0a1151e83014610b288e53827c2.png",
  1738. "path": "/pages/public/faq",
  1739. "path_name": "常见问题",
  1740. "path_type": 1
  1741. },
  1742. {
  1743. "name": "系统设置",
  1744. "image": "http://file.shopro.top/uploads/20210518/9ac9ef6f9df49f89ace437c53a76adca.png",
  1745. "path": "/pages/user/set",
  1746. "path_name": "系统设置",
  1747. "path_type": 1
  1748. },
  1749. {
  1750. "name": "分销中心",
  1751. "image": "http://file.shopro.top/uploads/20210518/a470b691a09eec29d56e0a55b02f70e0.png",
  1752. "path": "/pages/app/commission/index",
  1753. "path_name": "分销中心",
  1754. "path_type": 1
  1755. },
  1756. {
  1757. "name": "团长申请",
  1758. "image": "http://file.shopro.top/uploads/20210518/ccb0390403a473d6b019d330bbf6bca4.png",
  1759. "path": "/pages/app/merchant/apply",
  1760. "path_name": "门店入驻",
  1761. "path_type": 1
  1762. }
  1763. ]
  1764. },
  1765. "decorate_id": 1
  1766. }
  1767. ],
  1768. "tabbar": [
  1769. {
  1770. "id": 27603,
  1771. "type": "tabbar",
  1772. "category": "tabbar",
  1773. "name": "底部导航",
  1774. "content": {
  1775. "style": 1,
  1776. "color": "#666666",
  1777. "activeColor": "#EFC480",
  1778. "bgcolor": "#fff",
  1779. "list": [
  1780. {
  1781. "name": "首页",
  1782. "image": "https://demo.shopro.top/uploads/20221017/c4591c74c27a49bda021257d3c889225.png",
  1783. "activeImage": "https://demo.shopro.top/uploads/20221017/558feb98726495d17128d07694d7ff47.png",
  1784. "path": "/pages/index/index",
  1785. "path_name": "首页",
  1786. "path_type": 1
  1787. },
  1788. {
  1789. "name": "分类",
  1790. "image": "https://demo.shopro.top/uploads/20221017/d6e987bb27013691478ddce7ce700288.png",
  1791. "activeImage": "https://demo.shopro.top/uploads/20221017/f280b7f9ea18db0c80337d1c1cac6075.png",
  1792. "path": "/pages/index/category?id=43",
  1793. "path_name": "分类-商品分类",
  1794. "path_type": 1
  1795. },
  1796. {
  1797. "name": "购物车",
  1798. "image": "https://demo.shopro.top/uploads/20221017/0ab4659f44404d6d4723c265ccd21f94.png",
  1799. "activeImage": "https://demo.shopro.top/uploads/20221017/5273d6e90fb45e3d9189fba9fcbea47c.png",
  1800. "path": "/pages/index/cart",
  1801. "path_name": "购物车",
  1802. "path_type": 1
  1803. },
  1804. {
  1805. "name": "我的",
  1806. "image": "https://demo.shopro.top/uploads/20221017/406848d5827325fead27224decffd141.png",
  1807. "activeImage": "https://demo.shopro.top/uploads/20221017/8eca666cc43686d292113244b31e0664.png",
  1808. "path": "/pages/index/user",
  1809. "path_name": "我的",
  1810. "path_type": 1
  1811. }
  1812. ],
  1813. "isshow": true
  1814. },
  1815. "decorate_id": 1
  1816. }
  1817. ],
  1818. "popup": [
  1819. {
  1820. "id": 27602,
  1821. "type": "popup",
  1822. "category": "popup",
  1823. "name": "弹窗提醒",
  1824. "content": {
  1825. "list": [
  1826. {
  1827. "name": "",
  1828. "style": 2,
  1829. "image": "http://file.shopro.top/uploads/20210518/9136ecddcddf6607184fab689207e7e3.png",
  1830. "btnimage": "",
  1831. "path": "/pages/app/coupon/list",
  1832. "path_name": "优惠券中心",
  1833. "path_type": 1
  1834. }
  1835. ]
  1836. },
  1837. "decorate_id": 1
  1838. }
  1839. ],
  1840. "float-button": [
  1841. {
  1842. "id": 27608,
  1843. "type": "float-button",
  1844. "category": "float-button",
  1845. "name": "悬浮按钮",
  1846. "content": {
  1847. "image": "http://file.shopro.top/uploads/20210518/f6b9c9d20d21df541ac52e9548486e1a.png",
  1848. "list": [
  1849. {
  1850. "name": "关注",
  1851. "style": 1,
  1852. "image": "http://file.shopro.top/uploads/20210522/ff3fba3ef6a402aa770bde5a60e7f49f.png",
  1853. "btnimage": "http://file.shopro.top/uploads/20210522/1f4ee09203ca1ae620137925d77275d7.png",
  1854. "path": "",
  1855. "path_name": "",
  1856. "path_type": 1
  1857. },
  1858. {
  1859. "name": "活动",
  1860. "style": 2,
  1861. "image": "",
  1862. "btnimage": "http://file.shopro.top/uploads/20210522/5c50e0b17d64f448d271cfaac5039e00.png",
  1863. "path": "/pages/activity/groupon/list",
  1864. "path_name": "今日必拼",
  1865. "path_type": 1
  1866. },
  1867. {
  1868. "name": "客服",
  1869. "style": 2,
  1870. "image": "",
  1871. "btnimage": "http://file.shopro.top/uploads/20210522/73234ab79bd6164b11f09a1b11df3f55.png",
  1872. "path": "/pages/public/chat/index",
  1873. "path_name": "客服",
  1874. "path_type": 1
  1875. }
  1876. ]
  1877. },
  1878. "decorate_id": 1
  1879. }
  1880. ]
  1881. }
  1882. commit("hasTemplate", true);
  1883. commit('TEMPLATE', template);
  1884. return template;
  1885. // const result = await http('common.template', shop_id ? {
  1886. // shop_id
  1887. // } : {});
  1888. // if (result.code === 1) {
  1889. // commit("hasTemplate", true);
  1890. // commit('TEMPLATE', result.data);
  1891. // return result.data;
  1892. // } else {
  1893. // commit("hasTemplate", false);
  1894. // return false;
  1895. // }
  1896. },
  1897. // 同步路由到后端
  1898. syncPages({
  1899. commit
  1900. }) {
  1901. // http('common.syncPages', {
  1902. // data: ROUTES,
  1903. // })
  1904. },
  1905. }
  1906. const mutations = {
  1907. CONFIG(state, payload) {
  1908. Object.keys(payload).forEach(k => {
  1909. state[k] = payload[k];
  1910. if (k === 'chat') {
  1911. uni.setStorageSync("chat", payload[k]);
  1912. }
  1913. if (k === 'recharge') {
  1914. uni.setStorageSync("recharge", payload[k])
  1915. }
  1916. })
  1917. },
  1918. TEMPLATE(state, data) {
  1919. state.template = data;
  1920. state.homeTemplate = data.home
  1921. state.userTemplate = data.user
  1922. state.floatData = data['float-button']?. [0]?.content
  1923. state.popupData = {}
  1924. state.tabbarData = data?.tabbar?. [0]?.content
  1925. },
  1926. hasTemplate(state, data) {
  1927. state.hasTemplate = data
  1928. },
  1929. // 弹窗一次的话,关闭的时候删除数据。
  1930. delPopup(state, index) {
  1931. let popupData = state.popupData;
  1932. popupData.list.splice(index, 1)
  1933. state.template = popupData;
  1934. },
  1935. shareInfo(state, shareInfo) {
  1936. state.shareInfo = shareInfo;
  1937. }
  1938. }
  1939. export default {
  1940. state,
  1941. mutations,
  1942. actions,
  1943. getters
  1944. }