bhd-components 0.7.28 → 0.7.29
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/{27cf2e80.esm.es5.production.js → 29492132.esm.es5.production.js} +1 -1
- package/dist/{4461b1a8.esm.es5.development.js → 4e438177.esm.es5.development.js} +1 -1
- package/dist/index.esm.es5.development.css +1013 -997
- package/dist/index.esm.es5.development.js +8 -6
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/customerService/function.js +3 -1
- package/es2017/customerService/index.js +2 -2
- package/es2017/customerService/index.module.less +7 -0
- package/es2017/customerService/index2.module.less +7 -0
- package/esm/customerService/function.js +3 -1
- package/esm/customerService/index.js +2 -2
- package/esm/customerService/index.module.less +7 -0
- package/esm/customerService/index2.module.less +7 -0
- package/package.json +1 -1
|
@@ -136,9 +136,11 @@ const getBase64Image = (src)=>{
|
|
|
136
136
|
const formatDate = (dateStr)=>{
|
|
137
137
|
const today = new Date();
|
|
138
138
|
const date = new Date(dateStr);
|
|
139
|
+
let isSameDay = today.getFullYear() === date.getFullYear() && today.getMonth() === date.getMonth() && today.getDate() === date.getDate();
|
|
139
140
|
const dayDiff = Math.ceil((today - date) / (1000 * 60 * 60 * 24)); // 计算天数差
|
|
141
|
+
// 判断当前的日期 是否于传入的日期为同一天 同一天则显示时间 不是同一天则判断是否超过一周
|
|
140
142
|
// console.log(dayDiff,'dayDiffdayDiff',today,'___',date);
|
|
141
|
-
if (
|
|
143
|
+
if (isSameDay) {
|
|
142
144
|
// 今天
|
|
143
145
|
return date.toLocaleTimeString('zh-CN', {
|
|
144
146
|
hour12: false
|
|
@@ -2659,11 +2659,11 @@ const CustomerService = (props)=>{
|
|
|
2659
2659
|
children: [
|
|
2660
2660
|
/*#__PURE__*/ _jsxs("p", {
|
|
2661
2661
|
onClick: ()=>{
|
|
2662
|
-
sendScreenshotData('
|
|
2662
|
+
sendScreenshotData('讲解图片里的知识点');
|
|
2663
2663
|
},
|
|
2664
2664
|
children: [
|
|
2665
2665
|
/*#__PURE__*/ _jsx(CustomKnowledgeContent, {}),
|
|
2666
|
-
"
|
|
2666
|
+
"讲解图片里的知识点"
|
|
2667
2667
|
]
|
|
2668
2668
|
}),
|
|
2669
2669
|
/*#__PURE__*/ _jsx("br", {}),
|
|
@@ -140,9 +140,11 @@ var getBase64Image = function(src) {
|
|
|
140
140
|
var formatDate = function(dateStr) {
|
|
141
141
|
var today = new Date();
|
|
142
142
|
var date = new Date(dateStr);
|
|
143
|
+
var isSameDay = today.getFullYear() === date.getFullYear() && today.getMonth() === date.getMonth() && today.getDate() === date.getDate();
|
|
143
144
|
var dayDiff = Math.ceil((today - date) / (1000 * 60 * 60 * 24)); // 计算天数差
|
|
145
|
+
// 判断当前的日期 是否于传入的日期为同一天 同一天则显示时间 不是同一天则判断是否超过一周
|
|
144
146
|
// console.log(dayDiff,'dayDiffdayDiff',today,'___',date);
|
|
145
|
-
if (
|
|
147
|
+
if (isSameDay) {
|
|
146
148
|
// 今天
|
|
147
149
|
return date.toLocaleTimeString("zh-CN", {
|
|
148
150
|
hour12: false
|
|
@@ -2714,11 +2714,11 @@ var CustomerService = function(props) {
|
|
|
2714
2714
|
children: [
|
|
2715
2715
|
/*#__PURE__*/ _jsxs("p", {
|
|
2716
2716
|
onClick: function() {
|
|
2717
|
-
sendScreenshotData("
|
|
2717
|
+
sendScreenshotData("讲解图片里的知识点");
|
|
2718
2718
|
},
|
|
2719
2719
|
children: [
|
|
2720
2720
|
/*#__PURE__*/ _jsx(CustomKnowledgeContent, {}),
|
|
2721
|
-
"
|
|
2721
|
+
"讲解图片里的知识点"
|
|
2722
2722
|
]
|
|
2723
2723
|
}),
|
|
2724
2724
|
/*#__PURE__*/ _jsx("br", {}),
|