component-shipinlv 2.0.17 → 2.0.18
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.
@@ -7,7 +7,7 @@ var h5WePublicLogin = /*#__PURE__*/function () {
|
|
7
7
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
8
8
|
while (1) switch (_context.prev = _context.next) {
|
9
9
|
case 0:
|
10
|
-
document.location.replace("https://auth.
|
10
|
+
document.location.replace("https://wechat-auth.shipinlv.com/auth/wechat/login?url=".concat(encodeURIComponent(document.location.href)));
|
11
11
|
return _context.abrupt("return");
|
12
12
|
case 2:
|
13
13
|
case "end":
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
4
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
5
|
+
import * as ProductController from "../service/api/ProductController";
|
6
|
+
var Product = /*#__PURE__*/function () {
|
7
|
+
function Product() {
|
8
|
+
_classCallCheck(this, Product);
|
9
|
+
}
|
10
|
+
_createClass(Product, [{
|
11
|
+
key: "detail",
|
12
|
+
value: function () {
|
13
|
+
var _detail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(productType, env) {
|
14
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
15
|
+
while (1) switch (_context.prev = _context.next) {
|
16
|
+
case 0:
|
17
|
+
return _context.abrupt("return", ProductController.detail({
|
18
|
+
productType: productType
|
19
|
+
}, {
|
20
|
+
env: env
|
21
|
+
}));
|
22
|
+
case 1:
|
23
|
+
case "end":
|
24
|
+
return _context.stop();
|
25
|
+
}
|
26
|
+
}, _callee);
|
27
|
+
}));
|
28
|
+
function detail(_x, _x2) {
|
29
|
+
return _detail.apply(this, arguments);
|
30
|
+
}
|
31
|
+
return detail;
|
32
|
+
}()
|
33
|
+
}]);
|
34
|
+
return Product;
|
35
|
+
}();
|
36
|
+
export default Product;
|
package/dist/config/apiUrls.js
CHANGED