@kmkf-fe-packages/services-components 0.7.6 → 0.7.7-alpha.0
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/esm/commonComponents/PlatBuyer/index.d.ts +2 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -2
- package/dist/esm/commonComponents/Wangwang/index.d.ts +1 -0
- package/dist/esm/commonComponents/Wangwang/index.js +3 -2
- package/dist/esm/components/BuyerNick/index.js +6 -5
- package/dist/esm/components/Payment/BuyerNick.js +3 -2
- package/dist/esm/type.d.ts +1 -0
- package/package.json +4 -4
|
@@ -4,6 +4,7 @@ declare type PlatBuyerProp = {
|
|
|
4
4
|
buyerNick: string;
|
|
5
5
|
buyerOpenUid: string;
|
|
6
6
|
shopList: any[];
|
|
7
|
+
tbAppKey?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList }: PlatBuyerProp) => React.JSX.Element;
|
|
9
|
+
declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList, tbAppKey }: PlatBuyerProp) => React.JSX.Element;
|
|
9
10
|
export default PlatBuyer;
|
|
@@ -15,7 +15,8 @@ var PlatBuyer = function PlatBuyer(_ref) {
|
|
|
15
15
|
var shopId = _ref.shopId,
|
|
16
16
|
buyerNick = _ref.buyerNick,
|
|
17
17
|
buyerOpenUid = _ref.buyerOpenUid,
|
|
18
|
-
shopList = _ref.shopList
|
|
18
|
+
shopList = _ref.shopList,
|
|
19
|
+
tbAppKey = _ref.tbAppKey;
|
|
19
20
|
var platList = PlatData.getInstance().getPlatData();
|
|
20
21
|
var copyHandle = function copyHandle(text) {
|
|
21
22
|
copy(text);
|
|
@@ -33,7 +34,8 @@ var PlatBuyer = function PlatBuyer(_ref) {
|
|
|
33
34
|
}, [platList, shopList]);
|
|
34
35
|
return (platInfo === null || platInfo === void 0 ? void 0 : (_platInfo$shopId = platInfo[shopId]) === null || _platInfo$shopId === void 0 ? void 0 : _platInfo$shopId.platformTypeStr) === 'TAOBAO' ? /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Wangwang, {
|
|
35
36
|
nick: buyerNick,
|
|
36
|
-
buyerOpenUid: buyerOpenUid
|
|
37
|
+
buyerOpenUid: buyerOpenUid,
|
|
38
|
+
tbAppKey: tbAppKey
|
|
37
39
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, buyerNick, /*#__PURE__*/React.createElement("span", {
|
|
38
40
|
onClick: function onClick() {
|
|
39
41
|
return copyHandle(buyerNick);
|
|
@@ -9,12 +9,13 @@ import React from 'react';
|
|
|
9
9
|
import wangImg from "./img/wang.gif";
|
|
10
10
|
var Wangwang = function Wangwang(props) {
|
|
11
11
|
var nick = props.nick,
|
|
12
|
-
buyerOpenUid = props.buyerOpenUid
|
|
12
|
+
buyerOpenUid = props.buyerOpenUid,
|
|
13
|
+
tbAppKey = props.tbAppKey;
|
|
13
14
|
var isOSX = function isOSX() {
|
|
14
15
|
return /Mac OS X/i.test(navigator.userAgent);
|
|
15
16
|
};
|
|
16
17
|
var openWangwang = function openWangwang() {
|
|
17
|
-
var url = isOSX() ? "//amos.alicdn.com/getcid.aw?v=2&uid=".concat(decodeURIComponent(nick), "&site=cntaobao&s=1&groupid=0&openAppkey=21819818&openUID=").concat(buyerOpenUid, "&charset=utf-8") : "aliim:sendmsg?&touid=cntaobao".concat(decodeURIComponent(nick), "&siteid=cntaobao&status=2&portalId=&gid=&itemsId=&scene=&toRole=&source=light&client=false&encryptUID=&bizDomain=taobao&openAppkey=21819818&openUID=").concat(buyerOpenUid);
|
|
18
|
+
var url = isOSX() ? "//amos.alicdn.com/getcid.aw?v=2&uid=".concat(decodeURIComponent(nick), "&site=cntaobao&s=1&groupid=0&openAppkey=").concat(tbAppKey !== null && tbAppKey !== void 0 ? tbAppKey : '21819818', "&openUID=").concat(buyerOpenUid, "&charset=utf-8") : "aliim:sendmsg?&touid=cntaobao".concat(decodeURIComponent(nick), "&siteid=cntaobao&status=2&portalId=&gid=&itemsId=&scene=&toRole=&source=light&client=false&encryptUID=&bizDomain=taobao&openAppkey=").concat(tbAppKey !== null && tbAppKey !== void 0 ? tbAppKey : '21819818', "&openUID=").concat(buyerOpenUid);
|
|
18
19
|
window.open(url);
|
|
19
20
|
};
|
|
20
21
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -34,7 +34,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
34
34
|
}) : null;
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
var _this$effects;
|
|
37
|
+
var _this$effects, _this$effects2;
|
|
38
38
|
var buyerOpenUid = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerOpenUid")];
|
|
39
39
|
var buyerNick = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
40
40
|
if (buyerNick === undefined && buyerOpenUid === undefined) {
|
|
@@ -44,7 +44,8 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
44
44
|
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
45
45
|
buyerNick: buyerNick,
|
|
46
46
|
buyerOpenUid: buyerOpenUid,
|
|
47
|
-
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
47
|
+
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
|
|
48
|
+
tbAppKey: _this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.tbAppKey
|
|
48
49
|
}));
|
|
49
50
|
});
|
|
50
51
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -61,15 +62,15 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
61
62
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
62
63
|
});
|
|
63
64
|
_defineProperty(this, "editRender", function (value) {
|
|
64
|
-
var _this$componentConfig, _this$componentConfig2, _this$
|
|
65
|
+
var _this$componentConfig, _this$componentConfig2, _this$effects3, _this$effects4;
|
|
65
66
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
66
67
|
title: _this.name,
|
|
67
68
|
name: _this.id,
|
|
68
69
|
rules: _this.rules,
|
|
69
70
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
70
71
|
component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
|
|
71
|
-
shopId: (_this$
|
|
72
|
-
shopList: (_this$
|
|
72
|
+
shopId: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopId,
|
|
73
|
+
shopList: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList,
|
|
73
74
|
onBlur: value === null || value === void 0 ? void 0 : value.onBlur
|
|
74
75
|
}))
|
|
75
76
|
});
|
|
@@ -48,7 +48,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
51
|
-
var _this$effects;
|
|
51
|
+
var _this$effects, _this$effects2;
|
|
52
52
|
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
53
53
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
54
54
|
}
|
|
@@ -67,7 +67,8 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
67
67
|
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
68
68
|
buyerNick: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
69
69
|
buyerOpenUid: buyerOpenUid,
|
|
70
|
-
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
70
|
+
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
|
|
71
|
+
tbAppKey: _this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.tbAppKey
|
|
71
72
|
}));
|
|
72
73
|
});
|
|
73
74
|
_defineProperty(this, "renderLog", function (r) {
|
package/dist/esm/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7-alpha.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.7.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.7-alpha.0",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.7-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "4b6fe1d5eefea404a26e18c2b4312dd868d6c51a"
|
|
44
44
|
}
|