فهرست منبع

feat:thumbImg

ananzhusen 1 سال پیش
والد
کامیت
9b1ae1ccd7
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 2 2
      src/services/defaults.ts
  2. 3 3
      src/views/components/PenDatas.vue

+ 2 - 2
src/services/defaults.ts

@@ -1335,10 +1335,10 @@ export const formComponents = [
           width: 300,
           height: 40,
           text: '倒计时',
-          deadline: '2024/1/1 00:00:00', //配置未来的时间
+          // deadline: '2024/1/1 00:00:00', //配置未来的时间
           borderWidth: 0,
           timeFormat:
-            '`距离2024年还有:${day}天${hours}时${minutes}分${seconds}秒`',
+            '`距离下一年还有:${day}天${hours}时${minutes}分${seconds}秒`',
           props: {
             custom: [
               {

+ 3 - 3
src/views/components/PenDatas.vue

@@ -1327,11 +1327,11 @@ const getThumbImg = async () => {
   // };
   let projection = 'image,id,name';
   let res: any;
-  if (arr[0].indexOf('2d.le5le') !== -1) {
+  if (arr[0].indexOf('2d.le5le') !== -1||arr[0].indexOf('le5le.com/2d') !== -1) {
     res = await getLe5le2d(id, projection);
-  } else if (arr[0].indexOf('v.le5le') !== -1) {
+  } else if (arr[0].indexOf('v.le5le'||arr[0].indexOf('le5le.com/v') !== -1) !== -1) {
     res = await getLe5leV(id, projection);
-  } else if (arr[0].indexOf('3d.le5le') !== -1) {
+  } else if (arr[0].indexOf('3d.le5le') !== -1||arr[0].indexOf('le5le.com/3d') !== -1) {
     res = await getLe5le3d(id, projection);
   }
   if (res) {