王琪诚

【任务】TAPD#

功能详情 朋友圈
配置文件 否
提交作者 QiCheng.Wang
评审人员
1 -fileFormatVersion: 2  
2 -guid: ce5f72d4c8ab3410daab0b3b9b105c7a  
3 -TextureImporter:  
4 - internalIDToNameTable: []  
5 - externalObjects: {}  
6 - serializedVersion: 13  
7 - mipmaps:  
8 - mipMapMode: 0  
9 - enableMipMap: 0  
10 - sRGBTexture: 1  
11 - linearTexture: 0  
12 - fadeOut: 0  
13 - borderMipMap: 0  
14 - mipMapsPreserveCoverage: 0  
15 - alphaTestReferenceValue: 0.5  
16 - mipMapFadeDistanceStart: 1  
17 - mipMapFadeDistanceEnd: 3  
18 - bumpmap:  
19 - convertToNormalMap: 0  
20 - externalNormalMap: 0  
21 - heightScale: 0.25  
22 - normalMapFilter: 0  
23 - flipGreenChannel: 0  
24 - isReadable: 0  
25 - streamingMipmaps: 0  
26 - streamingMipmapsPriority: 0  
27 - vTOnly: 0  
28 - ignoreMipmapLimit: 0  
29 - grayScaleToAlpha: 0  
30 - generateCubemap: 6  
31 - cubemapConvolution: 0  
32 - seamlessCubemap: 0  
33 - textureFormat: 1  
34 - maxTextureSize: 2048  
35 - textureSettings:  
36 - serializedVersion: 2  
37 - filterMode: 1  
38 - aniso: 1  
39 - mipBias: 0  
40 - wrapU: 1  
41 - wrapV: 1  
42 - wrapW: 0  
43 - nPOTScale: 0  
44 - lightmap: 0  
45 - compressionQuality: 50  
46 - spriteMode: 1  
47 - spriteExtrude: 1  
48 - spriteMeshType: 1  
49 - alignment: 0  
50 - spritePivot: {x: 0.5, y: 0.5}  
51 - spritePixelsToUnits: 100  
52 - spriteBorder: {x: 0, y: 0, z: 0, w: 0}  
53 - spriteGenerateFallbackPhysicsShape: 1  
54 - alphaUsage: 1  
55 - alphaIsTransparency: 1  
56 - spriteTessellationDetail: -1  
57 - textureType: 8  
58 - textureShape: 1  
59 - singleChannelComponent: 0  
60 - flipbookRows: 1  
61 - flipbookColumns: 1  
62 - maxTextureSizeSet: 0  
63 - compressionQualitySet: 0  
64 - textureFormatSet: 0  
65 - ignorePngGamma: 0  
66 - applyGammaDecoding: 0  
67 - swizzle: 50462976  
68 - cookieLightType: 0  
69 - platformSettings:  
70 - - serializedVersion: 3  
71 - buildTarget: DefaultTexturePlatform  
72 - maxTextureSize: 2048  
73 - resizeAlgorithm: 0  
74 - textureFormat: -1  
75 - textureCompression: 1  
76 - compressionQuality: 50  
77 - crunchedCompression: 0  
78 - allowsAlphaSplitting: 0  
79 - overridden: 0  
80 - ignorePlatformSupport: 0  
81 - androidETC2FallbackOverride: 0  
82 - forceMaximumCompressionQuality_BC6H_BC7: 0  
83 - - serializedVersion: 3  
84 - buildTarget: Standalone  
85 - maxTextureSize: 2048  
86 - resizeAlgorithm: 0  
87 - textureFormat: -1  
88 - textureCompression: 1  
89 - compressionQuality: 50  
90 - crunchedCompression: 0  
91 - allowsAlphaSplitting: 0  
92 - overridden: 0  
93 - ignorePlatformSupport: 0  
94 - androidETC2FallbackOverride: 0  
95 - forceMaximumCompressionQuality_BC6H_BC7: 0  
96 - - serializedVersion: 3  
97 - buildTarget: Android  
98 - maxTextureSize: 2048  
99 - resizeAlgorithm: 0  
100 - textureFormat: -1  
101 - textureCompression: 1  
102 - compressionQuality: 50  
103 - crunchedCompression: 0  
104 - allowsAlphaSplitting: 0  
105 - overridden: 0  
106 - ignorePlatformSupport: 0  
107 - androidETC2FallbackOverride: 0  
108 - forceMaximumCompressionQuality_BC6H_BC7: 0  
109 - spriteSheet:  
110 - serializedVersion: 2  
111 - sprites: []  
112 - outline: []  
113 - physicsShape: []  
114 - bones: []  
115 - spriteID: 5e97eb03825dee720800000000000000  
116 - internalID: 0  
117 - vertices: []  
118 - indices:  
119 - edges: []  
120 - weights: []  
121 - secondaryTextures: []  
122 - nameFileIdTable: {}  
123 - mipmapLimitGroupName:  
124 - pSDRemoveMatte: 0  
125 - userData:  
126 - assetBundleName:  
127 - assetBundleVariant:  

17.4 KB | W: | H:

4.06 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
1 fileFormatVersion: 2 1 fileFormatVersion: 2
2 -guid: 1801f1702060e4b92b6829f0e202205c 2 +guid: 9803114844fec4dd681443abb0aeecd3
3 TextureImporter: 3 TextureImporter:
4 internalIDToNameTable: [] 4 internalIDToNameTable: []
5 externalObjects: {} 5 externalObjects: {}
@@ -946,8 +946,8 @@ RectTransform: @@ -946,8 +946,8 @@ RectTransform:
946 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 946 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
947 m_AnchorMin: {x: 0, y: 1} 947 m_AnchorMin: {x: 0, y: 1}
948 m_AnchorMax: {x: 0, y: 1} 948 m_AnchorMax: {x: 0, y: 1}
949 - m_AnchoredPosition: {x: 800, y: -493.58002}  
950 - m_SizeDelta: {x: 1160, y: 187.16} 949 + m_AnchoredPosition: {x: 800, y: -490}
  950 + m_SizeDelta: {x: 1160, y: 180}
