@blocklet/launcher-workflow 2.0.6 → 2.0.7
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.
- package/lib/purchase.js +9 -6
- package/package.json +5 -5
package/lib/purchase.js
CHANGED
|
@@ -80,7 +80,7 @@ function PurchasePage(_ref) {
|
|
|
80
80
|
search
|
|
81
81
|
} = (0, _reactRouterDom.useLocation)();
|
|
82
82
|
const [selectedPlanId, setSelectedPlanId] = (0, _react.useState)();
|
|
83
|
-
const [openMorePlanPrompt, setOpenMorePlanPrompt] = (0, _react.useState)(
|
|
83
|
+
const [openMorePlanPrompt, setOpenMorePlanPrompt] = (0, _react.useState)(false);
|
|
84
84
|
const [splideConfig, setSplideConfig] = (0, _useSetState.default)({
|
|
85
85
|
arrows: false
|
|
86
86
|
});
|
|
@@ -92,10 +92,6 @@ function PurchasePage(_ref) {
|
|
|
92
92
|
const api = create({
|
|
93
93
|
baseURL: didPayPrefix
|
|
94
94
|
});
|
|
95
|
-
(0, _react.useEffect)(() => {
|
|
96
|
-
// 3s 后隐藏
|
|
97
|
-
setTimeout(() => setOpenMorePlanPrompt(false), 3000);
|
|
98
|
-
}, []);
|
|
99
95
|
const planState = (0, _useAsync.default)(async () => {
|
|
100
96
|
const {
|
|
101
97
|
data
|
|
@@ -158,9 +154,16 @@ function PurchasePage(_ref) {
|
|
|
158
154
|
let {
|
|
159
155
|
items
|
|
160
156
|
} = _ref2;
|
|
157
|
+
const showArrows = items.length > 1;
|
|
161
158
|
setSplideConfig({
|
|
162
|
-
arrows:
|
|
159
|
+
arrows: showArrows
|
|
163
160
|
});
|
|
161
|
+
if (showArrows) {
|
|
162
|
+
setOpenMorePlanPrompt(true);
|
|
163
|
+
|
|
164
|
+
// 3s 后隐藏
|
|
165
|
+
setTimeout(() => setOpenMorePlanPrompt(false), 3000);
|
|
166
|
+
}
|
|
164
167
|
},
|
|
165
168
|
hasTrack: false,
|
|
166
169
|
options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@arcblock/icons": "^2.5.14",
|
|
41
41
|
"@arcblock/license": "^2.5.14",
|
|
42
42
|
"@arcblock/ux": "^2.5.14",
|
|
43
|
-
"@blocklet/launcher-layout": "2.0.
|
|
44
|
-
"@blocklet/launcher-util": "2.0.
|
|
45
|
-
"@blocklet/launcher-ux": "2.0.
|
|
43
|
+
"@blocklet/launcher-layout": "2.0.7",
|
|
44
|
+
"@blocklet/launcher-util": "2.0.7",
|
|
45
|
+
"@blocklet/launcher-ux": "2.0.7",
|
|
46
46
|
"@did-pay/react": "^1.9.44",
|
|
47
47
|
"@emotion/react": "^11.10.6",
|
|
48
48
|
"@emotion/styled": "^11.10.6",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"@babel/preset-react": "^7.18.6",
|
|
73
73
|
"babel-plugin-inline-react-svg": "^2.0.2"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "196e46ae137199f0846db77155784754deb323dc"
|
|
76
76
|
}
|