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.shanren.wang/auth/wechat/login?url=".concat(document.location.href));
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,4 @@
1
+ declare class Product {
2
+ detail(productType: string, env?: Global.Env): Promise<Product.Detail>;
3
+ }
4
+ export default Product;
@@ -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;
@@ -1,5 +1,5 @@
1
1
  // 业务服务器 api
2
- export var currentEnv = 'prod';
2
+ export var currentEnv = 'local';
3
3
  var ApiUrls = {
4
4
  local: {
5
5
  api: 'http://localhost:9999/',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",