This commit is contained in:
fengjignqi
2026-11-16 09:55:32 +08:00
parent 673eb7e59c
commit 30f272f1af
90 changed files with 4071 additions and 985 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

View File

@@ -0,0 +1,737 @@
{
"ok": true,
"data": {
"status": "success",
"project_name": "电饼铛",
"total_designs": 72,
"designs": [
{
"index": 1,
"id": "46f7431c-5f30-4d2b-af1d-81b636b3e644",
"name": "入库确认2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover7d99456c6a202e99c4b26084df5bbc20.png",
"has_comment": false,
"update_time": "2026-11-14T08:22:38.914826Z"
},
{
"index": 2,
"id": "254557e1-f9a7-4d49-aa93-f073c2789ace",
"name": "入库确认1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverdc92dd9efd6c15d99b0f8b8693fa50e3.png",
"has_comment": false,
"update_time": "2026-11-14T08:22:38.911301Z"
},
{
"index": 3,
"id": "a7c1b7e7-2595-479c-b3b0-34c2c496a974",
"name": "用户详情",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverb0aacb904fd8219ca39c8bde8651d6e0.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.856802Z"
},
{
"index": 4,
"id": "b07050a2-b8f7-421f-a96e-264a07b28252",
"name": "单位信息",
"width": 196.5,
"height": 689.5,
"url": "https://alipic.lanhuapp.com/MasterCoverfce9876cebce77d5d233d36ce6dad4e5.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.85452Z"
},
{
"index": 5,
"id": "05a3deb2-96fa-4e61-b349-f2e8a9aa5a0a",
"name": "个人中心",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover159fa5e76812b7ea8626926e2610417a.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.850371Z"
},
{
"index": 6,
"id": "ecf149fa-afe2-4426-808d-7937e5b69907",
"name": "使用手册",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover6726e5394171f6a985f322b774f2b888.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.847539Z"
},
{
"index": 7,
"id": "b1d1acea-78da-4b7b-8d19-8c1d5ee59dbf",
"name": "用户管理",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover3acc17af0c371e0e999b21a2d823f2bd.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.844259Z"
},
{
"index": 8,
"id": "edb5ee4b-ced2-455b-bdd9-78db83a92e89",
"name": "消息中心",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover7d2fdb12f09c4ee543d79c3ef42a3f7d.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.841054Z"
},
{
"index": 9,
"id": "3ee590a4-54f3-4608-8a72-83d0720d52f8",
"name": "关于/用户协议/隐私政策",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover1fedad235c7e7151effd4c905d3003e5.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.832461Z"
},
{
"index": 10,
"id": "c3d63095-fc6d-42a7-8eb1-47a6ee815d76",
"name": "客服",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover308ad39151c5637aeabdbd889f46d15f.png",
"has_comment": false,
"update_time": "2026-11-13T14:19:18.826715Z"
},
{
"index": 11,
"id": "a96d9677-d542-4814-b8ef-819bf78b445f",
"name": "商品详情1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverb3f4ef94ce54cf340125b52bc9681547.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.155493Z"
},
{
"index": 12,
"id": "b58aa011-dc68-47cf-83a9-838e5d4177cf",
"name": "语言",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover3df5e25d93ffa2a109b9d6aac6502078.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.148501Z"
},
{
"index": 13,
"id": "1224d35b-12e4-402a-8148-e3696ba1eb83",
"name": "优惠券2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover216bf0f7c23317d2e10315e979f73e98.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.143565Z"
},
{
"index": 14,
"id": "5ecb3e55-06f4-4eda-9e42-a85e859c7cb9",
"name": "已通过/已拒绝",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover4ebd0d22582410c2e8e35a9687e9121a.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.138754Z"
},
{
"index": 15,
"id": "6cae62bc-a2d4-4977-943c-b2d12a124c16",
"name": "退款2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover521b02761f64ebf160708c40ca2c94f5.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.134498Z"
},
{
"index": 16,
"id": "c3402436-6e12-48a1-b50d-8cd3ad3d21ea",
"name": "购物车3",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCovereb070cd0c806f39002e001d222a9fd75.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.129836Z"
},
{
"index": 17,
"id": "49ecbf5e-0f31-4307-b42d-1ed4cb5fbfb0",
"name": "选择自提点",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverb10a23e898fd09c5f8f0e20996194aac.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.123683Z"
},
{
"index": 18,
"id": "654b7f19-c3bd-452d-bc8d-a5d6dafd96ad",
"name": "登录2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover418ebccca5c6f371d286a55a6b1740f5.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.109456Z"
},
{
"index": 19,
"id": "aed6fc8e-60e7-4659-8b83-fa474e02b884",
"name": "登录1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverb7477df13bfb417f9a1ae3f6c86f9dc1.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.103265Z"
},
{
"index": 20,
"id": "b59c03de-552b-4328-a1c2-3c19d15871f1",
"name": "购买成功",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover804a6e9dc0ee9b85e87689664263ad06.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.095365Z"
},
{
"index": 21,
"id": "a92dc2f5-1536-4c88-935b-fb4709753957",
"name": "登录3",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover7f007dae5cc33ce3dc0730f187433d1b.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.11557Z"
},
{
"index": 22,
"id": "614d5ab2-7198-4119-a06c-027e3e1c9ca4",
"name": "登录4",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover3f0c7f54161a595529af36c9bfde2bbb.png",
"has_comment": false,
"update_time": "2026-11-13T14:15:35.119853Z"
},
{
"index": 23,
"id": "f88e202b-c19f-4c18-b049-01e65e670a4b",
"name": "设备操作",
"width": 196.5,
"height": 531.5,
"url": "https://alipic.lanhuapp.com/MasterCoverd54f31ad126d957695857ce632469ecc.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.175518Z"
},
{
"index": 24,
"id": "0615b906-e01f-4358-b85f-1c5583cef07f",
"name": "美食2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover5935cb34698fb468f6bb07a0a640dff0.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.172273Z"
},
{
"index": 25,
"id": "23f399b0-e97a-4fec-8a8c-c6d577e63e3c",
"name": "美食2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverba3b75f23fb1d6945af017090f24af5b.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.17078Z"
},
{
"index": 26,
"id": "c0928f37-8802-442d-901e-fb128711aa85",
"name": "报修工单2待处理",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover78e479374d166d5eaa2ab67fc8a101f1.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.168971Z"
},
{
"index": 27,
"id": "677727d1-9edf-4027-ad9c-7f42737f633c",
"name": "线上支付无地址",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover10bfe21c625ff73ac481ac4579e6e77e.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.167295Z"
},
{
"index": 28,
"id": "1beca6fc-692d-4b35-a4c7-4a35d0b43864",
"name": "商城",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover060e54cc9a813e9d1213be472ff26802.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.162289Z"
},
{
"index": 29,
"id": "4b53b612-b124-481e-b1a1-d3de88e0f3cf",
"name": "首页",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCovereed56315b98e9ebf019cd6427091e0df.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.160226Z"
},
{
"index": 30,
"id": "8da26fba-0813-4a48-bb3b-626ee7eb318d",
"name": "空首页",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverb71b0d283c9880ecb2e7e02773c94b66.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.158384Z"
},
{
"index": 31,
"id": "6d203861-7b82-46c9-9c5e-6cf3313481ca",
"name": "容器 132",
"width": 196.5,
"height": 30,
"url": "https://alipic.lanhuapp.com/MasterCover73b908cb42b6fd3cd7a38954dce704bc.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.15497Z"
},
{
"index": 32,
"id": "0ce134ca-b4b2-4387-85d5-3f3f8707fd26",
"name": "优惠券选择",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover5408acd82d035631a6715fc72505e2b1.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.165768Z"
},
{
"index": 33,
"id": "d4bad447-3ea9-4425-98d1-e87d9279b64e",
"name": "美食1",
"width": 196.5,
"height": 513.5,
"url": "https://alipic.lanhuapp.com/MasterCoverd0d376393599217aaa88cc44d46cd727.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.174042Z"
},
{
"index": 34,
"id": "249aa851-16ef-4f0d-9578-d98e8a9552db",
"name": "容器 133",
"width": 196.5,
"height": 30,
"url": "https://alipic.lanhuapp.com/MasterCover8fb1cc84cbfb96782762e049b223bc10.png",
"has_comment": false,
"update_time": "2026-11-12T08:42:45.156938Z"
},
{
"index": 35,
"id": "c0ce296f-2aee-4c14-ab5e-579ead6a63b8",
"name": "报修工单1待处理",
"width": 196.5,
"height": 628,
"url": "https://alipic.lanhuapp.com/MasterCoverb6bb0c77aebe2fef17f4aeded5782454.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.254605Z"
},
{
"index": 36,
"id": "edacb339-ea36-4453-b3b6-f11ea1819d29",
"name": "待发货1",
"width": 196.5,
"height": 448,
"url": "https://alipic.lanhuapp.com/MasterCoverd6764b0cf170199966b7abafd139286e.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.24977Z"
},
{
"index": 37,
"id": "a1aa32bd-db04-49ed-83c2-e3b1c5875776",
"name": "待发货2",
"width": 196.5,
"height": 429.5,
"url": "https://alipic.lanhuapp.com/MasterCoverc90fdd5600c365487db0a4fe46d84706.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.245407Z"
},
{
"index": 38,
"id": "8adbd297-9c40-4238-8190-253d5874d466",
"name": "优惠券1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover92be7879734494e25f203f345cc15726.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.242313Z"
},
{
"index": 39,
"id": "bf756850-3f7f-44bd-a2a1-aae6e3be862e",
"name": "审核中",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverde571ca99f81193fc074ffb0185643cc.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.23514Z"
},
{
"index": 40,
"id": "ec97d149-5807-447f-8614-5a6fbd9f60f1",
"name": "线下支付",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover3557c55faa275bd1e76d36f9b12e5975.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.226728Z"
},
{
"index": 41,
"id": "6e12b812-065e-4d55-8866-94a27c387c4b",
"name": "提货核销2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverf30db8d940678a555880d332ae855732.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.223251Z"
},
{
"index": 42,
"id": "3faf6217-5c8c-40e5-a320-a2ec4b4d3cb7",
"name": "首页",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverfe3fb09ce3a91b09c0be969519615c2f.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.218989Z"
},
{
"index": 43,
"id": "03f7677f-ed85-4c9b-b456-77d0a35f956c",
"name": "待收货2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverad13f0b95f356158498bc4956bb5a52d.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.233111Z"
},
{
"index": 44,
"id": "3bf5ae22-f2c0-4cd2-92b0-0f18dcfa5490",
"name": "待收货1",
"width": 196.5,
"height": 480.5,
"url": "https://alipic.lanhuapp.com/MasterCover2ba7faec5f4b75293ebdb2a33cc6c71a.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.252235Z"
},
{
"index": 45,
"id": "62e4edcd-b99a-41f9-97ec-a7dfcf8a765b",
"name": "我的订单",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover7d6a4ffc21cd813b3d11d92e2d98fcf3.png",
"has_comment": false,
"update_time": "2026-11-12T08:34:29.230818Z"
},
{
"index": 46,
"id": "3e39603d-f7a1-4c91-a930-75fcad9c5250",
"name": "申请售后",
"width": 196.5,
"height": 572,
"url": "https://alipic.lanhuapp.com/MasterCover606e3c8766739bff8a143b9d2932684a.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.080525Z"
},
{
"index": 47,
"id": "d2672987-e473-49a6-a8a9-22e5f2deffef",
"name": "我的团队",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCovere52d533b353cca2f3b1fb5d4b6e9f6d5.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.070932Z"
},
{
"index": 48,
"id": "da97afd8-4467-4859-9eca-1201aed5a344",
"name": "客服",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover308ad39151c5637aeabdbd889f46d15f.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.069087Z"
},
{
"index": 49,
"id": "0648a0b8-fd81-4276-8541-88cce520946e",
"name": "关于/用户协议/隐私政策",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover1fedad235c7e7151effd4c905d3003e5.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.066903Z"
},
{
"index": 50,
"id": "298a9f9e-23bc-40f0-b7a6-eb9e774781bf",
"name": "固件版本",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverf9db859ba67863044cd0c334b8593f32.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.064779Z"
},
{
"index": 51,
"id": "412e94cb-95cd-4cc1-9c55-4755d373b7af",
"name": "退款1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover8191f8f5124f7fe576518741b1b1db47.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.050352Z"
},
{
"index": 52,
"id": "aad60278-43e8-446f-be63-f360a0c412fd",
"name": "我的评价",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover75796d2cf2520a1214b1d59162f190e5.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.047832Z"
},
{
"index": 53,
"id": "aa07aa90-f566-485f-a61d-351239569ecc",
"name": "评价",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover18dae722e7894ab80c96f1143ef7598c.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.044736Z"
},
{
"index": 54,
"id": "03c10217-50ff-4e16-ba6c-0e14304f03ef",
"name": "购物车2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover470e187cf2d0d26c5bce423fbd2ea0d0.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.033944Z"
},
{
"index": 55,
"id": "d95e9410-1184-42f0-8873-307d8abb5fad",
"name": "购物车1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverd011b92c6201bbfd2d78bad2ee9f081b.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.03158Z"
},
{
"index": 56,
"id": "646e7013-ad6c-4dbb-9fa1-64109f1422ac",
"name": "报修工单3已处理",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover5764144d6f7d9b7784d60059fe4111a6.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.02934Z"
},
{
"index": 57,
"id": "b04af375-9096-4d7d-b94c-4a85862f0d61",
"name": "报修工单2处理中",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover704d448285b552eedfa867142a97eebc.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.026686Z"
},
{
"index": 58,
"id": "689c3bf7-76cb-44c3-97ab-87f002f9982b",
"name": "线上支付",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover3c55f005988c67ec44e2ff1eece384bd.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.020931Z"
},
{
"index": 59,
"id": "e7adb574-a5c9-4248-91dc-9ef517c3c8a1",
"name": "容器 131",
"width": 194,
"height": 67,
"url": "https://alipic.lanhuapp.com/MasterCoverb1b1d96c8aab479155a0d0b766b58548.png",
"has_comment": false,
"update_time": "2026-11-11T14:39:15.01437Z"
},
{
"index": 60,
"id": "a73bbd6c-4828-4d58-9e07-dd0dab58b22e",
"name": "故障分析",
"width": 196.5,
"height": 591.5,
"url": "https://alipic.lanhuapp.com/MasterCoverbd477bed7fa12ed46c60bdcc1cd6d6a6.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.39226Z"
},
{
"index": 61,
"id": "1fa39d62-7479-4b3c-a3fe-8aeeb3187f03",
"name": "数据统计",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover6feef9e7d68e900ce5193b35d69f8ca0.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.388577Z"
},
{
"index": 62,
"id": "7421d40f-f950-4851-b8f8-f047173a24f4",
"name": "提货订单统计",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover1f61cffd75324dfc6c853248ca9fd56c.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.384554Z"
},
{
"index": 63,
"id": "84aaec3f-3acd-46ab-9b4e-081fa9edd648",
"name": "提货核销1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover33f554a36dc5596f424a3f22a285fb16.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.37627Z"
},
{
"index": 64,
"id": "bbc5796f-e2c7-4b28-bbaa-889676568805",
"name": "详情页3离线",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover257982e29f021f66c62d3a16dd448dce.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.372202Z"
},
{
"index": 65,
"id": "8aa58986-6e54-4b42-b8be-e599cc209fc6",
"name": "详情页2故障",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverf1c2c3eac72a1f9c8a33044487edf5c3.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.368418Z"
},
{
"index": 66,
"id": "f29b8252-ddfc-433b-83fe-6035b30944a3",
"name": "详情页1在线",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover64ddadf3ebe07074c7cffba348500789.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.364207Z"
},
{
"index": 67,
"id": "21c0f5df-9687-454f-842b-1500e542ccc2",
"name": "待激活设备",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverc56c3da0ac1a9ad66fa899ed73985c29.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.360101Z"
},
{
"index": 68,
"id": "17b8391b-a9f7-492b-aed7-90381cb5770e",
"name": "商品管理",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverc11f93bcef4198520295c1ecb443a374.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.3559Z"
},
{
"index": 69,
"id": "aa0b0f2a-e844-4200-8f0e-61b17ea8852b",
"name": "商品入库2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoveraaf90f817c7cdfd3cf83b4d417e5c006.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.348764Z"
},
{
"index": 70,
"id": "888950df-5458-41f8-9dfa-696bf062a059",
"name": "商品入库1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverbf40aacc94303363bdb9c7d678756112.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.341741Z"
},
{
"index": 71,
"id": "4920e4e8-1ade-4ac3-b71d-3f33149befad",
"name": "登录2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover028dc349e2df7c7e2673a7165ba5cfbf.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.326203Z"
},
{
"index": 72,
"id": "d9035815-72c2-4eb9-8544-5f737436ec3f",
"name": "登录1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover74d0bf142d82efb5707a1d8c72989989.png",
"has_comment": false,
"update_time": "2026-11-11T13:34:26.318363Z"
}
]
},
"meta": {
"command": "designs",
"version": "1.4.2",
"durationMs": 562,
"warnings": []
},
"error": null
}

View File

@@ -0,0 +1 @@
{"83:11664":"icon_mine_service_panel","83:11648":"icon_mine_service_robot"}

View File

@@ -0,0 +1,87 @@
{
"status": "success",
"design_id": "c3d63095-fc6d-42a7-8eb1-47a6ee815d76",
"design_name": "客服",
"version": "d71f7a76-2270-42c2-8e41-6238c0d71993",
"canvas_size": {
"width": 196.5,
"height": 426
},
"total_slices": 2,
"slices": [
{
"id": "83:11664",
"name": "组 1879",
"type": "groupLayer",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png",
"size": "321x243",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVGaa44ccff-cdd0-479f-9788-fad2ab0f868b.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_321,h_243/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_642,h_486/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_963,h_729/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_321,h_243/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_642,h_486/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_963,h_729/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_321,h_243/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_482,h_365/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_642,h_486/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png?x-oss-process=image/resize,w_963,h_729/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG0c9e4bb8ab69d83e6238d899daf1a782.png"
},
"logical_size": {
"width": 321,
"height": 243,
"note": "1x logical px; stored at 4x = 1284x972px"
},
"position": {
"x": 36,
"y": 269
},
"parent_name": "组 1808",
"layer_path": "客服/组 1808/组 1879",
"metadata": {
"opacity": 1,
"border_radius": []
}
},
{
"id": "83:11648",
"name": "53",
"type": "shapeLayer",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png",
"size": "117x117",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVGff84b8f8-a77c-424d-8bda-f636d6b1dc6b.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_117,h_117/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_234,h_234/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_351,h_351/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_117,h_117/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_234,h_234/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_351,h_351/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_117,h_117/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_176,h_176/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_234,h_234/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png?x-oss-process=image/resize,w_351,h_351/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG508bbb1c9b730a6cd7e41dcbab2db360.png"
},
"logical_size": {
"width": 117,
"height": 117,
"note": "1x logical px; stored at 4x = 468x468px"
},
"position": {
"x": 240,
"y": 219
},
"parent_name": "组 1808",
"layer_path": "客服/组 1808/53",
"metadata": {
"opacity": 1,
"border_radius": []
}
}
]
}

