diff --git a/common/shared.js b/common/shared.js
index 043dfaf..597f90a 100644
--- a/common/shared.js
+++ b/common/shared.js
@@ -24,4 +24,28 @@ export function isRight(obj) {
export function isValueType(value) {
let str = Object.prototype.toString.call(value);
return str.match(/\[object (.*?)\]/)[1].toLowerCase();
-}
\ No newline at end of file
+}
+
+// 解析时间戳,参数非必传,不传参时默认显示当前最新日期+时间;
+// 第一个参数为当前日期时间戳,第二个日期分隔符,第三个不传参或传all显示日期+时间,传date显示日期,time显示时间
+export function recordTime(time = new Date(), separator = "-", swf = 'all'){
+ let year = time.getFullYear();
+ let month = time.getMonth() + 1;
+ let day = time.getDate();
+ let hour = time.getHours();
+ let min = time.getMinutes();
+ let ppn = time.getSeconds();
+ if(swf === "time"){
+ return [hour, min, ppn].map(cover).join(":");
+ }else if(swf === "date"){
+ return [year, month, day].map(cover).join(String(separator));
+ }else{
+ return [year, month, day].map(cover).join(String(separator)) +" "+ [hour, min, ppn].map(cover).join(":");
+ }
+}
+// 位数不足2,前面补0
+var cover = function(par) {
+ par = par.toString()[1] ? par : "0" + par;
+ return par;
+}
+
diff --git a/common/styles/common.css b/common/styles/common.css
index 56b2730..b4e1b41 100644
--- a/common/styles/common.css
+++ b/common/styles/common.css
@@ -11,6 +11,10 @@
height: 100%;
}
+.lf-h-maxcontent{
+ height: max-content;
+}
+
.lf-flex {
display: flex;
align-items: center;
@@ -266,6 +270,10 @@
border-left: 1px solid #EEEEEE;
}
+.lf-border-box{
+ box-sizing: border-box;
+}
+
.lf-m-1 {
margin: 1rpx !important;
}
diff --git a/components/lf-image/lf-image.vue b/components/lf-image/lf-image.vue
new file mode 100644
index 0000000..ed6358f
--- /dev/null
+++ b/components/lf-image/lf-image.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
diff --git a/components/lf-previewImage/lf-previewImage.vue b/components/lf-previewImage/lf-previewImage.vue
new file mode 100644
index 0000000..acfe67e
--- /dev/null
+++ b/components/lf-previewImage/lf-previewImage.vue
@@ -0,0 +1,315 @@
+
+
+ switchItem(e.detail.current)">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ swiper_current + 1 }} / {{ images.length }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/lf-stepbar/lf-stepbar.vue b/components/lf-stepbar/lf-stepbar.vue
new file mode 100644
index 0000000..398137b
--- /dev/null
+++ b/components/lf-stepbar/lf-stepbar.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.action }}
+ {{ item.created_at }}
+
+
+
+
+
+
+
+
+