@fonixtree/magic-design 0.1.30 → 0.1.31

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.
@@ -309,6 +309,19 @@ function (_super) {
309
309
  }
310
310
  };
311
311
 
312
+ _this.toChat = function () {
313
+ var storeInfo = _this.state.storeInfo; // 登录情况下,直接跳聊天页
314
+
315
+ if (localStorage.getItem('isLogin') === 'Y') {
316
+ (0, _commonUtil.navigateTo)("/chat/" + (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.sysAccount));
317
+ } else {
318
+ window.magicDesign.history.push({
319
+ pathname: '/sign-in',
320
+ state: "/chat/" + (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.sysAccount)
321
+ });
322
+ }
323
+ };
324
+
312
325
  return _this;
313
326
  }
314
327
 
@@ -364,11 +377,12 @@ function (_super) {
364
377
  className: "store-info-wrap"
365
378
  }, /*#__PURE__*/_react["default"].createElement("div", {
366
379
  className: "number"
367
- }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) || '98%', " "), " Positive"), /*#__PURE__*/_react["default"].createElement("div", {
380
+ }, /*#__PURE__*/_react["default"].createElement("span", null, Number((storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) / 100).toFixed(1) || '5', " "), " ", (0, _locale.i18n)('Positive')), /*#__PURE__*/_react["default"].createElement("div", {
368
381
  className: "number"
369
- }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+', " "), " Followers"), /*#__PURE__*/_react["default"].createElement("div", {
370
- className: "chat-btn"
371
- }, "CHAT")));
382
+ }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+', " "), " ", (0, _locale.i18n)('FOLLOWERS')), /*#__PURE__*/_react["default"].createElement("div", {
383
+ className: "chat-btn",
384
+ onClick: this.toChat
385
+ }, (0, _locale.i18n)('CHAT'))));
372
386
  };
373
387
 
374
388
  SignBoardMobile.defaultProps = {
@@ -390,13 +390,13 @@ function (_super) {
390
390
  className: "store-number"
391
391
  }, /*#__PURE__*/_react["default"].createElement("div", {
392
392
  className: "store-number-item"
393
- }, "Positive:", /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) || '98%', " ")), /*#__PURE__*/_react["default"].createElement("div", {
393
+ }, (0, _locale.i18n)('Positive'), ":", /*#__PURE__*/_react["default"].createElement("span", null, Number((storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) / 100).toFixed(1) || '5')), /*#__PURE__*/_react["default"].createElement("div", {
394
394
  className: "store-number-item"
395
- }, "Followers:", /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+')))), /*#__PURE__*/_react["default"].createElement("div", {
395
+ }, (0, _locale.i18n)('FOLLOWERS'), ":", /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+')))), /*#__PURE__*/_react["default"].createElement("div", {
396
396
  onClick: this.clickCollect
397
397
  }, isFollow ? /*#__PURE__*/_react["default"].createElement("div", {
398
398
  className: "followed"
399
- }, "Following") : /*#__PURE__*/_react["default"].createElement("div", {
399
+ }, (0, _locale.i18n)('FOLLOWING')) : /*#__PURE__*/_react["default"].createElement("div", {
400
400
  className: "follow"
401
401
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
402
402
  color: "#0D52D6",
@@ -404,7 +404,7 @@ function (_super) {
404
404
  type: "icon-add"
405
405
  }), /*#__PURE__*/_react["default"].createElement("span", {
406
406
  className: "txt"
407
- }, "Follow"))))));
407
+ }, (0, _locale.i18n)('FOLLOW')))))));
408
408
  };
409
409
 
410
410
  SignBoardPc.defaultProps = {
@@ -1,4 +1,9 @@
1
1
  {
2
+ "CHAT": "Chat",
3
+ "FOLLOW": "Follow",
4
+ "FOLLOWING": "Following",
5
+ "FOLLOWERS": "Followers",
6
+ "POSITIVE": "Positive",
2
7
  "SEARCH_IN_SHOP": "Search in shop",
3
8
  "IMAGE_AND_TEXT_NAME": "Image and Text Name",
4
9
  "BANNER_GROUP_NAME": "Banner Group Name",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "CHAT": "Chat",
3
+ "FOLLOW": "Follow",
4
+ "FOLLOWING": "Following",
5
+ "FOLLOWERS": "Followers",
6
+ "POSITIVE": "Positive",
2
7
  "SEARCH_IN_SHOP": "Search in shop",
3
8
  "IMAGE_AND_TEXT_NAME": "Image and Text Name",
4
9
  "BANNER_GROUP_NAME": "Banner Group Name",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "CHAT": "Chat",
3
+ "FOLLOW": "Follow",
4
+ "FOLLOWING": "Following",
5
+ "FOLLOWERS": "Followers",
6
+ "POSITIVE": "Positive",
2
7
  "SEARCH_IN_SHOP": "Search in shop",
3
8
  "IMAGE_AND_TEXT_NAME": "Image and Text Name",
4
9
  "BANNER_GROUP_NAME": "Banner Group Name",
@@ -309,6 +309,19 @@ function (_super) {
309
309
  }
310
310
  };
311
311
 
312
+ _this.toChat = function () {
313
+ var storeInfo = _this.state.storeInfo; // 登录情况下,直接跳聊天页
314
+
315
+ if (localStorage.getItem('isLogin') === 'Y') {
316
+ (0, _commonUtil.navigateTo)("/chat/" + (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.sysAccount));
317
+ } else {
318
+ window.magicDesign.history.push({
319
+ pathname: '/sign-in',
320
+ state: "/chat/" + (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.sysAccount)
321
+ });
322
+ }
323
+ };
324
+
312
325
  return _this;
313
326
  }
