component-sanzhizhou 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/dist/Ad/index.d.ts +11 -0
  4. package/dist/Ad/index.js +143 -0
  5. package/dist/Ad/index.less +12 -0
  6. package/dist/Auth/index.d.ts +16 -0
  7. package/dist/Auth/index.js +374 -0
  8. package/dist/AuthClient/index.js +30 -0
  9. package/dist/AuthClient/login-reg.css.js +6 -0
  10. package/dist/AuthClient/login-reg.js +78 -0
  11. package/dist/AuthClient/login.css.js +6 -0
  12. package/dist/AuthClient/login.d.ts +14 -0
  13. package/dist/AuthClient/login.js +198 -0
  14. package/dist/AuthClient/qr/h5-we-public-login.d.ts +2 -0
  15. package/dist/AuthClient/qr/h5-we-public-login.js +22 -0
  16. package/dist/AuthClient/qr/index.css.js +9 -0
  17. package/dist/AuthClient/qr/index.d.ts +15 -0
  18. package/dist/AuthClient/qr/index.js +348 -0
  19. package/dist/AuthClient/qr/typings.d.ts +22 -0
  20. package/dist/AuthClient/qr/ws.js +253 -0
  21. package/dist/AuthClient/reg.js +185 -0
  22. package/dist/AuthClient/user-offline.js +41 -0
  23. package/dist/Buy/index.css.js +6 -0
  24. package/dist/Buy/index.d.ts +14 -0
  25. package/dist/Buy/index.js +121 -0
  26. package/dist/Buy/qr.css.js +6 -0
  27. package/dist/Buy/qr.d.ts +11 -0
  28. package/dist/Buy/qr.js +354 -0
  29. package/dist/Buy/trial-member.css.js +6 -0
  30. package/dist/Buy/trial-member.d.ts +8 -0
  31. package/dist/Buy/trial-member.js +45 -0
  32. package/dist/Client/ClientUpdate/index.js +92 -0
  33. package/dist/Client/ClientUpdate/index.less +23 -0
  34. package/dist/Login/index.js +5 -0
  35. package/dist/Notice/index.js +36 -0
  36. package/dist/PhonePublish/account-manage/home.d.ts +11 -0
  37. package/dist/PhonePublish/account-manage/home.js +242 -0
  38. package/dist/PhonePublish/account-manage/home.less +28 -0
  39. package/dist/PhonePublish/account-manage/index.d.ts +3 -0
  40. package/dist/PhonePublish/account-manage/index.js +56 -0
  41. package/dist/PhonePublish/account-manage/index.less +59 -0
  42. package/dist/PhonePublish/account-manage/list.d.ts +17 -0
  43. package/dist/PhonePublish/account-manage/list.js +443 -0
  44. package/dist/PhonePublish/account-manage/list.less +95 -0
  45. package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
  46. package/dist/PhonePublish/account-manage/setting/index.js +199 -0
  47. package/dist/PhonePublish/account-manage/setting/index.less +11 -0
  48. package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
  49. package/dist/PhonePublish/create-task/base/index.js +386 -0
  50. package/dist/PhonePublish/create-task/base/index.less +64 -0
  51. package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
  52. package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
  53. package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
  54. package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
  55. package/dist/PhonePublish/create-task/index.d.ts +11 -0
  56. package/dist/PhonePublish/create-task/index.js +449 -0
  57. package/dist/PhonePublish/create-task/index.less +75 -0
  58. package/dist/PhonePublish/create-task/select-list.css.js +6 -0
  59. package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
  60. package/dist/PhonePublish/create-task/select-list.js +304 -0
  61. package/dist/PhonePublish/create-task/task-list.css.js +6 -0
  62. package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
  63. package/dist/PhonePublish/create-task/task-list.js +323 -0
  64. package/dist/PhonePublish/index.css.js +35 -0
  65. package/dist/PhonePublish/index.d.ts +15 -0
  66. package/dist/PhonePublish/index.js +192 -0
  67. package/dist/PhonePublish/index.less +55 -0
  68. package/dist/PhonePublish/lib/chrome-quit.js +20 -0
  69. package/dist/PhonePublish/log/index.d.ts +8 -0
  70. package/dist/PhonePublish/log/index.js +186 -0
  71. package/dist/PhonePublish/log/index.less +81 -0
  72. package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
  73. package/dist/PhonePublish/publish-task-plan/index.js +32 -0
  74. package/dist/PhonePublish/publish-task-plan/index.less +4 -0
  75. package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
  76. package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
  77. package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
  78. package/dist/PhonePublish/task-list/index.d.ts +8 -0
  79. package/dist/PhonePublish/task-list/index.js +224 -0
  80. package/dist/PhonePublish/task-list/index.less +8 -0
  81. package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
  82. package/dist/PhonePublish/task-list/plan/list.js +290 -0
  83. package/dist/PhonePublish/task-list/plan/list.less +87 -0
  84. package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
  85. package/dist/PhonePublish/task-list/plan/operate.js +145 -0
  86. package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
  87. package/dist/PhonePublish/task-list/plan/query.js +89 -0
  88. package/dist/PhonePublish/task-list/plan/query.less +9 -0
  89. package/dist/PhonePublish/task-list/plan/status.js +53 -0
  90. package/dist/PhonePublish/task-list/query.js +76 -0
  91. package/dist/PhonePublish/task-list/query.less +19 -0
  92. package/dist/PhonePublish/task-list/who-can-view.js +37 -0
  93. package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
  94. package/dist/PhonePublish/video-account/ban/index.js +94 -0
  95. package/dist/PhonePublish/video-account/ban/index.less +4 -0
  96. package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
  97. package/dist/PhonePublish/video-account/base-info.js +75 -0
  98. package/dist/PhonePublish/video-account/base-info.less +92 -0
  99. package/dist/PhonePublish/video-account/create.d.ts +8 -0
  100. package/dist/PhonePublish/video-account/create.js +174 -0
  101. package/dist/PhonePublish/video-account/group.d.ts +9 -0
  102. package/dist/PhonePublish/video-account/group.js +255 -0
  103. package/dist/PhonePublish/video-account/group.less +10 -0
  104. package/dist/PhonePublish/video-account/index.d.ts +8 -0
  105. package/dist/PhonePublish/video-account/index.js +403 -0
  106. package/dist/PhonePublish/video-account/index.less +92 -0
  107. package/dist/PhonePublish/video-account/query.d.ts +8 -0
  108. package/dist/PhonePublish/video-account/query.js +115 -0
  109. package/dist/PhonePublish/video-account/query.less +18 -0
  110. package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
  111. package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
  112. package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
  113. package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
  114. package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
  115. package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
  116. package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
  117. package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
  118. package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
  119. package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
  120. package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
  121. package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
  122. package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
  123. package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
  124. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
  125. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
  126. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
  127. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
  128. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
  129. package/dist/Product/dict.d.ts +16 -0
  130. package/dist/Product/dict.js +93 -0
  131. package/dist/Product/index.js +36 -0
  132. package/dist/UI/DialogDrawer.css.js +6 -0
  133. package/dist/UI/DialogDrawer.js +74 -0
  134. package/dist/UI/DialogDrawerFooter.css.js +6 -0
  135. package/dist/UI/DialogDrawerFooter.js +22 -0
  136. package/dist/UI/FileSize.css.js +6 -0
  137. package/dist/UI/FileSize.js +63 -0
  138. package/dist/UI/LayoutContent.js +73 -0
  139. package/dist/UI/LayoutContent.less +64 -0
  140. package/dist/UI/LoadError.css.js +6 -0
  141. package/dist/UI/LoadError.js +36 -0
  142. package/dist/UI/Money/index.css.js +6 -0
  143. package/dist/UI/Money/index.js +40 -0
  144. package/dist/UI/PageContentWarp.js +80 -0
  145. package/dist/UI/PageContentWarp.less +56 -0
  146. package/dist/UI/PageLoading.js +11 -0
  147. package/dist/UI/PageLoading.less +7 -0
  148. package/dist/UI/Time.js +21 -0
  149. package/dist/UI/duration.css.js +6 -0
  150. package/dist/UI/duration.js +49 -0
  151. package/dist/UI/enabled.js +28 -0
  152. package/dist/UI/text-input.js +110 -0
  153. package/dist/UI/text-input.less +22 -0
  154. package/dist/VideoPublish/account-manage/home.d.ts +11 -0
  155. package/dist/VideoPublish/account-manage/home.js +232 -0
  156. package/dist/VideoPublish/account-manage/home.less +58 -0
  157. package/dist/VideoPublish/account-manage/index.d.ts +3 -0
  158. package/dist/VideoPublish/account-manage/index.js +56 -0
  159. package/dist/VideoPublish/account-manage/index.less +59 -0
  160. package/dist/VideoPublish/account-manage/list.d.ts +17 -0
  161. package/dist/VideoPublish/account-manage/list.js +501 -0
  162. package/dist/VideoPublish/account-manage/list.less +95 -0
  163. package/dist/VideoPublish/account-manage/setting/index.d.ts +6 -0
  164. package/dist/VideoPublish/account-manage/setting/index.js +199 -0
  165. package/dist/VideoPublish/account-manage/setting/index.less +11 -0
  166. package/dist/VideoPublish/create-task/base/index.d.ts +10 -0
  167. package/dist/VideoPublish/create-task/base/index.js +386 -0
  168. package/dist/VideoPublish/create-task/base/index.less +64 -0
  169. package/dist/VideoPublish/create-task/getVideoGoodsUrl.d.ts +2 -0
  170. package/dist/VideoPublish/create-task/getVideoGoodsUrl.js +136 -0
  171. package/dist/VideoPublish/create-task/hour-enabled.js +42 -0
  172. package/dist/VideoPublish/create-task/hour-enabled.less +24 -0
  173. package/dist/VideoPublish/create-task/index.d.ts +11 -0
  174. package/dist/VideoPublish/create-task/index.js +449 -0
  175. package/dist/VideoPublish/create-task/index.less +75 -0
  176. package/dist/VideoPublish/create-task/select-list.css.js +6 -0
  177. package/dist/VideoPublish/create-task/select-list.d.ts +8 -0
  178. package/dist/VideoPublish/create-task/select-list.js +304 -0
  179. package/dist/VideoPublish/create-task/task-list.css.js +6 -0
  180. package/dist/VideoPublish/create-task/task-list.d.ts +9 -0
  181. package/dist/VideoPublish/create-task/task-list.js +323 -0
  182. package/dist/VideoPublish/index.css.js +35 -0
  183. package/dist/VideoPublish/index.d.ts +15 -0
  184. package/dist/VideoPublish/index.js +235 -0
  185. package/dist/VideoPublish/index.less +55 -0
  186. package/dist/VideoPublish/lib/chrome-quit.js +20 -0
  187. package/dist/VideoPublish/log/index.d.ts +8 -0
  188. package/dist/VideoPublish/log/index.js +186 -0
  189. package/dist/VideoPublish/log/index.less +81 -0
  190. package/dist/VideoPublish/proxy/create.d.ts +8 -0
  191. package/dist/VideoPublish/proxy/create.js +176 -0
  192. package/dist/VideoPublish/proxy/list.d.ts +9 -0
  193. package/dist/VideoPublish/proxy/list.js +276 -0
  194. package/dist/VideoPublish/proxy/list.less +10 -0
  195. package/dist/VideoPublish/proxy/query.d.ts +9 -0
  196. package/dist/VideoPublish/proxy/query.js +75 -0
  197. package/dist/VideoPublish/proxy/query.less +10 -0
  198. package/dist/VideoPublish/proxy/select.d.ts +10 -0
  199. package/dist/VideoPublish/proxy/select.js +110 -0
  200. package/dist/VideoPublish/proxy/select.less +17 -0
  201. package/dist/VideoPublish/publish-task-plan/index.d.ts +9 -0
  202. package/dist/VideoPublish/publish-task-plan/index.js +32 -0
  203. package/dist/VideoPublish/publish-task-plan/index.less +4 -0
  204. package/dist/VideoPublish/publish-task-plan/tool-bak.txt +219 -0
  205. package/dist/VideoPublish/publish-task-plan/tool.d.ts +29 -0
  206. package/dist/VideoPublish/publish-task-plan/tool.js +720 -0
  207. package/dist/VideoPublish/task-list/index.d.ts +8 -0
  208. package/dist/VideoPublish/task-list/index.js +224 -0
  209. package/dist/VideoPublish/task-list/index.less +8 -0
  210. package/dist/VideoPublish/task-list/plan/list.d.ts +12 -0
  211. package/dist/VideoPublish/task-list/plan/list.js +290 -0
  212. package/dist/VideoPublish/task-list/plan/list.less +87 -0
  213. package/dist/VideoPublish/task-list/plan/operate.d.ts +8 -0
  214. package/dist/VideoPublish/task-list/plan/operate.js +145 -0
  215. package/dist/VideoPublish/task-list/plan/query.d.ts +8 -0
  216. package/dist/VideoPublish/task-list/plan/query.js +89 -0
  217. package/dist/VideoPublish/task-list/plan/query.less +9 -0
  218. package/dist/VideoPublish/task-list/plan/status.js +53 -0
  219. package/dist/VideoPublish/task-list/query.js +76 -0
  220. package/dist/VideoPublish/task-list/query.less +19 -0
  221. package/dist/VideoPublish/task-list/who-can-view.js +37 -0
  222. package/dist/VideoPublish/video-account/ban/index.d.ts +10 -0
  223. package/dist/VideoPublish/video-account/ban/index.js +94 -0
  224. package/dist/VideoPublish/video-account/ban/index.less +4 -0
  225. package/dist/VideoPublish/video-account/base-info.d.ts +13 -0
  226. package/dist/VideoPublish/video-account/base-info.js +75 -0
  227. package/dist/VideoPublish/video-account/base-info.less +92 -0
  228. package/dist/VideoPublish/video-account/create.d.ts +8 -0
  229. package/dist/VideoPublish/video-account/create.js +174 -0
  230. package/dist/VideoPublish/video-account/group.d.ts +9 -0
  231. package/dist/VideoPublish/video-account/group.js +255 -0
  232. package/dist/VideoPublish/video-account/group.less +10 -0
  233. package/dist/VideoPublish/video-account/index.d.ts +8 -0
  234. package/dist/VideoPublish/video-account/index.js +403 -0
  235. package/dist/VideoPublish/video-account/index.less +92 -0
  236. package/dist/VideoPublish/video-account/query.d.ts +8 -0
  237. package/dist/VideoPublish/video-account/query.js +115 -0
  238. package/dist/VideoPublish/video-account/query.less +18 -0
  239. package/dist/VideoPublish/video-publish-statistic/account-trend/index.d.ts +8 -0
  240. package/dist/VideoPublish/video-publish-statistic/account-trend/index.js +173 -0
  241. package/dist/VideoPublish/video-publish-statistic/account-trend/index.less +3 -0
  242. package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.js +22 -0
  243. package/dist/VideoPublish/video-publish-statistic/account-trend/query.js +54 -0
  244. package/dist/VideoPublish/video-publish-statistic/account-trend/query.less +3 -0
  245. package/dist/VideoPublish/video-publish-statistic/index.d.ts +2 -0
  246. package/dist/VideoPublish/video-publish-statistic/index.js +37 -0
  247. package/dist/VideoPublish/video-publish-statistic/kind.js +57 -0
  248. package/dist/VideoPublish/video-publish-statistic/operation/list.d.ts +7 -0
  249. package/dist/VideoPublish/video-publish-statistic/operation/list.js +242 -0
  250. package/dist/VideoPublish/video-publish-statistic/operation/list.less +10 -0
  251. package/dist/VideoPublish/video-publish-statistic/operation/query.js +56 -0
  252. package/dist/VideoPublish/video-publish-statistic/operation/query.less +3 -0
  253. package/dist/VideoPublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
  254. package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +257 -0
  255. package/dist/VideoPublish/video-publish-statistic/publish-plan/list.less +105 -0
  256. package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +79 -0
  257. package/dist/VideoPublish/video-publish-statistic/publish-plan/query.less +3 -0
  258. package/dist/VideoPublish/video-topic/add.d.ts +9 -0
  259. package/dist/VideoPublish/video-topic/add.js +89 -0
  260. package/dist/VideoPublish/video-topic/add.less +3 -0
  261. package/dist/VideoPublish/video-topic/index.d.ts +8 -0
  262. package/dist/VideoPublish/video-topic/index.js +301 -0
  263. package/dist/VideoPublish/video-topic/index.less +37 -0
  264. package/dist/VideoPublish/video-topic/select.d.ts +11 -0
  265. package/dist/VideoPublish/video-topic/select.js +172 -0
  266. package/dist/VideoPublish/video-topic/select.less +3 -0
  267. package/dist/VipCompare/commend.css.js +6 -0
  268. package/dist/VipCompare/commend.js +28 -0
  269. package/dist/VipCompare/index.css.js +6 -0
  270. package/dist/VipCompare/index.d.ts +8 -0
  271. package/dist/VipCompare/index.js +325 -0
  272. package/dist/VipList/index.css.js +6 -0
  273. package/dist/VipList/index.d.ts +15 -0
  274. package/dist/VipList/index.js +397 -0
  275. package/dist/active-code/index.d.ts +7 -0
  276. package/dist/active-code/index.js +78 -0
  277. package/dist/active-code/user-vip.d.ts +3 -0
  278. package/dist/active-code/user-vip.js +84 -0
  279. package/dist/active-code/user-vip.less +3 -0
  280. package/dist/asset/image/platform/bilibili.png +0 -0
  281. package/dist/asset/image/platform/buyin.png +0 -0
  282. package/dist/asset/image/platform/douyin.png +0 -0
  283. package/dist/asset/image/platform/douyu.png +0 -0
  284. package/dist/asset/image/platform/huya.png +0 -0
  285. package/dist/asset/image/platform/kuaishou.png +0 -0
  286. package/dist/asset/image/platform/tiktok.png +0 -0
  287. package/dist/asset/image/platform/youtube.png +0 -0
  288. package/dist/base/DealerUrlDict.js +7 -0
  289. package/dist/base/fileList.d.ts +2 -0
  290. package/dist/base/fileList.js +61 -0
  291. package/dist/base/fileListContent.d.ts +2 -0
  292. package/dist/base/fileListContent.js +61 -0
  293. package/dist/base/fileSelect.d.ts +2 -0
  294. package/dist/base/fileSelect.js +54 -0
  295. package/dist/base/folderCreate.d.ts +2 -0
  296. package/dist/base/folderCreate.js +56 -0
  297. package/dist/base/folderOpen.d.ts +2 -0
  298. package/dist/base/folderOpen.js +54 -0
  299. package/dist/base/folderSelect.d.ts +2 -0
  300. package/dist/base/folderSelect.js +54 -0
  301. package/dist/base/index.js +57 -0
  302. package/dist/base/openInFolder.d.ts +2 -0
  303. package/dist/base/openInFolder.js +54 -0
  304. package/dist/base/soundInfo.d.ts +8 -0
  305. package/dist/base/soundInfo.js +55 -0
  306. package/dist/component/AccountBan/index.js +10 -0
  307. package/dist/component/AccountBan/index.less +12 -0
  308. package/dist/component/file-select.d.ts +18 -0
  309. package/dist/component/file-select.js +163 -0
  310. package/dist/component/file-select.less +24 -0
  311. package/dist/component/folder-select.d.ts +19 -0
  312. package/dist/component/folder-select.js +224 -0
  313. package/dist/component/folder-select.less +22 -0
  314. package/dist/component/is-installed-chrome.d.ts +2 -0
  315. package/dist/component/is-installed-chrome.js +7 -0
  316. package/dist/component/isFileExist.js +50 -0
  317. package/dist/component/markdown/github-markdown-light.less +1102 -0
  318. package/dist/component/markdown/index.d.ts +8 -0
  319. package/dist/component/markdown/index.js +69 -0
  320. package/dist/component/markdown/index.less +55 -0
  321. package/dist/component/media-kind.js +24 -0
  322. package/dist/component/media-show/index.js +59 -0
  323. package/dist/component/media-show/index.less +0 -0
  324. package/dist/component/media-show/render.js +112 -0
  325. package/dist/component/media-show/render.less +54 -0
  326. package/dist/component/param.js +9 -0
  327. package/dist/component/product-dict.js +11 -0
  328. package/dist/component/product-type.js +20 -0
  329. package/dist/component/sse.js +66 -0
  330. package/dist/component/video-platform/logo.js +61 -0
  331. package/dist/component/video-platform/logo.less +49 -0
  332. package/dist/component/videoKindTag/index.js +44 -0
  333. package/dist/component/websocket/index.js +139 -0
  334. package/dist/config/apiUrls.js +25 -0
  335. package/dist/global.less +34 -0
  336. package/dist/index.d.ts +31 -0
  337. package/dist/index.js +35 -0
  338. package/dist/lib/Tool.js +1175 -0
  339. package/dist/lib/accountManageSettingConfig.js +24 -0
  340. package/dist/lib/allow-mine-type.js +19 -0
  341. package/dist/lib/call-mini-url.js +8 -0
  342. package/dist/lib/component/getImageUrl.js +9 -0
  343. package/dist/lib/component/getSoundUrl.js +9 -0
  344. package/dist/lib/component/getVideoUrl.js +9 -0
  345. package/dist/lib/event.js +59 -0
  346. package/dist/lib/file-type.js +156 -0
  347. package/dist/lib/fs.d.ts +14 -0
  348. package/dist/lib/fs.js +480 -0
  349. package/dist/lib/getApiUrl.js +80 -0
  350. package/dist/lib/getFileExt.js +6 -0
  351. package/dist/lib/getLocalUserInfo.js +19 -0
  352. package/dist/lib/getPublishExtensionDir.d.ts +2 -0
  353. package/dist/lib/getPublishExtensionDir.js +55 -0
  354. package/dist/lib/getWorkServerUploadToken.d.ts +8 -0
  355. package/dist/lib/getWorkServerUploadToken.js +12 -0
  356. package/dist/lib/goAuth.js +28 -0
  357. package/dist/lib/isInClient.js +5 -0
  358. package/dist/lib/js-error.js +30 -0
  359. package/dist/lib/math.js +146 -0
  360. package/dist/lib/moneySimple.js +27 -0
  361. package/dist/lib/notification.js +43 -0
  362. package/dist/lib/openChrome.d.ts +2 -0
  363. package/dist/lib/openChrome.js +257 -0
  364. package/dist/lib/platform.js +57 -0
  365. package/dist/lib/postMessage.js +8 -0
  366. package/dist/lib/request.js +145 -0
  367. package/dist/lib/save-path.d.ts +17 -0
  368. package/dist/lib/save-path.js +177 -0
  369. package/dist/lib/save-path.less +21 -0
  370. package/dist/lib/saveSid.d.ts +2 -0
  371. package/dist/lib/saveSid.js +64 -0
  372. package/dist/lib/sleep.js +23 -0
  373. package/dist/lib/store.js +36 -0
  374. package/dist/lib/toast.js +8 -0
  375. package/dist/lib/toastError.js +8 -0
  376. package/dist/lib/updateUserInfo.js +40 -0
  377. package/dist/lib/user-agent.d.ts +2 -0
  378. package/dist/lib/user-agent.js +10 -0
  379. package/dist/lib/video-api/open-chrome.js +51 -0
  380. package/dist/lib/video-api/quit-chrome.d.ts +2 -0
  381. package/dist/lib/video-api/quit-chrome.js +51 -0
  382. package/dist/renewal-vip/index.d.ts +2 -0
  383. package/dist/renewal-vip/index.js +77 -0
  384. package/dist/service/api/ActiveAccountModeSettingController.d.ts +2 -0
  385. package/dist/service/api/ActiveAccountModeSettingController.js +53 -0
  386. package/dist/service/api/AdController.d.ts +6 -0
  387. package/dist/service/api/AdController.js +27 -0
  388. package/dist/service/api/AuthController.js +77 -0
  389. package/dist/service/api/ClientVersionController.js +27 -0
  390. package/dist/service/api/JsErrorController.js +27 -0
  391. package/dist/service/api/ProductController.js +77 -0
  392. package/dist/service/api/PublishTaskPlanStatisticController.d.ts +1 -0
  393. package/dist/service/api/PublishTaskPlanStatisticController.js +28 -0
  394. package/dist/service/api/SubClientController.d.ts +7 -0
  395. package/dist/service/api/SubClientController.js +48 -0
  396. package/dist/service/api/TradeController.js +52 -0
  397. package/dist/service/api/UserController.js +52 -0
  398. package/dist/service/api/UserVipController.js +27 -0
  399. package/dist/service/api/VideoPublishController.js +110 -0
  400. package/dist/service/api/VideoPublishCrawlerTaskController.d.ts +2 -0
  401. package/dist/service/api/VideoPublishCrawlerTaskController.js +51 -0
  402. package/dist/service/api/VideoPublishStatisticOperationController.d.ts +12 -0
  403. package/dist/service/api/VideoPublishStatisticOperationController.js +51 -0
  404. package/dist/service/api/VideoPublishStatisticPublishController.js +28 -0
  405. package/dist/service/api/VideoPublishTaskController.js +29 -0
  406. package/dist/service/api/VideoPublishTaskPlanController.d.ts +13 -0
  407. package/dist/service/api/VideoPublishTaskPlanController.js +74 -0
  408. package/dist/service/api/VideoPublishVideoAccountController.d.ts +17 -0
  409. package/dist/service/api/VideoPublishVideoAccountController.js +237 -0
  410. package/dist/service/api/VideoPublishVideoAccountGroupController.d.ts +8 -0
  411. package/dist/service/api/VideoPublishVideoAccountGroupController.js +105 -0
  412. package/dist/service/api/VideoPublishVideoAccountProxyController.d.ts +11 -0
  413. package/dist/service/api/VideoPublishVideoAccountProxyController.js +105 -0
  414. package/dist/service/api/VideoPublishVideoTopicController.d.ts +5 -0
  415. package/dist/service/api/VideoPublishVideoTopicController.js +80 -0
  416. package/dist/service/api/VideoPublishVideoTopicGroupController.d.ts +5 -0
  417. package/dist/service/api/VideoPublishVideoTopicGroupController.js +80 -0
  418. package/dist/service/api/VideoStudyController.d.ts +1 -0
  419. package/dist/service/api/VideoStudyController.js +29 -0
  420. package/dist/service/api/VipCardController.js +115 -0
  421. package/dist/service/api/VipController.js +50 -0
  422. package/dist/service/api/VipPowerController.js +27 -0
  423. package/dist/service/api/WechatController.js +50 -0
  424. package/dist/service/api/WorkServerController.js +27 -0
  425. package/dist/service/local/FileController.d.ts +35 -0
  426. package/dist/service/local/FileController.js +249 -0
  427. package/dist/service/local/LocalServerController.d.ts +1 -0
  428. package/dist/service/local/LocalServerController.js +32 -0
  429. package/dist/service/local/VideoPublishTaskController.d.ts +1 -0
  430. package/dist/service/local/VideoPublishTaskController.js +32 -0
  431. package/dist/service/typing.d.ts +14 -0
  432. package/dist/service/video-api/BaseController.js +27 -0
  433. package/dist/service/video-api/FileController.js +50 -0
  434. package/dist/service/video-api/SidController.js +27 -0
  435. package/dist/service/video-api/VideoApiOpenChromeController.js +50 -0
  436. package/dist/types/ApiLocal.js +0 -0
  437. package/dist/types/AutoMakeTaskSetting.js +0 -0
  438. package/dist/types/ChromeOperate.js +0 -0
  439. package/dist/types/ClientUpdate.js +0 -0
  440. package/dist/types/ClientVersion.js +0 -0
  441. package/dist/types/File.js +0 -0
  442. package/dist/types/LocalServer.js +0 -0
  443. package/dist/types/PublishNpm.js +0 -0
  444. package/dist/types/PublishTaskPlan.js +0 -0
  445. package/dist/types/PublishTaskPlanStatistic.js +0 -0
  446. package/dist/types/PublishVideo.js +0 -0
  447. package/dist/types/Site.js +0 -0
  448. package/dist/types/User.d.ts +84 -0
  449. package/dist/types/VideoPublish.js +0 -0
  450. package/dist/types/VideoPublishLog.js +0 -0
  451. package/dist/types/VideoPublishStatistic.js +0 -0
  452. package/dist/types/VideoPublishStatisticOperation.js +0 -0
  453. package/dist/types/VideoPublishTaskPlan.js +0 -0
  454. package/dist/types/VideoPublishVideoAccount.js +0 -0
  455. package/dist/types/VideoPublishVideoAccountGroup.js +0 -0
  456. package/dist/types/VideoPublishVideoAccountProxy.js +0 -0
  457. package/dist/types/VideoPublishVideoTopic.js +0 -0
  458. package/dist/types/VideoPublishVideoTopicGroup.js +0 -0
  459. package/dist/types/VideoStudy.js +0 -0
  460. package/dist/types/VidepApiBase.js +0 -0
  461. package/dist/types/VipCard.js +0 -0
  462. package/dist/types/VipList.js +0 -0
  463. package/dist/types/VipPower.js +0 -0
  464. package/dist/types/WorkServer.js +0 -0
  465. package/dist/typings/Ad.js +0 -0
  466. package/dist/typings/LocalFile.js +0 -0
  467. package/dist/typings/Product.js +0 -0
  468. package/dist/typings/SubClient.js +0 -0
  469. package/dist/typings/Trade.js +0 -0
  470. package/dist/typings/User.js +0 -0
  471. package/dist/typings/VideoPublishAccountManageSetting.js +0 -0
  472. package/dist/typings/VideoPublishVideoAccount.js +0 -0
  473. package/dist/typings/Vip.js +0 -0
  474. package/dist/typings/Wechat.js +0 -0
  475. package/dist/typings.d.ts +86 -0
  476. package/dist/video-study/index.d.ts +11 -0
  477. package/dist/video-study/index.js +71 -0
  478. package/dist/video-study/index.less +16 -0
  479. package/dist/window.d.ts +33 -0
  480. package/package.json +92 -0