951 m_Pivot: {x: 0.5, y: 0.5} 951 m_Pivot: {x: 0.5, y: 0.5}
952 --- !u!114 &637033553 952 --- !u!114 &637033553
953 MonoBehaviour: 953 MonoBehaviour:
@@ -969,7 +969,7 @@ MonoBehaviour: @@ -969,7 +969,7 @@ MonoBehaviour:
969 m_OnCullStateChanged: 969 m_OnCullStateChanged:
970 m_PersistentCalls: 970 m_PersistentCalls:
971 m_Calls: [] 971 m_Calls: []
972 - m_Sprite: {fileID: 21300000, guid: 1801f1702060e4b92b6829f0e202205c, type: 3} 972 + m_Sprite: {fileID: 21300000, guid: 9803114844fec4dd681443abb0aeecd3, type: 3}
973 m_Type: 0 973 m_Type: 0
974 m_PreserveAspect: 0 974 m_PreserveAspect: 0
975 m_FillCenter: 1 975 m_FillCenter: 1
@@ -1250,7 +1250,7 @@ RectTransform: @@ -1250,7 +1250,7 @@ RectTransform:
1250 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1250 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1251 m_AnchorMin: {x: 0, y: 1} 1251 m_AnchorMin: {x: 0, y: 1}
1252 m_AnchorMax: {x: 0, y: 1} 1252 m_AnchorMax: {x: 0, y: 1}
1253 - m_AnchoredPosition: {x: 800, y: -1267.16} 1253 + m_AnchoredPosition: {x: 800, y: -1260}
1254 m_SizeDelta: {x: 1160, y: 1160} 1254 m_SizeDelta: {x: 1160, y: 1160}
1255 m_Pivot: {x: 0.5, y: 0.5} 1255 m_Pivot: {x: 0.5, y: 0.5}
1256 --- !u!114 &936019490 1256 --- !u!114 &936019490
@@ -1387,8 +1387,8 @@ RectTransform: @@ -1387,8 +1387,8 @@ RectTransform:
1387 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1387 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1388 m_AnchorMin: {x: 0, y: 0} 1388 m_AnchorMin: {x: 0, y: 0}
1389 m_AnchorMax: {x: 1, y: 1} 1389 m_AnchorMax: {x: 1, y: 1}
1390 - m_AnchoredPosition: {x: -4.5444946, y: 19.693}  
1391 - m_SizeDelta: {x: -57.5638, y: -75.7418} 1390 + m_AnchoredPosition: {x: 0, y: 20}
  1391 + m_SizeDelta: {x: -39.999992, y: -80}
1392 m_Pivot: {x: 0.5, y: 0.5} 1392 m_Pivot: {x: 0.5, y: 0.5}
1393 --- !u!114 &990358363 1393 --- !u!114 &990358363
1394 MonoBehaviour: 1394 MonoBehaviour:
@@ -1519,9 +1519,9 @@ RectTransform: @@ -1519,9 +1519,9 @@ RectTransform:
1519 m_Children: [] 1519 m_Children: []
1520 m_Father: {fileID: 936019489} 1520 m_Father: {fileID: 936019489}
1521 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1521 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1522 - m_AnchorMin: {x: 1, y: 1}  
1523 - m_AnchorMax: {x: 1, y: 1}  
1524 - m_AnchoredPosition: {x: -144, y: -139} 1522 + m_AnchorMin: {x: 1, y: 0}
  1523 + m_AnchorMax: {x: 1, y: 0}
  1524 + m_AnchoredPosition: {x: -154, y: 193}
1525 m_SizeDelta: {x: 230, y: 195} 1525 m_SizeDelta: {x: 230, y: 195}
1526 m_Pivot: {x: 0.5, y: 0.5} 1526 m_Pivot: {x: 0.5, y: 0.5}
1527 --- !u!114 &1015053101 1527 --- !u!114 &1015053101
@@ -2218,7 +2218,7 @@ RectTransform: @@ -2218,7 +2218,7 @@ RectTransform:
2218 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 2218 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2219 m_AnchorMin: {x: 0, y: 1} 2219 m_AnchorMin: {x: 0, y: 1}
2220 m_AnchorMax: {x: 0, y: 1} 2220 m_AnchorMax: {x: 0, y: 1}
2221 - m_AnchoredPosition: {x: 82, y: -135} 2221 + m_AnchoredPosition: {x: 60, y: -135}
2222 m_SizeDelta: {x: 31, y: 58} 2222 m_SizeDelta: {x: 31, y: 58}
2223 m_Pivot: {x: 0.5, y: 0.5} 2223 m_Pivot: {x: 0.5, y: 0.5}
2224 --- !u!114 &1345160285 2224 --- !u!114 &1345160285
@@ -2529,8 +2529,8 @@ RectTransform: @@ -2529,8 +2529,8 @@ RectTransform:
2529 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 2529 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2530 m_AnchorMin: {x: 0.5, y: 0.5} 2530 m_AnchorMin: {x: 0.5, y: 0.5}
2531 m_AnchorMax: {x: 0.5, y: 0.5} 2531 m_AnchorMax: {x: 0.5, y: 0.5}
2532 - m_AnchoredPosition: {x: -0.000061035, y: 0}  
2533 - m_SizeDelta: {x: 1080, y: 600} 2532 + m_AnchoredPosition: {x: -4.7269, y: -245}
  2533 + m_SizeDelta: {x: 1500, y: 300}