View File

@@ -0,0 +1,857 @@
{
"ok": true,
"data": {
"status": "success",
"project_name": "电饼铛项目",
"total_designs": 84,
"designs": [
{
"index": 1,
"id": "02d56e88-d164-4c6a-aaf6-475ec0fb2ecf",
"name": "首页",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover0ca2ab74f6257a1ef38599fd42b5a63c.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.632679Z"
},
{
"index": 2,
"id": "3bd202ec-29e0-43cf-8ab3-b05367814864",
"name": "详情页3离线",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover257982e29f021f66c62d3a16dd448dce.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.622703Z"
},
{
"index": 3,
"id": "b4ea89a2-29cc-4f1e-8299-59798167a602",
"name": "个人中心",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover2a2224421eb83e91214616bfe0b3fd7d.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.607993Z"
},
{
"index": 4,
"id": "e181192b-7500-4120-8814-fdc6861691bf",
"name": "提货订单统计",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover1f61cffd75324dfc6c853248ca9fd56c.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.597339Z"
},
{
"index": 5,
"id": "055195fd-6925-4f49-8f23-6c46decfca29",
"name": "商品入库2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoveraaf90f817c7cdfd3cf83b4d417e5c006.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.586229Z"
},
{
"index": 6,
"id": "ec3ec6ef-f636-4afa-8656-910e19f4fd56",
"name": "待激活设备",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverc56c3da0ac1a9ad66fa899ed73985c29.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.575417Z"
},
{
"index": 7,
"id": "3dece5cb-c615-4660-8828-bf4e2b80c95a",
"name": "故障分析",
"width": 196.5,
"height": 591.5,
"url": "https://alipic.lanhuapp.com/MasterCoverbd477bed7fa12ed46c60bdcc1cd6d6a6.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.564322Z"
},
{
"index": 8,
"id": "31a94bdb-a067-4c7c-a8ec-56cfe4d3af5a",
"name": "登录1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover74d0bf142d82efb5707a1d8c72989989.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.558926Z"
},
{
"index": 9,
"id": "3985ee10-c8cc-45c4-bc7b-db5a3583189e",
"name": "提货核销2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover3c0c4c24bf3c20844a403f41f909fa29.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.540263Z"
},
{
"index": 10,
"id": "8d83ed46-22d3-41e2-a459-b0a12bb9726e",
"name": "用户管理",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover3acc17af0c371e0e999b21a2d823f2bd.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.515534Z"
},
{
"index": 11,
"id": "b2d1c8a2-8d62-454f-8ad7-53638abf3e3a",
"name": "用户详情",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverf60daf6d611f8fd7949da57ae19b25ff.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.525669Z"
},
{
"index": 12,
"id": "26869666-464f-422d-91a2-0b70d52a6765",
"name": "数据统计",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover6feef9e7d68e900ce5193b35d69f8ca0.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.510836Z"
},
{
"index": 13,
"id": "18dc65cb-e6e7-4cc0-9411-93aec5211589",
"name": "商品管理",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover1222992d0bb3b36f84526913482d861f.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.507912Z"
},
{
"index": 14,
"id": "a7aeda8d-6f0a-4b4f-bfe5-c22d3b8fa778",
"name": "详情页1在线",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover64ddadf3ebe07074c7cffba348500789.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.482683Z"
},
{
"index": 15,
"id": "1523b5b4-dd4e-4bd8-a43c-7803fce4c553",
"name": "详情页2故障",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverf1c2c3eac72a1f9c8a33044487edf5c3.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.483629Z"
},
{
"index": 16,
"id": "caa6049d-aa89-423f-b3fb-efa155e6cc16",
"name": "单位信息",
"width": 196.5,
"height": 684.5,
"url": "https://alipic.lanhuapp.com/MasterCoverf4c42cc3aa3e7d89c07a5f51e7cfedb4.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.462147Z"
},
{
"index": 17,
"id": "3a64a9a2-b148-49b9-978f-1fe62015f752",
"name": "使用手册",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover6726e5394171f6a985f322b774f2b888.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.448198Z"
},
{
"index": 18,
"id": "90a01613-c734-418a-a2e6-6625cfb4e9e1",
"name": "关于/用户协议/隐私政策",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover1fedad235c7e7151effd4c905d3003e5.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.440547Z"
},
{
"index": 19,
"id": "cd7600bc-28f5-43de-8d4b-1beab5c21235",
"name": "登录2",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover028dc349e2df7c7e2673a7165ba5cfbf.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.429503Z"
},
{
"index": 20,
"id": "3322bbd1-d542-4472-a5ec-a539eb594577",
"name": "提货核销1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover33f554a36dc5596f424a3f22a285fb16.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.408024Z"
},
{
"index": 21,
"id": "bc2eaf3b-6d22-41d0-9a4a-3293f95384fc",
"name": "客服",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover308ad39151c5637aeabdbd889f46d15f.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.417873Z"
},
{
"index": 22,
"id": "75199f05-584c-4d8f-9901-2978217db041",
"name": "消息中心",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCover7d2fdb12f09c4ee543d79c3ef42a3f7d.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.401258Z"
},
{
"index": 23,
"id": "d172dc00-1f17-4205-9d51-69e0e32dd72a",
"name": "商品入库1",
"width": 196.5,
"height": 426,
"url": "https://alipic.lanhuapp.com/MasterCoverbf40aacc94303363bdb9c7d678756112.png",
"has_comment": false,
"update_time": "2026-11-10T16:08:41.393876Z"
},
{
"index": 24,
"id": "0e17bcc1-5359-4516-a7f9-ee926e19a219",
"name": "页面1",
"width": 196.5,
"height": 556,
"url": "https://alipic.lanhuapp.com/MasterCoverf8363132bd87397401241ad4942ef756.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.026197Z"
},
{
"index": 25,
"id": "8dc7eb63-c9b6-4402-97f2-50f733b8146f",
"name": "退款",
"width": 196.5,
"height": 525,
"url": "https://alipic.lanhuapp.com/MasterCovera4e5c711af741e71156b1aeaf391194f.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.022664Z"
},
{
"index": 26,
"id": "1c522fe4-c62f-4e23-b222-83c8a18cec77",
"name": "我的评价",
"width": 196.5,
"height": 525,
"url": "https://alipic.lanhuapp.com/MasterCovercacb6c0dfcb19f9cd22d0623739cccb3.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.019349Z"
},
{
"index": 27,
"id": "cd97492c-c028-49fb-92c0-dd464a68ec51",
"name": "申请退款",
"width": 196.5,
"height": 525,
"url": "https://alipic.lanhuapp.com/MasterCover003286b2dc9d9f9b0bc43c40cf24c7d3.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.015762Z"
},
{
"index": 28,
"id": "2b8bf885-d7c3-4e80-b48a-39b72c55714e",
"name": "优惠券",
"width": 196.5,
"height": 505.5,
"url": "https://alipic.lanhuapp.com/MasterCover48ff5cccc1494a18e84ad9f6221f6d21.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.012328Z"
},
{
"index": 29,
"id": "f1e7a9cf-31c0-4d93-8541-81cbcc791319",
"name": "我的订单",
"width": 196.5,
"height": 432.5,
"url": "https://alipic.lanhuapp.com/MasterCover4b68985c2d67d1db044e1afb7d0eb739.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.008611Z"
},
{
"index": 30,
"id": "be543b19-02c5-4c80-9dc7-c79170b9492f",
"name": "购物车",
"width": 196.5,
"height": 432.5,
"url": "https://alipic.lanhuapp.com/MasterCover97b784bf50c2fcae7af6eaee5b593a85.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.00525Z"
},
{
"index": 31,
"id": "f5486036-61ac-48eb-800e-9c94e4044ae2",
"name": "购物车",
"width": 196.5,
"height": 396,
"url": "https://alipic.lanhuapp.com/MasterCover6aa542be3583747e762a3814292c31d0.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:48.001731Z"
},
{
"index": 32,
"id": "b51487c3-0c59-41c5-ac8a-caf3d9ec1e03",
"name": "我的团队",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCoverb0373872e7bbe6d15c85aac731adc553.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.995086Z"
},
{
"index": 33,
"id": "7ef03b31-224a-4a12-b4bb-0e50993fac9d",
"name": "分享收益",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCover48a2ef45a758cfe12e5a908d1b699632.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.987551Z"
},
{
"index": 34,
"id": "635b82be-74cc-4bad-ad07-10e4c9dfb1c9",
"name": "分享收益",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCoverce4f9a4be2e220fd4992ab99eb0d682e.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.984255Z"
},
{
"index": 35,
"id": "c59098c4-8117-4b8f-adb2-0109ab429960",
"name": "编辑",
"width": 196.5,
"height": 393,
"url": "https://alipic.lanhuapp.com/MasterCover4acb28ac4ee4f338ef83bd3e0db43346.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.980244Z"
},
{
"index": 36,
"id": "362c91f9-f324-4a22-84b8-566c73469608",
"name": "新增",
"width": 196.5,
"height": 393,
"url": "https://alipic.lanhuapp.com/MasterCoverf875729d4351ebb7d67d15fcd94aafce.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.976864Z"
},
{
"index": 37,
"id": "c081b034-376c-4c85-ae4e-535152a9ec71",
"name": "收货地址",
"width": 196.5,
"height": 393,
"url": "https://alipic.lanhuapp.com/MasterCoverf2a023c2b8274e63a3e815f544328b9c.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.972878Z"
},
{
"index": 38,
"id": "cf9fde6f-1c24-4431-90d1-cd94724b700a",
"name": "组 266",
"width": 165,
"height": 170.5,
"url": "https://alipic.lanhuapp.com/MasterCover65c2a21a3d1fd86f5dca9b63abbf7241.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.962429Z"
},
{
"index": 39,
"id": "cdef0f9b-2361-43d7-b906-47c6463d4e1f",
"name": "详情",
"width": 196.5,
"height": 486.5,
"url": "https://alipic.lanhuapp.com/MasterCoveraec8ea002491d585f95ed31e44d639cd.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.948478Z"
},
{
"index": 40,
"id": "bc20f58d-163b-4c5c-b86a-2e904a29066d",
"name": "积分订单",
"width": 196.5,
"height": 483.5,
"url": "https://alipic.lanhuapp.com/MasterCoverc3bb5b5c72b2b2e5d47f3ccf1dace435.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.94476Z"
},
{
"index": 41,
"id": "0e54f35b-153d-4f49-a090-9a729f93abd9",
"name": "推广码",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCover62a2031be6bcf00da691f8f3166cb977.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.934047Z"
},
{
"index": 42,
"id": "fc264a99-b383-4493-bde7-7e33788fbca7",
"name": "绑定手机号-已绑定",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCover31e5612cd45ac6af3b6f8508c6ab1e4b.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.92704Z"
},
{
"index": 43,
"id": "e5193dd6-ca70-43e5-96f0-ab4c9d47bcd2",
"name": "弹窗",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCover691292e6b9d53cee5f202516362489fc.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.92319Z"
},
{
"index": 44,
"id": "c7ac8b0c-0ee6-4182-80ec-1703847f4da7",
"name": "查看全部",
"width": 196.5,
"height": 372,
"url": "https://alipic.lanhuapp.com/MasterCover5d918b3b92a666a3218689c595cbb795.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.901177Z"
},
{
"index": 45,
"id": "1cb83b22-f4a0-43f9-9efe-1c325452ac86",
"name": "定时",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCover07ef6f140a5186844a5fac43175bcf79.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.858347Z"
},
{
"index": 46,
"id": "e2e52d03-53a3-42a1-8e55-94f8c1358e6f",
"name": "设备定位",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCoverc09b14917f1ca043e6dae94bb9289a1c.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.851192Z"
},
{
"index": 47,
"id": "6b0a75f7-c29b-40b0-850c-1573961ed552",
"name": "正在配网",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover0de7b9710dd10df7789851ca77e0c63f.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.843878Z"
},
{
"index": 48,
"id": "0cb8e2f7-66c8-4918-900f-93f4132ce8a1",
"name": "wifi连接设备",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover9cfad224e3b86ed3aed3dcd8c375ad8e.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.840275Z"
},
{
"index": 49,
"id": "5ca72163-0bca-4a0a-a3de-9820ebc5ce30",
"name": "浮层",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover30a67f4ff5f35f7936010c4a5e636e8d.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.836729Z"
},
{
"index": 50,
"id": "78c82ccc-a50a-41ae-9350-7025d732c95a",
"name": "蓝牙连接设备",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover72765d2d90e56c97794f99351761d3c7.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.832579Z"
},
{
"index": 51,
"id": "242b3037-6e46-4c36-8c25-5428036b6070",
"name": "查看自提点",
"width": 196.5,
"height": 393,
"url": "https://alipic.lanhuapp.com/MasterCovera1e92d4c3697cb34397ec31a7a6aac48.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.965864Z"
},
{
"index": 52,
"id": "03773c81-720c-42bb-bcbf-d9da1cb7d961",
"name": "个人中心",
"width": 196.5,
"height": 781,
"url": "https://alipic.lanhuapp.com/MasterCover175dc0272fa91da5adc80b9b82f493b7.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.958869Z"
},
{
"index": 53,
"id": "489c3e4e-c9f5-4a50-aefb-798782c2c5b9",
"name": "页面1",
"width": 196.5,
"height": 575.5,
"url": "https://alipic.lanhuapp.com/MasterCover706dfaa108d6dc9252a093769b89fb92.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.955422Z"
},
{
"index": 54,
"id": "a25e7ed0-b592-4b50-a110-09f000e43ff6",
"name": "积分记录",
"width": 196.5,
"height": 483.5,
"url": "https://alipic.lanhuapp.com/MasterCovere4e495ce31f1be65592a25de0916a61a.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.94133Z"
},
{
"index": 55,
"id": "5ebb9453-c1e5-439b-8a36-f5005c617afd",
"name": "支付",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCoverddaba8a6f3536bc4bb1ba0b13b7812b4.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.916208Z"
},
{
"index": 56,
"id": "1f758184-0800-4b66-8ef7-7464bc523712",
"name": "详情",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCover8a903af0ffc3ac5cceb321b7b42a745d.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.909175Z"
},
{
"index": 57,
"id": "9c1b4080-d8df-41ce-9624-fdec9553c9a8",
"name": "碳积分",
"width": 196.5,
"height": 446,
"url": "https://alipic.lanhuapp.com/MasterCovera79e99dbd1152c490954d4917626cc11.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.89392Z"
},
{
"index": 58,
"id": "01b3bba9-170b-4636-bb33-8a31c855443b",
"name": "首页",
"width": 196.5,
"height": 431.5,
"url": "https://alipic.lanhuapp.com/MasterCover2f7e8aef4b39fe3585b570f2498e8215.png",
"has_comment": false,
"update_time": "2026-11-09T08:31:59.840805Z"
},
{
"index": 59,
"id": "4fb0ee24-5391-472a-b741-9086de056cda",
"name": "碳排放统计",
"width": 196.5,
"height": 446,
"url": "https://alipic.lanhuapp.com/MasterCover6f8cf620ae395f6feef05dbb35fb4ee2.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.885875Z"
},
{
"index": 60,
"id": "e734a5ec-21bb-4fb5-8efb-31cbea24e3e7",
"name": "设备详情",
"width": 196.5,
"height": 461,
"url": "https://alipic.lanhuapp.com/MasterCover20c739a567f246ac566161c1ed2e1503.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.897518Z"
},
{
"index": 61,
"id": "843eeb8f-c587-4cb1-981c-f58d289bb0c3",
"name": "设置定时",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCover21a52ff9573f37f5df48c5abc5a5c75a.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.863617Z"
},
{
"index": 62,
"id": "67e81d54-e079-4081-a52e-897fe14c5967",
"name": "碳排放详情",
"width": 196.5,
"height": 446,
"url": "https://alipic.lanhuapp.com/MasterCover5f7ad8eb66106020b8d304ebc944e9a8.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.889491Z"
},
{
"index": 63,
"id": "88984514-2726-407c-bac5-7b34a955f181",
"name": "设备操作页",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCoveraf4d81e9d42f434256a155c4419ea4ea.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.878653Z"
},
{
"index": 64,
"id": "accb566b-0258-44cf-9ec0-ca69a09e32b7",
"name": "空首页",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover5e52a4f013f3a55d57c3cda48b114b30.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.828888Z"
},
{
"index": 65,
"id": "950736dd-8d0c-4714-8f2e-8c374990879c",
"name": "手机验证码登录",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCoverb65da5cca7eacbba6528bde1bd3b49b6.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.816522Z"
},
{
"index": 66,
"id": "ca4404b3-9471-4270-95ea-1156763ed067",
"name": "邮箱登录",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover61b08f8e34576efd6ee858e3f76ad99b.png",
"has_comment": false,
"update_time": "2026-11-09T08:20:08.244797Z"
},
{
"index": 67,
"id": "11e073f0-4e71-401f-806a-4d1ba2856976",
"name": "页面1",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover8713b16369b0ad31e05fc8b3b4270545.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.847489Z"
},
{
"index": 68,
"id": "cbce188b-6828-410c-8baa-74f63c460e7c",
"name": "详情",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCover67310a2e66a4f7b3769ea51a2344c72e.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.912894Z"
},
{
"index": 69,
"id": "2f5a9af6-2205-48d7-9c70-9a54b6a563e2",
"name": "美食",
"width": 196.5,
"height": 494,
"url": "https://alipic.lanhuapp.com/MasterCover7d03f803448e8201d66922dd3a642d4d.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.951831Z"
},
{
"index": 70,
"id": "cc14e010-1c3c-4502-97f5-9faf483c1655",
"name": "消息中心",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCover0de1d8ecbbcfc4a8c175a361c8425fa5.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.875253Z"
},
{
"index": 71,
"id": "3b34eb81-d889-44a7-91a4-2b4396eb6602",
"name": "减排明细数据",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCovera8142a9aecec31b2e8067fe53d284991.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.86997Z"
},
{
"index": 72,
"id": "5b23f1f5-3625-48a3-a456-d572f2aa2a10",
"name": "故障",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCovereb4bee32773e08f663762e9b157b5305.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.991153Z"
},
{
"index": 73,
"id": "5ba21d6a-b745-4a09-b2bb-622eeee56638",
"name": "设备信息",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCover379bd2670197363045d142f5f427ad38.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.854844Z"
},
{
"index": 74,
"id": "c74f62dd-1ba2-4d49-bca3-ddc124b4bc6e",
"name": "商品入库",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCoverb20b40ce94d3230e398d8a730a78c9ca.png",
"has_comment": false,
"update_time": "2026-11-09T08:20:08.252874Z"
},
{
"index": 75,
"id": "8b83aff8-48eb-455a-a9eb-94e78818d798",
"name": "商城",
"width": 196.5,
"height": 391,
"url": "https://alipic.lanhuapp.com/MasterCover7301cb2ed5354cb72af3a931213cae15.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.905512Z"
},
{
"index": 76,
"id": "ebdb49a2-4cc2-4934-b7ed-87b7b41992a0",
"name": "商品入库",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCovera07052a786086ade763cb8fb5d99813d.png",
"has_comment": false,
"update_time": "2026-11-09T08:20:08.254672Z"
},
{
"index": 77,
"id": "e1dc0720-3e94-422b-bb20-faf5e6bb2868",
"name": "首页",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover4dd491e40825b0ece8bcbeff77cd90ce.png",
"has_comment": false,
"update_time": "2026-11-09T08:20:08.25078Z"
},
{
"index": 78,
"id": "5b46dc9f-677b-4c3e-9881-f2420fafbc8f",
"name": "密码登录",
"width": 196.5,
"height": 417.5,
"url": "https://alipic.lanhuapp.com/MasterCover8e793a1fb71853fe3461a28e7a097a3b.png",
"has_comment": false,
"update_time": "2026-11-09T08:20:08.248658Z"
},
{
"index": 79,
"id": "9789439e-3147-4ddf-8bf8-7fe715a4e58e",
"name": "页面1",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCover7345d8894e5fc237968985c2bdbfd9f6.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.919861Z"
},
{
"index": 80,
"id": "dff47302-5c3d-42b5-93ff-33f19e96c172",
"name": "我的设备",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCoverf59e3f1f03542a2980661552b04f2f4d.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.937752Z"
},
{
"index": 81,
"id": "e03f1234-7422-4d5d-bc0c-a6888c27aca5",
"name": "绑定邮箱-修改绑定",
"width": 196.5,
"height": 402,
"url": "https://alipic.lanhuapp.com/MasterCover6c8edec154e16d13d1f709d77d36c4b2.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.930378Z"
},
{
"index": 82,
"id": "a8ad7711-64e4-4b8f-abe1-5fc693befcaa",
"name": "组 139",
"width": 711.5,
"height": 217,
"url": "https://alipic.lanhuapp.com/MasterCover51a412347fb816d7e3e7e483afed95a2.png",
"has_comment": false,
"update_time": "2026-11-09T08:05:41.600562Z"
},
{
"index": 83,
"id": "a24ba568-8ba9-4a29-8524-340022ebe22b",
"name": "评价",
"width": 196.5,
"height": 393,
"url": "https://alipic.lanhuapp.com/MasterCoverfe521dd373315664485f301fbb40801d.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.969516Z"
},
{
"index": 84,
"id": "e8edad89-2c7a-4471-b7ae-b20a861ed196",
"name": "专属客服热线",
"width": 196.5,
"height": 393.5,
"url": "https://alipic.lanhuapp.com/MasterCover478de39f9ca019c8d5630b020086defa.png",
"has_comment": false,
"update_time": "2026-11-09T08:07:47.998524Z"
}
]
},
"meta": {
"command": "designs",
"version": "1.4.2",
"durationMs": 553,
"warnings": []
},
"error": null
}