314
327
 
@@ -364,11 +377,12 @@ function (_super) {
364
377
  className: "store-info-wrap"
365
378
  }, /*#__PURE__*/_react["default"].createElement("div", {
366
379
  className: "number"
367
- }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) || '98%', " "), " Positive"), /*#__PURE__*/_react["default"].createElement("div", {
380
+ }, /*#__PURE__*/_react["default"].createElement("span", null, Number((storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) / 100).toFixed(1) || '5', " "), " ", (0, _locale.i18n)('Positive')), /*#__PURE__*/_react["default"].createElement("div", {
368
381
  className: "number"
369
- }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+', " "), " Followers"), /*#__PURE__*/_react["default"].createElement("div", {
370
- className: "chat-btn"
371
- }, "CHAT")));
382
+ }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+', " "), " ", (0, _locale.i18n)('FOLLOWERS')), /*#__PURE__*/_react["default"].createElement("div", {
383
+ className: "chat-btn",
384
+ onClick: this.toChat
385
+ }, (0, _locale.i18n)('CHAT'))));
372
386
  };
373
387
 
374
388
  SignBoardMobile.defaultProps = {
@@ -390,13 +390,13 @@ function (_super) {
390
390
  className: "store-number"
391
391
  }, /*#__PURE__*/_react["default"].createElement("div", {
392
392
  className: "store-number-item"
393
- }, "Positive:", /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) || '98%', " ")), /*#__PURE__*/_react["default"].createElement("div", {
393
+ }, (0, _locale.i18n)('Positive'), ":", /*#__PURE__*/_react["default"].createElement("span", null, Number((storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) / 100).toFixed(1) || '5')), /*#__PURE__*/_react["default"].createElement("div", {
394
394
  className: "store-number-item"
395
- }, "Followers:", /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+')))), /*#__PURE__*/_react["default"].createElement("div", {
395
+ }, (0, _locale.i18n)('FOLLOWERS'), ":", /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+')))), /*#__PURE__*/_react["default"].createElement("div", {
396
396
  onClick: this.clickCollect
397
397
  }, isFollow ? /*#__PURE__*/_react["default"].createElement("div", {
398
398
  className: "followed"
399
- }, "Following") : /*#__PURE__*/_react["default"].createElement("div", {
399
+ }, (0, _locale.i18n)('FOLLOWING')) : /*#__PURE__*/_react["default"].createElement("div", {
400
400
  className: "follow"
401
401
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
402
402
  color: "#0D52D6",
@@ -404,7 +404,7 @@ function (_super) {
404
404
  type: "icon-add"
405
405
  }), /*#__PURE__*/_react["default"].createElement("span", {
406
406
  className: "txt"
407
- }, "Follow"))))));
407
+ }, (0, _locale.i18n)('FOLLOW')))))));
408
408
  };
409
409
 
410
410
  SignBoardPc.defaultProps = {
@@ -1,4 +1,9 @@
1
1
  {
2
+ "CHAT": "Chat",
3
+ "FOLLOW": "Follow",
4
+ "FOLLOWING": "Following",
5
+ "FOLLOWERS": "Followers",
6
+ "POSITIVE": "Positive",
2
7
  "SEARCH_IN_SHOP": "Search in shop",
3
8
  "IMAGE_AND_TEXT_NAME": "Image and Text Name",
4
9
  "BANNER_GROUP_NAME": "Banner Group Name",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "CHAT": "Chat",
3
+ "FOLLOW": "Follow",
4
+ "FOLLOWING": "Following",
5
+ "FOLLOWERS": "Followers",
6
+ "POSITIVE": "Positive",
2
7
  "SEARCH_IN_SHOP": "Search in shop",
3
8
  "IMAGE_AND_TEXT_NAME": "Image and Text Name",
4
9
  "BANNER_GROUP_NAME": "Banner Group Name",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "CHAT": "Chat",
3
+ "FOLLOW": "Follow",
4
+ "FOLLOWING": "Following",
5
+ "FOLLOWERS": "Followers",
6
+ "POSITIVE": "Positive",
2
7
  "SEARCH_IN_SHOP": "Search in shop",
3
8
  "IMAGE_AND_TEXT_NAME": "Image and Text Name",
4
9
  "BANNER_GROUP_NAME": "Banner Group Name",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.30",
4
+ "version": "0.1.31",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",