@@ -0,0 +1,397 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import * as VipPowerController from "../service/api/VipPowerController";
4
+ import { useRequest } from "@umijs/hooks";
5
+ import React, { useState } from "react";
6
+ import styles from "./index.css";
7
+ import { Buy } from "./..";
8
+ import { Button, ConfigProvider, Table } from "antd";
9
+ import { CheckCircleFilled, CloseCircleFilled, ShoppingCartOutlined, XFilled } from "@ant-design/icons";
10
+ import Tool from "../lib/Tool";
11
+ import PageContentWarp from "../UI/PageContentWarp";
12
+ import Money from "../UI/Money";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { Fragment as _Fragment } from "react/jsx-runtime";
15
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ var ApplyColorDict = {
17
+ 1: {
18
+ color: '#34b9fe'
19
+ },
20
+ 100: {
21
+ color: '#3688FF'
22
+ },
23
+ 200: {
24
+ color: '#5B53FF'
25
+ },
26
+ 300: {
27
+ color: '#724822'
28
+ },
29
+ 400: {
30
+ color: '#F60'
31
+ },
32
+ 1000: {
33
+ color: '#000'
34
+ }
35
+ };
36
+ var VipList = function VipList(_ref) {
37
+ var productType = _ref.productType,
38
+ _ref$disabledPrice = _ref.disabledPrice,
39
+ disabledPrice = _ref$disabledPrice === void 0 ? false : _ref$disabledPrice,
40
+ _ref$disabledBuy = _ref.disabledBuy,
41
+ disabledBuy = _ref$disabledBuy === void 0 ? false : _ref$disabledBuy,
42
+ _ref$applyDemoWechatU = _ref.applyDemoWechatUrl,
43
+ applyDemoWechatUrl = _ref$applyDemoWechatU === void 0 ? '' : _ref$applyDemoWechatU,
44
+ _ref$applyDemoTitle = _ref.applyDemoTitle,
45
+ applyDemoTitle = _ref$applyDemoTitle === void 0 ? '预约演示' : _ref$applyDemoTitle,
46
+ _ref$tableScrollY = _ref.tableScrollY,
47
+ tableScrollY = _ref$tableScrollY === void 0 ? '65vh' : _ref$tableScrollY,
48
+ env = _ref.env,
49
+ payMethod = _ref.payMethod,
50
+ _ref$tableOffsetHeade = _ref.tableOffsetHeader,
51
+ tableOffsetHeader = _ref$tableOffsetHeade === void 0 ? 56 : _ref$tableOffsetHeade,
52
+ _ref$onBuySuccess = _ref.onBuySuccess,
53
+ onBuySuccess = _ref$onBuySuccess === void 0 ? function () {} : _ref$onBuySuccess;
54
+ var _useState = useState(Tool.getLocalUserInfo()),
55
+ _useState2 = _slicedToArray(_useState, 1),
56
+ userInfo = _useState2[0];
57
+ var _useState3 = useState([]),
58
+ _useState4 = _slicedToArray(_useState3, 2),
59
+ buyList = _useState4[0],
60
+ setBuyList = _useState4[1];
61
+ var _useState5 = useState([]),
62
+ _useState6 = _slicedToArray(_useState5, 2),
63
+ listData = _useState6[0],
64
+ setListData = _useState6[1];
65
+ var _useState7 = useState([{
66
+ title: '功能',
67
+ dataIndex: 'title',
68
+ key: 'title',
69
+ onCell: function onCell(record, index) {
70
+ return {
71
+ colSpan: index > 0 && record.onlyShowTitle ? 5 : 1
72
+ };
73
+ },
74
+ render: function render(title, record) {
75
+ return title === ':buy' ? '' : /*#__PURE__*/_jsxs(_Fragment, {
76
+ children: [/*#__PURE__*/_jsx("div", {
77
+ className: "title",
78
+ children: title
79
+ }), /*#__PURE__*/_jsx("div", {
80
+ className: "subtitle",
81
+ children: record === null || record === void 0 ? void 0 : record.subtitle
82
+ })]
83
+ });
84
+ }
85
+ }]),
86
+ _useState8 = _slicedToArray(_useState7, 2),
87
+ columns = _useState8[0],
88
+ setColumns = _useState8[1];
89
+ var _useRequest = useRequest(function () {
90
+ return VipPowerController.list({
91
+ productType: productType,
92
+ domain: document.location.hostname,
93
+ dealerId: Tool.getLocalSiteInfo().dealerId || 0
94
+ }, {
95
+ env: env
96
+ });
97
+ }, {
98
+ onSuccess: function onSuccess(result) {
99
+ var list = [];
100
+ var listLen = result.vipList.length;
101
+ var buyList = [];
102
+ result.vipList.forEach(function (item) {
103
+ var _ApplyColorDict$item$;
104
+ buyList.push({
105
+ id: item.id,
106
+ price: item.price,
107
+ canBuy: item.canBuy
108
+ });
109
+ var dataIndex = "vipLevel".concat(item.vipLevel);
110
+ var colorPrimary = ((_ApplyColorDict$item$ = ApplyColorDict[item.vipLevel]) === null || _ApplyColorDict$item$ === void 0 ? void 0 : _ApplyColorDict$item$.color) || '#722ED1';
111
+ list.push({
112
+ title: /*#__PURE__*/_jsxs("div", {
113
+ children: [/*#__PURE__*/_jsx("div", {
114
+ className: "vipTitle",
115
+ style: {
116
+ color: colorPrimary
117
+ },
118
+ children: item.title
119
+ }), applyDemoWechatUrl && item.price > 0 && /*#__PURE__*/_jsx(ConfigProvider, {
120
+ theme: {
121
+ components: {
122
+ Button: {
123
+ colorPrimary: colorPrimary
124
+ }
125
+ }
126
+ },
127
+ children: /*#__PURE__*/_jsx(Button, {
128
+ size: "middle",
129
+ type: "primary",
130
+ onClick: onApplyDemo,
131
+ children: applyDemoTitle
132
+ })
133
+ })]
134
+ }),
135
+ dataIndex: dataIndex,
136
+ key: dataIndex,
137
+ width: "".concat(70 / listLen, "%"),
138
+ onCell: sharedOnCell,
139
+ render: function render(value, record) {
140
+ return /*#__PURE__*/_jsx("div", {
141
+ className: "value",
142
+ children: ['true', 'false'].includes(value) ? /*#__PURE__*/_jsxs(_Fragment, {
143
+ children: [value === 'true' && /*#__PURE__*/_jsx(CheckCircleFilled, {
144
+ className: "allow"
145
+ }), value === 'false' && /*#__PURE__*/_jsx(CloseCircleFilled, {
146
+ className: "notAllow"
147
+ })]
148
+ }) : value
149
+ });
150
+ }
151
+ });
152
+ });
153
+ setBuyList([].concat(buyList));
154
+ columns.push.apply(columns, list);
155
+ setColumns(_toConsumableArray(columns));
156
+
157
+ // 先做字典
158
+ var listDict = {};
159
+ result.list.forEach(function (items) {
160
+ if (!listDict[items.name]) {
161
+ listDict[items.name] = {
162
+ name: items.name,
163
+ classifySubtitle: items.classifyInfo.subtitle,
164
+ classifyTitle: items.classifyInfo.title,
165
+ classifyIndex: items.classifyInfo.index,
166
+ classifyKind: items.classifyInfo.kind,
167
+ list: []
168
+ };
169
+ }
170
+ listDict[items.name].list.push(items);
171
+ });
172
+ var listDataValues = Object.values(listDict);
173
+ listDataValues.sort(function (a, b) {
174
+ return b.classifyIndex - a.classifyIndex;
175
+ });
176
+
177
+ // 购买
178
+ if (!disabledPrice) {
179
+ listDataValues.push({
180
+ name: ':price',
181
+ classifyTitle: '价格',
182
+ classifySubtitle: '',
183
+ classifyIndex: -1,
184
+ classifyKind: '购买',
185
+ list: result.vipList.map(function (item) {
186
+ return {
187
+ id: item.id,
188
+ dealerId: 0,
189
+ vipLevel: item.vipLevel,
190
+ name: ':price',
191
+ value: "".concat(item.price),
192
+ classifyInfo: {
193
+ title: '购买',
194
+ subtitle: '',
195
+ index: -1,
196
+ kind: '购买'
197
+ }
198
+ };
199
+ })
200
+ });
201
+ }
202
+
203
+ // if( ! disabledBuy ){
204
+ // listDataValues.push({
205
+ // name: ':buy',
206
+ // classifyTitle: ':buy',
207
+ // classifySubtitle: '',
208
+ // classifyIndex: -1,
209
+ // classifyKind: '购买',
210
+ // list: [],
211
+ // });
212
+ // }
213
+
214
+ var listData = [];
215
+ listDataValues.forEach(function (items, index) {
216
+ var onlyShowTitle = false;
217
+ var preRecord = listData[listData.length - 1];
218
+ if (preRecord && items.classifyKind && preRecord.classifyKind !== items.classifyKind) {
219
+ onlyShowTitle = true;
220
+ }
221
+ if (onlyShowTitle) {
222
+ listData.push({
223
+ title: /*#__PURE__*/_jsxs("strong", {
224
+ className: "classifyKind",
225
+ children: [/*#__PURE__*/_jsx(XFilled, {}), " ", items.classifyKind]
226
+ }),
227
+ subtitle: '',
228
+ classifyKind: items.classifyKind,
229
+ onlyShowTitle: true
230
+ });
231
+ }
232
+ var itemData = {
233
+ title: items.classifyTitle,
234
+ subtitle: items.classifySubtitle,
235
+ onlyShowTitle: false,
236
+ classifyKind: items.classifyKind
237
+ };
238
+ items.list.forEach(function (item) {
239
+ var value = item.value;
240
+ switch (item.name) {
241
+ case 'mixed-cut-video-count':
242
+ value = /*#__PURE__*/_jsx(Money, {
243
+ value: parseInt(item.value),
244
+ pre: "",
245
+ precision: 0,
246
+ end: "\u6761"
247
+ });
248
+ break;
249
+ case 'media-space-size':
250
+ value = /*#__PURE__*/_jsx(Money, {
251
+ value: parseInt(item.value),
252
+ pre: "",
253
+ precision: 0,
254
+ end: "GB"
255
+ });
256
+ break;
257
+ case 'gpt3.5':
258
+ value = /*#__PURE__*/_jsx(Money, {
259
+ value: parseInt(item.value),
260
+ pre: "",
261
+ precision: 0,
262
+ end: "\u6BCF\u65E5"
263
+ });
264
+ break;
265
+ case 'gpt4.0':
266
+ value = /*#__PURE__*/_jsx(Money, {
267
+ value: parseInt(item.value),
268
+ pre: "",
269
+ precision: 0,
270
+ end: ""
271
+ });
272
+ break;
273
+ }
274
+ console.log('result.items.name :', items.name);
275
+
276
+ // 价格
277
+ if (items.name === ':price') {
278
+ console.log('result.vipList:', result.vipList);
279
+ var price = getPrice(result.vipList, item.id);
280
+ value = /*#__PURE__*/_jsx(Money, {
281
+ value: price,
282
+ precision: 2,
283
+ disabledMoneySimple: true
284
+ });
285
+ }
286
+ itemData["vipLevel".concat(item.vipLevel)] = value;
287
+ });
288
+ listData.push(itemData);
289
+ });
290
+ setListData([].concat(listData));
291
+ }
292
+ }),
293
+ loading = _useRequest.loading,
294
+ run = _useRequest.run,
295
+ error = _useRequest.error,
296
+ data = _useRequest.data;
297
+ var onApplyDemo = function onApplyDemo() {
298
+ if (!applyDemoWechatUrl) {
299
+ return;
300
+ }
301
+ Tool.pageDialog({
302
+ title: applyDemoTitle,
303
+ content: /*#__PURE__*/_jsxs("div", {
304
+ children: [Tool.makeQr(applyDemoWechatUrl, '#29ae67', 220), /*#__PURE__*/_jsx("p", {
305
+ style: {
306
+ textAlign: 'center',
307
+ color: '#999'
308
+ },
309
+ children: "\u5FAE\u4FE1\u626B\u4E00\u626B\uFF0C\u52A0\u597D\u53CB"
310
+ })]
311
+ }),
312
+ width: 320,
313
+ zIndex: 9999
314
+ });
315
+ };
316
+ var getPrice = function getPrice(vipList, id) {
317
+ var _vipList$filter;
318
+ return ((_vipList$filter = vipList.filter(function (item) {
319
+ return item.id === id;
320
+ })) === null || _vipList$filter === void 0 ? void 0 : _vipList$filter[0].price) || 0;
321
+ };
322
+ var sharedOnCell = function sharedOnCell(record, index) {
323
+ return {
324
+ colSpan: record.onlyShowTitle ? 0 : 1
325
+ };
326
+ };
327
+ return /*#__PURE__*/_jsx(PageContentWarp, {
328
+ loading: loading,
329
+ error: error,
330
+ onReload: run,
331
+ children: /*#__PURE__*/_jsx(styles.pricingCompare, {
332
+ children: /*#__PURE__*/_jsx(Table, {
333
+ bordered: true,
334
+ scroll: {
335
+ y: tableScrollY // '60vh',
336
+ },
337
+
338
+ rowKey: function rowKey(record, index) {
339
+ return "".concat(index, "-").concat(record.id);
340
+ },
341
+ columns: columns,
342
+ dataSource: listData,
343
+ pagination: false
344
+ // sticky={{offsetHeader: tableOffsetHeader }}
345
+ ,
346
+ summary: function summary() {
347
+ return disabledBuy ? undefined : /*#__PURE__*/_jsx(Table.Summary, {
348
+ fixed: true,
349
+ children: /*#__PURE__*/_jsxs(Table.Summary.Row, {
350
+ children: [/*#__PURE__*/_jsx(Table.Summary.Cell, {
351
+ index: 0,
352
+ children: " "
353
+ }), buyList.map(function (item, i) {
354
+ var _userInfo$userVip;
355
+ // 从不是会员;
356
+ var userVip = !!((_userInfo$userVip = userInfo.userVip) !== null && _userInfo$userVip !== void 0 && _userInfo$userVip[productType]);
357
+ var colorPrimary = (item === null || item === void 0 ? void 0 : item.price) > 0 ? '#722ED1' : 'green';
358
+ return /*#__PURE__*/_jsx(Table.Summary.Cell, {
359
+ index: i,
360
+ children: /*#__PURE__*/_jsx("div", {
361
+ className: "onBuy",
362
+ children: item.canBuy && /*#__PURE__*/_jsx(ConfigProvider, {
363
+ theme: {
364
+ components: {
365
+ Button: {
366
+ colorPrimary: colorPrimary
367
+ }
368
+ }
369
+ },
370
+ children: /*#__PURE__*/_jsx(Buy, {
371
+ env: env,
372
+ disabled: userVip && item.price === 0,
373
+ productKind: "vip",
374
+ vipId: (item === null || item === void 0 ? void 0 : item.id) || 0,
375
+ productCount: 1,
376
+ payMethod: payMethod,
377
+ showPrice: item === null || item === void 0 ? void 0 : item.price,
378
+ onBuySuccess: onBuySuccess,
379
+ children: /*#__PURE__*/_jsx(Button, {
380
+ disabled: userVip && item.price === 0,
381
+ type: "primary",
382
+ icon: /*#__PURE__*/_jsx(ShoppingCartOutlined, {}),
383
+ children: (item === null || item === void 0 ? void 0 : item.price) > 0 ? '购买' : '免费开通'
384
+ })
385
+ })
386
+ })
387
+ })
388
+ }, item.id);
389
+ })]
390
+ })
391
+ });
392
+ }
393
+ })
394
+ })
395
+ });
396
+ };
397
+ export default VipList;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ env?: Global.Env | '';
4
+ onActive: () => void;
5
+ }
6
+ declare const UserProfileVipCard: React.FC<Props>;
7
+ export default UserProfileVipCard;
@@ -0,0 +1,78 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import React from 'react';
3
+ import { Button, Form, Input } from 'antd';
4
+ import { CrownOutlined } from '@ant-design/icons';
5
+ import { useRequest } from '@umijs/hooks';
6
+ import * as VipCardController from "../service/api/VipCardController";
7
+ import updateUserInfo from "../lib/updateUserInfo";
8
+ import Tool from "../lib/Tool";
9
+ import UserProfileUserVip from "./user-vip";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ var UserProfileVipCard = function UserProfileVipCard(_ref) {
13
+ var env = _ref.env,
14
+ onActive = _ref.onActive;
15
+ var _Form$useForm = Form.useForm(),
16
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
17
+ form = _Form$useForm2[0];
18
+ var _useRequest = useRequest(function (vipCardCode) {
19
+ return VipCardController.activate({
20
+ vipCardCode: vipCardCode
21
+ }, {
22
+ env: env
23
+ });
24
+ }, {
25
+ manual: true,
26
+ onSuccess: function onSuccess(data) {
27
+ form.resetFields();
28
+ Tool.toast('已经激活');
29
+ updateUserInfo();
30
+ onActive === null || onActive === void 0 || onActive();
31
+ },
32
+ onError: function onError() {}
33
+ }),
34
+ run = _useRequest.run,
35
+ loading = _useRequest.loading,
36
+ error = _useRequest.error;
37
+ var onFinish = function onFinish(postData) {
38
+ var _postData$vipCardCode;
39
+ var vipCardCode = (_postData$vipCardCode = postData.vipCardCode) === null || _postData$vipCardCode === void 0 ? void 0 : _postData$vipCardCode.replace(/^[\s0-9a-z]+-/i, '').replace(/\s+/g, '').toLocaleUpperCase();
40
+ if (!vipCardCode) {
41
+ return;
42
+ }
43
+ run(vipCardCode);
44
+ };
45
+ var onupdateUserInfo = function onupdateUserInfo() {
46
+ updateUserInfo();
47
+ };
48
+ return /*#__PURE__*/_jsxs("div", {
49
+ children: [/*#__PURE__*/_jsx(Form, {
50
+ form: form,
51
+ disabled: loading,
52
+ onFinish: onFinish,
53
+ children: /*#__PURE__*/_jsx(Form.Item, {
54
+ name: "vipCardCode",
55
+ rules: [{
56
+ required: true,
57
+ message: '请输入'
58
+ }, {
59
+ pattern: /^\s*([a-z0-9]+-)?[A-Z0-9-]{14,}\s*$/i,
60
+ message: '类似:AI-AAAA-BBBB-CCCC'
61
+ }],
62
+ children: /*#__PURE__*/_jsx(Input, {
63
+ addonAfter: /*#__PURE__*/_jsx(Button, {
64
+ htmlType: "submit",
65
+ type: "link",
66
+ icon: /*#__PURE__*/_jsx(CrownOutlined, {}),
67
+ size: "small",
68
+ loading: loading,
69
+ children: "\u6FC0\u6D3B"
70
+ }),
71
+ allowClear: true,
72
+ placeholder: "\u7C7B\u4F3C: AI-AAAA-BBBB-CCCC"
73
+ })
74
+ })
75
+ }), /*#__PURE__*/_jsx(UserProfileUserVip, {})]
76
+ });
77
+ };
78
+ export default UserProfileVipCard;
@@ -0,0 +1,3 @@
1
+ import './user-vip.less';
2
+ declare const UserProfileUserVip: () => import("react/jsx-runtime").JSX.Element | null;
3
+ export default UserProfileUserVip;
@@ -0,0 +1,84 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import React, { useEffect, useState } from 'react';
3
+ import { Divider, Table } from 'antd';
4
+ import { useRequest } from '@umijs/hooks';
5
+ import "./user-vip.less";
6
+ import * as UserController from "../service/api/UserController";
7
+ import ProductType from "../component/product-type";
8
+ import Time from "../UI/Time";
9
+ import PageContentWarp from "../UI/PageContentWarp";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ var UserProfileUserVip = function UserProfileUserVip() {
13
+ var _useState = useState([]),
14
+ _useState2 = _slicedToArray(_useState, 2),
15
+ listData = _useState2[0],
16
+ setListData = _useState2[1];
17
+ var _useRequest = useRequest(function () {
18
+ return UserController.userVipInfo();
19
+ }, {
20
+ manual: true,
21
+ onSuccess: function onSuccess(result) {
22
+ setListData(result);
23
+ }
24
+ }),
25
+ run = _useRequest.run,
26
+ loading = _useRequest.loading,
27
+ error = _useRequest.error;
28
+ var columns = [{
29
+ title: '名称',
30
+ dataIndex: 'productName',
31
+ key: 'productName',
32
+ render: function render(productName, record) {
33
+ return /*#__PURE__*/_jsx(ProductType, {
34
+ productType: (record === null || record === void 0 ? void 0 : record.productType) || '',
35
+ productName: productName
36
+ });
37
+ }
38
+ }, {
39
+ title: '等级',
40
+ dataIndex: 'vipLevelName',
41
+ key: 'vipLevelName',
42
+ render: function render(vipLevelName, record) {
43
+ return /*#__PURE__*/_jsx("div", {
44
+ children: vipLevelName
45
+ });
46
+ }
47
+ }, {
48
+ title: '过期时间',
49
+ dataIndex: 'expired',
50
+ key: 'expired',
51
+ render: function render(expired, record) {
52
+ return /*#__PURE__*/_jsx(Time, {
53
+ time: expired
54
+ });
55
+ }
56
+ }];
57
+ useEffect(function () {
58
+ run();
59
+ }, []);
60
+ return listData.length > 0 ? /*#__PURE__*/_jsxs("div", {
61
+ className: "userVip",
62
+ children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(PageContentWarp
63
+ // title="我的会员等级"
64
+ , {
65
+ loading: loading,
66
+ error: error,
67
+ onReload: function onReload() {
68
+ return run();
69
+ },
70
+ children: /*#__PURE__*/_jsx(Table, {
71
+ size: "small",
72
+ bordered: true,
73
+ rowKey: function rowKey(record) {
74
+ return "".concat(record.productType);
75
+ },
76
+ loading: loading,
77
+ columns: columns,
78
+ dataSource: listData,
79
+ pagination: false
80
+ })
81
+ })]
82
+ }) : null;
83
+ };
84
+ export default UserProfileUserVip;
@@ -0,0 +1,3 @@
1
+ .userVip{
2
+
3
+ }
@@ -0,0 +1,7 @@
1
+ var DealerUrlDict = {
2
+ 1: 'shipinlv.com',
3
+ 6: 'shipinhu.com',
4
+ 18: 'douzhuli.shop',
5
+ 21: 'douxidong.com'
6
+ };
7
+ export default DealerUrlDict;
@@ -0,0 +1,2 @@
1
+ declare const fileList: (filePathList: string[], fileType?: 'folder' | 'file' | '', extTypes?: string[]) => Promise<unknown>;
2
+ export default fileList;
@@ -0,0 +1,61 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import * as LocalFileController from "../service/local/FileController";
4
+ var fileList = /*#__PURE__*/function () {
5
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(filePathList) {
6
+ var fileType,
7
+ extTypes,
8
+ _args2 = arguments;
9
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10
+ while (1) switch (_context2.prev = _context2.next) {
11
+ case 0:
12
+ fileType = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : '';
13
+ extTypes = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : [];
14
+ return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
15
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
16
+ var openResult;
17
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
18
+ while (1) switch (_context.prev = _context.next) {
19
+ case 0:
20
+ _context.next = 2;
21
+ return LocalFileController.fileList({
22
+ path: filePathList,
23
+ fileType: fileType,
24
+ extTypes: extTypes
25
+ }, {
26
+ silent: true
27
+ }).catch(function (err) {
28
+ if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
29
+ return reject(err);
30
+ }
31
+ console.log('open In Folder err:', err);
32
+ console.log('open In Folder err 2:', JSON.stringify(err));
33
+ err.message = "\u9009\u53D6\u6587\u4EF6\u5939\u5931\u8D25\uFF1A".concat(err === null || err === void 0 ? void 0 : err.message, "\uFF01 ");
34
+ reject(err);
35
+ });
36
+ case 2:
37
+ openResult = _context.sent;
38
+ if (openResult) {
39
+ resolve(openResult);
40
+ }
41
+ case 4:
42
+ case "end":
43
+ return _context.stop();
44
+ }
45
+ }, _callee);
46
+ }));
47
+ return function (_x2, _x3) {
48
+ return _ref2.apply(this, arguments);
49
+ };
50
+ }()));
51
+ case 3:
52
+ case "end":
53
+ return _context2.stop();
54
+ }
55
+ }, _callee2);
56
+ }));
57
+ return function fileList(_x) {
58
+ return _ref.apply(this, arguments);
59
+ };
60
+ }();
61
+ export default fileList;
@@ -0,0 +1,2 @@
1
+ declare const fileListContent: (fileDir: string, extName?: string[], maxCount?: number) => Promise<string[]>;
2
+ export default fileListContent;