View File

@@ -0,0 +1,5 @@
{
"44:18489": "icon_device_connecting_step_transfer",
"44:18462": "icon_device_connecting_step_completed",
"44:18445": "icon_device_connecting_step_waiting"
}

View File

@@ -0,0 +1,161 @@
{
"status": "success",
"design_id": "6b0a75f7-c29b-40b0-850c-1573961ed552",
"design_name": "正在配网",
"version": "d53cefc8-ea6d-49b0-a3fe-bb3a4ec1adb6",
"canvas_size": {
"width": 196.5,
"height": 417.5
},
"total_slices": 4,
"slices": [
{
"id": "44:18495",
"name": "组 359",
"type": "artboard",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png",
"size": "110x110",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVG1428546f-3490-4534-ba77-7859cbd9a00d.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_110,h_110/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_220,h_220/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_330,h_330/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_110,h_110/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_220,h_220/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_330,h_330/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_110,h_110/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_165,h_165/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_220,h_220/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png?x-oss-process=image/resize,w_330,h_330/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG3633e1f947c0f0e58bf684d2ce28f0c3.png"
},
"logical_size": {
"width": 110,
"height": 110,
"note": "1x logical px; stored at 4x = 440x440px"
},
"position": {
"x": 143,
"y": 128
},
"parent_name": "组 358",
"layer_path": "正在配网/容器 86/组 357/组 358/组 359",
"metadata": {
"opacity": 1,
"border_radius": []
}
},
{
"id": "44:18462",
"name": "组 364",
"type": "artboard",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png",
"size": "32x32",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVG1ce6cac3-3108-4827-ac11-0346dec00857.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_32,h_32/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_64,h_64/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_96,h_96/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_32,h_32/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_64,h_64/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_32,h_32/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_48,h_48/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_64,h_64/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png"
},
"logical_size": {
"width": 32,
"height": 32,
"note": "1x logical px; stored at 4x = 128x128px"
},
"position": {
"x": 29,
"y": 337
},
"parent_name": "组 363",
"layer_path": "正在配网/容器 86/组 357/组 362/组 363/组 364",
"metadata": {
"opacity": 1,
"border_radius": []
}
},
{
"id": "44:18489",
"name": "组 368",
"type": "artboard",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png",
"size": "32x32",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVG80c272b7-c813-49fa-a6ff-3f8a0c51d6a9.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_32,h_32/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_64,h_64/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_96,h_96/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_32,h_32/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_64,h_64/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_32,h_32/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_48,h_48/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_64,h_64/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png"
},
"logical_size": {
"width": 32,
"height": 32,
"note": "1x logical px; stored at 4x = 128x128px"
},
"position": {
"x": 29,
"y": 393
},
"parent_name": "组 367",
"layer_path": "正在配网/容器 86/组 357/组 362/组 367/组 368",
"metadata": {
"opacity": 1,
"border_radius": []
}
},
{
"id": "44:18445",
"name": "组 372",
"type": "artboard",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png",
"size": "32x32",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVGef28004d-d414-4a05-ac3c-f8303f81f972.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_32,h_32/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_64,h_64/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_96,h_96/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_32,h_32/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_64,h_64/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_32,h_32/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_48,h_48/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_64,h_64/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png"
},
"logical_size": {
"width": 32,
"height": 32,
"note": "1x logical px; stored at 4x = 128x128px"
},
"position": {
"x": 29,
"y": 448
},
"parent_name": "组 371",
"layer_path": "正在配网/容器 86/组 357/组 362/组 371/组 372",
"metadata": {
"opacity": 1,
"border_radius": []
}
}
]
}

View File

@@ -0,0 +1,124 @@
{
"status": "success",
"design_id": "6b0a75f7-c29b-40b0-850c-1573961ed552",
"design_name": "正在配网",
"version": "d53cefc8-ea6d-49b0-a3fe-bb3a4ec1adb6",
"canvas_size": {
"width": 196.5,
"height": 417.5
},
"total_slices": 3,
"slices": [
{
"id": "44:18462",
"name": "组 364",
"type": "artboard",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png",
"size": "32x32",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVG1ce6cac3-3108-4827-ac11-0346dec00857.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_32,h_32/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_64,h_64/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_96,h_96/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_32,h_32/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_64,h_64/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_32,h_32/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_48,h_48/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_64,h_64/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGb9efbe30159915a12a34e2c265b58b9a.png"
},
"logical_size": {
"width": 32,
"height": 32,
"note": "1x logical px; stored at 4x = 128x128px"
},
"position": {
"x": 29,
"y": 337
},
"parent_name": "组 363",
"layer_path": "正在配网/容器 86/组 357/组 362/组 363/组 364",
"metadata": {
"opacity": 1,
"border_radius": []
}
},
{
"id": "44:18489",
"name": "组 368",
"type": "artboard",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png",
"size": "32x32",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVG80c272b7-c813-49fa-a6ff-3f8a0c51d6a9.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_32,h_32/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_64,h_64/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_96,h_96/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_32,h_32/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_64,h_64/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_32,h_32/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_48,h_48/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_64,h_64/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNGf2169cc1158e585b7505c148d53363e7.png"
},
"logical_size": {
"width": 32,
"height": 32,
"note": "1x logical px; stored at 4x = 128x128px"
},
"position": {
"x": 29,
"y": 393
},
"parent_name": "组 367",
"layer_path": "正在配网/容器 86/组 357/组 362/组 367/组 368",
"metadata": {
"opacity": 1,
"border_radius": []
}
},
{
"id": "44:18445",
"name": "组 372",
"type": "artboard",
"download_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png",
"size": "32x32",
"format": "png",
"svg_url": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSliceSVGef28004d-d414-4a05-ac3c-f8303f81f972.svg",
"scale_urls": {
"1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_32,h_32/format,png",
"2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_64,h_64/format,png",
"3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_96,h_96/format,png",
"ios_1x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_32,h_32/format,png",
"ios_2x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_64,h_64/format,png",
"ios_3x": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_mdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_32,h_32/format,png",
"android_hdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_48,h_48/format,png",
"android_xhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_64,h_64/format,png",
"android_xxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png?x-oss-process=image/resize,w_96,h_96/format,png",
"android_xxxhdpi": "https://lanhu-oss-2537-2.lanhuapp.com/MasterSlicePNG6514429a752f7694fa9818c6e3aec662.png"
},
"logical_size": {
"width": 32,
"height": 32,
"note": "1x logical px; stored at 4x = 128x128px"
},
"position": {
"x": 29,
"y": 448
},
"parent_name": "组 371",
"layer_path": "正在配网/容器 86/组 357/组 362/组 371/组 372",
"metadata": {
"opacity": 1,
"border_radius": []
}
}
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -157,8 +157,6 @@ dependencies {
implementation 'me.rosuh:AndroidFilePicker:1.0.1'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'androidx.appcompat:appcompat:1.3.1'//(最低版本)
// implementation 'com.umeng.umsdk:share-wx:7.1.5' //微信完整版
// implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.0'//微信官方依赖库,必选
//商品评价星星
// implementation 'me.zhanghai.android.materialratingbar:library:1.4.0'
@@ -166,15 +164,10 @@ dependencies {
//zxing 依赖 二维码,扫描等使用
implementation 'com.google.zxing:core:3.4.1'
// implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
implementation 'com.github.maning0303:MNZXingCode:V2.1.9'
//该库专门用于在 ImageView 中处理 GIF 动画。
// implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.23'
//下载框架
implementation 'io.github.chiclaim:downloader:1.0.2'
// debugImplementation("com.reqable.android:user-certificate-trust:1.0.0")
implementation 'com.aliyun.dpa:oss-android-sdk:2.9.21' //阿里云oss
//图片裁剪
implementation 'com.github.yalantis:ucrop:2.2.6'
//XPopup 弹窗样式

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -1,11 +0,0 @@
package com.ckkj.griddle.base.inter;
import com.alibaba.sdk.android.oss.ClientException;
import com.alibaba.sdk.android.oss.ServiceException;
import java.util.List;
public interface UploadCallback {
void onSuccess(List<String> urls);
void onFailure(ClientException clientException, ServiceException serviceException);
}

View File

@@ -1,13 +1,12 @@
package com.ckkj.griddle.device;
import android.content.res.ColorStateList;
import android.graphics.Paint;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import androidx.activity.OnBackPressedCallback;
import androidx.appcompat.content.res.AppCompatResources;
import com.ckkj.griddle.R;
import com.ckkj.griddle.base.BaseActivity;
@@ -130,21 +129,23 @@ public class DeviceConnectingActivity extends BaseActivity<DeviceWifiConnectBind
viewBinding.tvCancelSetup.setVisibility(succeeded ? View.INVISIBLE : View.VISIBLE);
}
/** 已完成步骤复用现有白色勾选图标,当前步骤橙色,待开始步骤浅灰色。 */
private void renderProvisioningStep(android.widget.TextView step, boolean completed, boolean active) {
step.setText(completed ? "" : step == viewBinding.tvTransferStep ? "2" : "3");
step.setBackgroundTintList(ColorStateList.valueOf(completed ? 0xFF22A45D
: active ? getColor(R.color.wifi_setup_accent) : 0xFFF5F6F8));
step.setTextColor(active ? getColor(android.R.color.white) : getColor(R.color.wifi_setup_secondary_text));
android.graphics.drawable.Drawable check = completed
? AppCompatResources.getDrawable(this, R.drawable.ef_ic_done_white) : null;
if (check != null) {
int size = Math.round(14 * getResources().getDisplayMetrics().density);
check.setBounds(0, 0, size, size);
/** 设计稿已有状态使用原始切图;网络连接中仍以橙色数字提示当前步骤。 */
private void renderProvisioningStep(TextView step, boolean completed, boolean active) {
// 切图已经包含圆底、数字或勾选,避免重复绘制及旧状态染色。
step.setText("");
step.setBackgroundTintList(null);
if (completed) {
step.setBackgroundResource(R.mipmap.icon_device_connecting_step_completed);
} else if (step == viewBinding.tvTransferStep) {
step.setBackgroundResource(R.mipmap.icon_device_connecting_step_transfer);
} else if (active) {
// 新稿未提供第三步的进行中切图,沿用同色圆底及步骤数字。
step.setBackgroundResource(R.drawable.wifi_connect_step_bg);
step.setTextColor(getColor(android.R.color.white));
step.setText("3");
} else {
step.setBackgroundResource(R.mipmap.icon_device_connecting_step_waiting);
}
int padding = completed ? Math.round(9 * getResources().getDisplayMetrics().density) : 0;
step.setPadding(padding, 0, padding, 0);
step.setCompoundDrawables(check, null, null, null);
}
private void cancelProvisioning() {

View File

@@ -0,0 +1,95 @@
package com.ckkj.griddle.dialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import com.ckkj.griddle.R;
import com.ckkj.griddle.utils.show.ToastUtil;
/** 个人中心客服热线弹窗,用户确认后进入系统拨号页。 */
public class CustomerServiceDialog implements View.OnClickListener {
private final Activity context;
private final Dialog dialog;
public CustomerServiceDialog(Activity context) {
this.context = context;
dialog = new Dialog(context, R.style.CustomerServiceDialogStyle);
View content = LayoutInflater.from(context)
.inflate(R.layout.dialog_customer_service, null, false);
dialog.setContentView(content);
dialog.setCanceledOnTouchOutside(true);
content.findViewById(R.id.tv_customer_service_cancel).setOnClickListener(this);
content.findViewById(R.id.tv_customer_service_call).setOnClickListener(this);
}
public void show() {
if (context.isFinishing() || context.isDestroyed() || dialog.isShowing()) {
return;
}
dialog.show();
Window window = dialog.getWindow();
if (window != null) {
window.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
window.setGravity(Gravity.CENTER);
window.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
window.setDimAmount(0.6f);
float density = context.getResources().getDisplayMetrics().density;
View host = context.getWindow().getDecorView();
int width = host.getWidth() > 0 ? host.getWidth()
: context.getResources().getDisplayMetrics().widthPixels;
// 展开屏保持设计宽度,窄屏两侧留白;短窗口居中,内容超出时可滚动。
window.setLayout(Math.min(Math.round(321 * density),
Math.max(1, width - Math.round(48 * density))),
WindowManager.LayoutParams.WRAP_CONTENT);
WindowManager.LayoutParams attributes = window.getAttributes();
attributes.y = host.getHeight() / density >= 600 ? -Math.round(60 * density) : 0;
window.setAttributes(attributes);
}
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.tv_customer_service_cancel:
dismiss();
break;
case R.id.tv_customer_service_call:
openDialer();
break;
default:
break;
}
}
private void openDialer() {
if (context.isFinishing() || context.isDestroyed()) {
return;
}
// 仅打开系统拨号页,由用户确认拨出,无需申请拨打电话权限。
String phone = context.getString(R.string.customer_service_phone).replace("-", "");
Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts("tel", phone, null));
try {
context.startActivity(intent);
dismiss();
} catch (ActivityNotFoundException exception) {
ToastUtil.showShort(context, context.getString(R.string.customer_service_dialer_unavailable));
}
}
public void dismiss() {
if (dialog.isShowing()) {
dialog.dismiss();
}
}
}

View File

@@ -17,7 +17,6 @@ import com.ckkj.griddle.food.entity.ShopBannerEntity;
import com.ckkj.griddle.food.entity.ShopCategoryEntity;
import com.ckkj.griddle.food.entity.ShopGoodsEntity;
import com.ckkj.griddle.food.entity.ShopGoodsPageEntity;
import com.ckkj.griddle.food.mock.FoodMockData;
import com.ckkj.griddle.food.mvp.ShopContract;
import com.ckkj.griddle.food.mvp.ShopImpl;
import com.ckkj.griddle.food.mvp.ShopPresenter;
@@ -138,10 +137,7 @@ public class AllGoodsActivity extends BaseActivity<AllGoodsLayoutBinding, ShopPr
}
viewBinding.progressAllGoods.setVisibility(
goodsAdapter.getData().isEmpty() ? View.VISIBLE : View.GONE);
// TODO 美食接口联调时恢复此请求,并删除下面的模拟数据回调。
// mPresenter.getAllShopGoods(page, PAGE_SIZE);
getShopGoodsSuccess(FoodMockData.getAllGoods(mContext, page, PAGE_SIZE));
onShopRequestFinished(ShopContract.RequestType.GOODS);
mPresenter.getAllShopGoods(page, PAGE_SIZE);
}
@OnClick({R.id.img_back, R.id.tv_all_goods_state})

View File

@@ -205,6 +205,7 @@ public class AllGoodsFragment extends BaseFragment<AllGoodsFragmentBinding, Shop
@Override
public void onDestroyView() {
viewReady = false;
mPresenter.cancelRequests();
viewBinding.rvAllGoods.setAdapter(null);
super.onDestroyView();
}

View File

