vhall-mini-sdk 0.4.0 → 0.4.3

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 (110) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/components/gift/gift-display/gift-display.js +118 -0
  3. package/dist/components/gift/gift-display/gift-display.json +3 -0
  4. package/dist/components/gift/gift-display/gift-display.wxml +16 -0
  5. package/dist/components/gift/gift-display/gift-display.wxss +1 -0
  6. package/dist/components/gift/gift-sender/gift-sender.js +63 -0
  7. package/dist/components/gift/gift-sender/gift-sender.json +6 -0
  8. package/dist/components/gift/gift-sender/gift-sender.wxml +19 -0
  9. package/dist/components/gift/gift-sender/gift-sender.wxss +1 -0
  10. package/dist/components/lottery/lottery-accept/index.js +249 -0
  11. package/dist/components/lottery/lottery-accept/index.json +4 -0
  12. package/dist/components/lottery/lottery-accept/index.wxml +49 -0
  13. package/dist/components/lottery/lottery-accept/index.wxss +1 -0
  14. package/dist/components/lottery/lottery-history/index.js +36 -0
  15. package/dist/components/lottery/lottery-history/index.json +3 -0
  16. package/dist/components/lottery/lottery-history/index.wxml +28 -0
  17. package/dist/components/lottery/lottery-history/index.wxss +1 -0
  18. package/dist/components/lottery/lottery-shake/lottery-shake.js +328 -0
  19. package/dist/components/lottery/lottery-shake/lottery-shake.json +1 -0
  20. package/dist/components/lottery/lottery-shake/lottery-shake.wxml +52 -0
  21. package/dist/components/lottery/lottery-shake/lottery-shake.wxss +1 -0
  22. package/dist/components/lottery/lottery-slot/lottery-slot.js +230 -0
  23. package/dist/components/lottery/lottery-slot/lottery-slot.json +1 -0
  24. package/dist/components/lottery/lottery-slot/lottery-slot.wxml +62 -0
  25. package/dist/components/lottery/lottery-slot/lottery-slot.wxss +1 -0
  26. package/dist/components/lottery/lottery-wheel/lottery-wheel.js +153 -0
  27. package/dist/components/lottery/lottery-wheel/lottery-wheel.json +4 -0
  28. package/dist/components/lottery/lottery-wheel/lottery-wheel.wxml +91 -0
  29. package/dist/components/lottery/lottery-wheel/lottery-wheel.wxss +1 -0
  30. package/dist/components/lottery/lottery-winners/index.js +101 -0
  31. package/dist/components/lottery/lottery-winners/index.json +4 -0
  32. package/dist/components/lottery/lottery-winners/index.wxml +39 -0
  33. package/dist/components/lottery/lottery-winners/index.wxss +1 -0
  34. package/dist/components/lottery/lottery.js +388 -0
  35. package/dist/components/lottery/lottery.json +11 -0
  36. package/dist/components/lottery/lottery.wxml +78 -0
  37. package/dist/components/lottery/lottery.wxss +1 -0
  38. package/dist/components/lottery/wheel.json +49 -0
  39. package/dist/components/mall-reward/common/reward-card.wxss +0 -0
  40. package/dist/components/mall-reward/duration-icon/index.js +101 -0
  41. package/dist/components/mall-reward/duration-icon/index.json +3 -0
  42. package/dist/components/mall-reward/duration-icon/index.wxml +7 -0
  43. package/dist/components/mall-reward/duration-icon/index.wxss +1 -0
  44. package/dist/components/mall-reward/f-count-down/index.js +61 -0
  45. package/dist/components/mall-reward/f-count-down/index.json +3 -0
  46. package/dist/components/mall-reward/f-count-down/index.wxml +9 -0
  47. package/dist/components/mall-reward/f-count-down/index.wxss +1 -0
  48. package/dist/components/mall-reward/f-empty/index.js +11 -0
  49. package/dist/components/mall-reward/f-empty/index.json +3 -0
  50. package/dist/components/mall-reward/f-empty/index.wxml +8 -0
  51. package/dist/components/mall-reward/f-empty/index.wxss +1 -0
  52. package/dist/components/mall-reward/f-history/index.js +84 -0
  53. package/dist/components/mall-reward/f-history/index.json +4 -0
  54. package/dist/components/mall-reward/f-history/index.wxml +38 -0
  55. package/dist/components/mall-reward/f-history/index.wxss +1 -0
  56. package/dist/components/mall-reward/f-open/index.js +36 -0
  57. package/dist/components/mall-reward/f-open/index.json +3 -0
  58. package/dist/components/mall-reward/f-open/index.wxml +10 -0
  59. package/dist/components/mall-reward/f-open/index.wxss +1 -0
  60. package/dist/components/mall-reward/f-receive/index.js +36 -0
  61. package/dist/components/mall-reward/f-receive/index.json +3 -0
  62. package/dist/components/mall-reward/f-receive/index.wxml +9 -0
  63. package/dist/components/mall-reward/f-receive/index.wxss +1 -0
  64. package/dist/components/mall-reward/index.js +374 -0
  65. package/dist/components/mall-reward/index.json +8 -0
  66. package/dist/components/mall-reward/index.wxml +4 -0
  67. package/dist/components/mall-reward/index.wxss +0 -0
  68. package/dist/components/mall-reward/main-popup/index.js +46 -0
  69. package/dist/components/mall-reward/main-popup/index.json +12 -0
  70. package/dist/components/mall-reward/main-popup/index.wxml +16 -0
  71. package/dist/components/mall-reward/main-popup/index.wxss +1 -0
  72. package/dist/components/praise/praise.js +150 -0
  73. package/dist/components/praise/praise.json +5 -0
  74. package/dist/components/praise/praise.wxml +17 -0
  75. package/dist/components/praise/praise.wxss +1 -0
  76. package/dist/components/product/product-card/product-card.js +109 -0
  77. package/dist/components/product/product-card/product-card.json +3 -0
  78. package/dist/components/product/product-card/product-card.wxml +47 -0
  79. package/dist/components/product/product-card/product-card.wxss +1 -0
  80. package/dist/components/product/product-detail/product-detail.js +127 -0
  81. package/dist/components/product/product-detail/product-detail.json +3 -0
  82. package/dist/components/product/product-detail/product-detail.wxml +57 -0
  83. package/dist/components/product/product-detail/product-detail.wxss +1 -0
  84. package/dist/components/product/product-item/product-item.js +56 -0
  85. package/dist/components/product/product-item/product-item.json +3 -0
  86. package/dist/components/product/product-item/product-item.wxml +35 -0
  87. package/dist/components/product/product-item/product-item.wxss +1 -0
  88. package/dist/components/product/product-list/product-list.js +67 -0
  89. package/dist/components/product/product-list/product-list.json +6 -0
  90. package/dist/components/product/product-list/product-list.wxml +16 -0
  91. package/dist/components/product/product-list/product-list.wxss +1 -0
  92. package/dist/components/product/product-order/product-order.js +394 -0
  93. package/dist/components/product/product-order/product-order.json +3 -0
  94. package/dist/components/product/product-order/product-order.wxml +75 -0
  95. package/dist/components/product/product-order/product-order.wxss +1 -0
  96. package/dist/pubComponents/popup/popup.wxss +1 -0
  97. package/dist/sdk/config/index.js +1 -0
  98. package/dist/sdk/plugins/InteractServer.js +1 -0
  99. package/dist/sdk/plugins/LotteryServer.js +1 -0
  100. package/dist/sdk/plugins/MallRewardServer.js +1 -0
  101. package/dist/sdk/plugins/ProductServer.js +1 -0
  102. package/lib/components/announcement/announ-banner/index.wxml +1 -1
  103. package/lib/components/chat-recommend/index.wxml +1 -1
  104. package/lib/components/player/components/controls/controls.wxml +6 -3
  105. package/lib/components/player/components/controls/controls.wxss +1 -1
  106. package/lib/components/player/player.wxml +26 -24
  107. package/lib/components/player/player.wxss +1 -1
  108. package/lib/sdk/main/index.js +2 -2
  109. package/lib/shared/mpUtils.js +1 -1
  110. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";let deviceInfo_platform;function getDevicePlatform(){try{if(!deviceInfo_platform){const e=wx.getDeviceInfo();deviceInfo_platform=e.platform}return deviceInfo_platform}catch(e){return"unkown"}}function isInPc(){try{return deviceInfo_platform||this.getDevicePlatform(),"windows"===deviceInfo_platform||"mac"===deviceInfo_platform}catch(e){return!1}}function showToast(e,o="none",t=1500){return wx.showToast({title:e,icon:o,duration:t})}function reloadCurrentPage(){const e=getCurrentPages();if(!e||0===e.length)return void console.error("[SDK] reloadCurrentPage failed: page stack is empty");const o=e[e.length-1],{route:t,options:r}=o,n=Object.keys(r).map((e=>`${e}=${encodeURIComponent(r[e])}`)).join("&"),a=`/${t}`+(n?`?${n}`:"");wx.redirectTo({url:a,success:()=>{console.log("[SDK] Page reloaded via redirectTo:",a)},fail:e=>{console.warn("[SDK] redirectTo failed, fallback to reLaunch:",e.errMsg),wx.reLaunch({url:a})}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDevicePlatform=getDevicePlatform,exports.isInPc=isInPc,exports.reloadCurrentPage=reloadCurrentPage,exports.showToast=showToast;
