good.js 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904
  1. import { cdnBase } from '../config/index';
  2. const imgPrefix = cdnBase;
  3. const defaultDesc = [`${imgPrefix}/goods/details-1.png`];
  4. const allGoods = [
  5. {
  6. saasId: '88888888',
  7. storeId: '1000',
  8. spuId: '0',
  9. title: '白色短袖连衣裙荷叶边裙摆宽松韩版休闲纯白清爽优雅连衣裙',
  10. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  11. images: [
  12. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  13. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09b.png',
  14. ],
  15. video: null,
  16. available: 1,
  17. minSalePrice: 29800,
  18. minLinePrice: 29800,
  19. maxSalePrice: 29800,
  20. maxLinePrice: 40000,
  21. spuStockQuantity: 510,
  22. soldNum: 1020,
  23. isPutOnSale: 1,
  24. categoryIds: ['127880527393854975', '127880527393854976', '127880537778953984'],
  25. specList: [
  26. {
  27. specId: '10011',
  28. title: '颜色',
  29. specValueList: [
  30. {
  31. specValueId: '10012',
  32. specId: null,
  33. saasId: null,
  34. specValue: '米色荷叶边',
  35. image: null,
  36. },
  37. ],
  38. },
  39. {
  40. specId: '10013',
  41. title: '尺码',
  42. specValueList: [
  43. {
  44. specValueId: '11014',
  45. specId: null,
  46. saasId: null,
  47. specValue: 'S',
  48. image: null,
  49. },
  50. {
  51. specValueId: '10014',
  52. specId: null,
  53. saasId: null,
  54. specValue: 'M',
  55. image: null,
  56. },
  57. {
  58. specValueId: '11013',
  59. specId: null,
  60. saasId: null,
  61. specValue: 'L',
  62. image: null,
  63. },
  64. ],
  65. },
  66. ],
  67. skuList: [
  68. {
  69. skuId: '135676631',
  70. skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  71. specInfo: [
  72. {
  73. specId: '10011',
  74. specTitle: null,
  75. specValueId: '10012',
  76. specValue: null,
  77. },
  78. {
  79. specId: '10013',
  80. specTitle: null,
  81. specValueId: '11014',
  82. specValue: null,
  83. },
  84. ],
  85. priceInfo: [
  86. { priceType: 1, price: '29800', priceTypeName: null },
  87. { priceType: 2, price: '40000', priceTypeName: null },
  88. ],
  89. stockInfo: {
  90. stockQuantity: 175,
  91. safeStockQuantity: 0,
  92. soldQuantity: 0,
  93. },
  94. weight: { value: null, unit: 'KG' },
  95. volume: null,
  96. profitPrice: null,
  97. },
  98. {
  99. skuId: '135676632',
  100. skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  101. specInfo: [
  102. {
  103. specId: '10011',
  104. specTitle: null,
  105. specValueId: '10012',
  106. specValue: null,
  107. },
  108. {
  109. specId: '10013',
  110. specTitle: null,
  111. specValueId: '11013',
  112. specValue: null,
  113. },
  114. ],
  115. priceInfo: [
  116. { priceType: 1, price: '29800', priceTypeName: null },
  117. { priceType: 2, price: '40000', priceTypeName: null },
  118. ],
  119. stockInfo: {
  120. stockQuantity: 158,
  121. safeStockQuantity: 0,
  122. soldQuantity: 0,
  123. },
  124. weight: { value: null, unit: 'KG' },
  125. volume: null,
  126. profitPrice: null,
  127. },
  128. {
  129. skuId: '135681631',
  130. skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  131. specInfo: [
  132. {
  133. specId: '10011',
  134. specTitle: null,
  135. specValueId: '10012',
  136. specValue: null,
  137. },
  138. {
  139. specId: '10013',
  140. specTitle: null,
  141. specValueId: '10014',
  142. specValue: null,
  143. },
  144. ],
  145. priceInfo: [
  146. { priceType: 1, price: '29800', priceTypeName: null },
  147. { priceType: 2, price: '40000', priceTypeName: null },
  148. ],
  149. stockInfo: {
  150. stockQuantity: 177,
  151. safeStockQuantity: 0,
  152. soldQuantity: 0,
  153. },
  154. weight: { value: null, unit: 'KG' },
  155. volume: null,
  156. profitPrice: null,
  157. },
  158. ],
  159. spuTagList: [{ id: '13001', title: '限时抢购', image: null }],
  160. limitInfo: [
  161. {
  162. text: '限购5件',
  163. },
  164. ],
  165. desc: [
  166. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09c.png',
  167. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09d.png',
  168. ],
  169. etitle: '',
  170. },
  171. {
  172. saasId: '88888888',
  173. storeId: '1000',
  174. spuId: '135686633',
  175. title: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤',
  176. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
  177. minSalePrice: '25900',
  178. minLinePrice: '31900',
  179. maxSalePrice: '26900',
  180. maxLinePrice: '31900',
  181. isSoldOut: false,
  182. images: [
  183. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08a.png',
  184. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08a1.png',
  185. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
  186. ],
  187. groupIdList: ['15029', '14023'],
  188. spuTagList: [
  189. {
  190. id: null,
  191. title: '2020夏季新款',
  192. image: null,
  193. },
  194. ],
  195. skuList: [
  196. {
  197. skuId: '135686634',
  198. skuImage: null,
  199. specInfo: [
  200. {
  201. specId: '10000',
  202. specTitle: null,
  203. specValueId: '10001',
  204. specValue: '白色',
  205. },
  206. {
  207. specId: '10002',
  208. specTitle: null,
  209. specValueId: '10003',
  210. specValue: 'M',
  211. },
  212. ],
  213. priceInfo: [
  214. {
  215. priceType: 1,
  216. price: '25900',
  217. priceTypeName: '销售价格',
  218. },
  219. {
  220. priceType: 2,
  221. price: '31900',
  222. priceTypeName: '划线价格',
  223. },
  224. ],
  225. stockInfo: {
  226. stockQuantity: -9,
  227. safeStockQuantity: 0,
  228. soldQuantity: 0,
  229. },
  230. weight: null,
  231. volume: null,
  232. profitPrice: null,
  233. },
  234. {
  235. skuId: '135691631',
  236. skuImage: null,
  237. specInfo: [
  238. {
  239. specId: '10000',
  240. specTitle: null,
  241. specValueId: '10001',
  242. specValue: '白色',
  243. },
  244. {
  245. specId: '10002',
  246. specTitle: null,
  247. specValueId: '11003',
  248. specValue: 'S',
  249. },
  250. ],
  251. priceInfo: [
  252. {
  253. priceType: 1,
  254. price: '26900',
  255. priceTypeName: '销售价格',
  256. },
  257. {
  258. priceType: 2,
  259. price: '31900',
  260. priceTypeName: '划线价格',
  261. },
  262. ],
  263. stockInfo: {
  264. stockQuantity: 177,
  265. safeStockQuantity: 0,
  266. soldQuantity: 0,
  267. },
  268. weight: null,
  269. volume: null,
  270. profitPrice: null,
  271. },
  272. {
  273. skuId: '135691632',
  274. skuImage: null,
  275. specInfo: [
  276. {
  277. specId: '10000',
  278. specTitle: null,
  279. specValueId: '10001',
  280. specValue: '白色',
  281. },
  282. {
  283. specId: '10002',
  284. specTitle: null,
  285. specValueId: '11002',
  286. specValue: 'L',
  287. },
  288. ],
  289. priceInfo: [
  290. {
  291. priceType: 1,
  292. price: '26900',
  293. priceTypeName: '销售价格',
  294. },
  295. {
  296. priceType: 2,
  297. price: '31900',
  298. priceTypeName: '划线价格',
  299. },
  300. ],
  301. stockInfo: {
  302. stockQuantity: 194,
  303. safeStockQuantity: 0,
  304. soldQuantity: 0,
  305. },
  306. weight: null,
  307. volume: null,
  308. profitPrice: null,
  309. },
  310. ],
  311. isAvailable: 1,
  312. spuStockQuantity: 371,
  313. soldNum: 1032,
  314. isPutOnSale: 1,
  315. specList: [
  316. {
  317. specId: '10000',
  318. title: '颜色',
  319. specValueList: [
  320. {
  321. specValueId: '10001',
  322. specId: '10000',
  323. saasId: '88888888',
  324. specValue: '白色',
  325. image: '',
  326. },
  327. ],
  328. },
  329. {
  330. specId: '10002',
  331. title: '尺码',
  332. specValueList: [
  333. {
  334. specValueId: '11003',
  335. specId: '10002',
  336. saasId: '88888888',
  337. specValue: 'S',
  338. image: '',
  339. },
  340. {
  341. specValueId: '10003',
  342. specId: '10002',
  343. saasId: '88888888',
  344. specValue: 'M',
  345. image: '',
  346. },
  347. {
  348. specValueId: '11002',
  349. specId: '10002',
  350. saasId: '88888888',
  351. specValue: 'L',
  352. image: '',
  353. },
  354. ],
  355. },
  356. ],
  357. promotionList: null,
  358. minProfitPrice: null,
  359. etitle: '',
  360. desc: [
  361. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08c.png',
  362. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08d.png',
  363. ],
  364. },
  365. {
  366. saasId: '88888888',
  367. storeId: '1000',
  368. spuId: '135691628',
  369. title: '运动连帽拉链卫衣休闲开衫长袖多色运动细绒面料运动上衣',
  370. images: [
  371. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17a.png',
  372. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17a1.png',
  373. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17b.png',
  374. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17b1.png',
  375. ],
  376. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17a.png',
  377. minSalePrice: '25900',
  378. minLinePrice: '39900',
  379. maxSalePrice: '25900',
  380. maxLinePrice: '39900',
  381. isSoldOut: true,
  382. groupIdList: ['15029', '14023'],
  383. spuTagList: [
  384. {
  385. id: null,
  386. title: '2020夏季新款',
  387. image: null,
  388. },
  389. ],
  390. skuList: [
  391. {
  392. skuId: '135686631',
  393. skuImage: null,
  394. specInfo: [
  395. {
  396. specId: '127904180600844800',
  397. specTitle: null,
  398. specValueId: '127904180768617216',
  399. specValue: '军绿色',
  400. },
  401. {
  402. specId: '127904861604820480',
  403. specTitle: null,
  404. specValueId: '127904862494014208',
  405. specValue: 'XS',
  406. },
  407. ],
  408. priceInfo: [
  409. {
  410. priceType: 1,
  411. price: '25900',
  412. priceTypeName: '销售价格',
  413. },
  414. {
  415. priceType: 2,
  416. price: '39900',
  417. priceTypeName: '划线价格',
  418. },
  419. ],
  420. stockInfo: {
  421. stockQuantity: 0,
  422. safeStockQuantity: 0,
  423. soldQuantity: 0,
  424. },
  425. weight: null,
  426. volume: null,
  427. profitPrice: null,
  428. },
  429. {
  430. skuId: '135686632',
  431. skuImage: null,
  432. specInfo: [
  433. {
  434. specId: '127904180600844800',
  435. specTitle: null,
  436. specValueId: '127904180768617216',
  437. specValue: '军绿色',
  438. },
  439. {
  440. specId: '127904861604820480',
  441. specTitle: null,
  442. specValueId: '127904862007474176',
  443. specValue: 'M',
  444. },
  445. ],
  446. priceInfo: [
  447. {
  448. priceType: 1,
  449. price: '25900',
  450. priceTypeName: '销售价格',
  451. },
  452. {
  453. priceType: 2,
  454. price: '39900',
  455. priceTypeName: '划线价格',
  456. },
  457. ],
  458. stockInfo: {
  459. stockQuantity: 0,
  460. safeStockQuantity: 0,
  461. soldQuantity: 0,
  462. },
  463. weight: null,
  464. volume: null,
  465. profitPrice: null,
  466. },
  467. {
  468. skuId: '135691629',
  469. skuImage: null,
  470. specInfo: [
  471. {
  472. specId: '127904180600844800',
  473. specTitle: null,
  474. specValueId: '127904180768617216',
  475. specValue: '军绿色',
  476. },
  477. {
  478. specId: '127904861604820480',
  479. specTitle: null,
  480. specValueId: '127904862175246592',
  481. specValue: 'S',
  482. },
  483. ],
  484. priceInfo: [
  485. {
  486. priceType: 1,
  487. price: '25900',
  488. priceTypeName: '销售价格',
  489. },
  490. {
  491. priceType: 2,
  492. price: '39900',
  493. priceTypeName: '划线价格',
  494. },
  495. ],
  496. stockInfo: {
  497. stockQuantity: 0,
  498. safeStockQuantity: 0,
  499. soldQuantity: 0,
  500. },
  501. weight: null,
  502. volume: null,
  503. profitPrice: null,
  504. },
  505. {
  506. skuId: '135691630',
  507. skuImage: null,
  508. specInfo: [
  509. {
  510. specId: '127904180600844800',
  511. specTitle: null,
  512. specValueId: '127904180768617216',
  513. specValue: '军绿色',
  514. },
  515. {
  516. specId: '127904861604820480',
  517. specTitle: null,
  518. specValueId: '127904861755815680',
  519. specValue: 'L',
  520. },
  521. ],
  522. priceInfo: [
  523. {
  524. priceType: 1,
  525. price: '25900',
  526. priceTypeName: '销售价格',
  527. },
  528. {
  529. priceType: 2,
  530. price: '39900',
  531. priceTypeName: '划线价格',
  532. },
  533. ],
  534. stockInfo: {
  535. stockQuantity: 0,
  536. safeStockQuantity: 0,
  537. soldQuantity: 0,
  538. },
  539. weight: null,
  540. volume: null,
  541. profitPrice: null,
  542. },
  543. ],
  544. isAvailable: 1,
  545. spuStockQuantity: 0,
  546. soldNum: 1022,
  547. isPutOnSale: 1,
  548. specList: [
  549. {
  550. specId: '127904180600844800',
  551. title: '颜色',
  552. specValueList: [
  553. {
  554. specValueId: '127904180768617216',
  555. specId: '127904180600844800',
  556. saasId: '88888888',
  557. specValue: '军绿色',
  558. image: '',
  559. },
  560. ],
  561. },
  562. {
  563. specId: '127904861604820480',
  564. title: '尺码',
  565. specValueList: [
  566. {
  567. specValueId: '127904862494014208',
  568. specId: '127904861604820480',
  569. saasId: '88888888',
  570. specValue: 'XS',
  571. image: '',
  572. },
  573. {
  574. specValueId: '127904862175246592',
  575. specId: '127904861604820480',
  576. saasId: '88888888',
  577. specValue: 'S',
  578. image: '',
  579. },
  580. {
  581. specValueId: '127904862007474176',
  582. specId: '127904861604820480',
  583. saasId: '88888888',
  584. specValue: 'M',
  585. image: '',
  586. },
  587. {
  588. specValueId: '127904861755815680',
  589. specId: '127904861604820480',
  590. saasId: '88888888',
  591. specValue: 'L',
  592. image: '',
  593. },
  594. ],
  595. },
  596. ],
  597. promotionList: null,
  598. minProfitPrice: null,
  599. etitle: '',
  600. desc: [
  601. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17c.png',
  602. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17d.png',
  603. ],
  604. },
  605. {
  606. saasId: '88888888',
  607. storeId: '1000',
  608. spuId: '135686623',
  609. title: '腾讯极光盒子4智能网络电视机顶盒6K千兆网络机顶盒4K高分辨率',
  610. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3a.png',
  611. images: [
  612. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3a.png',
  613. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3b.png',
  614. ],
  615. minSalePrice: '9900',
  616. minLinePrice: '16900',
  617. maxSalePrice: '10900',
  618. maxLinePrice: '16900',
  619. isSoldOut: false,
  620. groupIdList: [
  621. '15029',
  622. '15030',
  623. '14023',
  624. '127886731843219200',
  625. '127886732665303040',
  626. '127886733101511680',
  627. '127886733923595520',
  628. '14025',
  629. '127886726071855616',
  630. '14026',
  631. '127886727481142784',
  632. '127886731440566784',
  633. ],
  634. spuTagList: [
  635. {
  636. id: null,
  637. title: '联名系列',
  638. image: null,
  639. },
  640. ],
  641. skuList: [
  642. {
  643. skuId: '135686624',
  644. skuImage: null,
  645. specInfo: [
  646. {
  647. specId: '10000',
  648. specTitle: null,
  649. specValueId: '10001',
  650. specValue: '经典白',
  651. },
  652. {
  653. specId: '10002',
  654. specTitle: null,
  655. specValueId: '10003',
  656. specValue: '节能套装',
  657. },
  658. ],
  659. priceInfo: [
  660. {
  661. priceType: 1,
  662. price: '9900',
  663. priceTypeName: '销售价格',
  664. },
  665. {
  666. priceType: 2,
  667. price: '16900',
  668. priceTypeName: '划线价格',
  669. },
  670. ],
  671. stockInfo: {
  672. stockQuantity: 98,
  673. safeStockQuantity: 0,
  674. soldQuantity: 0,
  675. },
  676. weight: null,
  677. volume: null,
  678. profitPrice: null,
  679. },
  680. {
  681. skuId: '135686625',
  682. skuImage: null,
  683. specInfo: [
  684. {
  685. specId: '10000',
  686. specTitle: null,
  687. specValueId: '11000',
  688. specValue: '贵族青',
  689. },
  690. {
  691. specId: '10002',
  692. specTitle: null,
  693. specValueId: '11003',
  694. specValue: '经典套装',
  695. },
  696. ],
  697. priceInfo: [
  698. {
  699. priceType: 1,
  700. price: '9900',
  701. priceTypeName: '销售价格',
  702. },
  703. {
  704. priceType: 2,
  705. price: '16900',
  706. priceTypeName: '划线价格',
  707. },
  708. ],
  709. stockInfo: {
  710. stockQuantity: 100,
  711. safeStockQuantity: 0,
  712. soldQuantity: 0,
  713. },
  714. weight: null,
  715. volume: null,
  716. profitPrice: null,
  717. },
  718. {
  719. skuId: '135686626',
  720. skuImage: null,
  721. specInfo: [
  722. {
  723. specId: '10000',
  724. specTitle: null,
  725. specValueId: '11000',
  726. specValue: '经典白',
  727. },
  728. {
  729. specId: '10002',
  730. specTitle: null,
  731. specValueId: '11002',
  732. specValue: '尊享礼盒装',
  733. },
  734. ],
  735. priceInfo: [
  736. {
  737. priceType: 1,
  738. price: '9900',
  739. priceTypeName: '销售价格',
  740. },
  741. {
  742. priceType: 2,
  743. price: '16900',
  744. priceTypeName: '划线价格',
  745. },
  746. ],
  747. stockInfo: {
  748. stockQuantity: 100,
  749. safeStockQuantity: 0,
  750. soldQuantity: 0,
  751. },
  752. weight: null,
  753. volume: null,
  754. profitPrice: null,
  755. },
  756. {
  757. skuId: '135691622',
  758. skuImage: null,
  759. specInfo: [
  760. {
  761. specId: '10000',
  762. specTitle: null,
  763. specValueId: '10001',
  764. specValue: '经典白',
  765. },
  766. {
  767. specId: '10002',
  768. specTitle: null,
  769. specValueId: '11003',
  770. specValue: 'S',
  771. },
  772. ],
  773. priceInfo: [
  774. {
  775. priceType: 1,
  776. price: '9900',
  777. priceTypeName: '销售价格',
  778. },
  779. {
  780. priceType: 2,
  781. price: '16900',
  782. priceTypeName: '划线价格',
  783. },
  784. ],
  785. stockInfo: {
  786. stockQuantity: 100,
  787. safeStockQuantity: 0,
  788. soldQuantity: 0,
  789. },
  790. weight: null,
  791. volume: null,
  792. profitPrice: null,
  793. },
  794. {
  795. skuId: '135691623',
  796. skuImage: null,
  797. specInfo: [
  798. {
  799. specId: '10000',
  800. specTitle: null,
  801. specValueId: '10001',
  802. specValue: '经典白',
  803. },
  804. {
  805. specId: '10002',
  806. specTitle: null,
  807. specValueId: '11002',
  808. specValue: '尊享礼盒装',
  809. },
  810. ],
  811. priceInfo: [
  812. {
  813. priceType: 1,
  814. price: '10900',
  815. priceTypeName: '销售价格',
  816. },
  817. {
  818. priceType: 2,
  819. price: '16900',
  820. priceTypeName: '划线价格',
  821. },
  822. ],
  823. stockInfo: {
  824. stockQuantity: 100,
  825. safeStockQuantity: 0,
  826. soldQuantity: 0,
  827. },
  828. weight: null,
  829. volume: null,
  830. profitPrice: null,
  831. },
  832. {
  833. skuId: '135691624',
  834. skuImage: null,
  835. specInfo: [
  836. {
  837. specId: '10000',
  838. specTitle: null,
  839. specValueId: '11000',
  840. specValue: '贵族青',
  841. },
  842. {
  843. specId: '10002',
  844. specTitle: null,
  845. specValueId: '10003',
  846. specValue: '节能套装',
  847. },
  848. ],
  849. priceInfo: [
  850. {
  851. priceType: 1,
  852. price: '9900',
  853. priceTypeName: '销售价格',
  854. },
  855. {
  856. priceType: 2,
  857. price: '16900',
  858. priceTypeName: '划线价格',
  859. },
  860. ],
  861. stockInfo: {
  862. stockQuantity: 100,
  863. safeStockQuantity: 0,
  864. soldQuantity: 0,
  865. },
  866. weight: null,
  867. volume: null,
  868. profitPrice: null,
  869. },
  870. ],
  871. isAvailable: 1,
  872. spuStockQuantity: 598,
  873. soldNum: 102,
  874. isPutOnSale: 1,
  875. desc: [
  876. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3c.png',
  877. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3d.png',
  878. ],
  879. specList: [
  880. {
  881. specId: '10000',
  882. title: '颜色',
  883. specValueList: [
  884. {
  885. specValueId: '10001',
  886. specId: '10000',
  887. saasId: '88888888',
  888. specValue: '经典白',
  889. image: '',
  890. },
  891. {
  892. specValueId: '11000',
  893. specId: '10000',
  894. saasId: '88888888',
  895. specValue: '贵族青',
  896. image: '',
  897. },
  898. ],
  899. },
  900. {
  901. specId: '10002',
  902. title: '尺码',
  903. specValueList: [
  904. {
  905. specValueId: '11003',
  906. specId: '10002',
  907. saasId: '88888888',
  908. specValue: '经典套装',
  909. image: '',
  910. },
  911. {
  912. specValueId: '10003',
  913. specId: '10002',
  914. saasId: '88888888',
  915. specValue: '节能套装',
  916. image: '',
  917. },
  918. {
  919. specValueId: '11002',
  920. specId: '10002',
  921. saasId: '88888888',
  922. specValue: '尊享礼盒装',
  923. image: '',
  924. },
  925. ],
  926. },
  927. ],
  928. promotionList: null,
  929. minProfitPrice: null,
  930. etitle: '',
  931. },
  932. {
  933. saasId: '88888888',
  934. storeId: '1000',
  935. spuId: '135681628',
  936. title: '带帽午休毯虎年款多功能加厚加大加绒简约多功能午休毯连帽披肩',
  937. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
  938. images: [
  939. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
  940. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a1.png',
  941. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3b.png',
  942. ],
  943. minSalePrice: '29900',
  944. minLinePrice: '39900',
  945. maxSalePrice: '39900',
  946. maxLinePrice: '39900',
  947. isSoldOut: false,
  948. groupIdList: [
  949. '14023',
  950. '127886732245873408',
  951. '127886733487386880',
  952. '14025',
  953. '127886726071855616',
  954. '14026',
  955. '127886728420666112',
  956. '127886728957538048',
  957. '127886729779621888',
  958. '127886730165497088',
  959. '127886730652037376',
  960. '127886731037912576',
  961. '127886731440566784',
  962. '127886729360190464',
  963. '15029',
  964. '15030',
  965. ],
  966. spuTagList: [
  967. {
  968. id: null,
  969. title: '限时抢购',
  970. image: null,
  971. },
  972. ],
  973. skuList: [
  974. {
  975. skuId: '135676629',
  976. skuImage: null,
  977. specInfo: [
  978. {
  979. specId: '127904180600844800',
  980. specTitle: null,
  981. specValueId: '127904181322265856',
  982. specValue: '浅灰色',
  983. },
  984. {
  985. specId: '127904861604820480',
  986. specTitle: null,
  987. specValueId: '127904862175246592',
  988. specValue: 'S',
  989. },
  990. ],
  991. priceInfo: [
  992. {
  993. priceType: 1,
  994. price: '29900',
  995. priceTypeName: '销售价格',
  996. },
  997. {
  998. priceType: 2,
  999. price: '39900',
  1000. priceTypeName: '划线价格',
  1001. },
  1002. ],
  1003. stockInfo: {
  1004. stockQuantity: 80,
  1005. safeStockQuantity: 0,
  1006. soldQuantity: 0,
  1007. },
  1008. weight: null,
  1009. volume: null,
  1010. profitPrice: null,
  1011. },
  1012. {
  1013. skuId: '135676630',
  1014. skuImage: null,
  1015. specInfo: [
  1016. {
  1017. specId: '127904180600844800',
  1018. specTitle: null,
  1019. specValueId: '127904181322265856',
  1020. specValue: '浅灰色',
  1021. },
  1022. {
  1023. specId: '127904861604820480',
  1024. specTitle: null,
  1025. specValueId: '127904861755815680',
  1026. specValue: 'L',
  1027. },
  1028. ],
  1029. priceInfo: [
  1030. {
  1031. priceType: 1,
  1032. price: '39900',
  1033. priceTypeName: '销售价格',
  1034. },
  1035. {
  1036. priceType: 2,
  1037. price: '39900',
  1038. priceTypeName: '划线价格',
  1039. },
  1040. ],
  1041. stockInfo: {
  1042. stockQuantity: 122,
  1043. safeStockQuantity: 0,
  1044. soldQuantity: 0,
  1045. },
  1046. weight: null,
  1047. volume: null,
  1048. profitPrice: null,
  1049. },
  1050. {
  1051. skuId: '135681629',
  1052. skuImage: null,
  1053. specInfo: [
  1054. {
  1055. specId: '127904180600844800',
  1056. specTitle: null,
  1057. specValueId: '127904181322265856',
  1058. specValue: '浅灰色',
  1059. },
  1060. {
  1061. specId: '127904861604820480',
  1062. specTitle: null,
  1063. specValueId: '127904862007474176',
  1064. specValue: 'M',
  1065. },
  1066. ],
  1067. priceInfo: [
  1068. {
  1069. priceType: 1,
  1070. price: '39900',
  1071. priceTypeName: '销售价格',
  1072. },
  1073. {
  1074. priceType: 2,
  1075. price: '39900',
  1076. priceTypeName: '划线价格',
  1077. },
  1078. ],
  1079. stockInfo: {
  1080. stockQuantity: 119,
  1081. safeStockQuantity: 0,
  1082. soldQuantity: 0,
  1083. },
  1084. weight: null,
  1085. volume: null,
  1086. profitPrice: null,
  1087. },
  1088. ],
  1089. desc: [
  1090. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3c.png',
  1091. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3d.png',
  1092. ],
  1093. isAvailable: 1,
  1094. spuStockQuantity: 321,
  1095. soldNum: 102,
  1096. isPutOnSale: 1,
  1097. specList: [
  1098. {
  1099. specId: '127904180600844800',
  1100. title: '颜色',
  1101. specValueList: [
  1102. {
  1103. specValueId: '127904181322265856',
  1104. specId: '127904180600844800',
  1105. saasId: '88888888',
  1106. specValue: '浅灰色',
  1107. image: '',
  1108. },
  1109. ],
  1110. },
  1111. {
  1112. specId: '127904861604820480',
  1113. title: '尺码',
  1114. specValueList: [
  1115. {
  1116. specValueId: '127904862175246592',
  1117. specId: '127904861604820480',
  1118. saasId: '88888888',
  1119. specValue: 'S',
  1120. image: '',
  1121. },
  1122. {
  1123. specValueId: '127904862007474176',
  1124. specId: '127904861604820480',
  1125. saasId: '88888888',
  1126. specValue: 'M',
  1127. image: '',
  1128. },
  1129. {
  1130. specValueId: '127904861755815680',
  1131. specId: '127904861604820480',
  1132. saasId: '88888888',
  1133. specValue: 'L',
  1134. image: '',
  1135. },
  1136. ],
  1137. },
  1138. ],
  1139. promotionList: null,
  1140. minProfitPrice: null,
  1141. etitle: '',
  1142. },
  1143. {
  1144. saasId: '88888888',
  1145. storeId: '1000',
  1146. spuId: '135681626',
  1147. title: '迷你便携高颜值蓝牙无线耳机立体声只能触控式操作简约立体声耳机',
  1148. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2a.png',
  1149. images: [
  1150. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2a.png',
  1151. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2a1.png',
  1152. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2b.png',
  1153. ],
  1154. minSalePrice: '29000',
  1155. minLinePrice: '40000',
  1156. maxSalePrice: '39000',
  1157. maxLinePrice: '40000',
  1158. isSoldOut: false,
  1159. groupIdList: [
  1160. '15029',
  1161. '15030',
  1162. '14023',
  1163. '127886732245873408',
  1164. '127886733487386880',
  1165. '14025',
  1166. '127886726071855616',
  1167. '14026',
  1168. '127886728420666112',
  1169. '127886728957538048',
  1170. '127886730652037376',
  1171. '127886731037912576',
  1172. ],
  1173. spuTagList: [
  1174. {
  1175. id: null,
  1176. title: '限时抢购',
  1177. image: null,
  1178. },
  1179. ],
  1180. skuList: [
  1181. {
  1182. skuId: '135676627',
  1183. skuImage: null,
  1184. specInfo: [
  1185. {
  1186. specId: '10006',
  1187. specTitle: null,
  1188. specValueId: '10007',
  1189. specValue: '黑色',
  1190. },
  1191. {
  1192. specId: '11007',
  1193. specTitle: null,
  1194. specValueId: '10009',
  1195. specValue: '简约款',
  1196. },
  1197. ],
  1198. priceInfo: [
  1199. {
  1200. priceType: 1,
  1201. price: '29000',
  1202. priceTypeName: '销售价格',
  1203. },
  1204. {
  1205. priceType: 2,
  1206. price: '40000',
  1207. priceTypeName: '划线价格',
  1208. },
  1209. ],
  1210. stockInfo: {
  1211. stockQuantity: 123,
  1212. safeStockQuantity: 0,
  1213. soldQuantity: 0,
  1214. },
  1215. weight: null,
  1216. volume: null,
  1217. profitPrice: null,
  1218. },
  1219. {
  1220. skuId: '135676628',
  1221. skuImage: null,
  1222. specInfo: [
  1223. {
  1224. specId: '10006',
  1225. specTitle: null,
  1226. specValueId: '10007',
  1227. specValue: '黑色',
  1228. },
  1229. {
  1230. specId: '11007',
  1231. specTitle: null,
  1232. specValueId: '10008',
  1233. specValue: '礼盒装',
  1234. },
  1235. ],
  1236. priceInfo: [
  1237. {
  1238. priceType: 1,
  1239. price: '39000',
  1240. priceTypeName: '销售价格',
  1241. },
  1242. {
  1243. priceType: 2,
  1244. price: '40000',
  1245. priceTypeName: '划线价格',
  1246. },
  1247. ],
  1248. stockInfo: {
  1249. stockQuantity: 123,
  1250. safeStockQuantity: 0,
  1251. soldQuantity: 0,
  1252. },
  1253. weight: null,
  1254. volume: null,
  1255. profitPrice: null,
  1256. },
  1257. {
  1258. skuId: '135681627',
  1259. skuImage: null,
  1260. specInfo: [
  1261. {
  1262. specId: '10006',
  1263. specTitle: null,
  1264. specValueId: '10007',
  1265. specValue: '黑色',
  1266. },
  1267. {
  1268. specId: '11007',
  1269. specTitle: null,
  1270. specValueId: '11008',
  1271. specValue: '带充电线简约款',
  1272. },
  1273. ],
  1274. priceInfo: [
  1275. {
  1276. priceType: 1,
  1277. price: '39000',
  1278. priceTypeName: '销售价格',
  1279. },
  1280. {
  1281. priceType: 2,
  1282. price: '40000',
  1283. priceTypeName: '划线价格',
  1284. },
  1285. ],
  1286. stockInfo: {
  1287. stockQuantity: 120,
  1288. safeStockQuantity: 0,
  1289. soldQuantity: 0,
  1290. },
  1291. weight: null,
  1292. volume: null,
  1293. profitPrice: null,
  1294. },
  1295. ],
  1296. desc: [
  1297. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2c.png',
  1298. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2d.png',
  1299. ],
  1300. isAvailable: 1,
  1301. spuStockQuantity: 366,
  1302. soldNum: 102,
  1303. isPutOnSale: 1,
  1304. specList: [
  1305. {
  1306. specId: '10006',
  1307. title: '颜色',
  1308. specValueList: [
  1309. {
  1310. specValueId: '10007',
  1311. specId: '10006',
  1312. saasId: '88888888',
  1313. specValue: '黑色',
  1314. image: '',
  1315. },
  1316. ],
  1317. },
  1318. {
  1319. specId: '11007',
  1320. title: '类型',
  1321. specValueList: [
  1322. {
  1323. specValueId: '10009',
  1324. specId: '11007',
  1325. saasId: '88888888',
  1326. specValue: '简约款',
  1327. image: '',
  1328. },
  1329. {
  1330. specValueId: '11008',
  1331. specId: '11007',
  1332. saasId: '88888888',
  1333. specValue: '带充电线简约款',
  1334. image: '',
  1335. },
  1336. {
  1337. specValueId: '10008',
  1338. specId: '11007',
  1339. saasId: '88888888',
  1340. specValue: '礼盒款',
  1341. image: '',
  1342. },
  1343. ],
  1344. },
  1345. ],
  1346. promotionList: null,
  1347. minProfitPrice: null,
  1348. etitle: '',
  1349. },
  1350. {
  1351. saasId: '88888888',
  1352. storeId: '1000',
  1353. spuId: '135681622',
  1354. title: '简约餐盘耐热家用盘子菜盘套装多颜色简约餐盘耐热家用盘子',
  1355. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-1a.png',
  1356. images: [
  1357. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-1a.png',
  1358. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-1a2.png',
  1359. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-1b.png',
  1360. ],
  1361. minSalePrice: '129900',
  1362. minLinePrice: '218000',
  1363. maxSalePrice: '139900',
  1364. maxLinePrice: '218000',
  1365. isSoldOut: false,
  1366. desc: [
  1367. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-1c.png',
  1368. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-1d.png',
  1369. ],
  1370. groupIdList: [
  1371. '14023',
  1372. '127886732665303040',
  1373. '127886733101511680',
  1374. '127886733923595520',
  1375. '14025',
  1376. '127886726071855616',
  1377. '14026',
  1378. '127886728957538048',
  1379. '127886727481142784',
  1380. '127886729779621888',
  1381. '127886730165497088',
  1382. '127886730652037376',
  1383. '127886731440566784',
  1384. '127886729360190464',
  1385. '15029',
  1386. '15030',
  1387. ],
  1388. spuTagList: [
  1389. {
  1390. id: null,
  1391. title: '掌柜热卖',
  1392. image: null,
  1393. },
  1394. ],
  1395. skuList: [
  1396. {
  1397. skuId: '135676623',
  1398. skuImage: null,
  1399. specInfo: [
  1400. {
  1401. specId: '127904180600844800',
  1402. specTitle: null,
  1403. specValueId: '127904181506815488',
  1404. specValue: '奶黄色',
  1405. },
  1406. {
  1407. specId: '127904861604820480',
  1408. specTitle: null,
  1409. specValueId: '127904862175246592',
  1410. specValue: '单盘',
  1411. },
  1412. ],
  1413. priceInfo: [
  1414. {
  1415. priceType: 1,
  1416. price: '129900',
  1417. priceTypeName: '销售价格',
  1418. },
  1419. {
  1420. priceType: 2,
  1421. price: '218000',
  1422. priceTypeName: '划线价格',
  1423. },
  1424. ],
  1425. stockInfo: {
  1426. stockQuantity: 119,
  1427. safeStockQuantity: 0,
  1428. soldQuantity: 0,
  1429. },
  1430. weight: null,
  1431. volume: null,
  1432. profitPrice: null,
  1433. },
  1434. {
  1435. skuId: '135676624',
  1436. skuImage: null,
  1437. specInfo: [
  1438. {
  1439. specId: '127904180600844800',
  1440. specTitle: null,
  1441. specValueId: '127904181506815488',
  1442. specValue: '奶黄色',
  1443. },
  1444. {
  1445. specId: '127904861604820480',
  1446. specTitle: null,
  1447. specValueId: '127904861755815680',
  1448. specValue: '盘+碗',
  1449. },
  1450. ],
  1451. priceInfo: [
  1452. {
  1453. priceType: 1,
  1454. price: '139900',
  1455. priceTypeName: '销售价格',
  1456. },
  1457. {
  1458. priceType: 2,
  1459. price: '218000',
  1460. priceTypeName: '划线价格',
  1461. },
  1462. ],
  1463. stockInfo: {
  1464. stockQuantity: 116,
  1465. safeStockQuantity: 0,
  1466. soldQuantity: 0,
  1467. },
  1468. weight: null,
  1469. volume: null,
  1470. profitPrice: null,
  1471. },
  1472. {
  1473. skuId: '135681623',
  1474. skuImage: null,
  1475. specInfo: [
  1476. {
  1477. specId: '127904180600844800',
  1478. specTitle: null,
  1479. specValueId: '127904181506815488',
  1480. specValue: '奶黄色',
  1481. },
  1482. {
  1483. specId: '127904861604820480',
  1484. specTitle: null,
  1485. specValueId: '127904862007474176',
  1486. specValue: '单盘',
  1487. },
  1488. ],
  1489. priceInfo: [
  1490. {
  1491. priceType: 1,
  1492. price: '139900',
  1493. priceTypeName: '销售价格',
  1494. },
  1495. {
  1496. priceType: 2,
  1497. price: '218000',
  1498. priceTypeName: '划线价格',
  1499. },
  1500. ],
  1501. stockInfo: {
  1502. stockQuantity: 122,
  1503. safeStockQuantity: 0,
  1504. soldQuantity: 0,
  1505. },
  1506. weight: null,
  1507. volume: null,
  1508. profitPrice: null,
  1509. },
  1510. ],
  1511. isAvailable: 1,
  1512. spuStockQuantity: 357,
  1513. soldNum: 23102,
  1514. isPutOnSale: 1,
  1515. specList: [
  1516. {
  1517. specId: '127904180600844800',
  1518. title: '颜色',
  1519. specValueList: [
  1520. {
  1521. specValueId: '127904181506815488',
  1522. specId: '127904180600844800',
  1523. saasId: '88888888',
  1524. specValue: '奶黄色',
  1525. image: '',
  1526. },
  1527. ],
  1528. },
  1529. {
  1530. specId: '127904861604820480',
  1531. title: '类型',
  1532. specValueList: [
  1533. {
  1534. specValueId: '127904862175246592',
  1535. specId: '127904861604820480',
  1536. saasId: '88888888',
  1537. specValue: '单盘',
  1538. image: '',
  1539. },
  1540. {
  1541. specValueId: '127904862007474176',
  1542. specId: '127904861604820480',
  1543. saasId: '88888888',
  1544. specValue: '单碗',
  1545. image: '',
  1546. },
  1547. {
  1548. specValueId: '127904861755815680',
  1549. specId: '127904861604820480',
  1550. saasId: '88888888',
  1551. specValue: '盘+碗',
  1552. image: '',
  1553. },
  1554. ],
  1555. },
  1556. ],
  1557. promotionList: null,
  1558. minProfitPrice: null,
  1559. etitle: '',
  1560. },
  1561. {
  1562. saasId: '88888888',
  1563. storeId: '1000',
  1564. spuId: '135681624',
  1565. title: '不锈钢刀叉勺套装家用西餐餐具ins简约耐用不锈钢金色银色可选',
  1566. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2b.png',
  1567. images: [
  1568. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2a.png',
  1569. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2a1.png',
  1570. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2b.png',
  1571. ],
  1572. video: null,
  1573. available: 1,
  1574. minSalePrice: '19900',
  1575. minLinePrice: '19900',
  1576. maxSalePrice: '29900',
  1577. maxLinePrice: '29900',
  1578. spuStockQuantity: 0,
  1579. soldNum: 102,
  1580. isPutOnSale: 1,
  1581. categoryIds: ['127880527393854975', '127880527393854977', '127880526789875961'],
  1582. specList: [
  1583. {
  1584. specId: '127904180600844800',
  1585. title: '颜色',
  1586. specValueList: [
  1587. {
  1588. specValueId: '127904180768617216',
  1589. specId: null,
  1590. saasId: null,
  1591. specValue: '奶黄色',
  1592. image: null,
  1593. },
  1594. ],
  1595. },
  1596. {
  1597. specId: '127904861604820480',
  1598. title: '数量',
  1599. specValueList: [
  1600. {
  1601. specValueId: '127904862175246592',
  1602. specId: null,
  1603. saasId: null,
  1604. specValue: '三件套',
  1605. image: null,
  1606. },
  1607. {
  1608. specValueId: '127904862007474176',
  1609. specId: null,
  1610. saasId: null,
  1611. specValue: '六件套',
  1612. image: null,
  1613. },
  1614. {
  1615. specValueId: '127904861755815680',
  1616. specId: null,
  1617. saasId: null,
  1618. specValue: '八件套',
  1619. image: null,
  1620. },
  1621. ],
  1622. },
  1623. ],
  1624. skuList: [
  1625. {
  1626. skuId: '135676625',
  1627. skuImage: null,
  1628. specInfo: [
  1629. {
  1630. specId: '127904180600844800',
  1631. specTitle: null,
  1632. specValueId: '127904180768617216',
  1633. specValue: null,
  1634. },
  1635. {
  1636. specId: '127904861604820480',
  1637. specTitle: null,
  1638. specValueId: '127904862175246592',
  1639. specValue: null,
  1640. },
  1641. ],
  1642. priceInfo: [
  1643. { priceType: 1, price: '19900', priceTypeName: null },
  1644. { priceType: 2, price: '29900', priceTypeName: null },
  1645. ],
  1646. stockInfo: {
  1647. stockQuantity: 0,
  1648. safeStockQuantity: 0,
  1649. soldQuantity: 0,
  1650. },
  1651. weight: { value: null, unit: 'KG' },
  1652. volume: null,
  1653. profitPrice: null,
  1654. },
  1655. {
  1656. skuId: '135676626',
  1657. skuImage: null,
  1658. specInfo: [
  1659. {
  1660. specId: '127904180600844800',
  1661. specTitle: null,
  1662. specValueId: '127904180768617216',
  1663. specValue: null,
  1664. },
  1665. {
  1666. specId: '127904861604820480',
  1667. specTitle: null,
  1668. specValueId: '127904861755815680',
  1669. specValue: null,
  1670. },
  1671. ],
  1672. priceInfo: [
  1673. { priceType: 1, price: '29900', priceTypeName: null },
  1674. { priceType: 2, price: '29900', priceTypeName: null },
  1675. ],
  1676. stockInfo: {
  1677. stockQuantity: 0,
  1678. safeStockQuantity: 0,
  1679. soldQuantity: 0,
  1680. },
  1681. weight: { value: null, unit: 'KG' },
  1682. volume: null,
  1683. profitPrice: null,
  1684. },
  1685. {
  1686. skuId: '135681625',
  1687. skuImage: null,
  1688. specInfo: [
  1689. {
  1690. specId: '127904180600844800',
  1691. specTitle: null,
  1692. specValueId: '127904180768617216',
  1693. specValue: null,
  1694. },
  1695. {
  1696. specId: '127904861604820480',
  1697. specTitle: null,
  1698. specValueId: '127904862007474176',
  1699. specValue: null,
  1700. },
  1701. ],
  1702. priceInfo: [
  1703. { priceType: 1, price: '29900', priceTypeName: null },
  1704. { priceType: 2, price: '29900', priceTypeName: null },
  1705. ],
  1706. stockInfo: {
  1707. stockQuantity: 0,
  1708. safeStockQuantity: 0,
  1709. soldQuantity: 0,
  1710. },
  1711. weight: { value: null, unit: 'KG' },
  1712. volume: null,
  1713. profitPrice: null,
  1714. },
  1715. ],
  1716. spuTagList: [{ id: '19011', title: '2020秋季新款', image: null }],
  1717. spuLimitList: null,
  1718. desc: [
  1719. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2c.png',
  1720. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2d.png',
  1721. ],
  1722. etitle: '',
  1723. },
  1724. {
  1725. saasId: '88888888',
  1726. storeId: '1000',
  1727. spuId: '135681628',
  1728. title: '带帽午休毯虎年款多功能加厚加大加绒简约多功能午休毯连帽披肩',
  1729. primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
  1730. images: ['https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png'],
  1731. video: null,
  1732. available: 1,
  1733. minSalePrice: '29900',
  1734. minLinePrice: '29900',
  1735. maxSalePrice: '39900',
  1736. maxLinePrice: '39900',
  1737. spuStockQuantity: 321,
  1738. soldNum: 103,
  1739. isPutOnSale: 1,
  1740. categoryIds: ['127880527393854975', '127880527393854977', '127880526789875961'],
  1741. specList: [
  1742. {
  1743. specId: '127904180600844800',
  1744. title: '颜色',
  1745. specValueList: [
  1746. {
  1747. specValueId: '127904181322265856',
  1748. specId: null,
  1749. saasId: null,
  1750. specValue: '浅灰色',
  1751. image: null,
  1752. },
  1753. ],
  1754. },
  1755. {
  1756. specId: '127904861604820480',
  1757. title: '尺码',
  1758. specValueList: [
  1759. {
  1760. specValueId: '127904862175246592',
  1761. specId: null,
  1762. saasId: null,
  1763. specValue: 'S',
  1764. image: null,
  1765. },
  1766. {
  1767. specValueId: '127904862007474176',
  1768. specId: null,
  1769. saasId: null,
  1770. specValue: 'M',
  1771. image: null,
  1772. },
  1773. {
  1774. specValueId: '127904861755815680',
  1775. specId: null,
  1776. saasId: null,
  1777. specValue: 'L',
  1778. image: null,
  1779. },
  1780. ],
  1781. },
  1782. ],
  1783. skuList: [
  1784. {
  1785. skuId: '135676629',
  1786. skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
  1787. specInfo: [
  1788. {
  1789. specId: '127904180600844800',
  1790. specTitle: null,
  1791. specValueId: '127904181322265856',
  1792. specValue: null,
  1793. },
  1794. {
  1795. specId: '127904861604820480',
  1796. specTitle: null,
  1797. specValueId: '127904862175246592',
  1798. specValue: null,
  1799. },
  1800. ],
  1801. priceInfo: [
  1802. { priceType: 1, price: '29900', priceTypeName: null },
  1803. { priceType: 2, price: '39900', priceTypeName: null },
  1804. ],
  1805. stockInfo: {
  1806. stockQuantity: 80,
  1807. safeStockQuantity: 0,
  1808. soldQuantity: 0,
  1809. },
  1810. weight: { value: null, unit: 'KG' },
  1811. volume: null,
  1812. profitPrice: null,
  1813. },
  1814. {
  1815. skuId: '135676630',
  1816. skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
  1817. specInfo: [
  1818. {
  1819. specId: '127904180600844800',
  1820. specTitle: null,
  1821. specValueId: '127904181322265856',
  1822. specValue: null,
  1823. },
  1824. {
  1825. specId: '127904861604820480',
  1826. specTitle: null,
  1827. specValueId: '127904861755815680',
  1828. specValue: null,
  1829. },
  1830. ],
  1831. priceInfo: [
  1832. { priceType: 1, price: '39900', priceTypeName: null },
  1833. { priceType: 2, price: '39900', priceTypeName: null },
  1834. ],
  1835. stockInfo: {
  1836. stockQuantity: 122,
  1837. safeStockQuantity: 0,
  1838. soldQuantity: 0,
  1839. },
  1840. weight: { value: null, unit: 'KG' },
  1841. volume: null,
  1842. profitPrice: null,
  1843. },
  1844. {
  1845. skuId: '135681629',
  1846. skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
  1847. specInfo: [
  1848. {
  1849. specId: '127904180600844800',
  1850. specTitle: null,
  1851. specValueId: '127904181322265856',
  1852. specValue: null,
  1853. },
  1854. {
  1855. specId: '127904861604820480',
  1856. specTitle: null,
  1857. specValueId: '127904862007474176',
  1858. specValue: null,
  1859. },
  1860. ],
  1861. priceInfo: [
  1862. { priceType: 1, price: '39900', priceTypeName: null },
  1863. { priceType: 2, price: '39900', priceTypeName: null },
  1864. ],
  1865. stockInfo: {
  1866. stockQuantity: 119,
  1867. safeStockQuantity: 0,
  1868. soldQuantity: 0,
  1869. },
  1870. weight: { value: null, unit: 'KG' },
  1871. volume: null,
  1872. profitPrice: null,
  1873. },
  1874. ],
  1875. spuTagList: [{ id: '13001', title: '限时抢购', image: null }],
  1876. spuLimitList: null,
  1877. desc: [
  1878. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3c.png',
  1879. 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3d.png',
  1880. ],
  1881. etitle: '',
  1882. },
  1883. ];
  1884. /**
  1885. * @param {string} id
  1886. * @param {number} [available] 库存, 默认1
  1887. */
  1888. export function genGood(id, available = 1) {
  1889. const specID = ['135681624', '135681628'];
  1890. if (specID.indexOf(id) > -1) {
  1891. return allGoods.filter((good) => good.spuId === id)[0];
  1892. }
  1893. const item = allGoods[id % allGoods.length];
  1894. return {
  1895. ...item,
  1896. spuId: `${id}`,
  1897. available: available,
  1898. desc: item?.desc || defaultDesc,
  1899. images: item?.images || [item?.primaryImage],
  1900. };
  1901. }