shawenguan há 1 ano atrás
pai
commit
20106753fd
1 ficheiros alterados com 36 adições e 59 exclusões
  1. 36 59
      Scripts/wubian/wubianHelper.js

+ 36 - 59
Scripts/wubian/wubianHelper.js

@@ -395,14 +395,14 @@ function handleNoticeList() {
             "hashId": "468xab6e",
             "category": "系统公告",
             "icon": "/uploads/icon/系统公告.png",
-            "title": "暗黑市场",
+            "title": "【神秘空间】应有尽有等你来探索!",
             "image": "",
             "createdTime": magicJS.formatDate(new Date(), 'yyyy-MM-dd HH:mm:ss'),
             "type": 0,
             "categoryType": 6,
             "url": ""
         };
-        rspData.data.list.splice(0, 1, oneNotice);
+        rspData.data.list.splice(1, 0, oneNotice);
         gRetBody = rspData;
     }
 }
@@ -415,61 +415,41 @@ function handleNoticeInfo() {
     let reqData = getRequestPlainData();
     let hashId = reqData.hashId;
     if (hashId == '468xab6e') {
-        let dataArr = [
-            {
-                "hash_id": "6oekb1b5",
-                "id": 19, "image": "/uploads/20240909/ec090658021483753c9cacb2c917e4ce.png",
-                "title": "机械齿轮",
-                "event": "art",
-                "type": { "syn": "合成兑换", "act": "空投", "art": "藏品", "pri": "抽奖", "article": "公告" }
-            },
-            {
-                "hash_id": "3oe8bev8",
-                "id": 18,
-                "image": "/uploads/20240909/0c5d20baa4c00a3390b131b84bf8d592.jpg",
-                "title": "星链计划",
-                "event": "art",
-                "type": { "syn": "合成兑换", "act": "空投", "art": "藏品", "pri": "抽奖", "article": "公告" }
-            }
-        ];
-        let relationList = [
-            {
-                "jumpType": "",
-                "url": "",
-                "timeList": [
-
-                ],
-                "title": "机械齿轮",
-                "image": "/uploads/20240909/ec090658021483753c9cacb2c917e4ce.png",
-                "activityType": "",
-                "authorName": "无边星链",
-                "type": "art",
-                "typeName": "",
-                "categoryType": "",
-                "relationId": "6oekb1b5"
-            },
-            {
-                "jumpType": "",
-                "url": "",
-                "timeList": [
-
-                ],
-                "title": "星链计划",
-                "image": "/uploads/20240909/0c5d20baa4c00a3390b131b84bf8d592.jpg",
-                "activityType": "",
-                "authorName": "无边星链",
-                "type": "art",
-                "typeName": "",
-                "categoryType": "",
-                "relationId": "3oe8bev8"
-            }
-        ];
+        let marketGroupLstDict = magicJS.data.read(WuBianConstKey.AllMarketGroupListData, {});
+        let baseList = [];
+        let relationList = [];
+        let sortId = 1;
+        for (let artId in marketGroupLstDict) {
+            const artInfo = marketGroupLstDict[artId];
+            const artInfoA = {
+                hash_id: artInfo.artId,
+                id: sortId,
+                image: artInfo.image,
+                title: artInfo.title,
+                event: "art",
+                type: { syn: "合成兑换", act: "空投", art: "藏品", pri: "抽奖", article: "公告" },
+            };
+            baseList.push(artInfoA);
+            sortId += 1;
+            const artInfoB = {
+                jumpType: "",
+                url: "",
+                timeList: [],
+                title: artInfo.title,
+                image: artInfo.image,
+                activityType: "",
+                authorName: artInfo.brandName,
+                type: "art",
+                typeName: "",
+                categoryType: "",
+                relationId: artInfo.artId,
+            };
+        }
         let artLstText = ``;
-        for (let i = 0; i < dataArr.length; ++i) {
-            let element = dataArr[i];
+        for (let i = 0; i < baseList.length; ++i) {
+            let element = baseList[i];
             let dataStr = JSON.stringify(element);
             dataStr = dataStr.replace(/"/g, "&quot;");
-            // let tmpStr = `<input style="align-content:center;width:80%;height:35px;background:#18bc9c;color:#FFFFFF;" readonly="readonly"  disabled="disabled" name="relation['art'][]" value="[显示]藏品:${element.title}" data-event="art" data-id="${element.hash_id}" data-show="1" data="${dataStr}" />`;
             let tmpStr = `<input ` +
                 `style="align-content:center;width:80%;height:35px;background:#18bc9c;color:#FFFFFF;" readonly="readonly" ` +
                 `disabled="disabled" ` +
@@ -483,11 +463,8 @@ function handleNoticeInfo() {
         }
         let content = `
             <p><br /></p>
-            <p style="white-space:normal;"><strong>尊敬的无边星链用户:</strong></p>
-            <p style="white-space:normal;"><strong>您好!</strong></p>
+            <p style="white-space:normal;"><strong>以下过往开放过的藏品:</strong></p>
             <p><br /></p>
-            <p>&nbsp; &nbsp;&nbsp;</p>
-            <p><strong><span style="color:#E53333;">&nbsp; &nbsp; <span style="color:#000000;">以下所有开放过的藏品:</span></span></strong></p>
             <p><strong><span style="color:#E53333;">${artLstText}<br /></span></strong></p>
             <p><strong><span style="color:#E53333;"><br /></span></strong></p>
             <p><strong><span style="color:#E53333;"><br /></span></strong></p>
@@ -499,7 +476,7 @@ function handleNoticeInfo() {
         `;
         rspData.data.content = content;
         rspData.data.relationList = relationList;
-
+        rspData.data.title = '欢迎来到神秘空间';
         gRetBody = rspData;
     }
 }