@@ -25,7 +25,7 @@ import java.util.ArrayList;
import butterknife.OnClick;
/** 美食详情:展示封面、完整名称、简介及动态食材列表。 */
/** 美食详情:展示真实菜谱封面、名称、制作步骤和动态食材列表。 */
public class FoodDetailActivity extends BaseActivity<FoodDetailLayoutBinding, FoodDetailPresenter>
implements FoodDetailContract.DetailView {
@@ -65,6 +65,14 @@ public class FoodDetailActivity extends BaseActivity<FoodDetailLayoutBinding, Fo
if (extra instanceof ShopGoodsEntity) {
selectedFood = (ShopGoodsEntity) extra;
}
loadFoodDetail();
}
/** 初次进入及失败重试共用,加载期间防止重复点击。 */
private void loadFoodDetail() {
viewBinding.tvFoodDetailState.setText(R.string.food_detail_loading);
viewBinding.tvFoodDetailState.setEnabled(false);
viewBinding.tvFoodDetailState.setVisibility(View.VISIBLE);
mPresenter.getFoodDetail(selectedFood);
}
@@ -82,13 +90,13 @@ public class FoodDetailActivity extends BaseActivity<FoodDetailLayoutBinding, Fo
showError(null);
return;
}
String name = TextUtils.isEmpty(detail.getName())
? getString(R.string.food_detail_title) : detail.getName();
String name = TextUtils.isEmpty(detail.getRecipeTitle())
? getString(R.string.food_detail_title) : detail.getRecipeTitle();
viewBinding.tvFoodDetailTitle.setText(name);
viewBinding.tvFoodDetailName.setText(name);
viewBinding.ivFoodDetailCover.setContentDescription(name);
setTitle(name);
String cover = detail.getCover();
String cover = detail.getCoverImg();
Glide.with(this)
.load(TextUtils.isEmpty(cover) ? null : cover.trim())
.placeholder(R.drawable.food_cover_placeholder)
@@ -96,10 +104,12 @@ public class FoodDetailActivity extends BaseActivity<FoodDetailLayoutBinding, Fo
.error(R.drawable.food_cover_placeholder)
.centerCrop()
.into(viewBinding.ivFoodDetailCover);
// 设计稿简介区域没有正文;接口返回内容时再显示,不预留空白正文高度。
viewBinding.tvFoodDetailDescription.setText(detail.getDescription());
viewBinding.tvFoodDetailDescription.setVisibility(
TextUtils.isEmpty(detail.getDescription()) ? View.GONE : View.VISIBLE);
// 新接口提供的是制作步骤,无内容时隐藏该段标题与正文。
String steps = detail.getMakeStep();
boolean hasSteps = !TextUtils.isEmpty(steps) && !steps.trim().isEmpty();
viewBinding.tvFoodDetailStepsTitle.setVisibility(hasSteps ? View.VISIBLE : View.GONE);
viewBinding.tvFoodDetailSteps.setText(steps);
viewBinding.tvFoodDetailSteps.setVisibility(hasSteps ? View.VISIBLE : View.GONE);
ingredientAdapter.setNewData(new ArrayList<>(detail.getIngredients()));
viewBinding.tvFoodDetailState.setVisibility(View.GONE);
viewBinding.scrollFoodDetail.setVisibility(View.VISIBLE);
@@ -113,7 +123,7 @@ public class FoodDetailActivity extends BaseActivity<FoodDetailLayoutBinding, Fo
break;
case R.id.tv_food_detail_state:
mPresenter.getFoodDetail(selectedFood);
loadFoodDetail();
break;
default:
@@ -127,6 +137,7 @@ public class FoodDetailActivity extends BaseActivity<FoodDetailLayoutBinding, Fo
? getString(R.string.food_detail_unavailable) : message;
viewBinding.scrollFoodDetail.setVisibility(View.GONE);
viewBinding.tvFoodDetailState.setText(error);
viewBinding.tvFoodDetailState.setEnabled(true);
viewBinding.tvFoodDetailState.setVisibility(View.VISIBLE);
ToastUtil.showShort(mContext, error);
}

View File

