@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.
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +18 -4
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +4 -4
- package/es/locale/en/en.json +5 -0
- package/es/locale/es/es.json +5 -0
- package/es/locale/id/id.json +5 -0
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +18 -4
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +4 -4
- package/lib/locale/en/en.json +5 -0
- package/lib/locale/es/es.json +5 -0
- package/lib/locale/id/id.json +5 -0
- package/package.json +1 -1
|
@@ -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) || '
|
|
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+', " "), "
|
|
370
|
-
className: "chat-btn"
|
|
371
|
-
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
},
|
|
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
|
-
},
|
|
407
|
+
}, (0, _locale.i18n)('FOLLOW')))))));
|
|
408
408
|
};
|
|
409
409
|
|
|
410
410
|
SignBoardPc.defaultProps = {
|
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/id/id.json
CHANGED
|
@@ -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) || '
|
|
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+', " "), "
|
|
370
|
-
className: "chat-btn"
|
|
371
|
-
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
},
|
|
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
|
-
},
|
|
407
|
+
}, (0, _locale.i18n)('FOLLOW')))))));
|
|
408
408
|
};
|
|
409
409
|
|
|
410
410
|
SignBoardPc.defaultProps = {
|
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/id/id.json
CHANGED