component-shipinlv 0.0.20 → 0.0.22
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/dist/Buy/index.d.ts +1 -1
- package/dist/Product/index.d.ts +1 -1
- package/dist/Product/index.js +4 -2
- package/dist/typings.d.ts +1 -1
- package/package.json +1 -1
package/dist/Buy/index.d.ts
CHANGED
package/dist/Product/index.d.ts
CHANGED
package/dist/Product/index.js
CHANGED
@@ -10,12 +10,14 @@ var Product = /*#__PURE__*/function () {
|
|
10
10
|
_createClass(Product, [{
|
11
11
|
key: "detail",
|
12
12
|
value: function () {
|
13
|
-
var _detail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(productType) {
|
13
|
+
var _detail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(productType, env) {
|
14
14
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
15
15
|
while (1) switch (_context.prev = _context.next) {
|
16
16
|
case 0:
|
17
17
|
return _context.abrupt("return", ProductController.detail({
|
18
18
|
productType: productType
|
19
|
+
}, {
|
20
|
+
env: env
|
19
21
|
}));
|
20
22
|
case 1:
|
21
23
|
case "end":
|
@@ -23,7 +25,7 @@ var Product = /*#__PURE__*/function () {
|
|
23
25
|
}
|
24
26
|
}, _callee);
|
25
27
|
}));
|
26
|
-
function detail(_x) {
|
28
|
+
function detail(_x, _x2) {
|
27
29
|
return _detail.apply(this, arguments);
|
28
30
|
}
|
29
31
|
return detail;
|
package/dist/typings.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare namespace Global {
|
2
2
|
export type Env = 'local' | 'pre' | 'prod';
|
3
3
|
type AuthClientLoginType = 'wechat' | 'account' | 'alipay';
|
4
|
-
export type ProductKind = 'vip' | 'card
|
4
|
+
export type ProductKind = 'vip' | 'vip-card' | string;
|
5
5
|
interface RequestResult{
|
6
6
|
code: string;
|
7
7
|
success?: boolean;
|