@@ -23,19 +23,19 @@ import com.ckkj.griddle.food.entity.ShopBannerEntity;
import com.ckkj.griddle.food.entity.ShopCategoryEntity;
import com.ckkj.griddle.food.entity.ShopGoodsEntity;
import com.ckkj.griddle.food.entity.ShopGoodsPageEntity;
import com.ckkj.griddle.food.mock.FoodMockData;
import com.ckkj.griddle.food.mvp.ShopContract;
import com.ckkj.griddle.food.mvp.ShopImpl;
import com.ckkj.griddle.food.mvp.ShopPresenter;
import com.ckkj.griddle.utils.show.ToastUtil;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import butterknife.OnClick;
/**
* 美食商城首页。
* 美食首页。
*/
public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresenter>
implements ShopContract.ShopView {
@@ -46,13 +46,13 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
private static final long BANNER_SWITCH_INTERVAL = 3500L;
/**
* 分类商品列表默认加载第一页,每页 20 条。
* 首页每个分类最多展示 20 条预览,完整列表由分页页查询。
*/
private static final int SHOP_GOODS_PAGE_SIZE = 20;
private static final int CATEGORY_PREVIEW_SIZE = 20;
private static final String STATE_CATEGORY_ID = "shop_selected_category_id";
private static final String STATE_SCROLL_Y = "shop_scroll_y";
/** 页面重建后,等待分类和商品加载完再恢复滚动位置。 */
/** 页面重建后,等待分类和推荐加载完再恢复滚动位置。 */
private int pendingScrollY;
/**
@@ -90,18 +90,18 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
*/
private boolean shopRefreshing;
/**
* 分别跟踪三个请求,分类返回后新增的商品请求也要参与下拉刷新。
* 轮播推荐和分类预览分别加载,全部结束后才关闭刷新头。
*/
private boolean bannersLoading;
private boolean categoriesLoading;
private boolean goodsLoading;
private boolean refreshFailed;
@Override
public ShopPresenter createPresenter() {
return new ShopPresenter(new ShopImpl());
}
/** 两处“查看全部”统一进入全部商品页,不携带当前分类。 */
/** 两处“查看全部”统一进入全部美食页,不携带当前分类。 */
@OnClick({R.id.tv_food_category_see_all, R.id.tv_food_recommend_see_all})
public void onClick(View v) {
switch (v.getId()) {
@@ -144,7 +144,7 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
categoryAdapter = new ShopCategoryAdapter();
categoryAdapter.setOnItemClickListener((adapter, view, position) -> {
// 重复点击当前分类不重复请求,切换分类后保持选中高亮并重新加载商品。
// 分类接口已附带菜谱,切换时直接展示对应预览,不再重复请求。
if (position == categoryAdapter.getSelectedPosition()) {
return;
}
@@ -189,11 +189,13 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
private void initBanner() {
// 先绑定适配器,加载完成后再提交轮播数据。
bannerAdapter = new ShopBannerAdapter();
bannerAdapter.setOnItemClickListener((adapter, view, position) ->
openFoodDetail(bannerAdapter.getItem(position)));
viewBinding.vpFoodBanner.setAdapter(bannerAdapter);
}
/**
* 复用项目现有的刷新头,商城页面只开启下拉刷新。
* 复用项目现有的刷新头,美食首页只开启下拉刷新。
*/
private void initRefresh() {
viewBinding.refreshShop.setRefreshHeader(new CustomRefreshHeader(mContext));
@@ -202,20 +204,15 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
}
/**
* 加载轮播和分类,再由分类结果触发美食列表加载。
* 加载推荐菜谱及分类预览,两个区域独立更新。
*/
private void loadShopData() {
mPresenter.cancelGoodsRequest();
mPresenter.cancelRequests();
bannersLoading = true;
categoriesLoading = true;
goodsLoading = false;
// TODO 美食接口联调时恢复以下请求,并删除下面的模拟数据回调。
// mPresenter.getShopBanners();
// mPresenter.getShopCategories();
getShopBannersSuccess(FoodMockData.getBanners(mContext));
onShopRequestFinished(ShopContract.RequestType.BANNERS);
getShopCategoriesSuccess(FoodMockData.getCategories(mContext));
onShopRequestFinished(ShopContract.RequestType.CATEGORIES);
refreshFailed = false;
mPresenter.getShopBanners();
mPresenter.getShopCategories(CATEGORY_PREVIEW_SIZE);
}
/**
@@ -228,15 +225,15 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
}
/**
* 分类请求可能继续触发商品请求,必须等待最新请求全部结束后收起刷新头。
* 等待推荐及分类请求结束,避免其中一个区域未更新就结束刷新。
*/
private void finishShopRefreshIfReady() {
if (!shopRefreshing || bannersLoading || categoriesLoading || goodsLoading) {
if (!shopRefreshing || bannersLoading || categoriesLoading) {
return;
}
shopRefreshing = false;
if (viewBinding != null) {
viewBinding.refreshShop.finishRefresh(300);
viewBinding.refreshShop.finishRefresh(!refreshFailed);
}
startBannerAutoPlay();
}
@@ -244,12 +241,20 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
@Override
public void onShopRequestFinished(ShopContract.RequestType type) {
switch (type) {
case BANNERS: bannersLoading = false; break;
case CATEGORIES: categoriesLoading = false; break;
case GOODS: goodsLoading = false; break;
default: break;
case BANNERS:
bannersLoading = false;
break;
case CATEGORIES:
categoriesLoading = false;
break;
case GOODS:
default:
break;
}
finishShopRefreshIfReady();
restoreScrollIfReady();
}
@Override
@@ -259,6 +264,8 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
? Collections.emptyList()
: banners;
bannerAdapter.setNewData(bannerList);
// banners 返回的就是服务端推荐菜谱,推荐区与轮播复用真实数据。
recommendationAdapter.setNewData(new ArrayList<ShopGoodsEntity>(bannerList));
if (!bannerList.isEmpty()) {
// 新数据到达后从第一张开始展示。
viewBinding.vpFoodBanner.setCurrentItem(0, false);
@@ -273,10 +280,8 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
categoryAdapter.setNewData(categoryList);
if (categoryList.isEmpty()) {
selectedCategoryId = null;
mPresenter.cancelGoodsRequest();
goodsLoading = false;
viewBinding.tvFoodSectionTitle.setText("");
showGoods(Collections.emptyList());
breakfastAdapter.setNewData(Collections.emptyList());
return;
}
@@ -295,31 +300,24 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
showCategory(categoryList.get(selectedPosition));
}
/** 首次选中或切换分类时,用分类 ID 重新查询商品。 */
/** 首次选中或切换分类时,展示接口附带的该分类菜谱预览。 */
private void showCategory(ShopCategoryEntity category) {
if (category == null) {
return;
}
selectedCategoryId = category.getId();
viewBinding.tvFoodSectionTitle.setText(category.getCategoryName());
// 请求期间清掉前一分类的商品,避免标题和列表不一致。
showGoods(Collections.emptyList());
breakfastAdapter.setNewData(new ArrayList<>(category.getRecipes()));
viewBinding.rvFoodBreakfast.scrollToPosition(0);
viewBinding.rvFoodRecommend.scrollToPosition(0);
goodsLoading = true;
// TODO 美食接口联调时恢复此请求,并删除下面的模拟数据回调。
// mPresenter.getShopGoods(category.getId(), 1, SHOP_GOODS_PAGE_SIZE);
getShopGoodsSuccess(FoodMockData.getCategoryGoods(
mContext, category.getId(), 1, SHOP_GOODS_PAGE_SIZE));
// 按设计稿分别展示当前分类和推荐区,推荐内容不随分类切换。
recommendationAdapter.setNewData(FoodMockData.getRecommendedGoods(mContext));
onShopRequestFinished(ShopContract.RequestType.GOODS);
}
@Override
public void getShopGoodsSuccess(ShopGoodsPageEntity data) {
showGoods(data == null ? Collections.emptyList() : data.getRows());
if (pendingScrollY > 0) {
// 首页使用分类附带的预览,分页列表由 AllGoodsActivity 展示。
}
private void restoreScrollIfReady() {
if (!bannersLoading && !categoriesLoading && pendingScrollY > 0) {
final int scrollY = pendingScrollY;
pendingScrollY = 0;
viewBinding.rvFoodRecommend.post(() -> {
@@ -341,12 +339,6 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
}
}
/** 复用列表绑定逻辑;临时模拟模式下,推荐区由独立的推荐数据覆盖。 */
private void showGoods(List<ShopGoodsEntity> goods) {
breakfastAdapter.setNewData(goods);
recommendationAdapter.setNewData(goods);
}
@Override
protected void onResumeInitData() {
super.onResumeInitData();
@@ -378,7 +370,6 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
shopRefreshing = false;
bannersLoading = false;
categoriesLoading = false;
goodsLoading = false;
mPresenter.cancelRequests();
// 主动解除 RecyclerView 对适配器的引用,避免视图销毁后继续持有页面对象。
if (viewBinding != null) {
@@ -400,6 +391,7 @@ public class ShopFragment extends BaseFragment<ShopFragmentBinding, ShopPresente
@Override
public void showError(String message) {
refreshFailed = true;
hideDialogLoading();
if (mContext != null && !TextUtils.isEmpty(message)) {
ToastUtil.showShort(mContext, message);

View File

@@ -12,7 +12,7 @@ import com.ckkj.griddle.R;
import com.ckkj.griddle.food.entity.ShopBannerEntity;
/**
* 商城顶部轮播适配器。
* 美食顶部推荐菜谱轮播适配器。
*/
public class ShopBannerAdapter extends BaseQuickAdapter<ShopBannerEntity, BaseViewHolder> {
@@ -23,12 +23,12 @@ public class ShopBannerAdapter extends BaseQuickAdapter<ShopBannerEntity, BaseVi
@Override
protected void convert(BaseViewHolder helper, ShopBannerEntity item) {
// 新稿只显示轮播图片,名称继续用于无障碍描述,不再覆盖到图片上。
String goodsName = item.getGoodsName();
String goodsName = item.getRecipeTitle();
ImageView cover = helper.getView(R.id.iv_food_banner);
cover.setContentDescription(goodsName);
// 空地址也通过 Glide 替换旧请求,避免复用时显示上一件商品图。
String goodsImg = item.getGoodsImg();
String goodsImg = item.getCoverImg();
Glide.with(cover)
.load(TextUtils.isEmpty(goodsImg) ? null : goodsImg.trim())
.placeholder(R.drawable.food_cover_placeholder)

View File

@@ -12,7 +12,7 @@ import com.ckkj.griddle.R;
import com.ckkj.griddle.food.entity.ShopGoodsEntity;
/**
* 商城横向列表、推荐宫格和全部商品页共用的商品适配器。
* 美食分类预览、推荐区和全部美食页共用的菜谱适配器。
*/
public class ShopFoodAdapter extends BaseQuickAdapter<ShopGoodsEntity, BaseViewHolder> {
@@ -22,12 +22,12 @@ public class ShopFoodAdapter extends BaseQuickAdapter<ShopGoodsEntity, BaseViewH
@Override
protected void convert(BaseViewHolder helper, ShopGoodsEntity item) {
String title = item.getGoodsName();
String title = item.getRecipeTitle();
helper.setText(R.id.tv_food_name, title);
ImageView cover = helper.getView(R.id.iv_food_cover);
cover.setContentDescription(title);
// 空图片同样交给 Glide,防止复用时旧的网络图片请求覆盖新商品。
String imageUrl = item.getGoodsImg();
String imageUrl = item.getCoverImg();
Glide.with(cover)
.load(TextUtils.isEmpty(imageUrl) ? null : imageUrl.trim())
.placeholder(R.drawable.food_cover_placeholder)

View File

@@ -1,45 +1,51 @@
package com.ckkj.griddle.food.entity;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/** 美食详情,名称、封面、简介和食材均由数据层提供。 */
public class FoodDetailEntity {
/** 菜谱详情,食材清单和制作步骤均按接口定义接收字符串。 */
public class FoodDetailEntity extends ShopGoodsEntity {
private String name;
private String cover;
private String description;
private List<String> ingredients;
private String foodList;
private String makeStep;
private String categoryName;
public String getName() {
return name;
public String getFoodList() {
return foodList;
}
public void setName(String name) {
this.name = name;
public void setFoodList(String foodList) {
this.foodList = foodList;
}
public String getCover() {
return cover;
public String getMakeStep() {
return makeStep;
}
public void setCover(String cover) {
this.cover = cover;
public void setMakeStep(String makeStep) {
this.makeStep = makeStep;
}
public String getDescription() {
return description;
public String getCategoryName() {
return categoryName;
}
public void setDescription(String description) {
this.description = description;
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
/** 仅按真实换行拆分食材,不擅自按逗号拆分或假定接口返回 JSON 数组。 */
public List<String> getIngredients() {
return ingredients == null ? Collections.emptyList() : ingredients;
if (foodList == null || foodList.trim().isEmpty()) {
return Collections.emptyList();
}
public void setIngredients(List<String> ingredients) {
this.ingredients = ingredients;
List<String> ingredients = new ArrayList<>();
for (String line : foodList.split("\\r\\n|\\r|\\n")) {
if (!line.trim().isEmpty()) {
ingredients.add(line.trim());
}
}
return ingredients;
}
}

View File

@@ -1,74 +1,5 @@
package com.ckkj.griddle.food.entity;
import java.io.Serializable;
/**
* 商城轮播商品实体,对应 Banner 接口返回的单个商品。
*/
public class ShopBannerEntity implements Serializable {
/**
* 商品 ID,按接口字符串接收,保留完整编号。
*/
private String id;
/**
* 商品名称,用作 Banner 标题。
*/
private String goodsName;
/**
* 商品图片地址。
*/
private String goodsImg;
/**
* 积分价格,接口以字符串返回。
*/
private String pointPrice;
/**
* 现金价格,接口以字符串返回,避免浮点转换损失精度。
*/
private String cashPrice;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getGoodsImg() {
return goodsImg;
}
public void setGoodsImg(String goodsImg) {
this.goodsImg = goodsImg;
}
public String getPointPrice() {
return pointPrice;
}
public void setPointPrice(String pointPrice) {
this.pointPrice = pointPrice;
}
public String getCashPrice() {
return cashPrice;
}
public void setCashPrice(String cashPrice) {
this.cashPrice = cashPrice;
}
/** 推荐菜谱与列表条目字段一致,复用 RecipeItem 的解析。 */
public class ShopBannerEntity extends ShopGoodsEntity {
}

View File

@@ -1,21 +1,17 @@
package com.ckkj.griddle.food.entity;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
/**
* 商城商品分类实体,对应商品分类列表接口返回项。
*/
/** 美食分类及该分类附带的菜谱预览。 */
public class ShopCategoryEntity implements Serializable {
/**
* 分类 ID,用于查询该分类下的商品。
*/
private long id;
/**
* 分类名称。
*/
private String categoryName;
/** 分类下的菜谱总数,不等同于预览条数。 */
private int recipeNum;
private List<ShopGoodsEntity> recipes;
public long getId() {
return id;
@@ -32,4 +28,20 @@ public class ShopCategoryEntity implements Serializable {
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
public int getRecipeNum() {
return recipeNum;
}
public void setRecipeNum(int recipeNum) {
this.recipeNum = recipeNum;
}
public List<ShopGoodsEntity> getRecipes() {
return recipes == null ? Collections.emptyList() : recipes;
}
public void setRecipes(List<ShopGoodsEntity> recipes) {
this.recipes = recipes;
}
}

View File

@@ -2,20 +2,15 @@ package com.ckkj.griddle.food.entity;
import java.io.Serializable;
/** 商品列表中的单个商品,对应 data.rows 中的数据。 */
/** 菜谱条目,对应轮播、分类预览及分页接口中的 RecipeItem。 */
public class ShopGoodsEntity implements Serializable {
/** 商品编号按字符串保存,兼容接口返回的长整型或字符串 ID。 */
/** 菜谱 ID 按字符串保留,避免长整型编号经过浮点转换。 */
private String id;
/** 商品名称。 */
private String goodsName;
/** 商品主图地址。 */
private String goodsImg;
/** 积分价格,使用字符串保留接口精度。 */
private String pointPrice;
/** 现金价格,使用字符串保留接口精度。 */
private String cashPrice;
/** 库存数量。 */
private int stockNum;
private String recipeTitle;
private String coverImg;
private long recipeCategoryId;
private String releaseTime;
public String getId() {
return id;
@@ -25,43 +20,35 @@ public class ShopGoodsEntity implements Serializable {
this.id = id;
}
public String getGoodsName() {
return goodsName;
public String getRecipeTitle() {
return recipeTitle;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
public void setRecipeTitle(String recipeTitle) {
this.recipeTitle = recipeTitle;
}
public String getGoodsImg() {
return goodsImg;
public String getCoverImg() {
return coverImg;
}
public void setGoodsImg(String goodsImg) {
this.goodsImg = goodsImg;
public void setCoverImg(String coverImg) {
this.coverImg = coverImg;
}
public String getPointPrice() {
return pointPrice;
public long getRecipeCategoryId() {
return recipeCategoryId;
}
public void setPointPrice(String pointPrice) {
this.pointPrice = pointPrice;
public void setRecipeCategoryId(long recipeCategoryId) {
this.recipeCategoryId = recipeCategoryId;
}
public String getCashPrice() {
return cashPrice;
public String getReleaseTime() {
return releaseTime;
}
public void setCashPrice(String cashPrice) {
this.cashPrice = cashPrice;
}
public int getStockNum() {
return stockNum;
}
public void setStockNum(int stockNum) {
this.stockNum = stockNum;
public void setReleaseTime(String releaseTime) {
this.releaseTime = releaseTime;
}
}

View File

@@ -4,11 +4,11 @@ import java.io.Serializable;
import java.util.Collections;
import java.util.List;
/** 商品列表分页数据,外层 code、msg 继续由 BaseBean 接收。 */
/** 菜谱列表分页数据,外层 code、msg 继续由 BaseBean 接收。 */
public class ShopGoodsPageEntity implements Serializable {
/** 当前分类下的商品总数。 */
/** 当前分类下的菜谱总数。 */
private long total;
/** 当前页的商品列表。 */
/** 当前页的菜谱列表。 */
private List<ShopGoodsEntity> rows;
public long getTotal() {

View File

@@ -1,199 +0,0 @@
package com.ckkj.griddle.food.mock;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.ArrayRes;
import androidx.annotation.StringRes;
import com.ckkj.griddle.R;
import com.ckkj.griddle.food.entity.FoodDetailEntity;
import com.ckkj.griddle.food.entity.ShopBannerEntity;
import com.ckkj.griddle.food.entity.ShopCategoryEntity;
import com.ckkj.griddle.food.entity.ShopGoodsEntity;
import com.ckkj.griddle.food.entity.ShopGoodsPageEntity;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 美食页面临时模拟数据,仅供界面展示,图片来自设计稿并存放在本地。
* TODO 接口联调时恢复页面中的 Presenter 调用,删除本类、food_mock_strings 和 assets/food_mock。
*/
public final class FoodMockData {
/** 本地资源直接交给现有 Glide 适配器加载,无需网络或修改正式实体。 */
private static final String ASSET_PREFIX = "file:///android_asset/food_mock/";
private static final long CATEGORY_BREAKFAST = 1L;
private static final long CATEGORY_MAIN_DISHES = 2L;
private static final long CATEGORY_DRINKS = 3L;
private static final long CATEGORY_SNACK = 4L;
/** 前八项对应设计稿的推荐卡片;短标题、长标题混排,便于查看两行省略效果。 */
private static final Recipe[] RECIPES = {
new Recipe(CATEGORY_MAIN_DISHES, R.string.food_mock_beef_noodles, "beef_noodles"),
new Recipe(CATEGORY_MAIN_DISHES, R.string.food_mock_fried_rice, "fried_rice"),
new Recipe(CATEGORY_SNACK, R.string.food_mock_egg_tart, "egg_tart"),
new Recipe(CATEGORY_MAIN_DISHES, R.string.food_mock_mushroom_stew, "mushroom_stew"),
new Recipe(CATEGORY_MAIN_DISHES, R.string.food_mock_meatball, "meatball"),
new Recipe(CATEGORY_MAIN_DISHES, R.string.food_mock_pepper_pork, "pepper_pork"),
new Recipe(CATEGORY_MAIN_DISHES, R.string.food_mock_cold_noodles, "cold_noodles"),
new Recipe(CATEGORY_MAIN_DISHES, R.string.food_mock_stir_fried_beef, "stir_fried_beef"),
new Recipe(CATEGORY_BREAKFAST, R.string.food_mock_breakfast_pasta, "breakfast_pasta"),
new Recipe(CATEGORY_BREAKFAST, R.string.food_mock_vegetable_pasta, "vegetable_pasta"),
new Recipe(CATEGORY_BREAKFAST, R.string.food_mock_breakfast_curry, "breakfast_curry"),
new Recipe(CATEGORY_BREAKFAST, R.string.food_mock_breakfast_rice, "fried_rice"),
new Recipe(CATEGORY_BREAKFAST, R.string.food_mock_breakfast_tart, "egg_tart"),
new Recipe(CATEGORY_BREAKFAST, R.string.food_mock_breakfast_noodles, "cold_noodles"),
new Recipe(CATEGORY_DRINKS, R.string.food_mock_orange_drink, "fruit_drinks"),
new Recipe(CATEGORY_DRINKS, R.string.food_mock_berry_drink, "fruit_drinks"),
new Recipe(CATEGORY_DRINKS, R.string.food_mock_fruit_drink, "fruit_drinks"),
new Recipe(CATEGORY_DRINKS, R.string.food_mock_drink_combo, "fruit_drinks"),
new Recipe(CATEGORY_SNACK, R.string.food_mock_tart_combo, "egg_tart"),
new Recipe(CATEGORY_SNACK, R.string.food_mock_meatball_combo, "meatball"),
new Recipe(CATEGORY_SNACK, R.string.food_mock_mushroom_bowl, "mushroom_stew"),
new Recipe(CATEGORY_SNACK, R.string.food_mock_pasta_bowl, "vegetable_pasta"),
new Recipe(CATEGORY_SNACK, R.string.food_mock_beef_bowl, "stir_fried_beef"),
new Recipe(CATEGORY_SNACK, R.string.food_mock_noodle_bowl, "cold_noodles")
};
private FoodMockData() {
}
/** 三张本地轮播图,沿用页面现有自动轮播和指示器逻辑。 */
public static List<ShopBannerEntity> getBanners(Context context) {
List<ShopBannerEntity> banners = new ArrayList<>();
banners.add(createBanner(context, "food_mock_banner_1",
R.string.food_mock_banner_promotion, "banner"));
banners.add(createBanner(context, "food_mock_banner_2",
R.string.food_mock_breakfast_pasta, "breakfast_pasta"));
banners.add(createBanner(context, "food_mock_banner_3",
R.string.food_mock_beef_noodles, "beef_noodles"));
return banners;
}
/** 分类文案读取项目已有的中英文资源,语言切换后重新进入页面即可生效。 */
public static List<ShopCategoryEntity> getCategories(Context context) {
List<ShopCategoryEntity> categories = new ArrayList<>();
categories.add(createCategory(context, CATEGORY_BREAKFAST, R.string.food_category_breakfast));
categories.add(createCategory(context, CATEGORY_MAIN_DISHES, R.string.food_category_main_dishes));
categories.add(createCategory(context, CATEGORY_DRINKS, R.string.food_category_drinks));
categories.add(createCategory(context, CATEGORY_SNACK, R.string.food_category_snack));
return categories;
}
/** 分类切换时返回对应美食,每次创建新列表,避免适配器互相影响。 */
public static ShopGoodsPageEntity getCategoryGoods(Context context, long categoryId,
int page, int pageSize) {
List<ShopGoodsEntity> goods = new ArrayList<>();
for (int index = 0; index < RECIPES.length; index++) {
if (RECIPES[index].categoryId == categoryId) {
goods.add(createGoods(context, index));
}
}
return paginate(goods, page, pageSize);
}
/** 首页推荐固定展示设计稿中的八张卡片,不与分类区共用可变列表。 */
public static List<ShopGoodsEntity> getRecommendedGoods(Context context) {
return getAllGoods(context, 1, 8).getRows();
}
/** 共 24 条美食数据,沿用每页 20 条的规则,支持刷新、加载更多及无更多状态。 */
public static ShopGoodsPageEntity getAllGoods(Context context, int page, int pageSize) {
List<ShopGoodsEntity> goods = new ArrayList<>();
for (int index = 0; index < RECIPES.length; index++) {
goods.add(createGoods(context, index));
}
return paginate(goods, page, pageSize);
}
/**
* 临时详情沿用列表条目的名称及封面,食材按展示菜品分组填充。
* TODO 接入详情接口时与本类其他模拟数据一并删除。
*/
public static FoodDetailEntity getDetail(Context context, ShopGoodsEntity food) {
FoodDetailEntity detail = new FoodDetailEntity();
detail.setName(food.getGoodsName());
detail.setCover(food.getGoodsImg());
// 设计稿的简介区仅展示标题和分隔线,暂不添加设计稿之外的模拟正文。
detail.setDescription("");
String image = TextUtils.isEmpty(food.getGoodsImg()) ? "" : food.getGoodsImg();
@ArrayRes int ingredientsRes = R.array.food_mock_ingredients_main;
if (image.contains("noodles") || image.contains("pasta")) {
ingredientsRes = R.array.food_mock_ingredients_noodles;
} else if (image.contains("fried_rice")) {
ingredientsRes = R.array.food_mock_ingredients_rice;
} else if (image.contains("egg_tart")) {
ingredientsRes = R.array.food_mock_ingredients_pastry;
} else if (image.contains("fruit_drinks")) {
ingredientsRes = R.array.food_mock_ingredients_drinks;
}
detail.setIngredients(new ArrayList<>(Arrays.asList(
context.getResources().getStringArray(ingredientsRes))));
return detail;
}
/** 总数始终为完整数据量,越界页返回空列表,避免反复加载相同数据。 */
private static ShopGoodsPageEntity paginate(List<ShopGoodsEntity> goods,
int page, int pageSize) {
ShopGoodsPageEntity result = new ShopGoodsPageEntity();
result.setTotal(goods.size());
List<ShopGoodsEntity> rows = new ArrayList<>();
if (page > 0 && pageSize > 0) {
long start = (long) (page - 1) * pageSize;
if (start < goods.size()) {
int end = (int) Math.min(start + pageSize, goods.size());
rows.addAll(goods.subList((int) start, end));
}
}
result.setRows(rows);
return result;
}
private static ShopGoodsEntity createGoods(Context context, int index) {
Recipe recipe = RECIPES[index];
ShopGoodsEntity goods = new ShopGoodsEntity();
goods.setId("food_mock_" + (index + 1));
goods.setGoodsName(context.getString(recipe.nameRes));
goods.setGoodsImg(imagePath(recipe.imageName));
return goods;
}
private static ShopBannerEntity createBanner(Context context, String id,
@StringRes int nameRes, String imageName) {
ShopBannerEntity banner = new ShopBannerEntity();
banner.setId(id);
banner.setGoodsName(context.getString(nameRes));
banner.setGoodsImg(imagePath(imageName));
return banner;
}
private static ShopCategoryEntity createCategory(Context context, long id,
@StringRes int nameRes) {
ShopCategoryEntity category = new ShopCategoryEntity();
category.setId(id);
category.setCategoryName(context.getString(nameRes));
return category;
}
private static String imagePath(String imageName) {
return ASSET_PREFIX + imageName + ".jpg";
}
/** 仅保存模拟内容描述,不扩展正式接口实体。 */
private static final class Recipe {
private final long categoryId;
@StringRes
private final int nameRes;
private final String imageName;
private Recipe(long categoryId, @StringRes int nameRes, String imageName) {
this.categoryId = categoryId;
this.nameRes = nameRes;
this.imageName = imageName;
}
}
}

View File

@@ -12,6 +12,8 @@ public final class FoodDetailContract {
public interface DataModel {
void getFoodDetail(ShopGoodsEntity food, ShopContract.CallBack<FoodDetailEntity> callback);
void cancelRequests();
}
public interface DetailView extends IView {

View File

@@ -1,27 +1,94 @@
package com.ckkj.griddle.food.mvp;
import android.content.Context;
import android.text.TextUtils;
import com.ckkj.griddle.MyApplication;
import com.ckkj.griddle.R;
import com.ckkj.griddle.food.entity.FoodDetailEntity;
import com.ckkj.griddle.food.entity.ShopGoodsEntity;
import com.ckkj.griddle.food.mock.FoodMockData;
import com.ckkj.griddle.network.BaseBean;
import com.ckkj.griddle.network.NetWorkManager;
import com.ckkj.griddle.utils.AppLanguageUtil;
/** 详情暂用本地模拟数据,后续联调在此替换为详情接口。 */
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;
import io.reactivex.disposables.SerialDisposable;
import io.reactivex.schedulers.Schedulers;
/** 按菜谱 ID 查询详情,不再使用列表条目或本地数据拼装正文。 */
public class FoodDetailImpl implements FoodDetailContract.DataModel {
private final SerialDisposable detailRequest = new SerialDisposable();
@Override
public void getFoodDetail(ShopGoodsEntity food,
ShopContract.CallBack<FoodDetailEntity> callback) {
// 数据层不持有 Activity,读取资源时使用应用当前选择的语言。
Context context = AppLanguageUtil.wrap(MyApplication.getContext());
if (food == null) {
cancelRequests();
String id = food == null ? null : food.getId();
if (!isValidRecipeId(id)) {
callback.fail(context.getString(R.string.food_detail_unavailable));
return;
}
// TODO 美食接口联调时,改用 food.getId() 查询详情并删除此模拟数据调用。
callback.success(FoodMockData.getDetail(context, food));
try {
NetWorkManager.getRequest().getFoodDetail(NetWorkManager.getToken(), id)
.subscribeOn(Schedulers.io())
.unsubscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Observer<BaseBean<FoodDetailEntity>>() {
@Override
public void onSubscribe(@NonNull Disposable d) {
detailRequest.set(d);
}
@Override
public void onNext(@NonNull BaseBean<FoodDetailEntity> bean) {
if ((bean.isSuccess() || bean.getCode() == 200) && bean.getData() != null) {
callback.success(bean.getData());
} else {
callback.fail(errorMessage(bean.getMessage()));
}
}
@Override
public void onError(@NonNull Throwable e) {
callback.fail(errorMessage(e.getMessage()));
}
@Override
public void onComplete() {
}
});
} catch (Exception e) {
callback.fail(errorMessage(e.getMessage()));
}
}
/** 编号应为有效的 int64,避免参数缺失时请求错误的详情地址。 */
private boolean isValidRecipeId(String id) {
if (TextUtils.isEmpty(id)) {
return false;
}
try {
Long.parseLong(id);
return true;
} catch (NumberFormatException e) {
return false;
}
}
private String errorMessage(String message) {
return TextUtils.isEmpty(message)
? AppLanguageUtil.wrap(MyApplication.getContext())
.getString(R.string.food_detail_unavailable) : message;
}
@Override
public void cancelRequests() {
detailRequest.set(null);
}
}

View File

@@ -8,26 +8,35 @@ import com.ckkj.griddle.food.entity.ShopGoodsEntity;
public class FoodDetailPresenter extends BasePresenter<FoodDetailContract.DetailView> {
private final FoodDetailContract.DataModel impl;
private int requestVersion;
public FoodDetailPresenter(FoodDetailContract.DataModel impl) {
this.impl = impl;
}
public void getFoodDetail(ShopGoodsEntity food) {
final int version = ++requestVersion;
impl.getFoodDetail(food, new ShopContract.CallBack<FoodDetailEntity>() {
@Override
public void success(FoodDetailEntity detail) {
if (getView() != null) {
if (getView() != null && version == requestVersion) {
getView().showFoodDetail(detail);
}
}
@Override
public void fail(String message) {
if (getView() != null) {
if (getView() != null && version == requestVersion) {
getView().showError(message);
}
}
});
}
@Override
public void onDestroy() {
requestVersion++;
impl.cancelRequests();
super.onDestroy();
}
}

View File

@@ -9,7 +9,7 @@ import java.util.List;
import java.util.Map;
/**
* 商城页面与数据层协议。
* 美食页面与数据层协议。
*/
public final class ShopContract {
@@ -26,47 +26,47 @@ public final class ShopContract {
}
/**
* 商城业务的数据层接口。
* 美食业务的数据层接口。
*/
public interface DataModel {
/**
* 获取商城顶部轮播商品。
* 获取美食顶部轮播菜谱。
*/
void getShopBanners(CallBack<List<ShopBannerEntity>> callback);
/**
* 获取商城商品分类列表。
* 获取美食菜谱分类列表。
*/
void getShopCategories(CallBack<List<ShopCategoryEntity>> callback);
void getShopCategories(Integer size, CallBack<List<ShopCategoryEntity>> callback);
/**
* 分页获取商品列表,不传 categoryId 时查询全部商品。
* 分页获取菜谱列表,不传 categoryId 时查询全部菜谱。
*/
void getShopGoods(Map<String, Object> map, CallBack<ShopGoodsPageEntity> callback);
}
/**
* 商城页面需要实现的视图接口。
* 美食页面需要实现的视图接口。
*/
public interface ShopView extends IView {
/**
* 轮播商品获取成功,将数据交给页面展示。
* 轮播菜谱获取成功,将数据交给页面展示。
*/
void getShopBannersSuccess(List<ShopBannerEntity> banners);
/**
* 商品分类获取成功。
* 菜谱分类获取成功。
*/
void getShopCategoriesSuccess(List<ShopCategoryEntity> categories);
/** 商品获取成功,由首页或全部商品页更新各自的列表。 */
/** 菜谱获取成功,由首页或全部菜谱页更新各自的列表。 */
void getShopGoodsSuccess(ShopGoodsPageEntity data);
/** 各请求成功或失败后均通知页面,便于准确结束下拉刷新。 */
void onShopRequestFinished(RequestType type);
}
/** 商城页面参与刷新的三个请求类型。 */
/** 美食页面参与刷新的三个请求类型。 */
public enum RequestType {
BANNERS, CATEGORIES, GOODS
}

View File

@@ -1,5 +1,10 @@
package com.ckkj.griddle.food.mvp;
import android.text.TextUtils;
import com.ckkj.griddle.MyApplication;
import com.ckkj.griddle.R;
import com.ckkj.griddle.utils.AppLanguageUtil;
import com.ckkj.griddle.network.BaseBean;
import com.ckkj.griddle.network.NetWorkManager;
import com.ckkj.griddle.food.entity.ShopBannerEntity;
@@ -14,15 +19,21 @@ import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;
import io.reactivex.disposables.SerialDisposable;
import io.reactivex.schedulers.Schedulers;
/**
* 商城页面数据实现。
* 美食页面数据实现。
*/
public class ShopImpl implements ShopContract.DataModel {
/** 同类请求只保留最新一次;视图销毁时可取消,重建后仍能复用。 */
private final SerialDisposable bannerRequest = new SerialDisposable();
private final SerialDisposable categoryRequest = new SerialDisposable();
private final SerialDisposable goodsRequest = new SerialDisposable();
/**
* 请求商城轮播商品,并将接口结果转换为页面可直接使用的列表。
* 请求美食轮播菜谱,并将接口结果转换为页面可直接使用的列表。
*/
@Override
public void getShopBanners(ShopContract.CallBack<List<ShopBannerEntity>> callback) {
@@ -35,11 +46,12 @@ public class ShopImpl implements ShopContract.DataModel {
.subscribe(new Observer<BaseBean<List<ShopBannerEntity>>>() {
@Override
public void onSubscribe(@NonNull Disposable d) {
bannerRequest.set(d);
}
@Override
public void onNext(@NonNull BaseBean<List<ShopBannerEntity>> bean) {
// Banner 实际接口使用 200,兼容项目原有的成功码判断。
// 新接口 code=0 成功,保留项目原有 200 成功码的兼容。
if (bean != null && (bean.getCode() == 200 || bean.isSuccess())) {
// 接口未返回数据时统一转成空列表,页面无需重复判空。
List<ShopBannerEntity> banners = bean.getData();
@@ -47,13 +59,14 @@ public class ShopImpl implements ShopContract.DataModel {
? Collections.emptyList()
: banners);
} else {
callback.fail(bean == null ? "轮播图获取失败" : bean.getMessage());
callback.fail(errorMessage(bean == null ? null : bean.getMessage(),
R.string.food_banners_load_failed));
}
}
@Override
public void onError(@NonNull Throwable e) {
callback.fail(e.getMessage());
callback.fail(errorMessage(e.getMessage(), R.string.food_banners_load_failed));
}
@Override
@@ -62,24 +75,26 @@ public class ShopImpl implements ShopContract.DataModel {
});
} catch (Exception e) {
e.printStackTrace();
callback.fail(e.getMessage());
callback.fail(errorMessage(e.getMessage(), R.string.food_banners_load_failed));
}
}
/**
* 请求商城商品分类列表。
* 请求美食菜谱分类列表。
*/
@Override
public void getShopCategories(ShopContract.CallBack<List<ShopCategoryEntity>> callback) {
public void getShopCategories(Integer size,
ShopContract.CallBack<List<ShopCategoryEntity>> callback) {
try {
// 网络请求运行在 IO 线程,响应结果切回主线程后再通知页面。
NetWorkManager.getRequest().getShopCategories(NetWorkManager.getToken())
NetWorkManager.getRequest().getShopCategories(NetWorkManager.getToken(), size)
.subscribeOn(Schedulers.io())
.unsubscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Observer<BaseBean<List<ShopCategoryEntity>>>() {
@Override
public void onSubscribe(@NonNull Disposable d) {
categoryRequest.set(d);
}
@Override
@@ -91,13 +106,14 @@ public class ShopImpl implements ShopContract.DataModel {
? Collections.emptyList()
: categories);
} else {
callback.fail(bean == null ? "商品分类获取失败" : bean.getMessage());
callback.fail(errorMessage(bean == null ? null : bean.getMessage(),
R.string.food_categories_load_failed));
}
}
@Override
public void onError(@NonNull Throwable e) {
callback.fail(e.getMessage());
callback.fail(errorMessage(e.getMessage(), R.string.food_categories_load_failed));
}
@Override
@@ -106,11 +122,11 @@ public class ShopImpl implements ShopContract.DataModel {
});
} catch (Exception e) {
e.printStackTrace();
callback.fail(e.getMessage());
callback.fail(errorMessage(e.getMessage(), R.string.food_categories_load_failed));
}
}
/** 请求分类商品,继续沿用商城其他接口的 RxJava 和 BaseBean 写法。 */
/** 请求分类菜谱,继续沿用美食其他接口的 RxJava 和 BaseBean 写法。 */
@Override
public void getShopGoods(Map<String, Object> map,
ShopContract.CallBack<ShopGoodsPageEntity> callback) {
@@ -122,22 +138,24 @@ public class ShopImpl implements ShopContract.DataModel {
.subscribe(new Observer<BaseBean<ShopGoodsPageEntity>>() {
@Override
public void onSubscribe(@NonNull Disposable d) {
goodsRequest.set(d);
}
@Override
public void onNext(@NonNull BaseBean<ShopGoodsPageEntity> bean) {
if (bean != null && (bean.getCode() == 200 || bean.isSuccess())) {
// 空 data 也作为空列表处理,及时清掉上一分类的商品。
// 空 data 也作为空列表处理,及时清掉上一分类的菜谱。
callback.success(bean.getData() == null
? new ShopGoodsPageEntity() : bean.getData());
} else {
callback.fail(bean == null ? "商品列表获取失败" : bean.getMessage());
callback.fail(errorMessage(bean == null ? null : bean.getMessage(),
R.string.food_all_recipes_load_failed));
}
}
@Override
public void onError(@NonNull Throwable e) {
callback.fail(e.getMessage());
callback.fail(errorMessage(e.getMessage(), R.string.food_all_recipes_load_failed));
}
@Override
@@ -146,7 +164,22 @@ public class ShopImpl implements ShopContract.DataModel {
});
} catch (Exception e) {
e.printStackTrace();
callback.fail(e.getMessage());
callback.fail(errorMessage(e.getMessage(), R.string.food_all_recipes_load_failed));
}
}
public void cancelGoodsRequest() {
goodsRequest.set(null);
}
public void cancelRequests() {
bannerRequest.set(null);
categoryRequest.set(null);
cancelGoodsRequest();
}
private String errorMessage(String message, int fallbackRes) {
return TextUtils.isEmpty(message)
? AppLanguageUtil.wrap(MyApplication.getContext()).getString(fallbackRes) : message;
}
}

View File

@@ -10,7 +10,7 @@ import java.util.List;
import java.util.Map;
/**
* 商城页面业务协调层。
* 美食页面业务协调层。
*/
public class ShopPresenter extends BasePresenter<ShopContract.ShopView> {
@@ -25,7 +25,7 @@ public class ShopPresenter extends BasePresenter<ShopContract.ShopView> {
}
/**
* 获取商城顶部轮播数据,并将结果转发给页面。
* 获取美食顶部轮播数据,并将结果转发给页面。
*/
public void getShopBanners() {
final int requestVersion = ++bannerRequestVersion;
@@ -49,11 +49,16 @@ public class ShopPresenter extends BasePresenter<ShopContract.ShopView> {
}
/**
* 获取商城商品分类列表,并将结果转发给页面。
* 获取美食菜谱分类列表,并将结果转发给页面。
*/
public void getShopCategories() {
getShopCategories(null);
}
/** 首页限制预览条数,其他调用可省略 size 查询完整分类。 */
public void getShopCategories(Integer size) {
final int requestVersion = ++categoryRequestVersion;
mImpl.getShopCategories(new ShopContract.CallBack<List<ShopCategoryEntity>>() {
mImpl.getShopCategories(size, new ShopContract.CallBack<List<ShopCategoryEntity>>() {
@Override
public void success(List<ShopCategoryEntity> data) {
if (getView() != null && requestVersion == categoryRequestVersion) {
@@ -79,7 +84,7 @@ public class ShopPresenter extends BasePresenter<ShopContract.ShopView> {
requestGoods(map, page, size);
}
/** 查询全部商品:不提交 categoryId,避免被首页当前分类限制。 */
/** 查询全部菜谱:不提交 categoryId,避免被首页当前分类限制。 */
public void getAllShopGoods(int page, int size) {
requestGoods(new HashMap<>(), page, size);
}
@@ -108,16 +113,18 @@ public class ShopPresenter extends BasePresenter<ShopContract.ShopView> {
});
}
/** 分类为空或重新加载分类时,让此前商品请求的回调失效。 */
/** 分类为空或重新加载分类时,让此前菜谱请求的回调失效。 */
public void cancelGoodsRequest() {
goodsRequestVersion++;
mImpl.cancelGoodsRequest();
}
/** 视图销毁时停止向旧页面派发回调。 */
public void cancelRequests() {
bannerRequestVersion++;
categoryRequestVersion++;
cancelGoodsRequest();
goodsRequestVersion++;
mImpl.cancelRequests();
}
@Override

View File

@@ -30,6 +30,7 @@ public class EmailLoginActivity extends BaseActivity<EmailLoginLayoutBinding, Lo
private LoginCodeCountdown mCountdown;
private LoginLanguageDialog mLanguageDialog;
private boolean requestingCode;
private boolean submittingLogin;
@Override
public LoginPresenter createPresenter() {
@@ -52,6 +53,7 @@ public class EmailLoginActivity extends BaseActivity<EmailLoginLayoutBinding, Lo
@OnClick({R.id.tv_email_get_code, R.id.tv_email_login_confirm,
R.id.ll_phone_login, R.id.tv_login_language})
public void onClick(View v) {
if (requestingCode || submittingLogin) return;
switch (v.getId()) {
case R.id.ll_phone_login:
// 从手机页进入时直接返回,避免两种登录方式循环压栈。
@@ -75,7 +77,7 @@ public class EmailLoginActivity extends BaseActivity<EmailLoginLayoutBinding, Lo
}
private void getEmailCode() {
if (requestingCode || mCountdown.getDeadline() != 0) return;
if (requestingCode || submittingLogin || mCountdown.getDeadline() != 0) return;
String email = getValidatedEmail();
if (email == null) return;
requestingCode = true;
@@ -84,6 +86,7 @@ public class EmailLoginActivity extends BaseActivity<EmailLoginLayoutBinding, Lo
}
private void submitLogin() {
if (submittingLogin || requestingCode) return;
String email = getValidatedEmail();
if (email == null) return;
String code = viewBinding.edEmailCodeInput.getText().toString().trim();
@@ -95,6 +98,8 @@ public class EmailLoginActivity extends BaseActivity<EmailLoginLayoutBinding, Lo
ToastUtil.showShort(mContext, getString(R.string.login_code_invalid));
return;
}
submittingLogin = true;
viewBinding.tvEmailLoginConfirm.setEnabled(false);
showLoadingDialog();
mPresenter.loginByEmailCode(email, code);
}
@@ -106,6 +111,10 @@ public class EmailLoginActivity extends BaseActivity<EmailLoginLayoutBinding, Lo
ToastUtil.showShort(mContext, getString(R.string.email_login_address_required));
return null;
}
if (email.length() > 50) {
ToastUtil.showShort(mContext, getString(R.string.email_login_address_too_long));
return null;
}
if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {
ToastUtil.showShort(mContext, getString(R.string.email_login_address_invalid));
return null;
@@ -156,6 +165,8 @@ public class EmailLoginActivity extends BaseActivity<EmailLoginLayoutBinding, Lo
@Override
public void showError(String message) {
requestingCode = false;
submittingLogin = false;
viewBinding.tvEmailLoginConfirm.setEnabled(true);
hideDialogLoading();
ToastUtil.showShort(mContext, message);
}

View File

@@ -41,6 +41,7 @@ public class LoginActivity extends BaseActivity<LoginLayoutBinding, LoginPresent
private LoginCodeCountdown mCountdown;
private boolean verification;
private boolean requestingCode;
private boolean submittingLogin;
@Override
public LoginPresenter createPresenter() {
@@ -72,6 +73,7 @@ public class LoginActivity extends BaseActivity<LoginLayoutBinding, LoginPresent
@OnClick({R.id.tv_login_confirm, R.id.tv_get_code, R.id.tv_country_code,
R.id.ll_email_login, R.id.tv_login_language})
public void onClick(View v) {
if (requestingCode || submittingLogin) return;
switch (v.getId()) {
case R.id.tv_country_code:
showCountryCodeDialog();
@@ -116,6 +118,7 @@ public class LoginActivity extends BaseActivity<LoginLayoutBinding, LoginPresent
}
private void submitLogin() {
if (submittingLogin || requestingCode) return;
String phone = getValidatedPhone();
if (phone == null) return;
String code = viewBinding.edCodeInput.getText().toString().trim();
@@ -127,12 +130,14 @@ public class LoginActivity extends BaseActivity<LoginLayoutBinding, LoginPresent
showError(getString(R.string.login_code_invalid));
return;
}
submittingLogin = true;
viewBinding.tvLoginConfirm.setEnabled(false);
showLoadingDialog();
mPresenter.loginBySmsCode(phone, code);
}
private void getPhoneCode() {
if (requestingCode || mCountdown.getDeadline() != 0) return;
if (requestingCode || submittingLogin || mCountdown.getDeadline() != 0) return;
String phone = getValidatedPhone();
if (phone == null) return;
requestingCode = true;
@@ -213,6 +218,8 @@ public class LoginActivity extends BaseActivity<LoginLayoutBinding, LoginPresent
@Override
public void showError(String message) {
requestingCode = false;
submittingLogin = false;
viewBinding.tvLoginConfirm.setEnabled(true);
hideDialogLoading();
ToastUtil.showShort(mContext, message);
}

View File

@@ -1,17 +1,21 @@
package com.ckkj.griddle.login.mvp;
import android.text.TextUtils;
import com.ckkj.griddle.login.entity.LoginEntity;
import com.ckkj.griddle.MyApplication;
import com.ckkj.griddle.R;
import com.ckkj.griddle.network.BaseBean;
import com.ckkj.griddle.network.LoginStateManager;
import com.ckkj.griddle.network.NetWorkManager;
import com.ckkj.griddle.utils.AppLanguageUtil;
import org.json.JSONObject;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
@@ -22,17 +26,34 @@ import io.reactivex.schedulers.Schedulers;
*/
public class LoginImpl implements LoginContract.DataModel {
private final CompositeDisposable requests = new CompositeDisposable();
/** 邮箱验证码接口尚未提供,接入时替换此处,不复用手机短信接口。 */
/** 发送邮箱验证码,成功回调后页面才开始 60 秒倒计时。 */
@Override
public void getAuthEmailCode(JSONObject json, LoginContract.CallBack<BaseBean> callBack) {
callBack.fail(MyApplication.getContext().getString(R.string.email_login_unavailable));
try {
NetWorkManager.getRequest().sendAuthEmailCode(NetWorkManager.toRequestBody(json))
.subscribeOn(Schedulers.io())
.unsubscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(createAuthObserver(callBack));
} catch (Exception e) {
callBack.fail(getExceptionMessage(e));
}
}
/** 邮箱登录接口尚未提供,不伪造发送或登录成功。 */
/** 邮箱验证码登录与短信登录共用 data.token 解析及业务结果处理。 */
@Override
public void loginByEmailCode(JSONObject json, LoginContract.CallBack<LoginEntity> callBack) {
callBack.fail(MyApplication.getContext().getString(R.string.email_login_unavailable));
try {
NetWorkManager.getRequest().loginByEmailCode(NetWorkManager.toRequestBody(json))
.subscribeOn(Schedulers.io())
.unsubscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(createLoginObserver(callBack));
} catch (Exception e) {
callBack.fail(getExceptionMessage(e));
}
}
/**
@@ -49,6 +70,7 @@ public class LoginImpl implements LoginContract.DataModel {
.subscribe(new Observer<BaseBean>() {
@Override
public void onSubscribe(@NonNull Disposable d) {
requests.add(d);
}
@Override
@@ -147,19 +169,23 @@ public class LoginImpl implements LoginContract.DataModel {
return new Observer<BaseBean<LoginEntity>>() {
@Override
public void onSubscribe(@NonNull Disposable d) {
requests.add(d);
}
@Override
public void onNext(@NonNull BaseBean<LoginEntity> bean) {
if (bean != null && (bean.getCode() == 200 || bean.getCode() == 0)
&& bean.getData() != null
&& bean.getData().getAccess_token() != null
&& !bean.getData().getAccess_token().isEmpty()) {
LoginStateManager.reset();
callBack.success(bean.getData());
} else {
if (bean == null || (bean.getCode() != 0 && bean.getCode() != 200)) {
callBack.fail(getErrorMessage(bean));
return;
}
// 成功状态码也必须返回有效令牌,不能把空 data 当作登录完成。
LoginEntity entity = bean.getData();
if (entity == null || TextUtils.isEmpty(entity.getAccess_token())) {
callBack.fail(getMessage(R.string.login_api_token_missing));
return;
}
LoginStateManager.reset();
callBack.success(entity);
}
@Override
@@ -186,6 +212,7 @@ public class LoginImpl implements LoginContract.DataModel {
return new Observer<BaseBean>() {
@Override
public void onSubscribe(@NonNull Disposable d) {
requests.add(d);
}
@Override
@@ -212,7 +239,7 @@ public class LoginImpl implements LoginContract.DataModel {
if (bean != null && bean.getMessage() != null && !bean.getMessage().isEmpty()) {
return bean.getMessage();
}
return "请求失败,请稍后重试";
return getMessage(R.string.login_api_request_failed);
}
private String getExceptionMessage(Throwable throwable) {
@@ -220,6 +247,15 @@ public class LoginImpl implements LoginContract.DataModel {
&& !throwable.getMessage().isEmpty()) {
return throwable.getMessage();
}
return "网络异常,请稍后重试";
return getMessage(R.string.login_api_network_failed);
}
private String getMessage(int messageRes) {
return AppLanguageUtil.wrap(MyApplication.getContext()).getString(messageRes);
}
/** 页面销毁后取消发码和登录请求,避免旧页面回调继续修改会话或弹出提示。 */
public void dispose() {
requests.dispose();
}
}

View File

@@ -7,6 +7,7 @@ import com.ckkj.griddle.AppConfig;
import com.ckkj.griddle.ConstantUtil;
import com.ckkj.griddle.EventMessage;
import com.ckkj.griddle.MyApplication;
import com.ckkj.griddle.R;
import com.ckkj.griddle.base.BasePresenter;
import com.ckkj.griddle.base.entity.MineUserInfoBean;
import com.ckkj.griddle.base.entity.UserInfoEntity;
@@ -14,6 +15,7 @@ import com.ckkj.griddle.login.entity.LoginEntity;
import com.ckkj.griddle.base.repository.UserInfoRepository;
import com.ckkj.griddle.network.BaseBean;
import com.ckkj.griddle.utils.dataUtil.SharePreUtil;
import com.ckkj.griddle.utils.AppLanguageUtil;
import com.ckkj.griddle.utils.manager.MingDengUserInfoManager;
import org.json.JSONException;
@@ -42,6 +44,8 @@ public class LoginPresenter extends BasePresenter<LoginContract.LoginView> {
try {
JSONObject json = new JSONObject();
json.put("email", email);
// 接口示例省略了此字段,数据模型明确要求传入登录场景。
json.put("scene", AppConfig.SMS_CODE_TYPE_LOGIN);
mImpl.getAuthEmailCode(json, new LoginContract.CallBack<BaseBean>() {
@Override
public void success(BaseBean bean) {
@@ -220,7 +224,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.LoginView> {
private void handleLoginSuccess(LoginEntity entity) {
if (entity == null || TextUtils.isEmpty(entity.getAccess_token())) {
if (getView() != null) {
getView().showError("登录凭证缺失,请稍后重试");
getView().showError(getMessage(R.string.login_api_token_missing));
}
return;
}
@@ -228,7 +232,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.LoginView> {
String token = entity.getAccess_token();
if (!SharePreUtil.saveLoginSession(MyApplication.getContext(), token)) {
if (getView() != null) {
getView().showError("登录状态保存失败,请重试");
getView().showError(getMessage(R.string.login_api_session_save_failed));
}
return;
}
@@ -267,7 +271,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.LoginView> {
public void success(MineUserInfoBean bean) {
if (bean == null || bean.getUserInfo() == null) {
if (getView() != null) {
getView().userInfoLoadFailed("用户资料为空");
getView().userInfoLoadFailed(getMessage(R.string.login_api_user_info_empty));
}
return;
}
@@ -319,7 +323,17 @@ public class LoginPresenter extends BasePresenter<LoginContract.LoginView> {
private void showRequestError() {
if (getView() != null) {
getView().showError("请求参数异常,请稍后重试");
getView().showError(getMessage(R.string.login_api_request_invalid));
}
}
private String getMessage(int messageRes) {
return AppLanguageUtil.wrap(MyApplication.getContext()).getString(messageRes);
}
@Override
public void onDestroy() {
super.onDestroy();
mImpl.dispose();
}
}

View File

@@ -13,6 +13,7 @@ import com.ckkj.griddle.cart.CartManageActivity;
import com.ckkj.griddle.coupon.CouponManageActivity;
import com.ckkj.griddle.base.entity.UserInfoEntity;
import com.ckkj.griddle.databinding.MineFragmentLayoutBinding;
import com.ckkj.griddle.dialog.CustomerServiceDialog;
import com.ckkj.griddle.fault.DeviceFaultLHistoryActivity;
import com.ckkj.griddle.mine.mvp.MineContract;
import com.ckkj.griddle.mine.mvp.MineImpl;
@@ -33,6 +34,8 @@ import butterknife.OnClick;
public class MineFragment extends BaseFragment<MineFragmentLayoutBinding, MinePresenter>
implements MineContract.MineView {
private CustomerServiceDialog customerServiceDialog;
@Override
public MinePresenter createPresenter() {
return new MinePresenter(new MineImpl());
@@ -41,9 +44,12 @@ public class MineFragment extends BaseFragment<MineFragmentLayoutBinding, MinePr
@OnClick({R.id.cv_mine_profile, R.id.ll_mine_devices, R.id.ll_credit_history,
R.id.ll_registration_order, R.id.ll_mine_addresses, R.id.ll_mine_shares,
R.id.ll_mine_repairs, R.id.ll_mine_cart, R.id.ll_mine_orders, R.id.ll_mine_reviews,
R.id.ll_mine_refunds, R.id.ll_mine_coupons})
R.id.ll_mine_refunds, R.id.ll_mine_coupons, R.id.ll_mine_service})
public void onClick(View v) {
switch (v.getId()) {
case R.id.ll_mine_service:
showCustomerServiceDialog();
break;
case R.id.ll_mine_coupons:
goTo(mContext, CouponManageActivity.class, null);
break;
@@ -104,6 +110,26 @@ public class MineFragment extends BaseFragment<MineFragmentLayoutBinding, MinePr
mPresenter.loadProfile();
}
private void showCustomerServiceDialog() {
if (mContext == null || mContext.isFinishing() || mContext.isDestroyed()) {
return;
}
if (customerServiceDialog == null) {
customerServiceDialog = new CustomerServiceDialog(mContext);
}
customerServiceDialog.show();
}
@Override
public void onDestroyView() {
// 跟随个人中心视图释放弹窗,避免页面销毁后持有窗口。
if (customerServiceDialog != null) {
customerServiceDialog.dismiss();
customerServiceDialog = null;
}
super.onDestroyView();
}
@Override
protected void onResumeInitData() {
super.onResumeInitData();

View File

@@ -8,6 +8,7 @@ import com.ckkj.griddle.main.entity.CheckVersionEntity;
import com.ckkj.griddle.food.entity.ShopBannerEntity;
import com.ckkj.griddle.food.entity.ShopCategoryEntity;
import com.ckkj.griddle.food.entity.ShopGoodsPageEntity;
import com.ckkj.griddle.food.entity.FoodDetailEntity;
import java.util.List;
import java.util.Map;
@@ -18,6 +19,8 @@ import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
/**
@@ -49,6 +52,12 @@ public interface Request {
// 新账号接口:公开接口不携带旧会话令牌,请求参数统一放入 JSON 请求体
@POST("app/auth/sms/code")
Observable<BaseBean> sendAuthPhoneCode(@Body RequestBody requestBody);
// 邮箱验证码发送:请求体包含 email 和 scene。
@POST("app/auth/email/code")
Observable<BaseBean> sendAuthEmailCode(@Body RequestBody requestBody);
// 邮箱验证码登录:首次使用由服务端自动注册。
@POST("app/auth/email/code-login")
Observable<BaseBean<LoginEntity>> loginByEmailCode(@Body RequestBody requestBody);
// 手机号和密码登录
@POST("app/auth/login")
Observable<BaseBean<LoginEntity>> loginByPassword(@Body RequestBody requestBody);
@@ -59,20 +68,25 @@ public interface Request {
@GET("mobile/userInfo")
Observable<BaseBean<MineUserInfoBean>> getMineUserInfo(@HeaderMap Map<String, String> headMap, @QueryMap Map<String, Object> map);
/**
* 获取商城顶部轮播商品,接口最多返回三个在售商品。
* 获取推荐菜谱轮播;推荐条件由服务端处理。
*/
@GET("app/elicacy/banners")
Observable<BaseBean<List<ShopBannerEntity>>> getShopBanners(@HeaderMap Map<String, String> headMap);
/**
* 获取商城商品分类列表。
* 获取美食分类,size 控制每个分类附带的菜谱预览条数。
*/
@GET("app/elicacy/categories")
Observable<BaseBean<List<ShopCategoryEntity>>> getShopCategories(@HeaderMap Map<String, String> headMap);
Observable<BaseBean<List<ShopCategoryEntity>>> getShopCategories(
@HeaderMap Map<String, String> headMap, @Query("size") Integer size);
/**
* 按分类分页查询商品,参数包含 categoryId、page 和 size。
* 分页查询菜谱,categoryId 可省略,page 从 1 开始。
*/
@GET("app/elicacy/list")
Observable<BaseBean<ShopGoodsPageEntity>> getShopGoods(@HeaderMap Map<String, String> headMap,
@QueryMap Map<String, Object> map);
/** 根据真实菜谱编号获取食材清单及制作步骤。 */
@GET("app/elicacy/{id}")
Observable<BaseBean<FoodDetailEntity>> getFoodDetail(
@HeaderMap Map<String, String> headMap, @Path("id") String id);
/***************************钱包********************************/
}

View File

@@ -1,256 +0,0 @@
package com.ckkj.griddle.utils.oss;
import android.content.Context;
import android.util.Log;
import com.alibaba.sdk.android.oss.ClientException;
import com.alibaba.sdk.android.oss.OSS;
import com.alibaba.sdk.android.oss.OSSClient;
import com.alibaba.sdk.android.oss.ServiceException;
import com.alibaba.sdk.android.oss.callback.OSSCompletedCallback;
import com.alibaba.sdk.android.oss.common.auth.OSSAuthCredentialsProvider;
import com.alibaba.sdk.android.oss.common.auth.OSSCredentialProvider;
import com.alibaba.sdk.android.oss.common.auth.OSSPlainTextAKSKCredentialProvider;
import com.alibaba.sdk.android.oss.model.PutObjectRequest;
import com.alibaba.sdk.android.oss.model.PutObjectResult;
import com.ckkj.griddle.AppConfig;
import com.ckkj.griddle.base.inter.UploadCallback;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @Description TODO
* @systemUser 86133
* @Author FengJingQi
* @Date 04-07-2025 周一 18:12
*/
public class OssUploadHelper {
private Context mContext;
public static String ALIYUN_ENDPOINT = "https://oss-cn-beijing.aliyuncs.com";
private String accessKeyId = "LTAI5tEytdKbh9sYtcANcPW3";
private String accessKeySecret = "3jz6F07bERFSsNtrpCjRo2ZaygsvuE";
public OssUploadHelper(Context context) {
this.mContext = context;
}
public OSS getOSSClient() {
OSSAuthCredentialsProvider authCredentialsProvider =
new OSSAuthCredentialsProvider("https://gw.dingdingche.net/mine/api/sts-token");
OSS oss = new OSSClient(mContext, AppConfig.ALIYUN_ENDPOINT, authCredentialsProvider);
return oss;
}
/**
* 上传方法(支持单图和多图)
*
* @param uploadCode 上传类型
* @param objectKey 标识(文件名基准,可以不带后缀)
* @param imagePaths 图片路径集合
* @param callback 上传回调
* @return 如果是单图,返回该图片的外网访问路径;多图时返回第一张的路径
*/
public String upload(int uploadCode, String objectKey, List<String> imagePaths, UploadCallback callback) {
if (imagePaths == null || imagePaths.isEmpty()) {
if (callback != null) {
callback.onFailure(new ClientException("没有可上传的文件"), null);
}
return null;
}
// 用固定的 AccessKeyId + AccessKeySecret 创建凭证
OSSCredentialProvider credentialProvider = new OSSPlainTextAKSKCredentialProvider(accessKeyId, accessKeySecret);
OSS client = new OSSClient(mContext, ALIYUN_ENDPOINT, credentialProvider);
String uploadFolder = getUploadPath(uploadCode);
List<String> uploadedUrls = new ArrayList<>();
AtomicInteger counter = new AtomicInteger(0);
// 遍历图片上传
for (int i = 0; i < imagePaths.size(); i++) {
String imagePath = imagePaths.get(i);
String newObjectKey = "";
if(uploadCode == AppConfig.UPLOAD_TYPE_100){
// 每张图片命名:用户ID
newObjectKey = renameWithSameExtension(objectKey,
AppConfig.USER_ID);
}else{
newObjectKey = renameWithSameExtension(objectKey,
String.valueOf(System.currentTimeMillis()));
}
newObjectKey = uploadFolder + newObjectKey;
PutObjectRequest request = new PutObjectRequest(AppConfig.ALIYUN_BUCKETNAME, newObjectKey, imagePath);
String finalObjectKey = newObjectKey;
client.asyncPutObject(request, new OSSCompletedCallback<PutObjectRequest, PutObjectResult>() {
@Override
public void onSuccess(PutObjectRequest request, PutObjectResult result) {
String imageUrl = AppConfig.ALI_OSS_CAR_BRAND_LOGO + finalObjectKey;
uploadedUrls.add(imageUrl);
if (counter.incrementAndGet() == imagePaths.size()) {
// 所有文件都上传完成
if (callback != null) {
callback.onSuccess(uploadedUrls);
}
}
}
@Override
public void onFailure(PutObjectRequest request, ClientException clientExcepion, ServiceException serviceException) {
if (callback != null) {
callback.onFailure(clientExcepion, serviceException);
}
}
});
}
// 返回第一张图片的预签名 URL(单图就是这张,多图仅做参考)
try {
String firstObjectKey = uploadFolder + renameWithSameExtension(objectKey,
AppConfig.USER_ID + "_" + System.currentTimeMillis() + "_0");
String url = client.presignConstrainedObjectURL(AppConfig.ALIYUN_BUCKETNAME, firstObjectKey,
3600L * 1000 * 24 * 365);
Log.e("oss==zhs", String.format("PublicObjectURL:%s", url));
return url;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
// public String upload(int uploadCode, String objectKey, List<String> imagePaths, UploadCallback callback) {
// if (imagePaths == null || imagePaths.isEmpty()) {
// if (callback != null) {
// callback.onFailure(new ClientException("没有可上传的文件"), null);
// }
// return null;
// }
//
// OSS client = getOSSClient();
// String uploadFolder = getUploadPath(uploadCode);
// List<String> uploadedUrls = new ArrayList<>();
// AtomicInteger counter = new AtomicInteger(0);
//
// for (int i = 0; i < imagePaths.size(); i++) {
// String imagePath = imagePaths.get(i);
//
// // 每张图片的文件名都加时间戳和序号,避免覆盖
// String newObjectKey = renameWithSameExtension(objectKey, AppConfig.USER_ID + "_" + System.currentTimeMillis() + "_" + i);
// newObjectKey = uploadFolder + newObjectKey;
//
// PutObjectRequest request = new PutObjectRequest(AppConfig.ALIYUN_BUCKETNAME, newObjectKey, imagePath);
// String finalObjectKey = newObjectKey;
//
// client.asyncPutObject(request, new OSSCompletedCallback<PutObjectRequest, PutObjectResult>() {
// @Override
// public void onSuccess(PutObjectRequest request, PutObjectResult result) {
// String imageUrl = AppConfig.ALI_OSS_CAR_BRAND_LOGO + finalObjectKey;
// uploadedUrls.add(imageUrl);
//
// if (counter.incrementAndGet() == imagePaths.size()) {
// // 所有文件都上传完成
// if (callback != null) {
// callback.onSuccess(uploadedUrls);
// }
// }
// }
//
// @Override
// public void onFailure(PutObjectRequest request, ClientException clientExcepion, ServiceException serviceException) {
// if (callback != null) {
// callback.onFailure(clientExcepion, serviceException);
// }
// }
// });
// }
//
// // 返回第一张图片的预签名 URL(单图就是这张,多图仅做参考)
// try {
// String firstObjectKey = uploadFolder + renameWithSameExtension(objectKey, AppConfig.USER_ID + "_" + System.currentTimeMillis() + "_0");
// String url = client.presignConstrainedObjectURL(AppConfig.ALIYUN_BUCKETNAME, firstObjectKey, 3600L * 1000 * 24 * 365);
// Log.e("oss==zhs", String.format("PublicObjectURL:%s", url));
// return url;
// } catch (Exception e) {
// e.printStackTrace();
// return null;
// }
// }
// public void uploadImages(int uploadCode, List<String> imagePaths, OSS ossClient, UploadCallback callback) {
// String uploadFolder = getUploadPath(uploadCode);
// List<String> uploadedUrls = new ArrayList<>();
// AtomicInteger counter = new AtomicInteger(0);
//
// for (String imagePath : imagePaths) {
// // 自己定义objectKey,比如可以是时间戳+随机数
// String objectKey = uploadFolder + System.currentTimeMillis() + "_" + new File(imagePath).getName();
//
// PutObjectRequest put = new PutObjectRequest(AppConfig.ALIYUN_BUCKETNAME, objectKey, imagePath);
//
// ossClient.asyncPutObject(put, new OSSCompletedCallback<PutObjectRequest, PutObjectResult>() {
// @Override
// public void onSuccess(PutObjectRequest request, PutObjectResult result) {
// String imageUrl = AppConfig.ALI_OSS_CAR_BRAND_LOGO + objectKey;
//// String imageUrl = ossClient.presignConstrainedObjectURL(AppConfig.ALIYUN_BUCKETNAME, objectKey, 3600L * 1000 * 24 * 365);
// uploadedUrls.add(imageUrl);
// if (counter.incrementAndGet() == imagePaths.size()) {
// // 全部上传完成
// callback.onSuccess(uploadedUrls);
// }
// }
//
// @Override
// public void onFailure(PutObjectRequest request, ClientException clientExcepion, ServiceException serviceException) {
// callback.onFailure(clientExcepion, serviceException);
// }
// });
// }
// }
private String getUploadPath(int uploadType){
String folder = "";
switch (uploadType){
case AppConfig.UPLOAD_TYPE_100:
folder = "headShot/";
break;
case AppConfig.UPLOAD_TYPE_200:
folder = "CarRimPicture/";
break;
case AppConfig.UPLOAD_TYPE_300:
folder = "SocialCircle/";
break;
case AppConfig.UPLOAD_TYPE_400:
folder = "Feedback/";
break;
}
return folder;
}
public static String renameWithSameExtension(String originalName, String newBaseName) {
int dotIndex = originalName.lastIndexOf('.');
if (dotIndex != -1 && dotIndex < originalName.length() - 1) {
String extension = originalName.substring(dotIndex); // 包含 . 比如 ".jpg"
return newBaseName + extension;
} else {
// 没有后缀的情况
return newBaseName;
}
}
}

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="#26FFFFFF">
<item>
<shape>
<solid android:color="#FF6900" />
<corners android:radius="10dp" />
</shape>
</item>
</ripple>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="#18000000">
<item>
<shape>
<solid android:color="#F5F5F5" />
<corners android:radius="10dp" />
</shape>
</item>
</ripple>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFF0E5" />
<corners android:radius="27dp" />
</shape>

View File

@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -9,13 +11,14 @@
android:scrollbars="none"
tools:locale="en">
<!-- 系统状态栏与导航栏由窗口绘制,小屏或大字体时允许内容滚动。 -->
<LinearLayout
<!-- 系统栏由窗口绘制;宽窗口居中限宽,小屏及大字体允许向下滚动。 -->
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top|center_horizontal"
android:orientation="vertical"
android:paddingTop="16dp"
android:paddingBottom="24dp">
android:paddingBottom="24dp"
app:maxContentWidth="600dp">
<TextView
android:id="@+id/tv_title"
@@ -23,29 +26,33 @@
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="center"
android:letterSpacing="-0.016111111"
android:text="@string/wifi_setup_title"
android:textColor="#252529"
android:textSize="18sp"
android:textStyle="bold" />
<!-- 浅橙色底环 + 橙色圆头进度弧,避免默认控件样式影响设计效果。 -->
<!-- 外框 110dp、线宽 12dp 与切图一致,保留 SDK 驱动的真实进度。 -->
<com.ckkj.griddle.custom.view.ProvisionProgressView
android:id="@+id/provision_progress"
android:layout_width="110dp"
android:layout_height="110dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="24dp" />
android:layout_marginTop="18dp"
app:provisionInset="3dp"
app:provisionStrokeWidth="12dp" />
<TextView
android:id="@+id/tv_provision_stage"
style="@style/LoginDesignText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:layout_marginHorizontal="29dp"
android:gravity="center"
android:minHeight="21dp"
android:layout_marginTop="14dp"
android:accessibilityLiveRegion="polite"
android:gravity="center"
android:letterSpacing="-0.01125"
android:minHeight="21dp"
android:text="@string/wifi_connect_connecting"
android:textColor="@color/wifi_setup_text"
android:textSize="16sp"
@@ -55,13 +62,13 @@
style="@style/LoginDesignText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginHorizontal="38dp"
android:layout_marginTop="6dp"
android:gravity="center"
android:minHeight="30dp"
android:text="@string/wifi_connect_keep_nearby"
android:textColor="#C4C9D0"
android:textSize="10sp"
android:gravity="center"/>
android:textSize="10sp" />
<LinearLayout
android:layout_width="match_parent"
@@ -80,11 +87,10 @@
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:background="@drawable/wifi_connect_step_bg"
android:backgroundTint="#22A45D"
android:contentDescription="@null"
android:padding="9dp"
android:src="@drawable/ef_ic_done_white" />
android:importantForAccessibility="no"
android:scaleType="fitCenter"
android:src="@mipmap/icon_device_connecting_step_completed" />
<LinearLayout
android:layout_width="0dp"
@@ -120,9 +126,7 @@
style="@style/WifiConnectStepNumber"
android:layout_width="32dp"
android:layout_height="32dp"
android:backgroundTint="@color/wifi_setup_accent"
android:text="2"
android:textColor="@android:color/white" />
android:background="@mipmap/icon_device_connecting_step_transfer" />
<LinearLayout
android:layout_width="0dp"
@@ -159,9 +163,7 @@
style="@style/WifiConnectStepNumber"
android:layout_width="32dp"
android:layout_height="32dp"
android:backgroundTint="#F5F6F8"
android:text="3"
android:textColor="@color/wifi_setup_secondary_text" />
android:background="@mipmap/icon_device_connecting_step_waiting" />
<LinearLayout
android:layout_width="0dp"
@@ -197,10 +199,11 @@
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:fontFamily="sans-serif-medium"
android:gravity="center"
android:text="@string/wifi_connect_cancel"
android:textColor="@color/wifi_setup_secondary_text"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
</androidx.core.widget.NestedScrollView>

View File

@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 插画上浮于面板之外;内容随中英文和字体大小增高,短窗口支持滚动。 -->
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:background="@mipmap/icon_mine_service_panel"
android:orientation="vertical"
android:padding="20dp">
<TextView
style="@style/CustomerServiceText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="105dp"
android:accessibilityHeading="true"
android:minHeight="17dp"
android:text="@string/customer_service_title"
android:textSize="14sp" />
<TextView
style="@style/CustomerServiceText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@drawable/customer_service_phone_bg"
android:fontFamily="sans-serif-medium"
android:gravity="center"
android:minHeight="54dp"
android:paddingHorizontal="8dp"
android:paddingVertical="10dp"
android:text="@string/customer_service_phone"
android:textDirection="ltr"
android:textSize="24sp" />
<TextView
style="@style/CustomerServiceText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="center"
android:minHeight="17dp"
android:text="@string/customer_service_working_hours"
android:textColor="#666666"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:baselineAligned="false"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_customer_service_cancel"
style="@style/CustomerServiceButton"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/customer_service_cancel_bg"
android:text="@string/customer_service_cancel"
android:textColor="#666666" />
<TextView
android:id="@+id/tv_customer_service_call"
style="@style/CustomerServiceButton"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="11dp"
android:layout_weight="1"
android:background="@drawable/customer_service_call_bg"
android:text="@string/customer_service_call"
android:textColor="#FFFFFF" />
</LinearLayout>
</LinearLayout>
<ImageView
android:layout_width="117dp"
android:layout_height="117dp"
android:layout_gravity="top|end"
android:contentDescription="@null"
android:importantForAccessibility="no"
android:scaleType="fitCenter"
android:src="@mipmap/icon_mine_service_robot" />
</FrameLayout>
</androidx.core.widget.NestedScrollView>

View File

@@ -84,7 +84,7 @@
android:autofillHints="emailAddress"
android:inputType="textEmailAddress"
android:hint="@string/email_login_address_hint"
android:maxLength="254"
android:maxLength="50"
android:imeOptions="actionNext"
android:textSize="15sp" />
</LinearLayout>

View File

@@ -106,15 +106,16 @@
tools:text="YeShinbera Asa Wot (Ethiopian Chickpea Fish Stew)" />
<TextView
android:id="@+id/tv_food_detail_steps_title"
style="@style/FoodDetailSectionTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:minHeight="19dp"
android:text="@string/food_detail_description" />
android:text="@string/food_detail_steps" />
<TextView
android:id="@+id/tv_food_detail_description"
android:id="@+id/tv_food_detail_steps"
style="@style/FoodDetailText"
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@@ -99,7 +99,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/food_category_breakfast" />
tools:text="@string/food_category_breakfast" />
<TextView
android:id="@+id/tv_food_category_see_all"

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="customer_service_title">Dedicated Support Hotline</string>
<string name="customer_service_working_hours">Weekdays 8:00-12:00, 14:00-18:00</string>
<string name="customer_service_cancel">Cancel</string>
<string name="customer_service_call">Tap to Call</string>
<string name="customer_service_dialer_unavailable">No phone app is available on this device</string>
</resources>

View File

@@ -5,5 +5,4 @@
<string name="email_login_address_required">Enter your email address</string>
<string name="email_login_address_invalid">Enter a valid email address</string>
<string name="email_login_code_sent">Verification code sent to your email</string>
<string name="email_login_unavailable">Email sign-in is currently unavailable. Please sign in with your phone number.</string>
</resources>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="food_banners_load_failed">Unable to load recommended recipes. Pull down to retry.</string>
<string name="food_categories_load_failed">Unable to load recipe categories. Pull down to retry.</string>
<string name="food_detail_steps">Preparation Steps</string>
<string name="food_detail_loading">Loading recipe details…</string>
</resources>

View File

@@ -2,7 +2,6 @@
<resources>
<string name="food_detail_title">Food Details</string>
<string name="food_detail_back">Back</string>
<string name="food_detail_description">Description</string>
<string name="food_detail_ingredients">Ingredients</string>
<string name="food_detail_unavailable">Food details are unavailable. Tap to retry.</string>
</resources>

View File

@@ -1,90 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Temporary food mock strings; remove together with FoodMockData during API integration. -->
<string name="food_mock_banner_promotion">Food and Drinks Special Offer</string>
<string name="food_mock_beef_noodles">Beef Noodles</string>
<string name="food_mock_fried_rice">Signature Mushroom and Minced Meat Fried Rice with Vegetables and Special Sauce</string>
<string name="food_mock_egg_tart">Portuguese Egg Tart</string>
<string name="food_mock_mushroom_stew">Mushroom Stew</string>
<string name="food_mock_meatball">Braised Meatball</string>
<string name="food_mock_pepper_pork">Home Style Pork with Crisp Green Peppers and Fragrant Garlic Sauce</string>
<string name="food_mock_cold_noodles">Cold Noodles</string>
<string name="food_mock_stir_fried_beef">Spicy Stir Fried Beef with Fresh Peppers and Signature Seasoning</string>
<string name="food_mock_breakfast_pasta">Tomato Pasta</string>
<string name="food_mock_vegetable_pasta">Garden Vegetable Pasta</string>
<string name="food_mock_breakfast_curry">Warm Breakfast Curry</string>
<string name="food_mock_breakfast_rice">Breakfast Fried Rice</string>
<string name="food_mock_breakfast_tart">Crispy Egg Tart Breakfast Combo</string>
<string name="food_mock_breakfast_noodles">Vegetable Noodles</string>
<string name="food_mock_orange_drink">Orange Fruit Drink</string>
<string name="food_mock_berry_drink">Berry Drink</string>
<string name="food_mock_fruit_drink">Mixed Fruit Drink</string>
<string name="food_mock_drink_combo">Fruit Drink Duo</string>
<string name="food_mock_tart_combo">Afternoon Egg Tart Combo</string>
<string name="food_mock_meatball_combo">Crispy Meatball Snack</string>
<string name="food_mock_mushroom_bowl">Warm Mushroom Bowl</string>
<string name="food_mock_pasta_bowl">Vegetable Pasta Snack</string>
<string name="food_mock_beef_bowl">Spicy Beef Bowl</string>
<string name="food_mock_noodle_bowl">Refreshing Noodle Bowl</string>
<!-- Temporary detail ingredients; remove together with FoodMockData during API integration. -->
<string-array name="food_mock_ingredients_noodles">
<item>200 g of noodles or pasta</item>
<item>2 tomatoes</item>
<item>Half an onion, finely chopped</item>
<item>150 g of beef or vegetables, depending on the selected dish</item>
<item>1 tbsp of vegetable oil</item>
<item>1 tsp of minced garlic</item>
<item>1 tbsp of light soy sauce</item>
<item>500 ml of water</item>
<item>Half a tsp of minced ginger</item>
<item>A quarter tsp of black pepper</item>
<item>Salt to taste</item>
</string-array>
<string-array name="food_mock_ingredients_rice">
<item>2 bowls of cooked rice</item>
<item>100 g of minced meat</item>
<item>4 mushrooms, finely diced</item>
<item>2 eggs</item>
<item>Half a carrot</item>
<item>50 g of green peas</item>
<item>1 tbsp of vegetable oil</item>
<item>1 tbsp of light soy sauce</item>
<item>1 tbsp of chopped spring onion</item>
<item>A quarter tsp of black pepper</item>
<item>Salt to taste</item>
</string-array>
<string-array name="food_mock_ingredients_main">
<item>300 g of meat or mushrooms, depending on the selected dish</item>
<item>1 red onion, finely chopped</item>
<item>150 g of seasonal vegetables</item>
<item>1 tbsp of vegetable oil</item>
<item>1 tsp of minced garlic</item>
<item>Half a tsp of minced ginger</item>
<item>1 tbsp of light soy sauce</item>
<item>200 ml of water</item>
<item>Half a tsp of mixed spices</item>
<item>A quarter tsp of black pepper</item>
<item>Salt to taste</item>
</string-array>
<string-array name="food_mock_ingredients_pastry">
<item>6 egg tart shells</item>
<item>2 eggs</item>
<item>100 ml of milk</item>
<item>80 ml of cream</item>
<item>25 g of caster sugar</item>
<item>5 g of cake flour</item>
<item>A few drops of vanilla extract</item>
</string-array>
<string-array name="food_mock_ingredients_drinks">
<item>200 ml of fresh orange or berry juice</item>
<item>100 ml of drinking water</item>
<item>1 tsp of honey</item>
<item>2 lemon slices</item>
<item>Ice cubes as needed</item>
</string-array>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="email_login_address_too_long">Email address must not exceed 50 characters</string>
<string name="login_api_request_failed">Request failed. Please try again later.</string>
<string name="login_api_network_failed">Network error. Please try again later.</string>
<string name="login_api_request_invalid">Invalid request parameters. Please try again later.</string>
<string name="login_api_token_missing">Sign-in token is missing. Please try again later.</string>
<string name="login_api_session_save_failed">Could not save your sign-in status. Please try again.</string>
<string name="login_api_user_info_empty">User profile is empty.</string>
</resources>

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="customer_service_title">专属客服热线</string>
<string name="customer_service_phone" translatable="false">400-001-0011</string>
<string name="customer_service_working_hours">工作日 8:00-12:00,14:00-18:00</string>
<string name="customer_service_cancel">取消</string>
<string name="customer_service_call">拨打电话</string>
<string name="customer_service_dialer_unavailable">当前设备不支持拨打电话</string>
<style name="CustomerServiceDialogStyle" parent="@android:style/Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:backgroundDimEnabled">true</item>
<item name="android:windowMinWidthMajor">0dp</item>
<item name="android:windowMinWidthMinor">0dp</item>
</style>
<style name="CustomerServiceText">
<item name="android:fontFamily">sans-serif</item>
<item name="android:includeFontPadding">false</item>
<item name="android:textColor">#222222</item>
</style>
<style name="CustomerServiceButton" parent="CustomerServiceText">
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textSize">18sp</item>
<item name="android:gravity">center</item>
<item name="android:minHeight">45dp</item>
<item name="android:padding">10dp</item>
<item name="android:clickable">true</item>
<item name="android:focusable">true</item>
</style>
</resources>

View File

@@ -5,5 +5,4 @@
<string name="email_login_address_required">请输入邮箱地址</string>
<string name="email_login_address_invalid">请输入正确的邮箱地址</string>
<string name="email_login_code_sent">验证码已发送至邮箱</string>
<string name="email_login_unavailable">邮箱登录暂不可用,请使用手机号登录</string>
</resources>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="food_banners_load_failed">推荐美食加载失败,请下拉重试</string>
<string name="food_categories_load_failed">美食分类加载失败,请下拉重试</string>
<string name="food_detail_steps">制作步骤</string>
<string name="food_detail_loading">正在加载美食详情…</string>
</resources>

View File

@@ -2,7 +2,6 @@
<resources>
<string name="food_detail_title">美食详情</string>
<string name="food_detail_back">返回</string>
<string name="food_detail_description">简介</string>
<string name="food_detail_ingredients">食材</string>
<string name="food_detail_unavailable">暂无该美食详情,点击重试</string>
</resources>

View File

@@ -1,90 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 美食临时模拟文案,接口联调后随 FoodMockData 一并移除。 -->
<string name="food_mock_banner_promotion">美食饮品限时优惠</string>
<string name="food_mock_beef_noodles">红烧牛肉面</string>
<string name="food_mock_fried_rice">招牌香菇肉末炒饭,搭配时蔬与秘制酱汁的丰富一餐</string>
<string name="food_mock_egg_tart">葡式蛋挞</string>
<string name="food_mock_mushroom_stew">香菇炖菜</string>
<string name="food_mock_meatball">红烧狮子头</string>
<string name="food_mock_pepper_pork">家常青椒小炒肉,鲜嫩肉片搭配爽脆青椒与蒜香酱汁</string>
<string name="food_mock_cold_noodles">清爽凉面</string>
<string name="food_mock_stir_fried_beef">香辣小炒牛肉,搭配新鲜辣椒与秘制香料的下饭好菜</string>
<string name="food_mock_breakfast_pasta">番茄意面</string>
<string name="food_mock_vegetable_pasta">田园蔬菜意面</string>
<string name="food_mock_breakfast_curry">暖心咖喱早餐</string>
<string name="food_mock_breakfast_rice">元气早餐炒饭</string>
<string name="food_mock_breakfast_tart">酥香蛋挞早餐组合</string>
<string name="food_mock_breakfast_noodles">时蔬拌面</string>
<string name="food_mock_orange_drink">香橙果饮</string>
<string name="food_mock_berry_drink">莓果饮品</string>
<string name="food_mock_fruit_drink">缤纷水果饮</string>
<string name="food_mock_drink_combo">双杯果味饮品组合</string>
<string name="food_mock_tart_combo">下午茶蛋挞组合</string>
<string name="food_mock_meatball_combo">香酥肉丸小食</string>
<string name="food_mock_mushroom_bowl">暖心菌菇小碗</string>
<string name="food_mock_pasta_bowl">蔬菜意面小食</string>
<string name="food_mock_beef_bowl">香辣牛肉小碗</string>
<string name="food_mock_noodle_bowl">爽口凉面小碗</string>
<!-- 详情页临时食材数据,与界面正式标签分开维护,便于联调时整体删除。 -->
<string-array name="food_mock_ingredients_noodles">
<item>面条或意面 200 克</item>
<item>番茄 2 个</item>
<item>洋葱半个,切成细丁</item>
<item>牛肉或蔬菜 150 克(按所选菜品准备)</item>
<item>食用油 1 汤匙</item>
<item>蒜末 1 茶匙</item>
<item>生抽 1 汤匙</item>
<item>清水 500 毫升</item>
<item>姜末半茶匙</item>
<item>黑胡椒四分之一茶匙</item>
<item>盐适量</item>
</string-array>
<string-array name="food_mock_ingredients_rice">
<item>熟米饭 2 碗</item>
<item>肉末 100 克</item>
<item>香菇 4 朵,切成小丁</item>
<item>鸡蛋 2 个</item>
<item>胡萝卜半根</item>
<item>青豆 50 克</item>
<item>食用油 1 汤匙</item>
<item>生抽 1 汤匙</item>
<item>葱花 1 汤匙</item>
<item>黑胡椒四分之一茶匙</item>
<item>盐适量</item>
</string-array>
<string-array name="food_mock_ingredients_main">
<item>肉类或菌菇 300 克(按所选菜品准备)</item>
<item>红洋葱 1 个,切成细丁</item>
<item>时令蔬菜 150 克</item>
<item>食用油 1 汤匙</item>
<item>蒜末 1 茶匙</item>
<item>姜末半茶匙</item>
<item>生抽 1 汤匙</item>
<item>清水 200 毫升</item>
<item>香料粉半茶匙</item>
<item>黑胡椒四分之一茶匙</item>
<item>盐适量</item>
</string-array>
<string-array name="food_mock_ingredients_pastry">
<item>蛋挞皮 6 个</item>
<item>鸡蛋 2 个</item>
<item>牛奶 100 毫升</item>
<item>淡奶油 80 毫升</item>
<item>细砂糖 25 克</item>
<item>低筋面粉 5 克</item>
<item>香草精少许</item>
</string-array>
<string-array name="food_mock_ingredients_drinks">
<item>鲜榨橙汁或莓果汁 200 毫升</item>
<item>饮用水 100 毫升</item>
<item>蜂蜜 1 茶匙</item>
<item>柠檬片 2 片</item>
<item>冰块适量</item>
</string-array>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="email_login_address_too_long">邮箱地址不能超过50个字符</string>
<string name="login_api_request_failed">请求失败,请稍后重试</string>
<string name="login_api_network_failed">网络异常,请稍后重试</string>
<string name="login_api_request_invalid">请求参数异常,请稍后重试</string>
<string name="login_api_token_missing">登录凭证缺失,请稍后重试</string>
<string name="login_api_session_save_failed">登录状态保存失败,请重试</string>
<string name="login_api_user_info_empty">用户资料为空</string>
</resources>