2534 m_Pivot: {x: 0.5, y: 0.5} 2534 m_Pivot: {x: 0.5, y: 0.5}
2535 --- !u!114 &1475588210 2535 --- !u!114 &1475588210
2536 MonoBehaviour: 2536 MonoBehaviour:
@@ -2681,9 +2681,9 @@ RectTransform: @@ -2681,9 +2681,9 @@ RectTransform:
2681 m_Children: [] 2681 m_Children: []
2682 m_Father: {fileID: 936019489} 2682 m_Father: {fileID: 936019489}
2683 m_LocalEulerAnglesHint: {x: 0, y: 0, z: -5} 2683 m_LocalEulerAnglesHint: {x: 0, y: 0, z: -5}
2684 - m_AnchorMin: {x: 1, y: 1}  
2685 - m_AnchorMax: {x: 1, y: 1}  
2686 - m_AnchoredPosition: {x: -165, y: -273} 2684 + m_AnchorMin: {x: 1, y: 0}
  2685 + m_AnchorMax: {x: 1, y: 0}
  2686 + m_AnchoredPosition: {x: -166, y: 58}
2687 m_SizeDelta: {x: 241, y: 81} 2687 m_SizeDelta: {x: 241, y: 81}
2688 m_Pivot: {x: 0.5, y: 0.5} 2688 m_Pivot: {x: 0.5, y: 0.5}
2689 --- !u!114 &1480902997 2689 --- !u!114 &1480902997
@@ -3,6 +3,7 @@ using UnityEngine.UI; @@ -3,6 +3,7 @@ using UnityEngine.UI;
3 using TMPro; 3 using TMPro;
4 using System.Collections; 4 using System.Collections;
5 using System.Collections.Generic; 5 using System.Collections.Generic;
  6 +using System.Linq;
6 7
7 public class DanmakuManager : MonoBehaviour 8 public class DanmakuManager : MonoBehaviour
8 { 9 {
@@ -95,25 +96,53 @@ public class DanmakuManager : MonoBehaviour @@ -95,25 +96,53 @@ public class DanmakuManager : MonoBehaviour
95 GameObject obj = Instantiate(danmakuPrefab, danmakuPanel); 96 GameObject obj = Instantiate(danmakuPrefab, danmakuPanel);
96 var tmp = obj.GetComponent<TextMeshProUGUI>(); 97 var tmp = obj.GetComponent<TextMeshProUGUI>();
97 tmp.text = text; 98 tmp.text = text;
98 - 99 +
99 RectTransform rt = obj.GetComponent<RectTransform>(); 100 RectTransform rt = obj.GetComponent<RectTransform>();
100 float panelHeight = danmakuPanel.rect.height; 101 float panelHeight = danmakuPanel.rect.height;
101 - 102 +
102 // 随机 Y 坐标(在整个 panel 高度范围内) 103 // 随机 Y 坐标(在整个 panel 高度范围内)
103 - float randomY = Random.Range(-panelHeight / 2f, panelHeight / 2f); 104 + // 获取随机 Y 坐标,确保与上次相差至少 30
  105 + float randomY = GetRandomY(panelHeight, 30f);
104 rt.anchoredPosition = new Vector2(danmakuPanel.rect.width, randomY); 106 rt.anchoredPosition = new Vector2(danmakuPanel.rect.width, randomY);
105 - 107 +
106 float width = tmp.preferredWidth; 108 float width = tmp.preferredWidth;
107 - 109 +
108 // 向左移动直到超出屏幕 110 // 向左移动直到超出屏幕
109 while (rt.anchoredPosition.x > -width) 111 while (rt.anchoredPosition.x > -width)
110 { 112 {
111 rt.anchoredPosition += Vector2.left * speed * Time.deltaTime; 113 rt.anchoredPosition += Vector2.left * speed * Time.deltaTime;
112 yield return null; 114 yield return null;
113 } 115 }
114 - 116 +
115 Destroy(obj); 117 Destroy(obj);
116 } 118 }
  119 +
  120 + // 记录最近的 4 个 Y 坐标
  121 + Queue<float> lastYList = new Queue<float>();
  122 + int maxTrackCount = 4; // 记录最近的 4 个 Y 坐标
  123 +
  124 + float GetRandomY(float panelHeight, float minDifference)
  125 + {
  126 + float randomY = Random.Range(-panelHeight / 2f, panelHeight / 2f);
  127 +
  128 + // 检查与历史记录中的 Y 坐标差是否小于 minDifference
  129 + while (lastYList.Any(y => Mathf.Abs(randomY - y) < minDifference))
  130 + {
  131 + randomY = Random.Range(-panelHeight / 2f, panelHeight / 2f);
  132 + }
  133 +
  134 + // 更新 Y 坐标历史记录
  135 + if (lastYList.Count >= maxTrackCount)
  136 + {
  137 + lastYList.Dequeue(); // 移除最旧的 Y 坐标
  138 + }
  139 + lastYList.Enqueue(randomY); // 添加当前生成的 Y 坐标到队列
  140 +
  141 + return randomY;
  142 + }
  143 +
  144 +
  145 +