1
+ "use strict";let deviceInfo_platform;function getDevicePlatform(){try{if(!deviceInfo_platform){const e=wx.getDeviceInfo();deviceInfo_platform=e.platform}return deviceInfo_platform}catch(e){return"unkown"}}function isInPc(){try{return deviceInfo_platform||this.getDevicePlatform(),"windows"===deviceInfo_platform||"mac"===deviceInfo_platform}catch(e){return!1}}function showToast(e,o="none",r=1500){return wx.showToast({title:e,icon:o,duration:r})}function reloadCurrentPage(){const e=getCurrentPages();if(!e||0===e.length)return void console.error("[SDK] reloadCurrentPage failed: page stack is empty");const o=e[e.length-1],{route:r,options:t}=o,n=Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&"),a=`/${r}`+(n?`?${n}`:"");console.error(n),wx.redirectTo({url:a,success:()=>{console.log("[SDK] Page reloaded via redirectTo:",a)},fail:e=>{console.warn("[SDK] redirectTo failed, fallback to reLaunch:",e.errMsg),wx.reLaunch({url:a})}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDevicePlatform=getDevicePlatform,exports.isInPc=isInPc,exports.reloadCurrentPage=reloadCurrentPage,exports.showToast=showToast;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhall-mini-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.3",
4
4
  "author": "vhall",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",