117 146
118 147
119 } 148 }
@@ -39,11 +39,9 @@ public class ImageViewerManager : MonoBehaviour @@ -39,11 +39,9 @@ public class ImageViewerManager : MonoBehaviour
39 { 39 {
40 40
41 int initHeight = 180; 41 int initHeight = 180;
42 - float wordWidth = 40f; // 每字宽度  
43 - float wordsPerLine = 1160 / wordWidth;  
44 42
45 int lineHeight = 75; // 每行高 43 int lineHeight = 75; // 每行高
46 - int totalLines = Mathf.CeilToInt(content.Length / wordsPerLine); 44 + int totalLines = Mathf.CeilToInt(content.Length / 30f);//每行30个字数
47 45
48 int contentBgHeight = totalLines * lineHeight; 46 int contentBgHeight = totalLines * lineHeight;
49 47
@@ -163,6 +163,9 @@ public class MomentItem : MonoBehaviour @@ -163,6 +163,9 @@ public class MomentItem : MonoBehaviour
163 163
164 StartCoroutine(ImageLoader.LoadImage(moment.avatarUrl, avatarImage)); 164 StartCoroutine(ImageLoader.LoadImage(moment.avatarUrl, avatarImage));
165 165
  166 + //引导点赞动画
  167 + likeIconImage.transform.DOScale(0.8f, 2f).SetLoops(-1, LoopType.Yoyo).SetEase(Ease.InOutSine);
  168 +
166 Button likeIconBtn = likeIconImage.GetComponent<Button>(); 169 Button likeIconBtn = likeIconImage.GetComponent<Button>();
167 likeIconBtn.onClick.AddListener(() => 170 likeIconBtn.onClick.AddListener(() =>
168 { 171 {
@@ -210,14 +213,16 @@ public class MomentItem : MonoBehaviour @@ -210,14 +213,16 @@ public class MomentItem : MonoBehaviour
210 showBig.GetComponent<TextMeshProUGUI>().fontStyle = FontStyles.Bold; 213 showBig.GetComponent<TextMeshProUGUI>().fontStyle = FontStyles.Bold;
211 214
212 //2.修改文字位置 215 //2.修改文字位置
213 - showBig.GetComponent<RectTransform>().anchoredPosition = new Vector2(463, -125); 216 + showBig.GetComponent<RectTransform>().anchoredPosition = new Vector2(168, -416);
214 217
215 } 218 }
216 219
217 Image img = imgObj.GetComponent<Image>(); 220 Image img = imgObj.GetComponent<Image>();
  221 + //缩略图和大图不一样,第一次LoadImage只为了预下载大图片
218 StartCoroutine(ImageLoader.LoadImage(url, img)); 222 StartCoroutine(ImageLoader.LoadImage(url, img));
  223 + StartCoroutine(ImageLoader.LoadImage(AddSuffixBeforeExtension(url,"-s"), img));
219 Transform child = imgObj.transform.GetChild(0); 224 Transform child = imgObj.transform.GetChild(0);
220 - child.DOScale(1.3f, 2f).SetLoops(-1, LoopType.Yoyo).SetEase(Ease.InOutSine); 225 + child.DOScale(1.5f, 2f).SetLoops(-1, LoopType.Yoyo).SetEase(Ease.InOutSine);
221 226
222 Button btn = imgObj.GetComponent<Button>(); 227 Button btn = imgObj.GetComponent<Button>();
223 btn.onClick.AddListener(() => ImageViewerManager.Instance.ShowImage(url,moment.text,logo,moment.time)); 228 btn.onClick.AddListener(() => ImageViewerManager.Instance.ShowImage(url,moment.text,logo,moment.time));
@@ -225,8 +230,9 @@ public class MomentItem : MonoBehaviour @@ -225,8 +230,9 @@ public class MomentItem : MonoBehaviour
225 230
226 GridLayoutGroup gridLayout = imageGrid.GetComponent<GridLayoutGroup>(); 231 GridLayoutGroup gridLayout = imageGrid.GetComponent<GridLayoutGroup>();
227 232
  233 + var row = (int)Math.Ceiling((double)moment.imageUrls.Count / gridLayout.constraintCount);
228 //一行两张图片,计算有几行 234 //一行两张图片,计算有几行
229 - momentHeight+= (int)Math.Ceiling((double)moment.imageUrls.Count / gridLayout.constraintCount) * (int)gridLayout.cellSize.y; 235 + momentHeight+= row * (int)gridLayout.cellSize.y;
230 236
231 237
232 238
@@ -279,6 +285,9 @@ public class MomentItem : MonoBehaviour @@ -279,6 +285,9 @@ public class MomentItem : MonoBehaviour
279 color.a = 1f; 285 color.a = 1f;
280 mascot.color = color; 286 mascot.color = color;
281 StartCoroutine(ImageLoader.LoadImage(moment.mascot, mascot)); 287 StartCoroutine(ImageLoader.LoadImage(moment.mascot, mascot));
  288 + //吉祥物y轴坐标
  289 + mascot.GetComponent<RectTransform>().localPosition = new Vector2(200, 240-120*row);
  290 +
282 } 291 }
283 292
284 293
@@ -440,5 +449,17 @@ public class MomentItem : MonoBehaviour @@ -440,5 +449,17 @@ public class MomentItem : MonoBehaviour
440 Debug.Log($"更新 GridLayout:图片数量={imageCount},列数={constraintCount},cellSize={cellSize}"); 449 Debug.Log($"更新 GridLayout:图片数量={imageCount},列数={constraintCount},cellSize={cellSize}");
441 } 450 }
442 451
  452 +
  453 + public string AddSuffixBeforeExtension(string url, string suffix)
  454 + {
  455 + int lastDotIndex = url.LastIndexOf('.');
  456 + if (lastDotIndex == -1) return url; // 没有扩展名
  457 +
  458 + string prefix = url.Substring(0, lastDotIndex);
  459 + string extension = url.Substring(lastDotIndex); // 包含点
  460 +
  461 + return $"{prefix}{suffix}{extension}";
  462 + }
  463 +
443 464
444 } 465 }
@@ -27,14 +27,13 @@ public class MomentManager : MonoBehaviour @@ -27,14 +27,13 @@ public class MomentManager : MonoBehaviour
27 //设定底部图片高度 27 //设定底部图片高度
28 float bottomHeight = 400f; 28 float bottomHeight = 400f;
29 29
30 - 30 + //记录第几条朋友圈,埋点用
  31 + int momentCount = 0;
31 foreach (var moment in data.moments) 32 foreach (var moment in data.moments)
32 { 33 {
33 - //记录第几条朋友圈,埋点用  
34 - int momentCount = 1;  
35 GameObject item = Instantiate(momentPrefab, contentParent); 34 GameObject item = Instantiate(momentPrefab, contentParent);
36 35
37 - int momentHeight = item.GetComponent<MomentItem>().Setup(moment,data.likeList,data.likeIcon,data.logo,momentCount++); 36 + int momentHeight = item.GetComponent<MomentItem>().Setup(moment,data.likeList,data.likeIcon,data.logo,++momentCount);
38 37
39 RectTransform momentRt = item.GetComponent<RectTransform>(); 38 RectTransform momentRt = item.GetComponent<RectTransform>();
40 momentRt.sizeDelta = new Vector2(momentRt.sizeDelta.x, momentHeight); 39 momentRt.sizeDelta = new Vector2(momentRt.sizeDelta.x, momentHeight);
@@ -80,7 +80,7 @@ public class VideoViewerManager : MonoBehaviour @@ -80,7 +80,7 @@ public class VideoViewerManager : MonoBehaviour
80 //播放 80 //播放
81 videoPlayer.Play(); 81 videoPlayer.Play();
82 //发送弹幕(横屏) 82 //发送弹幕(横屏)
83 - danmakuManager.AddDanmakuBatch(moment.videoDanmakuList,0.4f,1); 83 + danmakuManager.AddDanmakuBatch(moment.videoDanmakuList,2f,1);
84 //视频点赞人头像 84 //视频点赞人头像
85 StartCoroutine(ImageLoader.LoadImage(moment.videoLikeHeadImg, likeHeadImage)); 85 StartCoroutine(ImageLoader.LoadImage(moment.videoLikeHeadImg, likeHeadImage));
86 //视频点赞人列表 86 //视频点赞人列表
@@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
4 4
5 "License": "0172fEGc1h+U6G6tejxODIMtLMsW8B6KmeoSqdZPjxv6eEqsWhnCuNwv39983YD5r9b1a1YhrTq+qf9RhTM5mlEhVZSqh0FH4d3U9JVHs2BrsZ/2ANPx6RcpnJ41h8PasJQeFm3EXtSY6VciQ79U3QmrX7FkmPNwhXmzc20VkMg=", 5 "License": "0172fEGc1h+U6G6tejxODIMtLMsW8B6KmeoSqdZPjxv6eEqsWhnCuNwv39983YD5r9b1a1YhrTq+qf9RhTM5mlEhVZSqh0FH4d3U9JVHs2BrsZ/2ANPx6RcpnJ41h8PasJQeFm3EXtSY6VciQ79U3QmrX7FkmPNwhXmzc20VkMg=",
6 6
7 - "AppId": "cy672066fd24504yib",  
8 - "AppSecret": "cfd2ea641f2335a4c1e3878901b9c87b", 7 + "AppId": "cy6a987ed8387d7zrh",
  8 + "AppSecret": "zrh343c4e5a6a66346v8v903v5h6dda2",
9 9
10 10
11 "BuryServer": "https://findart-pre.edcc.cn/gateway/main-api/api/buryPoint/createReturnCount", 11 "BuryServer": "https://findart-pre.edcc.cn/gateway/main-api/api/buryPoint/createReturnCount",
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 "from": "来自:火星", 20 "from": "来自:火星",
21 "time": "2021年5月19日", 21 "time": "2021年5月19日",
22 "imageUrls": [ 22 "imageUrls": [
23 - "https://h5.edcc.cn/FriendCircle/image/1-1.jpg",  
24 - "https://h5.edcc.cn/FriendCircle/image/1-2.jpg" 23 + "https://h5.edcc.cn/FriendCircle/image/1-1.png",
  24 + "https://h5.edcc.cn/FriendCircle/image/1-2.png"
25 ], 25 ],
26 "likeNameList": ["天和核心舱", "天问一号环绕器","好奇号","毅力号","阿联酋希望号"], 26 "likeNameList": ["天和核心舱", "天问一号环绕器","好奇号","毅力号","阿联酋希望号"],
27 "comments": [ 27 "comments": [
@@ -54,8 +54,8 @@ @@ -54,8 +54,8 @@
54 "from": "来自:火星", 54 "from": "来自:火星",
55 "time": "2021年6月11日", 55 "time": "2021年6月11日",
56 "imageUrls": [ 56 "imageUrls": [
57 - "https://h5.edcc.cn/FriendCircle/image/3-1.jpg",  
58 - "https://h5.edcc.cn/FriendCircle/image/3-2.jpg" 57 + "https://h5.edcc.cn/FriendCircle/image/3-1.png",
  58 + "https://h5.edcc.cn/FriendCircle/image/3-2.png"
59 ], 59 ],
60 "likeNameList": ["天和核心舱", "嫦娥五号","北斗三号","玉兔二号"], 60 "likeNameList": ["天和核心舱", "嫦娥五号","北斗三号","玉兔二号"],
61 "comments": [ 61 "comments": [
@@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
73 "from": "来自:火星", 73 "from": "来自:火星",
74 "time": "2021年6月11日", 74 "time": "2021年6月11日",
75 "imageUrls": [ 75 "imageUrls": [
76 - "https://h5.edcc.cn/FriendCircle/image/4-1.jpg" 76 + "https://h5.edcc.cn/FriendCircle/image/4-1.png"
77 ], 77 ],
78 "likeNameList": ["天和核心舱", "玉兔二号","阿联酋希望号","天问一号环绕器"], 78 "likeNameList": ["天和核心舱", "玉兔二号","阿联酋希望号","天问一号环绕器"],
79 "comments": [ 79 "comments": [
@@ -84,6 +84,43 @@ @@ -84,6 +84,43 @@
84 ] 84 ]
85 }, 85 },
86 86
  87 +
  88 + {
  89 + "username": "祝融号",
  90 + "avatarUrl": "https://h5.edcc.cn/FriendCircle/image/head.png",
  91 + "text": "给大家看下我后退至着陆平台合影点时拍摄的视频吧,这是我的WIFI分离相机拍的,怎么样,还不赖吧!",
  92 + "from": "来自:火星",
  93 + "time": "2021年6月11日",
  94 + "video":"https://edcc-1313175077.cos.ap-nanjing.myqcloud.com/FriendCircle/video/zrh-play-2.mp4",
  95 + "likeNameList": ["天和核心舱", "天问一号环绕器","玉兔二号","神舟十二号"],
  96 + "videoLikeHeadImg":"https://h5.edcc.cn/FriendCircle/image/head-thhxc.png",
  97 + "videoDanmakuList":["我们的目标是星辰大海 加油中国航天","我想加微信!!","津津有味的看完朋友圈,给个好友位呗小祝融","可可爱爱的","23333333333333333","期待我们的航天朋友圈越来越大","远征星辰大海,归来仍是少年","代入感太强了,差点以为自己去火星了"],
  98 + "videoFollowCount":889,
  99 + "comments": [
  100 + { "commenter": "天和核心舱", "content": "棒棒的!仰望星空,脚踏实地!" },
  101 + { "commenter": "神舟十二号", "content":"祝融你辛苦了!" },
  102 + { "commenter": "兔子", "content": "你退半步的动作…真可爱!" }
  103 + ]
  104 + },
  105 + {
  106 + "username": "祝融号",
  107 + "avatarUrl": "https://h5.edcc.cn/FriendCircle/image/head-video.png",
  108 + "text": "忍不住发了好几条朋友圈,你们有看到吗?我还能原地转弯呢。",
  109 + "from": "来自:火星",
  110 + "time": "2021年6月11日",
  111 + "video":"https://edcc-1313175077.cos.ap-nanjing.myqcloud.com/FriendCircle/video/zrh-play-1.mp4",
  112 + "likeNameList": ["天问一号环绕器", "阿联酋希望号","北斗三号","玉兔二号"],
  113 + "videoLikeHeadImg":"https://h5.edcc.cn/FriendCircle/image/head-twyh.png",
  114 + "videoDanmakuList":["太可爱了吧!祝融外形萌萌哒!","好像两个小表情包~","天哪,我刷到了什么,太厉害了小祝融","一个人在外你要好好工作,小心照顾自己鸭","看到国旗真的很骄傲","它甚至画了个圈哈哈哈哈哈哈哈"],
  115 + "videoFollowCount":889,
  116 + "comments": [
  117 + { "commenter": "阿联酋希望号", "content": "真羡慕你。" },
  118 + { "commenter": "天问一号环绕器", "content":"注意安全,有需要我的随时联系!" },
  119 + { "commenter": "祝融号","replier": "天问一号环绕器", "content": "没问题!" },
  120 + { "commenter": "来自资阳方特的游客249", "content": "祝融真可爱,我能和你手拉手转圈圈吗?" }
  121 + ]
  122 + },
  123 +
87 { 124 {
88 "username": "祝融号", 125 "username": "祝融号",
89 "avatarUrl": "https://h5.edcc.cn/FriendCircle/image/head.png", 126 "avatarUrl": "https://h5.edcc.cn/FriendCircle/image/head.png",
@@ -92,8 +129,12 @@ @@ -92,8 +129,12 @@
92 "from": "来自:火星", 129 "from": "来自:火星",
93 "time": "2021年7月9日", 130 "time": "2021年7月9日",
94 "imageUrls": [ 131 "imageUrls": [
95 - "https://h5.edcc.cn/FriendCircle/image/5-1.jpg",  
96 - "https://h5.edcc.cn/FriendCircle/image/5-2.png" 132 + "https://h5.edcc.cn/FriendCircle/image/5-1.png",
  133 + "https://h5.edcc.cn/FriendCircle/image/3-1.png",
  134 + "https://h5.edcc.cn/FriendCircle/image/6-1.png",
  135 + "https://h5.edcc.cn/FriendCircle/image/5-2.png",
  136 + "https://h5.edcc.cn/FriendCircle/image/7-1.png",
  137 + "https://h5.edcc.cn/FriendCircle/image/8-1.png"
97 ], 138 ],
98 "likeNameList": ["玉兔二号", "天问一号环绕器","天和核心舱","嫦娥五号"], 139 "likeNameList": ["玉兔二号", "天问一号环绕器","天和核心舱","嫦娥五号"],
99 "comments": [ 140 "comments": [
@@ -110,7 +151,7 @@ @@ -110,7 +151,7 @@
110 "from": "来自:火星", 151 "from": "来自:火星",
111 "time": "2021年7月15日", 152 "time": "2021年7月15日",
112 "imageUrls": [ 153 "imageUrls": [
113 - "https://h5.edcc.cn/FriendCircle/image/6-1.jpg" 154 + "https://h5.edcc.cn/FriendCircle/image/6-1.png"
114 ], 155 ],
115 "likeNameList": ["天和核心舱", "玉兔二号","北斗三号","神舟十二号"], 156 "likeNameList": ["天和核心舱", "玉兔二号","北斗三号","神舟十二号"],
116 "comments": [ 157 "comments": [
@@ -147,7 +188,7 @@ @@ -147,7 +188,7 @@
147 "from": "来自:火星", 188 "from": "来自:火星",
148 "time": "2021年7月30日", 189 "time": "2021年7月30日",
149 "imageUrls": [ 190 "imageUrls": [
150 - "https://h5.edcc.cn/FriendCircle/image/8-1.jpg" 191 + "https://h5.edcc.cn/FriendCircle/image/8-1.png"
151 ], 192 ],
152 "likeNameList": ["玉兔二号", "天问一号环绕器"], 193 "likeNameList": ["玉兔二号", "天问一号环绕器"],
153 "comments": [ 194 "comments": [
@@ -165,7 +206,7 @@ @@ -165,7 +206,7 @@
165 "from": "来自:火星", 206 "from": "来自:火星",
166 "time": "2021年8月6日", 207 "time": "2021年8月6日",
167 "imageUrls": [ 208 "imageUrls": [
168 - "https://h5.edcc.cn/FriendCircle/image/9-1.jpg" 209 + "https://h5.edcc.cn/FriendCircle/image/9-1.png"
169 ], 210 ],
170 "likeNameList": ["天和核心舱", "玉兔二号","北斗三号","神舟十二号"], 211 "likeNameList": ["天和核心舱", "玉兔二号","北斗三号","神舟十二号"],
171 "comments": [ 212 "comments": [
@@ -184,7 +225,7 @@ @@ -184,7 +225,7 @@
184 "from": "来自:火星", 225 "from": "来自:火星",
185 "time": "2021年8月15日", 226 "time": "2021年8月15日",
186 "imageUrls": [ 227 "imageUrls": [
187 - "https://h5.edcc.cn/FriendCircle/image/10-1.jpg" 228 + "https://h5.edcc.cn/FriendCircle/image/10-1.png"
188 ], 229 ],
189 "likeNameList": ["天和核心舱", "天问一号环绕器","玉兔二号","嫦娥五号","北斗三号"], 230 "likeNameList": ["天和核心舱", "天问一号环绕器","玉兔二号","嫦娥五号","北斗三号"],
190 "comments": [ 231 "comments": [
@@ -196,43 +237,6 @@ @@ -196,43 +237,6 @@
196 { "commenter": "来自资阳方特的游客743", "content":"热烈庆祝祝融完成任务,棒棒哒!" }, 237 { "commenter": "来自资阳方特的游客743", "content":"热烈庆祝祝融完成任务,棒棒哒!" },
197 { "commenter": "来自资阳方特的游客111", "content":"别忘了更新朋友圈哦,我们等你~" } 238 { "commenter": "来自资阳方特的游客111", "content":"别忘了更新朋友圈哦,我们等你~" }
198 ] 239 ]
199 - },  
200 -  
201 -  
202 - {  
203 - "username": "祝融号",  
204 - "avatarUrl": "https://h5.edcc.cn/FriendCircle/image/head.png",  
205 - "text": "给大家看下我后退至着陆平台合影点时拍摄的视频吧,这是我的WIFI分离相机拍的,怎么样,还不赖吧!",  
206 - "from": "来自:火星",  
207 - "time": "2021年6月11日",  
208 - "video":"https://edcc-1313175077.cos.ap-nanjing.myqcloud.com/FriendCircle/video/zrh-play-2.mp4",  
209 - "likeNameList": ["天和核心舱", "天问一号环绕器","玉兔二号","神舟十二号"],  
210 - "videoLikeHeadImg":"https://h5.edcc.cn/FriendCircle/image/head-thhxc.png",  
211 - "videoDanmakuList":["棒棒的!仰望星空,脚踏实地!","祝融你辛苦了!","你退半步的动作…真可爱!"],  
212 - "videoFollowCount":889,  
213 - "comments": [  
214 - { "commenter": "天和核心舱", "content": "棒棒的!仰望星空,脚踏实地!" },  
215 - { "commenter": "神舟十二号", "content":"祝融你辛苦了!" },  
216 - { "commenter": "兔子", "content": "你退半步的动作…真可爱!" }  
217 - ]  
218 - },  
219 - {  
220 - "username": "祝融号",  
221 - "avatarUrl": "https://h5.edcc.cn/FriendCircle/image/head-video.png",  
222 - "text": "忍不住发了好几条朋友圈,你们有看到吗?我还能原地转弯呢。",  
223 - "from": "来自:火星",  
224 - "time": "2021年6月11日",  
225 - "video":"https://edcc-1313175077.cos.ap-nanjing.myqcloud.com/FriendCircle/video/zrh-play-1.mp4",  
226 - "likeNameList": ["天问一号环绕器", "阿联酋希望号","北斗三号","玉兔二号"],  
227 - "videoLikeHeadImg":"https://h5.edcc.cn/FriendCircle/image/head-twyh.png",  
228 - "videoDanmakuList":["真羡慕你。","注意安全,有需要我的随时联系!","祝融真可爱,我能和你手拉手转圈圈吗?"],  
229 - "videoFollowCount":889,  
230 - "comments": [  
231 - { "commenter": "阿联酋希望号", "content": "真羡慕你。" },  
232 - { "commenter": "天问一号环绕器", "content":"注意安全,有需要我的随时联系!" },  
233 - { "commenter": "祝融号","replier": "天问一号环绕器", "content": "没问题!" },  
234 - { "commenter": "来自资阳方特的游客249", "content": "祝融真可爱,我能和你手拉手转圈圈吗?" }  
235 - ]  
236 } 240 }
237 ] 241 ]
238 } 242 }
@@ -34,7 +34,7 @@ RectTransform: @@ -34,7 +34,7 @@ RectTransform:
34 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
35 m_AnchorMin: {x: 1, y: 1} 35 m_AnchorMin: {x: 1, y: 1}
36 m_AnchorMax: {x: 1, y: 1} 36 m_AnchorMax: {x: 1, y: 1}
37 - m_AnchoredPosition: {x: -6.9000244, y: -6.899994} 37 + m_AnchoredPosition: {x: -7, y: -7}
38 m_SizeDelta: {x: 34, y: 34} 38 m_SizeDelta: {x: 34, y: 34}
39 m_Pivot: {x: 0.5, y: 0.5} 39 m_Pivot: {x: 0.5, y: 0.5}
40 --- !u!222 &3223530670795770311 40 --- !u!222 &3223530670795770311
@@ -110,10 +110,10 @@ RectTransform: @@ -110,10 +110,10 @@ RectTransform:
110 - {fileID: 296920198042450723} 110 - {fileID: 296920198042450723}
111 m_Father: {fileID: 0} 111 m_Father: {fileID: 0}
112 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 112 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
113 - m_AnchorMin: {x: 0, y: 1}  
114 - m_AnchorMax: {x: 0, y: 1}  
115 - m_AnchoredPosition: {x: 592, y: -8.21254}  
116 - m_SizeDelta: {x: 1184, y: 0} 113 + m_AnchorMin: {x: 0, y: 0}
  114 + m_AnchorMax: {x: 0, y: 0}
  115 + m_AnchoredPosition: {x: 0, y: 0}
  116 + m_SizeDelta: {x: 0, y: 0}
117 m_Pivot: {x: 0.5, y: 0.5} 117 m_Pivot: {x: 0.5, y: 0.5}
118 --- !u!222 &8258245351667441550 118 --- !u!222 &8258245351667441550
119 CanvasRenderer: 119 CanvasRenderer:
@@ -229,10 +229,10 @@ RectTransform: @@ -229,10 +229,10 @@ RectTransform:
229 m_Children: [] 229 m_Children: []
230 m_Father: {fileID: 5246899428302526591} 230 m_Father: {fileID: 5246899428302526591}
231 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 231 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
232 - m_AnchorMin: {x: 0.5, y: 0.5}  
233 - m_AnchorMax: {x: 0.5, y: 0.5}  
234 - m_AnchoredPosition: {x: 163.53955, y: 246.91016}  
235 - m_SizeDelta: {x: 258.921, y: 40.1797} 232 + m_AnchorMin: {x: 1, y: 1}
  233 + m_AnchorMax: {x: 1, y: 1}
  234 + m_AnchoredPosition: {x: -136, y: -44}
  235 + m_SizeDelta: {x: 258.92102, y: 40.179688}
236 m_Pivot: {x: 0.5, y: 0.5} 236 m_Pivot: {x: 0.5, y: 0.5}
237 --- !u!222 &6887169389527665301 237 --- !u!222 &6887169389527665301
238 CanvasRenderer: 238 CanvasRenderer:
@@ -295,7 +295,7 @@ MonoBehaviour: @@ -295,7 +295,7 @@ MonoBehaviour:
295 m_enableAutoSizing: 0 295 m_enableAutoSizing: 0
296 m_fontSizeMin: 18 296 m_fontSizeMin: 18
297 m_fontSizeMax: 72 297 m_fontSizeMax: 72
298 - m_fontStyle: 0 298 + m_fontStyle: 1
299 m_HorizontalAlignment: 1 299 m_HorizontalAlignment: 1
300 m_VerticalAlignment: 256 300 m_VerticalAlignment: 256
301 m_textAlignment: 65535 301 m_textAlignment: 65535
@@ -2284,9 +2284,9 @@ RectTransform: @@ -2284,9 +2284,9 @@ RectTransform:
2284 m_Children: [] 2284 m_Children: []
2285 m_Father: {fileID: 5112969456787946611} 2285 m_Father: {fileID: 5112969456787946611}
2286 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 2286 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2287 - m_AnchorMin: {x: 0, y: 1}  
2288 - m_AnchorMax: {x: 0, y: 1}  
2289 - m_AnchoredPosition: {x: 1000, y: -632} 2287 + m_AnchorMin: {x: 0.5, y: 0.5}
  2288 + m_AnchorMax: {x: 0.5, y: 0.5}
  2289 + m_AnchoredPosition: {x: 200, y: 120}
2290 m_SizeDelta: {x: 625, y: 550} 2290 m_SizeDelta: {x: 625, y: 550}
2291 m_Pivot: {x: 0.5, y: 0.5} 2291 m_Pivot: {x: 0.5, y: 0.5}
2292 --- !u!222 &3865688454199028610 2292 --- !u!222 &3865688454199028610
@@ -2451,8 +2451,8 @@ MonoBehaviour: @@ -2451,8 +2451,8 @@ MonoBehaviour:
2451 m_Name: 2451 m_Name:
2452 m_EditorClassIdentifier: 2452 m_EditorClassIdentifier:
2453 m_Padding: 2453 m_Padding:
2454 - m_Left: 5  
2455 - m_Right: 5 2454 + m_Left: 6
  2455 + m_Right: 6
2456 m_Top: 0 2456 m_Top: 0
2457 m_Bottom: 0 2457 m_Bottom: 0
2458 m_ChildAlignment: 0 2458 m_ChildAlignment: 0
@@ -2701,10 +2701,6 @@ PrefabInstance: @@ -2701,10 +2701,6 @@ PrefabInstance:
2701 serializedVersion: 3 2701 serializedVersion: 3
2702 m_TransformParent: {fileID: 1041260462946003438} 2702 m_TransformParent: {fileID: 1041260462946003438}
2703 m_Modifications: 2703 m_Modifications:
2704 - - target: {fileID: 5139666657358920150, guid: ca325bf8ed54c41479e9c7d18e457e1e, type: 3}  
2705 - propertyPath: m_fontStyle  
2706 - value: 1  
2707 - objectReference: {fileID: 0}  
2708 - target: {fileID: 5246899428302526591, guid: ca325bf8ed54c41479e9c7d18e457e1e, type: 3} 2704 - target: {fileID: 5246899428302526591, guid: ca325bf8ed54c41479e9c7d18e457e1e, type: 3}
2709 propertyPath: m_Pivot.x 2705 propertyPath: m_Pivot.x
2710 value: 0.5 2706 value: 0.5