<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>HRope Blog</title>
        <link>https://hrope.cn/</link>
        <description>心向阳光，何惧阴寒</description>
        <lastBuildDate>Mon, 24 Nov 2025 15:08:24 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2025, HRope</copyright>
        <item>
            <title><![CDATA[AI 编程工具评测和探索]]></title>
            <link>https://hrope.cn/article/ai-programming-tools</link>
            <guid>https://hrope.cn/article/ai-programming-tools</guid>
            <pubDate>Mon, 10 Feb 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[随着人工智能技术的迅速发展，各类AI编程工具层出不穷，从代码生成到调试优化，这些工具正在改变开发者的工作方式，全面拥抱AI，必须学会新的编程范式。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1ae3ee7af39d808b80a4dbd7748e9eb3"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80408117e83aa9ce0b3d" data-id="1ae3ee7af39d80408117e83aa9ce0b3d"><span><div id="1ae3ee7af39d80408117e83aa9ce0b3d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80408117e83aa9ce0b3d" title="背景"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">背景</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80b3971ec038c63e6181" data-id="1ae3ee7af39d80b3971ec038c63e6181"><span><div id="1ae3ee7af39d80b3971ec038c63e6181" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b3971ec038c63e6181" title="程序设计发展历程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">程序设计发展历程</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80f39d80ec9cd0abae21">程序设计方式的发展，从机器语言到人类语言，逐步简单化、智能化、降本增效、提高质量。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c4a503c5b1f3fd06f5"><li>第一代：面向机器</li></ul><div class="notion-text notion-block-1ae3ee7af39d80af80c5c31ab96d1322">代表语言：机器语言、汇编语言，使用者是懂硬件的软件工程师。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d4804cd527f017b1a1"><li>第二代：面向过程</li></ul><div class="notion-text notion-block-1ae3ee7af39d80e688e1d1a7a499ad47">代表语言：C语言、Fortran，使用者是软件工程师。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80beb9c5e1229d5b7c24"><li>第三代：面向对象</li></ul><div class="notion-text notion-block-1ae3ee7af39d801a88cdfea6fdcb3b17">代表语言：C++，Java，使用者是软件工程师。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808a90d5c4c96f0f3edf"><li>第四代：面向领域</li></ul><div class="notion-text notion-block-1ae3ee7af39d80eb9031dc871a6e7833">代表语言：DSL（依托零/低代码平台），使用者是业务人员或者一般IT工程师。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80528638f5aa94278a2d"><li>第五代：面向自然语言</li></ul><div class="notion-text notion-block-1ae3ee7af39d808fa484cdf1fa1741e1">代表语言：人类的自然语言，依托于LLM思考和推理能力，使用者可以普通的用户。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80b9aa19e200303dde5f" data-id="1ae3ee7af39d80b9aa19e200303dde5f"><span><div id="1ae3ee7af39d80b9aa19e200303dde5f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b9aa19e200303dde5f" title="一、AI编程工具分类"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、AI编程工具分类</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d8002b304c01f3e483a3d">AI编程工具的发展呈现多元化趋势，可分为以下几大类：</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d803fafcdd01f9d57088f" data-id="1ae3ee7af39d803fafcdd01f9d57088f"><span><div id="1ae3ee7af39d803fafcdd01f9d57088f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d803fafcdd01f9d57088f" title="一站式AI开发平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>一站式AI开发平台</b></span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80338c82e1653d46c81c"><b>特点</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800dad75c98e7171aba3"><li><b>全面性</b>：提供从代码生成、调试到部署的完整开发流程。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80289b06c54dfa7ea1cf"><li><b>自主性</b>：能够理解、规划和执行复杂的编程任务，减少人工干预。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80f199c1fb01ebb2ae31"><b>代表工具：</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8015be2fec858a9890a7"><li><b>Devin：</b>首个完全自主的AI软件工程师，能够处理从需求分析到代码部署的全过程。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80aca7f1de1b0ce724e4"><li><b>Replit Ghost：</b>集成代码生成、调试和部署功能的完整开发环境，适合快速开发和迭代。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8040a60dc3693a733ca4" data-id="1ae3ee7af39d8040a60dc3693a733ca4"><span><div id="1ae3ee7af39d8040a60dc3693a733ca4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8040a60dc3693a733ca4" title="代码生成平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>代码生成平台</b></span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80baa645f51cdb2052b3"><b>特点</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803993e5c63d0fd0f5b4"><li><b>专注性</b>：专注于特定领域的代码生成，如全栈网站或前端开发。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804eb281ce8dc585b1e7"><li><b>高效性</b>：能够快速生成代码，减少开发时间。</li></ul><div class="notion-text notion-block-1ae3ee7af39d8003b424cc724d4330b0"><b>代表工具</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8081b57cc6161a0fa41d"><li><b>Bolt.new：</b> 在线生成、编辑、运行、部署全栈网站，适合快速原型开发。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801ba899cede786dd36b"><li><b>V0.dev：</b>专注于前端开发，能够将设计直接转换为React代码，适合前端开发者。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80008addda769e618ff0" data-id="1ae3ee7af39d80008addda769e618ff0"><span><div id="1ae3ee7af39d80008addda769e618ff0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80008addda769e618ff0" title="AI IDE"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>AI IDE</b></span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80f88801ef40d5110d31"><b>特点</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809d9406e71e281e6514"><li><b>智能辅助</b>：提供实时的代码补全、重构建议和错误检测。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801c872dc801e4254a99"><li><b>优化建议</b>：专注于代码质量和性能优化，帮助开发者编写更高效的代码</li></ul><div class="notion-text notion-block-1ae3ee7af39d80778b27f60ae90f1c8d"><b>代表工具</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80cd96c4e787c1d2748e"><li><b>Cursor：</b>基于AI的代码编辑器，提供实时代码补全、重构建议和错误检测</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804f9b8ad00c33639764"><li><b>WindSurf：</b>专注于代码重构和优化的智能编辑器，提供代码质量分析和优化建议</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80d4a4c3fd10ab08c660" data-id="1ae3ee7af39d80d4a4c3fd10ab08c660"><span><div id="1ae3ee7af39d80d4a4c3fd10ab08c660" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d4a4c3fd10ab08c660" title="IDE 插件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>IDE 插件</b></span></span></h3><div class="notion-text notion-block-1ae3ee7af39d807daee3cb0b7c6f228e"><b>特点</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e9a8d7d8e36a622ac8"><li><b>集成性</b>：作为插件集成到现有的IDE或编辑器中，增强其功能。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800f8461e5007a5ae3a6"><li><b>灵活性</b>：支持多种编程语言和开发环境，适应不同的开发需求</li></ul><div class="notion-text notion-block-1ae3ee7af39d8059a64fc389c6773ef8"><b>代表工具</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80578ad8efa4612a442a"><li><b>Continue.dev：</b>跨平台AI编程助手，支持多种编程语言和开发环境</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d806fb0e2d0687d7a2511"><li><b>Tabnine：</b>基于深度学习的代码补全工具，能够适应开发者的编码风格</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80499bdbdb81f273f682"><li><b>Amazon CodeWhisperer：</b>专为AWS云服务开发的智能编程助手</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80569d13ded65c1cc263"><li><b>GitHub Copilot：</b>集成于VS Code等主流IDE，提供智能代码建议和自动补全</li></ul><div class="notion-text notion-block-1ae3ee7af39d80dd959ec575a872321a">目前根据自动化和智能化，顺序为： <b>一站式AI开发平台 &gt; 代码生成平台 &gt; AI编辑器 &gt; 编辑器插件</b></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d801eb231c2cac709ada6" data-id="1ae3ee7af39d801eb231c2cac709ada6"><span><div id="1ae3ee7af39d801eb231c2cac709ada6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d801eb231c2cac709ada6" title="主要区别"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">主要区别</span></span></h3><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8027a6dde4837a441afa"><li><b>一站式AI开发平台</b>：适合需要全面自动化开发流程的项目。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80bda8cdf561b263edab"><li><b>代码生成平台</b>：适合需要快速生成特定领域代码的项目。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808aa97afc1c3094463f"><li><b>AI编辑器</b>：适合需要智能辅助和代码优化的开发者。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8095a3dcee2f8a82c7e1"><li><b>编辑器插件</b>：适合希望在现有开发环境中增强功能的开发者。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80e5a0b9d8e5b26d832a" data-id="1ae3ee7af39d80e5a0b9d8e5b26d832a"><span><div id="1ae3ee7af39d80e5a0b9d8e5b26d832a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80e5a0b9d8e5b26d832a" title="二、主流工具"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、主流工具</span></span></h2><div><div></div></div><div class="notion-collection notion-block-1ae3ee7af39d80f896a9c696a5d87fa7"><div class="notion-table" style="visibility:hidden"><div class="notion-table-view"><div class="notion-table-header"><div class="notion-table-header-inner"><div class="notion-table-th"><div class="notion-table-view-header-cell" style="width:200px"><div class="notion-table-view-header-cell-inner"><div class="notion-collection-column-title"><svg viewBox="0 0 14 14" class="notion-collection-column-title-icon"><path d="M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z"></path></svg><div class="notion-collection-column-title-body">名称</div></div></div></div></div><div class="notion-table-th"><div class="notion-table-view-header-cell" style="width:280px"><div class="notion-table-view-header-cell-inner"><div class="notion-collection-column-title"><svg viewBox="0 0 14 14" class="notion-collection-column-title-icon"><path d="M7.74 8.697a.81.81 0 01.073.308.894.894 0 01-.9.888.867.867 0 01-.825-.592l-.333-.961H2.058l-.333.961a.882.882 0 01-.838.592A.884.884 0 010 9.005c0-.11.025-.222.062-.308l2.403-6.211c.222-.58.776-.986 1.442-.986.653 0 1.22.407 1.442.986l2.39 6.211zM2.6 6.824h2.613L3.907 3.102 2.6 6.824zm8.8-3.118c1.355 0 2.6.542 2.6 2.255V9.08a.8.8 0 01-.789.814.797.797 0 01-.788-.703c-.395.468-1.097.764-1.874.764-.949 0-2.07-.64-2.07-1.972 0-1.392 1.121-1.897 2.07-1.897.789 0 1.491.246 1.886.727v-.826c0-.604-.518-.998-1.306-.998-.469 0-.888.123-1.32.394a.64.64 0 01-.307.086.602.602 0 01-.592-.604c0-.221.123-.419.284-.517a3.963 3.963 0 012.206-.641zm-.222 5.188c.505 0 .998-.172 1.257-.517v-.74c-.259-.345-.752-.517-1.257-.517-.616 0-1.122.332-1.122.9 0 .554.506.874 1.122.874zM.656 11.125h12.688a.656.656 0 110 1.313H.656a.656.656 0 110-1.313z"></path></svg><div class="notion-collection-column-title-body">价格</div></div></div></div></div><div class="notion-table-th"><div class="notion-table-view-header-cell" style="width:200px"><div class="notion-table-view-header-cell-inner"><div class="notion-collection-column-title"><svg viewBox="0 0 14 14" class="notion-collection-column-title-icon"><path d="M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z"></path></svg><div class="notion-collection-column-title-body">优点</div></div></div></div></div><div class="notion-table-th"><div class="notion-table-view-header-cell" style="width:200px"><div class="notion-table-view-header-cell-inner"><div class="notion-collection-column-title"><svg viewBox="0 0 14 14" class="notion-collection-column-title-icon"><path d="M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z"></path></svg><div class="notion-collection-column-title-body">缺点</div></div></div></div></div><div class="notion-table-th"><div class="notion-table-view-header-cell" style="width:200px"><div class="notion-table-view-header-cell-inner"><div class="notion-collection-column-title"><svg viewBox="0 0 14 14" class="notion-collection-column-title-icon"><path d="M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z"></path></svg><div class="notion-collection-column-title-body">截图</div></div></div></div></div><div class="notion-table-th"><div class="notion-table-view-header-cell" style="width:200px"><div class="notion-table-view-header-cell-inner"><div class="notion-collection-column-title"><svg viewBox="0 0 14 14" class="notion-collection-column-title-icon"><path d="M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z"></path></svg><div class="notion-collection-column-title-body">备注</div></div></div></div></div><div class="notion-table-th"><div class="notion-table-view-header-cell" style="width:200px"><div class="notion-table-view-header-cell-inner"><div class="notion-collection-column-title"><svg viewBox="0 0 14 14" class="notion-collection-column-title-icon"><path d="M7 13A6 6 0 107 1a6 6 0 000 12zM3.751 5.323A.2.2 0 013.909 5h6.182a.2.2 0 01.158.323L7.158 9.297a.2.2 0 01-.316 0L3.751 5.323z"></path></svg><div class="notion-collection-column-title-body">分类</div></div></div></div></div></div></div><div class="notion-table-header-placeholder"></div><div class="notion-table-body"><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://devin.ai/">Devin AI</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d8095be12f77f9282e8cd"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="$500/月 https://devin.ai/pricing" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">$500/月 https://devin.ai/pricing</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 支持快速生成代码片段，提高开发效率
• 支持多种编程语言
• 界面简洁易用
• 以团队agent分工，开发到部署一体化</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 价格贵，门槛较高
• 无试用体验，实际生成结果待验证。</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">Cognition Labs 推出的 AI 编程机器人，有很强的自主学习和工作能力。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-orange">AI开发平台</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://replit.com/ai">Replit Ghost</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d80a59992f6c417591587"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="$25/月，包年$15/月团队版，每人$40/月https://replit.com/pricing" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">$25/月，包年$15/月团队版，每人$40/月https://replit.com/pricing</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 集成在 Replit 开发环境中，无缝使用
• 支持多种编程语言
• 提供实时代码建议和补全</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 需要 Replit 平台支持，无法独立使用
• 对复杂逻辑的生成可能不够精准</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">适合在 Replit 平台上进行开发的用户，提升编码效率</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-orange">AI开发平台</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://bolt.new/"><span class="notion-inline-underscore">Bolt.new</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d8083bc9ed5243f3393d2"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="$20/月，包年$18/月$50/月，包年$45/月$100/月，包年无优惠$200/月，包年$180/月" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">$20/月，包年$18/月$50/月，包年$45/月$100/月，包年无优惠$200/月，包年$180/月</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 预设多个技术框架，一键使用
• 无需本地安装环境依赖
• 自动化部署，集成Netlify
• 适合需要快速创建文档的用户</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• AI生成功能需要在Bolt.new平台运行
• 没有集成后端依赖</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">StackBlitz 出品的 AI 编程工具，可在线生成、编辑、运行、部署全栈网站，一站式解决网站开发需求。支持多种基于 JS 的前后端技术栈。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-purple">代码生成平台</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://v0.dev/"><span class="notion-inline-underscore">v0.dev</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d8064b8bde3964eb7f79c"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="个人版，$20/月团队版，每人$30/月" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">个人版，$20/月团队版，每人$30/月</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 快速生成前端代码，提升开发效率
• 支持响应式设计和现代前端框架
• 界面简洁易用</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 生成设计稿还原的静态页面代码，业务逻辑仍需要手动补充
• 对复杂交互的支持可能有限，需要进一步完善</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">Vercel 出品的 AI 网页设计开发工具。通过对话生成网页，可一键发布。主力支持 shadcn/ui (React) + Tailwind 技术栈，后续会支持更多前端技术栈。有免费配额。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-purple">代码生成平台</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.trae.ai/">Trae</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d804a84aeedced7fc2a4f"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 支持builder，类似cursor的composer
• 支持Claude-3.5-Sonnet和GPT-4o模型</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 没有bug扫描入口，需要手动添加内容询问
• 不支持添加外部Docs知识库
• 不支持Codebase项目检索
• 不支持web搜索</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">完整的 API 支持、全面的技术栈覆盖，　特别是在中文场景下的优化做得到位。它的&quot;双模式&quot;Builder 让开发更顺畅，Chat 让调试更便捷。两种模式无缝切换，搭配上稳定的自动保存，整个开发过程行云流水。　响应速度和 AI 模型表现也都在线。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">AI编辑器</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.cursor.com/">Cursor</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d809cba70dfd072037d10"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费版：有限次对话请求Pro：$20/月，包年$16/月Business: $40/月，包年$32/月" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费版：有限次对话请求Pro：$20/月，包年$16/月Business: $40/月，包年$32/月</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 集成 AI 代码补全和建议功能，提升开发效率
• 上下文内容支持丰富：Files、Folders、Code、Docs、Git|、Notepad、Suggested、Codebase、Web等
• 支持自定义LLM</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 对复杂逻辑的支持可能有限
• 可能需要一定时间适应 AI 驱动的开发方式</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">AI 辅助编程领域的后起之秀。Cursor 是一款编辑器，基于 VS Code 内核。除了基础的代码补全功能以外，它还提供了批量补全、预测下一步操作、智能对话、多文件编辑等高级功能。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">AI编辑器</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://codeium.com/windsurf">Windsurf</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d8095a5f2da2090236609"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费版，按积分制消费Pro版本，$15/月Pro Ultimate，$60/月https://codeium.com/pricing" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费版，按积分制消费Pro版本，$15/月Pro Ultimate，$60/月https://codeium.com/pricing</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• Cascade，对应Cursor的Composer</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">Codeium 出品的一款代码编辑器，基于 VS Code 内核，集成了 Agent 能力，支持各种高级的 AI 辅助编程功能。新用户可获得 2 周的专业版套餐试用期。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">AI编辑器</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/features/copilot">Github Copilot</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d80cc8be2dc0ecd3d5b5f"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费套餐：功能几乎没有限制，只限制调用次数。Pro：$10/月（第一个月免费试用）Business：$19/月Enterprise: $39/月" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费套餐：功能几乎没有限制，只限制调用次数。Pro：$10/月（第一个月免费试用）Business：$19/月Enterprise: $39/月</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 强大的代码补全和建议功能，支持多种编程语言
• 集成在主流开发环境中（如 VS Code）
• 提升开发效率</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 生成的代码可能需要进一步调试和优化
• 对复杂逻辑的支持可能有限</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">AI 辅助编程领域的标杆。由 GitHub 和 OpenAI 共同开发，作为编辑器插件集成到开发环境中，支持 VS Code 和 JetBrains IDE 等主流开发工具。它提供代码补全、智能对话、多文件编辑等功能。2024 年底开放免费套餐。<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/cssmagic/AI-Assisted-LLM-Dev-Book"><span class="notion-inline-underscore">《AI 辅助编程入门：使用 GitHub Copilot 零基础开发 LLM 应用》</span></a></span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/cline/cline">Cline</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d801d896bfa171287e233"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费，需自备LLM API" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费，需自备LLM API</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/RooVetGit/Roo-Code">Roo-Cline (Roo Code)</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d803ebcfcd2d64a394d64"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费，需自备LLM API" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费，需自备LLM API</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev">VS Code 插件</a>，融合了 Agent 思维，通过对话生成（或修改）项目代码。需自备 LLM API。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://tongyi.aliyun.com/lingma"><span class="notion-inline-underscore">通义灵码</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d808fbf2dd4b6c0158816"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 支持快速生成代码片段，提高开发效率
• 支持多种编程语言
• 界面简洁易用</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 生成的代码可能需要进一步调试和优化
• 对复杂逻辑的支持可能有限</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">阿里云出品的编辑器插件，支持 VS Code 和 JetBrains IDE 等，个人用户免费。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.marscode.cn/">Marscode</a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d80c0b066de609f1ff4a7"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 支持快速生成代码片段，提高开发效率
• 支持多种编程语言
• 界面简洁易用</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 生成的代码可能需要进一步调试和优化
• 对复杂逻辑的支持可能有限</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">字节跳动豆包大模型旗下的智能编程助手。提供智能补全、智能预测、智能问答等能力，适配 VS Code 和 JetBrains IDE 等主流开发工具。个人用户免费。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://codegeex.cn/"><span class="notion-inline-underscore">CodeGeeX</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d80c3a7e6fcedd103fae2"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 支持多语言代码生成和翻译
• 集成在主流开发环境中（如 VS Code）
• 提升跨语言开发效率</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">• 生成的代码可能需要进一步调试和优化
• 对复杂逻辑的支持可能有限</span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">智谱旗下的智能编程助手。支持 20 多种编程语言，适配 VS Code 和 JetBrains IDE 等主流开发工具。个人用户免费。企业用户可选择私有化部署服务。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cloud.tencent.com/product/acc"><span class="notion-inline-underscore">腾讯云 AI 代码助手</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d805da182d88943b0f367"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">腾讯云出品的编辑器插件，个人用户免费。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://comate.baidu.com/zh"><span class="notion-inline-underscore">文心快码</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d8056adf1e1ab0b0cee0b"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">百度出品的编辑器插件，个人用户免费。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://codefuse.alipay.com/welcome/download"><span class="notion-inline-underscore">CodeFuse</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d80d6bb7ff9f7f3058c8e"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">蚂蚁集团出品的编辑器插件,个人用户免费。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.tabnine.com/"><span class="notion-inline-underscore">Tabnine</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d804eb024f1062f9b6839"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="基础版（基础的代码补全功能）：免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">基础版（基础的代码补全功能）：免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">编辑器插件，支持 VS Code 和 JetBrains IDE 等。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div><div class="notion-table-row"><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://aws.amazon.com/codewhisperer/"><span class="notion-inline-underscore">Amazon CodeWhisperer</span></a></span></div><div class="notion-table-cell notion-table-cell-title" style="width:280px"><span class="notion-property notion-property-title"><a class="notion-page-link" href="/1ae3ee7af39d80138ff0efe1b64d3ad3"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="个人版（代码建议 + 参考跟踪 + 安全扫描）：免费" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">个人版（代码建议 + 参考跟踪 + 安全扫描）：免费</span></span></a></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text"></span></div><div class="notion-table-cell notion-table-cell-text" style="width:200px"><span class="notion-property notion-property-text">编辑器插件，支持 VS Code 和 JetBrains IDE 等。</span></div><div class="notion-table-cell notion-table-cell-select" style="width:200px"><span class="notion-property notion-property-select"><div class="notion-property-select-item notion-item-blue">编辑器插件</div></span></div></div></div></div></div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d803ea4ccff1ca04eb3ce" data-id="1ae3ee7af39d803ea4ccff1ca04eb3ce"><span><div id="1ae3ee7af39d803ea4ccff1ca04eb3ce" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d803ea4ccff1ca04eb3ce" title="三、原理剖析"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、原理剖析</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d80c4b7eee6c4fc5d95ca">在深入探索一体化AI编辑工具之前，让我们可以先整体了解 Agent 的核心概念，这些知识将帮助我们以更专业的视角理解智能编辑器的设计理念。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8008b2e7da74ba9a8fdc" data-id="1ae3ee7af39d8008b2e7da74ba9a8fdc"><span><div id="1ae3ee7af39d8008b2e7da74ba9a8fdc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8008b2e7da74ba9a8fdc" title="Agent"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Agent</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80f0b4effc286d7f8adf">Agent 作为一个能够感知环境并自主行动的智能实体，其完整架构包含感知、记忆、规划和执行等核心系统。现代 Agent 技术通过推理机制、学习能力和工具调用等方式实现其功能，并在 Mixture of Experts 和 ReAct 等先进框架的支持下，能够更好地处理复杂任务。掌握这些基础知识，我们不仅能够理解 Windsurf 等智能编辑工具的架构设计思路，更能洞察其内部组件的协同机制，从而更高效地运用好这些工具。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80c18a05cac9a6e505a1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afcb659d0-5ed3-4654-be30-e7a6b9f48275%3Af49b97ad-6fae-4e81-ae23-a3e19dfb3f0c.png?table=block&amp;id=1ae3ee7a-f39d-80c1-8a05-cac9a6e505a1&amp;t=1ae3ee7a-f39d-80c1-8a05-cac9a6e505a1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d802f84b5e572efde09ec" data-id="1ae3ee7af39d802f84b5e572efde09ec"><span><div id="1ae3ee7af39d802f84b5e572efde09ec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802f84b5e572efde09ec" title="主要构成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">主要构成</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8047bf1ffc5ca73dbf41"><b>记忆能力（Memory）</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d808b9b5ee7da853a5e9d" style="list-style-type:decimal"><li>多模态感知：处理和理解不同类型的输入信息（如文本、图像、音频、视频等）</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8011bea5cfb0c739a389" style="list-style-type:decimal"><li>短期记忆：暂时存储和处理当前任务相关的信息</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80958a47db466bdad9f1" style="list-style-type:decimal"><li>长期记忆：存储持久性知识和经验数据</li></ol><div class="notion-blank notion-block-1ae3ee7af39d80e9ac97c763b4ea8deb"> </div><div class="notion-text notion-block-1ae3ee7af39d80fc8f0ae96442468d46"><b>外部感知能力/工具（Tools）</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80f0bbbbe8359a7dd2f2" style="list-style-type:decimal"><li>搜索引擎：用于信息检索和查找</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8095abebd82f6978ca2e" style="list-style-type:decimal"><li>计算器：进行数值运算</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80408bcef1d168861c18" style="list-style-type:decimal"><li>代码解释器：处理和执行代码</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80e7a64fc0d577a22fb6" style="list-style-type:decimal"><li>日历：时间管理和调度功能</li></ol><div class="notion-blank notion-block-1ae3ee7af39d8087ba25e263cc0ce32a"> </div><div class="notion-text notion-block-1ae3ee7af39d802e9d6ad47ec8d7bb40"><b>思考决策（Planning）</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80199110f1c62f034da2" style="list-style-type:decimal"><li>思维链：构建逻辑推理链路</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8020a288d37e5baefc81" style="list-style-type:decimal"><li>反思：对行为和决策进行复盘</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d800483ffdcb5c862c672" style="list-style-type:decimal"><li>自我批评：进行自我评估和改进</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d804495adc82267288a43" style="list-style-type:decimal"><li>智能分析：对情况进行深入分析和判断</li></ol><div class="notion-blank notion-block-1ae3ee7af39d80409797d7ce89f761e8"> </div><div class="notion-text notion-block-1ae3ee7af39d80b29debdcfe06cb7cfa"><b>行动执行（Action）</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d806ca47bf3d40b9a5ff0" style="list-style-type:decimal"><li>执行具体任务和操作</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d805b86c9efb0b66d8ea3" style="list-style-type:decimal"><li>与工具系统有直接关联（通过虚线表示）</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80378b34cd5e31d5aab5" style="list-style-type:decimal"><li>作为最终的输出环节</li></ol><div class="notion-blank notion-block-1ae3ee7af39d808da1b9fb64c192a22b"> </div><div class="notion-text notion-block-1ae3ee7af39d8047905cde7fb2b3b8af">一个完整的智能体系统，从输入处理（感知）到决策规划，再到具体执行，形成了一个闭环的工作流程。每个模块都有其特定的功能，共同协作来完成复杂的任务，这种设计体现了现代 AI 系统的核心特征：<b>多模态处理能力、记忆管理、工具使用、决策规划以及行动执行</b>。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d804180ebffbaa0aac965" data-id="1ae3ee7af39d804180ebffbaa0aac965"><span><div id="1ae3ee7af39d804180ebffbaa0aac965" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d804180ebffbaa0aac965" title="Agent 在 AI IDE设计中的体现"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Agent 在 AI IDE设计中的体现</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80ce851dfc325f21fd5c">有了对前面这些核心特征的介绍，我们就可以从 Agent 设计的角度来快速了解 AI IDE 以及同类型智能编辑器的功能实现，通过多用户实时协作、智能代码建议、实时错误检测与修复、代码片段管理、自动化测试与部署以及用户反馈机制等功能，能够显著提升了开发效率，同时通过用户反馈持续改进 Agent 的功能。</div><div class="notion-text notion-block-1ae3ee7af39d8003bbb8e25493b133ff">Cursor 的逻辑是，先将工程内的所有代码进行索引和向量化（Embedding），再之后你的所有提问都是基于整个工程给你答案，它会将你的提问结合整个工程的代码一起提交给 LLM，这很像基于 RAG 方法论的系统实现，只不过外挂的知识库是代码库而已。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80a48501c710008cd3a2" data-id="1ae3ee7af39d80a48501c710008cd3a2"><span><div id="1ae3ee7af39d80a48501c710008cd3a2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a48501c710008cd3a2" title="底层实现"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">底层实现</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d806eb150f77b126cc2be">AI IDE（集成开发环境）的底层实现原理涉及多个核心模块的协同工作，主要通过<b>代码解析、机器学习模型集成</b>和<b>实时交互反馈</b>来实现智能化功能。以下是其核心架构的分解示意图：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80e7ba94f81f9e46b177" style="list-style-type:decimal"><li><b>代码解析层</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80e7ba94f81f9e46b177" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8063bec4ec9bcca1485b"><li><b>抽象语法树 (AST)</b>：通过ANTLR/Tree-sitter等工具构建代码结构模型</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d807bbf53cac91bd9e0ca"><li><b>符号表 (Symbol Table)</b>：记录变量/函数的作用域和类型信息</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8005b0c6f3f31c48d2c3"><li><b>静态分析</b>：检测代码模式和安全漏洞（如CodeQL集成）</li></ul></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d802991ddef254887e8d7" style="list-style-type:decimal"><li><b>模型推理层</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d802991ddef254887e8d7" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80be853cf7414edf6db8"><li><b>双模型架构</b>：</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808fbb7dd0be63a75760"><li><b>上下文感知机制</b>：通过滑动窗口保留最近的2000 token上下文</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d28a43c50cef453dfd"><li><b>增量训练</b>：持续学习用户编码风格（如Tabnine的个性化模型）</li></ul></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80ca97c3f315ff814b55" style="list-style-type:decimal"><li><b>实时交互系统</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80ca97c3f315ff814b55" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80dea4e0d49b1ef07980"><li><b>延迟优化策略</b>：</li></ul><table class="notion-simple-table notion-block-1ae3ee7af39d80be8528c8b56f24bcc0"><tbody><tr class="notion-simple-table-row notion-block-1ae3ee7af39d809e95b1c872eacef98c"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>策略</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>实现方式</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>延迟降低</b></div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8010aedcc356ec961a4d"><td class="" style="width:120px"><div class="notion-simple-table-cell">预加载预测</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">根据光标位置预取可能补全</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">40-60ms</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d808cb375f7f182b3b38b"><td class="" style="width:120px"><div class="notion-simple-table-cell">结果缓存</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">LRU缓存高频模式</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">30ms</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d800c8edcddd8ffd257ec"><td class="" style="width:120px"><div class="notion-simple-table-cell">异步处理</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">非阻塞IO管道</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">70ms</div></td></tr></tbody></table></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80a98662c6ad0460f554" style="list-style-type:decimal"><li><b>执行验证层</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80a98662c6ad0460f554" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801a9c4ec1fd4ee931d2"><li><b>沙箱环境</b>：Docker容器化执行（如Replit的Firecracker微VM）</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800ab074ea6661350638"><li><b>动态分析</b>：实时监控内存/CPU使用模式</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a8af63cc2046874d5c"><li><b>反模式检测</b>：AST比对常见错误模式数据库</li></ul></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80869274d026e0b480e4" style="list-style-type:decimal"><li>代码生成工作流程</li></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d801ca2fec25784d1f7a2" data-id="1ae3ee7af39d801ca2fec25784d1f7a2"><span><div id="1ae3ee7af39d801ca2fec25784d1f7a2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d801ca2fec25784d1f7a2" title="系统架构设计"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">系统架构设计</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80be916cc2b75821ce6b" data-id="1ae3ee7af39d80be916cc2b75821ce6b"><span><div id="1ae3ee7af39d80be916cc2b75821ce6b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80be916cc2b75821ce6b" title="前端集成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>前端集成</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80f3b706e48118791774">通过IDE插件（如VS Code扩展）调用AI服务，利用Language Server Protocol（LSP）标准化通信。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d806cb5e5c22783c5d6d0" data-id="1ae3ee7af39d806cb5e5c22783c5d6d0"><span><div id="1ae3ee7af39d806cb5e5c22783c5d6d0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d806cb5e5c22783c5d6d0" title="后端服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>后端服务</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c3a0ddd9b648a1be12"><li><b>模型推理引擎</b>：部署量化后的模型（如ONNX格式），使用Triton Server或TensorRT加速，或者使用LLM API 减少自己部署和运维成本。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8045b3c4f16c118b18a5"><li><b>缓存层</b>：缓存常见代码模式的预测结果（如Redis），减少模型调用次数。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80cdaa7bd6c2c9ee8dea"><li><b>异步处理</b>：耗时任务（如全文件分析）通过消息队列（Kafka）异步处理。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80aca2ffc76a9e9889ca"><li><b>隐私与安全</b>：敏感代码处理采用本地模型（如GGML格式的LLM）或端到端加密传输。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d8074a916d8951fd502c0" data-id="1ae3ee7af39d8074a916d8951fd502c0"><span><div id="1ae3ee7af39d8074a916d8951fd502c0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8074a916d8951fd502c0" title="四、主流AI IDE测评"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、主流AI IDE测评</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d80079c5ddcd815bdb404">由于现在一体化平台的开发工具都深度集成到在线平台，所以这次评测主要围绕AI编辑器展开，如：Cursor、Windsurf、Trae等，三者功能相似，下面将对Trae使用进行深度测评。</div><div class="notion-text notion-block-1ae3ee7af39d800b9232ce70c5c964b9"><b>AI编辑工具测评维度</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80abb64ce49426bf48c5"><li><b>核心能力，</b>如代码生成、智能补全、错误检测</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80ca82becd92b4072442"><li><b>技术深度，</b>语言理解、框架支持、算法优化</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8045b721f2f0c8fd56a0"><li><b>特色功能，</b>创新特性、差异化优势、场景适配</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8025bbb2c7412d0947f1"><li><b>使用成本，</b>对于个人和公司团队支出成本考量</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e4953afae52b229b4e"><li><b>交互体验，</b>产品是否本土化，人机交互是否完备，操作是否顺畅等</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d802a95b3cfbc4d96a494" data-id="1ae3ee7af39d802a95b3cfbc4d96a494"><span><div id="1ae3ee7af39d802a95b3cfbc4d96a494" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802a95b3cfbc4d96a494" title="核心能力"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">核心能力</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8020a285d577a6a1087d" data-id="1ae3ee7af39d8020a285d577a6a1087d"><span><div id="1ae3ee7af39d8020a285d577a6a1087d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8020a285d577a6a1087d" title="代码生成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>代码生成</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8066b7e3f5a898e87a63">编程按使用习惯分为两种方式：主动编程和辅助编程，其中主动编程是最高频的行为之一。人写代码和 AI 写代码都是一样的，关键点在于， AI 工具能否封装你的思考。　AI IDE 解放程序员的关键在于，如何通过一系列流程　让 AI 自动准确感知任务分配，并且正确执行任务。而当 AI 能按照我们的指令开始正确地工作时　工作效率就会提高，个人就会被解放出来，而这一系列流程生成的代码质量问题，则是通过AI IDE + 人去完成的，可得出：</div><div class="notion-text notion-block-1ae3ee7af39d8089851bcb85e8bb986f"><b>代码生成质量 = system prompt + Claude-3.5-sonnet（支撑底层模型） + Workflow代码索引+ user iuput  prompt</b></div><div class="notion-text notion-block-1ae3ee7af39d8036acebd0412aa52822">Cursor 、Windsurf和Trae 都是基于 vscode 二创而来。</div><div class="notion-text notion-block-1ae3ee7af39d80039453e0d2c46352a0">二者底层都是有一个强大的 Agent workflow 做支撑</div><div class="notion-text notion-block-1ae3ee7af39d80d89422c6e81c5d48cb">Cursor/Trae 底层默认使用Claude-3.5-sonnet运作示例模型（仅供理解 AI IDE 运行核心机制）</div><div class="notion-text notion-block-1ae3ee7af39d8074b501d3af38e85692"><b>核心点</b>在于<b>prompt</b> + <b>Agent workflow </b>+ <b>代码索引</b>上。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8027bc8cca3a7c04826f" data-id="1ae3ee7af39d8027bc8cca3a7c04826f"><span><div id="1ae3ee7af39d8027bc8cca3a7c04826f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8027bc8cca3a7c04826f" title="Prompt"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Prompt</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d800f9580daaa39c5956c">其中Prompt 分为两部分：</div><div class="notion-text notion-block-1ae3ee7af39d80ecbbeec9b2c7577a6e"><b>System prompt</b></div><div class="notion-text notion-block-1ae3ee7af39d805983fbd4e29994a972">Cursor/Trae 工程师定义的 Agent 交互之间的规则，作为用户侧无法感知，也是AI IDE 核心功能之一。</div><div class="notion-text notion-block-1ae3ee7af39d805893d0d770175130fe"><b>User prompt</b></div><div class="notion-text notion-block-1ae3ee7af39d8002ba91cd6b80a4891a">对话框输入 or  #引用文件（和 cursor 里的@引用文件 是一个逻辑）</div><div class="notion-text notion-block-1ae3ee7af39d807bb048e52a5b2eada7">并且这里通过提示 “⬆️⬇️切换历史输入”，“shift+↩︎”换行是非常实用的小技巧</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8072bd66c01fc899a8e9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:652px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A93b664f1-8a3a-4a7f-94be-b5fec5b4029d%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-8072-bd66-c01fc899a8e9&amp;t=1ae3ee7a-f39d-8072-bd66-c01fc899a8e9" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8069a09cd146e40209d8" data-id="1ae3ee7af39d8069a09cd146e40209d8"><span><div id="1ae3ee7af39d8069a09cd146e40209d8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8069a09cd146e40209d8" title="Agent workflow"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Agent workflow</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80a396f1df395fa5c050">Agent 作为LLM的智能体，workflow工作流编排集成越多，自动化就越高，通过LLM推理后会调用调用对应workflow进行工作，目前Trae调用的工具有：</div><div class="notion-row notion-block-1ae3ee7af39d8061a240c5f5a411d50a"><div class="notion-column notion-block-1ae3ee7af39d80fdb110c7712d448e23" style="width:calc((100% - (2 * min(32px, 4vw))) * 0.3333333333333333)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8040abecca3a82c532ea"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:205.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab61c4790-0271-4125-8eb7-3f8cea853f6a%3A946430a6-e2c1-4c5f-b79e-a413c4fa07c1.png?table=block&amp;id=1af3ee7a-f39d-8040-abec-ca3a82c532ea&amp;t=1af3ee7a-f39d-8040-abec-ca3a82c532ea" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1af3ee7af39d805ca331fd70468c28a2">分析</div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80d1af48cb7e5dc02b55" style="width:calc((100% - (2 * min(32px, 4vw))) * 0.3333333333333333)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8097b9c1dcfc6b7d99ce"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:205.9765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2d5ea5db-1f4e-4893-8fa7-b540bdd303ff%3A8cfa23d9-bc27-4622-9709-9bc32f0ccc47.png?table=block&amp;id=1af3ee7a-f39d-8097-b9c1-dcfc6b7d99ce&amp;t=1af3ee7a-f39d-8097-b9c1-dcfc6b7d99ce" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1af3ee7af39d80dea156eae7ac4bba53">创建文件或目录</div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80309420fc77bdc5ca97" style="width:calc((100% - (2 * min(32px, 4vw))) * 0.3333333333333333)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80d590e2d4ff1027ea0a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:678px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A635ab67f-9416-4f49-942d-002f8ae2b937%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-80d5-90e2-d4ff1027ea0a&amp;t=1ae3ee7a-f39d-80d5-90e2-d4ff1027ea0a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80c7be96cb5de2cc1b15">更新文件</div></div><div class="notion-spacer"></div></div><div class="notion-row notion-block-1ae3ee7af39d801f8906cc1d4060d3f1"><div class="notion-column notion-block-1ae3ee7af39d80b69b28f7c9e38fd21e" style="width:calc((100% - (2 * min(32px, 4vw))) * 0.3333333333333333)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d806783dfc0ac4820aa05"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:205.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5648b5c3-fefd-4a98-b9e2-7069597ddfba%3A06aff5e3-fe08-469b-8183-3653944ac888.png?table=block&amp;id=1af3ee7a-f39d-8067-83df-c0ac4820aa05&amp;t=1af3ee7a-f39d-8067-83df-c0ac4820aa05" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1af3ee7af39d802ba040c66dd3ee5bc4">命令行操作</div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80508ceddee3d41dc2f7" style="width:calc((100% - (2 * min(32px, 4vw))) * 0.3333333333333333)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80efa81ee99df5aa5e54"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:205.9765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A563f9b6d-e113-466a-91c2-ec42779087f9%3A298a9460-9dc1-4d59-ad46-db5af01330be.png?table=block&amp;id=1af3ee7a-f39d-80ef-a81e-e99df5aa5e54&amp;t=1af3ee7a-f39d-80ef-a81e-e99df5aa5e54" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80fcbf1fdac31ea41d3d">删除</div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d809fb2a0c205bec78afc" style="width:calc((100% - (2 * min(32px, 4vw))) * 0.3333333333333333)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8084b450de04f2cfc267"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:205.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5ed5d45d-7078-480a-b4ef-97f8a956c2a4%3A27e6e803-5173-4ee8-a888-08825c3a7794.png?table=block&amp;id=1af3ee7a-f39d-8084-b450-de04f2cfc267&amp;t=1af3ee7a-f39d-8084-b450-de04f2cfc267" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d806e87f8fd411854b818">webview视图，无需额外打开浏览器</div></div><div class="notion-spacer"></div></div><div class="notion-blank notion-block-1ae3ee7af39d8044b31fe00faa2f9abb"> </div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80ce9815fd1f5b384943" data-id="1ae3ee7af39d80ce9815fd1f5b384943"><span><div id="1ae3ee7af39d80ce9815fd1f5b384943" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80ce9815fd1f5b384943" title="代码索引"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>代码索引</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d802a9e36eb102d5b99c5">代码索引精度决定 AI 理解项目文件实际运行逻辑，准确找到对应的代码，成功构建起上下文十分重要。Cursor 和 Trae 在设置界面，都可以对当前的代码做索引管理，　二者在不显式调用（即@或#引用代码）时，均能准确构建项目上下文，　二者在第一次引用后，后期不引用时，也能使用第一次构建上下文！</div><div class="notion-text notion-block-1ae3ee7af39d80d3863adbe5ec1bbae8">Cursor 和 Trae 目前的能力都接住了大家对 AI 编程的第一波期待</div><div class="notion-text notion-block-1ae3ee7af39d8098bfbcf57a0798347c">在功能点上 cursor 领先于 Trae，但是 Trae 的工具调用能力展示却更直观</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8041aededf3de40ff72b" data-id="1ae3ee7af39d8041aededf3de40ff72b"><span><div id="1ae3ee7af39d8041aededf3de40ff72b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8041aededf3de40ff72b" title="辅助编程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">辅助编程</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8026ae6ec464389da29f">以上的开发新范式的核心是在于让AI IDE 主动编程，但往往，也需要被动辅助编程⬇️　比如：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d802592d1dee3db724ef5"><li>代码补全</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c09f69dd0a86e2c588"><li>代码优化 ：重构建议｜性能提升｜最佳实践推荐</li></ul><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d808c9be1f18aeb5fcf95" style="list-style-type:decimal"><li>Cursor/Trae 都提供了代码补全功能，实测下来，二者差距不大，均能准确提供参考代码</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d802b899be801495fea5f" style="list-style-type:decimal"><li>代码优化上，二者底层都是使用的 claude，在中低级任务中，二者都相差不大.</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8094b447c9041268d0b0" data-id="1ae3ee7af39d8094b447c9041268d0b0"><span><div id="1ae3ee7af39d8094b447c9041268d0b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8094b447c9041268d0b0" title="单个代码修改"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">单个代码修改</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80eb8e72cac4a603e7ea">细节对比：单个代码文件修改：cursor cmd+k vs Trae cmd+I</div><div class="notion-row notion-block-1ae3ee7af39d80099488f93cc78c5072"><div class="notion-column notion-block-1ae3ee7af39d80f59412c9a31c7c3b57" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d806a9e77d23d775882cf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0b65e932-3cc2-4ad4-b243-5a700780e944%3A94505725-0d2a-4301-a8ad-a00805c3a168.png?table=block&amp;id=1af3ee7a-f39d-806a-9e77-d23d775882cf&amp;t=1af3ee7a-f39d-806a-9e77-d23d775882cf" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1af3ee7af39d8057b7ebf9aab31c0c3d">Trae</div><div class="notion-blank notion-block-1ae3ee7af39d80f196e6ed38f9af38e3"> </div><div class="notion-blank notion-block-1ae3ee7af39d807a9bb0cd194e2c84aa"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d800cad3ee527bc2b3345" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80bb87b2dafdebb0bb97"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad70567fe-ec0f-423e-b207-d028e93682f3%3A63fcfe80-1835-4eea-b22e-15731b21b987.png?table=block&amp;id=1af3ee7a-f39d-80bb-87b2-dafdebb0bb97&amp;t=1af3ee7a-f39d-80bb-87b2-dafdebb0bb97" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80fd8cb9edfa7928439b">Cursor</div></div><div class="notion-spacer"></div></div><div class="notion-text notion-block-1ae3ee7af39d8042bcfedb7aa3f49e3e">二者的差异在于排版的位置不统一，Trae 的 UI 更加直观，cursor 更嵌入</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d803ead46d13e3a17c6e3" data-id="1ae3ee7af39d803ead46d13e3a17c6e3"><span><div id="1ae3ee7af39d803ead46d13e3a17c6e3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d803ead46d13e3a17c6e3" title="代码引用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">代码引用</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80a98d56f52844a3b603">细节对比：代码引用：cursor @ vs Trae #</div><div class="notion-row notion-block-1ae3ee7af39d8035b2d4c48401192126"><div class="notion-column notion-block-1ae3ee7af39d80fe8c87c9140ffcdc4b" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d809ab4c7cc86708f9258">Cursor Chat 模式</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80768265d20153517b17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2578facd-ca90-47b2-ae7d-0d68dd4243db%3A977f23c7-843c-4f2f-88f4-c0a1c435ae3b.png?table=block&amp;id=1af3ee7a-f39d-8076-8265-d20153517b17&amp;t=1af3ee7a-f39d-8076-8265-d20153517b17" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80679827f9c5fea2e662" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d800390dce78afb205029">Trae Chat 模式</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8013a57ecce1d9152901"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:332px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6353045d-7811-41c9-b065-df3f334e7574%3A971b7abb-4d8a-415d-964a-0e94dd8f0506.png?table=block&amp;id=1af3ee7a-f39d-8013-a57e-cce1d9152901&amp;t=1af3ee7a-f39d-8013-a57e-cce1d9152901" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div></div><div class="notion-row notion-block-1ae3ee7af39d80dcbda7cd66f8848cdd"><div class="notion-column notion-block-1ae3ee7af39d8029ae45f4f57f03255f" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80ce86b5ddd13cca7303">Cursor Composer 模式</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8032aeb5e53dede78e0f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.9921875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A315e72bd-bd10-415b-9808-ed5d51bccdf8%3A1dc87e71-5bfa-4f52-a767-b20b945e1c63.png?table=block&amp;id=1af3ee7a-f39d-8032-aeb5-e53dede78e0f&amp;t=1af3ee7a-f39d-8032-aeb5-e53dede78e0f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1af3ee7af39d807e9865c60fc11b00ae"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80479b99cc3e5b6591ff" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80188345c018be1369c7">Trae Builder模式</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d809cbfb5c8c128468928"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.9921875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d50b28a-c106-46f3-b1b0-2136e1ca5ef7%3Ad5d4db5c-825c-43e5-8b2f-0d8808a56fce.png?table=block&amp;id=1af3ee7a-f39d-809c-bfb5-c8c128468928&amp;t=1af3ee7a-f39d-809c-bfb5-c8c128468928" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div></div><div class="notion-blank notion-block-1ae3ee7af39d80faa007e99b9395c117"> </div><div class="notion-text notion-block-1ae3ee7af39d80608093fc9cb0c7f097">总结：Cursor 在功能完整度上面仍然具有领先优势</div><div class="notion-text notion-block-1ae3ee7af39d8006b827c1b0806f023a">但 Trae1.0 更友好地是对中文的支持</div><div class="notion-text notion-block-1ae3ee7af39d80f89683c693e13ca4e4">任何垄断性的行业终将迎来寒冬</div><div class="notion-text notion-block-1ae3ee7af39d80eeac45c7be90f65da9">良性的竞争会带来更好地 AI IDE 产品！</div><div class="notion-text notion-block-1ae3ee7af39d8022bc71c9952dc1cf50">期待字节的 Trae 后来居上，Cursor 持续创新</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8046a864c79620ae749b" data-id="1ae3ee7af39d8046a864c79620ae749b"><span><div id="1ae3ee7af39d8046a864c79620ae749b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8046a864c79620ae749b" title="编程语言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">编程语言</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80af88d5e1ce42fd94f5">语言支持，Trae 在这一点上，完全契合中文程序员，在初始化的时候，就可以选择语言类。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d801c8752f93826e0f849"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5e7c8324-d7b1-4605-9d47-0c8b9a398d27%3A2ead74ef-66e8-44c4-869e-c0a646955adf.png?table=block&amp;id=1af3ee7a-f39d-801c-8752-f93826e0f849&amp;t=1af3ee7a-f39d-801c-8752-f93826e0f849" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80d1b64ee5e3a81bec83">系统自带界面显示，但是 cursor 只有在安装了中文插件之后才能，一些具体的命令没有支持的翻译，Trae 是符合中文程序员的需求的，整体界面显示都符合中文程序员操作习惯。</div><div class="notion-blank notion-block-1af3ee7af39d8092ab65c27278207843"> </div><div class="notion-text notion-block-1ae3ee7af39d806ca596f0b61762fa0c">至于基础功能两者都支持：</div><div class="notion-row notion-block-1af3ee7af39d807290b0cd47e4b2ee1c"><div class="notion-column notion-block-1af3ee7af39d80d8b2a7db570695efb4" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1af3ee7af39d804fbed4e1b2dab61944">编程语言支持主流语言全覆盖:</div><div class="notion-text notion-block-1af3ee7af39d80b990e4c759229c97c4"><b>前端:</b></div><div class="notion-text notion-block-1af3ee7af39d8028b6c0c6763bf53f66">JavaScript/TypeScript、HTML、CSS等</div><div class="notion-text notion-block-1af3ee7af39d80f881a5e33558eef529"><b>后端:</b></div><div class="notion-text notion-block-1af3ee7af39d80ac9266d876406c76bb">Python、Java、Go、Rust等</div><div class="notion-text notion-block-1af3ee7af39d80d59efad63d9a79e396"><b>移动端:</b></div><div class="notion-text notion-block-1af3ee7af39d805ab148c4c6f62287b6">Swift、Kotlin等</div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1af3ee7af39d80868525d551677662d0" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1af3ee7af39d80318c65c1586f7db11f">框架支持</div><div class="notion-text notion-block-1ae3ee7af39d8097a58be3641a9314d2"><b>后端框架:</b></div><div class="notion-text notion-block-1ae3ee7af39d80a9842af720ff20cd3a">Spring Boot/Django/Express</div><div class="notion-text notion-block-1ae3ee7af39d80128cd0d1c57ee7cd32"><b>前端框架:</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8058b8baf930a2f52ad1"><li>完整的TypeScript类型推导</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80958b2cd3301cd52795"><li>新兴框架如Svelte、Next.js的智能提示</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809da0e3e18a04fda5f4"><li>React/Vue/Angular生态系统完整支持</li></ul><div class="notion-text notion-block-1af3ee7af39d80998872d94b381c4de9"><b>主流框架：</b></div><ul class="notion-list notion-list-disc notion-block-1af3ee7af39d80dc8e75d141da7a42cc"><li>数据库 ORM 框架集成</li></ul><ul class="notion-list notion-list-disc notion-block-1af3ee7af39d805ebe68dbee3a4a6a3d"><li>微服务架构相关框架</li></ul></div><div class="notion-spacer"></div></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80a9b406f40d040443d6" data-id="1ae3ee7af39d80a9b406f40d040443d6"><span><div id="1ae3ee7af39d80a9b406f40d040443d6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a9b406f40d040443d6" title="技术深度"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">技术深度</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80fa8845eab6d9f3c28f">特定的场景有多维的解决方案　其基础是：核心能力的支撑，我将采用一个例子，由浅入深：　<b>用 Trae 写一个 AI 导航工具网站。</b></div><div class="notion-row notion-block-1ae3ee7af39d807e9f9af2b9576741e2"><div class="notion-column notion-block-1ae3ee7af39d80b1b790f37a895ac968" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8039a8dbe0c2637f982d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A05ad42f2-16b1-47cb-8e2e-e875c3b696e1%3Ad1bfb34d-caab-457c-a83f-401daf322753.png?table=block&amp;id=1af3ee7a-f39d-8039-a8db-e0c2637f982d&amp;t=1af3ee7a-f39d-8039-a8db-e0c2637f982d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e6a91bcc6775c68f80">Trae 自动分析了我的意图，并且调用工具开始分析问题</div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80309d6deceba4533cc9" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d805c832be00cc2262384"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.9921875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A66eb9eeb-3b9d-495a-8598-bf232ba6475f%3A3748428f-9e88-4ef9-92fe-eba65ca15380.png?table=block&amp;id=1af3ee7a-f39d-805c-832b-e00cc2262384&amp;t=1af3ee7a-f39d-805c-832b-e00cc2262384" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8028b24ee98a7930e08a">期间我跳过执行它的命令，它也能智能感知当下的进度以及意图</div></div><div class="notion-spacer"></div></div><div class="notion-row notion-block-1ae3ee7af39d8027924fd34fa3ec9308"><div class="notion-column notion-block-1ae3ee7af39d80aaa5bfcce1035e3be6" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80fab985f256bec56e38"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.9921875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9534c189-8ef7-4433-b783-ec79a593105a%3A10a8c8ef-f1e2-4a41-b5cc-1331cc553aca.png?table=block&amp;id=1af3ee7a-f39d-80fa-b985-f256bec56e38&amp;t=1af3ee7a-f39d-80fa-b985-f256bec56e38" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d80b9903ed77c69ae2092"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80e087bfd0dbb00fd88c" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8062bdf6e1c2850aec2a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.9921875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A472abc14-b74f-424e-983b-39b1993ab4d5%3A65b8f4b5-c066-4fd5-8367-b44eec2ad51a.png?table=block&amp;id=1af3ee7a-f39d-8062-bdf6-e1c2850aec2a&amp;t=1af3ee7a-f39d-8062-bdf6-e1c2850aec2a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d80f9bd4ee76e12df9dbc"> </div></div><div class="notion-spacer"></div></div><div class="notion-callout notion-gray_background_co notion-block-1ae3ee7af39d80ad8f3be95699936737"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-1ae3ee7af39d8023a910f65164e093bb"><b>相同点：</b> 提供实时的代码检查（linter）功能</div><div class="notion-text notion-block-1ae3ee7af39d805db8b3c41bcff18d95">支持项目文件的自动生成</div><div class="notion-text notion-block-1ae3ee7af39d808398e9d86d32b4feba">支持组件化开发</div><div class="notion-text notion-block-1ae3ee7af39d80c2a402f5442e26016d">提供完整的项目结构搭建能力</div><div class="notion-text notion-block-1ae3ee7af39d80fb90f4d50f26fe013d">支持命令行操作</div></div></div><div class="notion-text notion-block-1ae3ee7af39d801aa1edf4fae2a055d9"><b>不同点：</b></div><div class="notion-text notion-block-1ae3ee7af39d80f28b07cd828865c0ba"><b>界面语言和本地化</b></div><div class="notion-row notion-block-1ae3ee7af39d80c180ecf3620fd944c3"><div class="notion-column notion-block-1ae3ee7af39d80d08f62d40952db4da3" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d8098aee5f8dcd59828f7">Trae:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c6b937f10f6026946a"><li>完全中文化的界面</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d805e9e2fc887211d84b6"><li>操作提示和文件说明都是中文</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e69394d83f42cc5e95"><li>更符合中文开发者使用习惯</li></ul></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80928a3cc47dd46d0b71" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d8085b6dafffa65fafe6d">Cursor:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80278bdef013efcbc2ab"><li>默认英文界面</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80208dbed15339ef3d52"><li>代码注释和提示以英文为主</li></ul></div><div class="notion-spacer"></div></div><div class="notion-blank notion-block-1ae3ee7af39d8000ab39f5ac76b2aa0d"> </div><div class="notion-text notion-block-1ae3ee7af39d808a974dc06a884d413d"><b>交互方式</b></div><div class="notion-row notion-block-1ae3ee7af39d80708c65c23f724b2593"><div class="notion-column notion-block-1ae3ee7af39d8074aacfdaff8641d118" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80109931e426547958d5">Trae:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c8932ace0dd59a4a87"><li>提供更直观的文件路径创建说明</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8055a8cceeabe9acd288"><li>显示每个文件的具体用途和功能说明</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80aea595e712fef0f2ee"><li>带有&quot;+xx&quot;的行数变更提示更醒目</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d0aa30e395b2e645fc"><li>提供&quot;全部拒绝&quot;和&quot;全部接受&quot;的批量操作选项</li></ul></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d801a94eee8a53667a491" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80b3b9c3eb8d860964e8">Cursor:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80ea8029da36e71dd0ee"><li>更偏向传统IDE的操作方式</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80669d9fe40facbf568c"><li>代码生成过程更直接展示</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a6b4fcf9d4a4745518"><li>文件操作反馈更简洁</li></ul></div><div class="notion-spacer"></div></div><div class="notion-blank notion-block-1ae3ee7af39d80f2af40dd2d4161ba08"> </div><div class="notion-text notion-block-1ae3ee7af39d801a859debb83d4c2843"><b>生成代码的展现形式</b></div><div class="notion-row notion-block-1ae3ee7af39d8043add7c206e4351562"><div class="notion-column notion-block-1ae3ee7af39d80818d13d67bf9e3139b" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d806b9029ce302bf64467">Trae:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80cea3acc07070d867cb"><li>以任务描述为导向</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801297acff3c56746074"><li>展示完整的功能模块说明</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80889f9be6d57ac5013b"><li>更注重业务逻辑的完整性</li></ul></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d8056b7cbcd962ac306a9" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80a499f4e7068497ceac">Cursor:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8060a612eee711e7a385"><li>以代码实现为导向</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a6b429ee35a5bfa87e"><li>直接展示代码结构</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a0851ec86d69379137"><li>更注重技术实现的展示</li></ul></div><div class="notion-spacer"></div></div><div class="notion-blank notion-block-1ae3ee7af39d8016ab5bd13c0b3537bf"> </div><div class="notion-text notion-block-1ae3ee7af39d809db391c6a628e74d3b"><b>用户引导和提示</b></div><div class="notion-row notion-block-1ae3ee7af39d80d3b4c1e9cf0334a65f"><div class="notion-column notion-block-1ae3ee7af39d80d2a286c518a9d2fddf" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d8066ad15f16efe950aaa">Trae:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808a8b38dc80403ce4dd"><li>提供更详细的中文引导说明</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8019a8ace69a5cd5c710"><li>每个文件都有明确的功能描述</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80f2aa22d99758772bb7"><li>操作步骤更清晰直观</li></ul></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d8042b7a2d0b437d26986" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d8047a169fd6c5930a2e1">Cursor:</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80aaa9b2ddbbb177ce45"><li>提示信息相对简洁</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804ea90ccdc96ebabb99"><li>更依赖用户对开发流程的理解</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8031ba76c8203dc86495"><li>专注于代码本身的展示</li></ul></div><div class="notion-spacer"></div></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d805ab27cce4db9bd3e14" data-id="1ae3ee7af39d805ab27cce4db9bd3e14"><span><div id="1ae3ee7af39d805ab27cce4db9bd3e14" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d805ab27cce4db9bd3e14" title="复杂需求开发"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">复杂需求开发</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8026a894ce8b6d7a650d">当项目逐渐进入复杂的阶段，每次单纯地引用代码块 或者 使用#workspace ，让 Agent 去理解项目的时候，大模型的理解是不精准的，此时在最开始的需求文档确定好之后，</div><div class="notion-text notion-block-1ae3ee7af39d80828604ee987377e90a">让 Trae 在每次编写代码的同时，更新细节文档。　在每次引用这个细节文档告诉 Agent 细节部分，如此，便可精准地撰写每一部分代码。</div><div class="notion-blank notion-block-1af3ee7af39d8076b47ac2232f9abd90"> </div><div class="notion-text notion-block-1ae3ee7af39d8070ac8df5103bf693db">相比于 cursor 拥有.cursorrules/.cursorignore/rules for AI，Trae 目前仍处于早期阶段，暂时不具备这些功能，但是也可以使用#引用文件，让 AI 大模型精准理解需求，更好地辅助实现人的思想。</div><div class="notion-blank notion-block-1af3ee7af39d80e08180ee8a1a639b3b"> </div><div class="notion-text notion-block-1ae3ee7af39d804bbce0e72d546121b6"><b>本质上：Trae 和 cursor 都拥有代码索引功能，因此这是定量</b></div><div class="notion-text notion-block-1ae3ee7af39d80649ecbd8a4c43ac6c8">而底层的Agent workflow也是黑盒子　唯一开放给开发者的变量是：prompt 部分，因此针对项目的实际需求,</div><div class="notion-blank notion-block-1ae3ee7af39d8009b915ca17354e6353"> </div><div class="notion-text notion-block-1ae3ee7af39d8007abe3c0a53bebe719">可以设定：</div><div class="notion-text notion-block-1ae3ee7af39d80c7b510f87f8779c076">技术的语言支持 / 框架覆盖 / 工具链集成 / 架构理解 / 设计模式 / 性能优化</div><div class="notion-blank notion-block-1ae3ee7af39d8042a521e5a1fa01808c"> </div><div class="notion-text notion-block-1ae3ee7af39d80e08198e278abc5a0e2">最终实现：</div><div class="notion-text notion-block-1ae3ee7af39d80cf8183f087cd1ba8cf">对业务的问题诊断 / 原因分析 / 方案设计 / 评价方案完整性</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d801d8502cd219ed96842" data-id="1ae3ee7af39d801d8502cd219ed96842"><span><div id="1ae3ee7af39d801d8502cd219ed96842" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d801d8502cd219ed96842" title="交互体验"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">交互体验</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80b1b8b2e9bff6db02c7" data-id="1ae3ee7af39d80b1b8b2e9bff6db02c7"><span><div id="1ae3ee7af39d80b1b8b2e9bff6db02c7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b1b8b2e9bff6db02c7" title="界面展示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">界面展示</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80a0a02ae0059a2a900e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70740006-52a4-4f9a-b946-b905dbde0a0b%3A6bc65dfe-c830-4295-ba9e-2579a210d2e2.png?table=block&amp;id=1af3ee7a-f39d-80a0-a02a-e0059a2a900e&amp;t=1af3ee7a-f39d-80a0-a02a-e0059a2a900e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80448103c50f8e18568a">整体效果类似 VSCode 界面，在 AI IDE 的产品体验中，对我们开发者，交互体验丝滑是重要的，决定了整个开发过程的舒适度。</div><div class="notion-text notion-block-1ae3ee7af39d80308a5fdc0010f4fe01">AI IDE 接受的输入就是Prompt 和 引用文件。</div><div class="notion-text notion-block-1ae3ee7af39d807e8bbee0dd61287668">人接受的输出就是 实时性的代码生成 和 代码文件操作思路。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80b88369e146562d3042" data-id="1ae3ee7af39d80b88369e146562d3042"><span><div id="1ae3ee7af39d80b88369e146562d3042" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b88369e146562d3042" title="输入方面"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">输入方面</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8000bd59cbaa0ef5626b">我们想要 AI IDE 更精准地知道需求所在的代码区域</div><div class="notion-text notion-block-1ae3ee7af39d80a49bf5ff279a2429bc">那么就得用一种方式告诉它：</div><div class="notion-row notion-block-1ae3ee7af39d8043b49ed5fc0a7590db"><div class="notion-column notion-block-1ae3ee7af39d80fe977ad6078da45824" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80b08861e4a0f8e0b70d">在 cursor 中用 @符号 对文件进行引用</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80db8c46d2786e4ff6a0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af3bcabc3-0a6a-44b0-b17e-a1fe8bbcb71b%3A54d40119-6b32-46db-a794-6f0c4bab8aa7.png?table=block&amp;id=1af3ee7a-f39d-80db-8c46-d2786e4ff6a0&amp;t=1af3ee7a-f39d-80db-8c46-d2786e4ff6a0" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d8096a5b4fc1b60a09be9" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d8070b505cf5901c6beeb">在 Trae 中用 #符号 对文件进行引用</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d802c9516c171171a48c3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad3d55ede-e14d-4259-8d1b-9a4a0acc6e01%3A110807d1-ec06-41b9-9dfa-e52455d74b08.png?table=block&amp;id=1af3ee7a-f39d-802c-9516-c171171a48c3&amp;t=1af3ee7a-f39d-802c-9516-c171171a48c3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1af3ee7af39d807bade2de047ceb0a90"> </div></div><div class="notion-spacer"></div></div><div class="notion-text notion-block-1ae3ee7af39d80d7a838d0da2e52235a">而当用途不同，即我们要让 AI 快速知道我们的项目详细情况时，不可能把数百个文件都引用一遍，所以 cursor的@codebase 或 Trae的#workspace（chat 模式下）应运而生。即，快速上手一个功能点的最佳方式是：　知道它为何而生，而不是苦思文字含义，当引用了代码时，底层的 Agent workflow 就会开始让 AI 深度理解业务场景。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80f08b9ddc3e9ae35a80" data-id="1ae3ee7af39d80f08b9ddc3e9ae35a80"><span><div id="1ae3ee7af39d80f08b9ddc3e9ae35a80" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f08b9ddc3e9ae35a80" title="输出方面"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">输出方面</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8070b961fa661b2ddeda">而Prompt输入之后，AI IDE 的响应速度/精度/持续性十分重要，通过 AI IDE 最直观的是减少代码编写的时间。因此 AI IDE 的响应速度就应该是实时性的，我们要做的是审查代码的合理性，及时调整核心需求，让 AI 将想法快速变为现实。</div><div class="notion-row notion-block-1ae3ee7af39d80af9652c3ad6370d818"><div class="notion-column notion-block-1ae3ee7af39d8092b9e0e247c8b112cc" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d806090d4e49fc82165bf"><b>Trae 的交互体验尤其丝滑</b></div><div class="notion-text notion-block-1ae3ee7af39d80428d0edba565104e44"><b>写前端构建的/src/router/index.ts 这种的排布</b></div><div class="notion-text notion-block-1ae3ee7af39d80a984f5d967ab577629"><b>详细的界面展示，精确的工具调用</b></div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d8083b449d56e56864752" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d800db1c7c753ad5966ce"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:331.9921875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1e169de-37c3-46e2-b314-c2b3aeed2539%3A95bd566c-89ba-4095-994e-91be030638cd.png?table=block&amp;id=1af3ee7a-f39d-800d-b1c7-c753ad5966ce&amp;t=1af3ee7a-f39d-800d-b1c7-c753ad5966ce" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d8067bdccd1c28785a590"> </div></div><div class="notion-spacer"></div></div><div class="notion-blank notion-block-1ae3ee7af39d80dcb28cdb0bf0682e47"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8043856dc37b85cdf3a6" data-id="1ae3ee7af39d8043856dc37b85cdf3a6"><span><div id="1ae3ee7af39d8043856dc37b85cdf3a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8043856dc37b85cdf3a6" title="特色功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">特色功能</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d809d9aa3d069d39f58b3">真正强大的 AI IDE，我觉得不在于它有多少功能，而是，是否真正更帮我高效写代码。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d800baf22dff37a460e83" data-id="1ae3ee7af39d800baf22dff37a460e83"><span><div id="1ae3ee7af39d800baf22dff37a460e83" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d800baf22dff37a460e83" title="Builder和Chat满足不同场景"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Builder和Chat满足不同场景</span></span></h4><div class="notion-row notion-block-1ae3ee7af39d80c8805fe3d2252ae473"><div class="notion-column notion-block-1ae3ee7af39d80269e57d7d74d286540" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80328b73c4e042721a4d">Builder 模式：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d805880bdc820e65f1f65"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aef8a5130-66df-4e16-840f-742026519c6c%3A307cbee0-e4b7-4abe-a1df-025de67bd26f.png?table=block&amp;id=1af3ee7a-f39d-8058-80bd-c820e65f1f65&amp;t=1af3ee7a-f39d-8058-80bd-c820e65f1f65" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d801b9813f5e251ae9def">重新定义项目生命周期</div><div class="notion-text notion-block-1ae3ee7af39d8069a9a3e156373911f2">用Trae 的 Builder 模式时，</div><div class="notion-text notion-block-1ae3ee7af39d80bc935bd3f29d27b44a">我感受到：　不是被动的代码编辑器，是一个能理解你想法的开发伙伴</div><div class="notion-text notion-block-1ae3ee7af39d8009b197cc7aa5f46eec">这样的场景：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8082b120d8ef7391ddde"><li>你用自然语言描述你的想法</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8047996ecf3c0bebb478"><li>AI 理解你的意图，分解成具体任务</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e2a033c4b30f62226a"><li>自动规划项目结构，生成框架代码</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80438ce9c5fde8c7fe61"><li>实时反馈执行进度，及时纠正错误</li></ul><div class="notion-text notion-block-1ae3ee7af39d8004a54efd0223a66246">这就像有了一个无需过多解释就能领会你心意的搭档</div><div class="notion-text notion-block-1ae3ee7af39d8030b972e3da85b81054">让开发从&quot;写代码&quot;变成了&quot;讲述想法&quot;</div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d8092917bd0311ebd6bf8" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-1ae3ee7af39d80ef935dfa610fa5bce3">Chat 模式</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80c69cc4d7a5b26a7c6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8a52a6b0-b854-4002-9a84-7d0caa81d5e9%3A02915373-dd0e-4e76-a085-0b11654fbb75.png?table=block&amp;id=1af3ee7a-f39d-80c6-9cc4-d7a5b26a7c6b&amp;t=1af3ee7a-f39d-80c6-9cc4-d7a5b26a7c6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80579491c687e5479b3d">而在日常开发中，Chat 模式则像是你身边的技术顾问：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803cad0ccc06907982e5"><li>不用切换窗口打开搜索引擎</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801ebc43e790e015429f"><li>不用在社区论坛苦等回复</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80659268c9ff20f5c1a2"><li>不用担心上下文丢失</li></ul><div class="notion-text notion-block-1ae3ee7af39d801aacf7cf91c931028c">它就在那里，准备好：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809abcbcf3ae8f4afdc9"><li>解答你的疑惑</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80ca875dfee3fca8d6ce"><li>优化你的代码</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80b3aac2d032f91ceaf7"><li>指出潜在问题</li></ul></div><div class="notion-spacer"></div></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8040ba77e0cf2b095872" data-id="1ae3ee7af39d8040ba77e0cf2b095872"><span><div id="1ae3ee7af39d8040ba77e0cf2b095872" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8040ba77e0cf2b095872" title="Webview"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Webview</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80f7a81bf09a6f1c7318"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abd1ad078-1011-4941-8e10-675313bdd45f%3A27e41350-9f1d-4df3-9829-b98f342d9b21.png?table=block&amp;id=1af3ee7a-f39d-80f7-a81b-f09a6f1c7318&amp;t=1af3ee7a-f39d-80f7-a81b-f09a6f1c7318" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8075810dc6ef7aa2f612">我们习惯了编辑器和浏览器之间的不断切换，这看似微小的操作，实际上打断了我们的思维流，Trae 的 Webview 功能，正是对这一痛点的优雅解决，而 Trae 的做法是：</div><div class="notion-text notion-block-1ae3ee7af39d80e58ce8edcb036ac5c9"><b>让预览无处不在，又若隐若现</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80afaaebfe890e1b4650"><li>IDE 内直接预览</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800e90defd98490b09c4"><li>实时响应变化</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80dd98b8f529f33e81ec"><li>零延迟反馈</li></ul><div class="notion-text notion-block-1ae3ee7af39d80be8fe5c34088cfd285"><b>特别是在以下场景中，这种体验尤为珍贵：</b></div><div class="notion-text notion-block-1ae3ee7af39d8085b5f5d60b402986be">前端页面开发</div><div class="notion-text notion-block-1ae3ee7af39d805da609fa99850234f3">交互效果调试</div><div class="notion-text notion-block-1ae3ee7af39d80eda153d778212ae93c">响应式设计适配</div><div class="notion-text notion-block-1ae3ee7af39d80928fa6f249232c484d">数据可视化呈现</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80008168c73ef336b609" data-id="1ae3ee7af39d80008168c73ef336b609"><span><div id="1ae3ee7af39d80008168c73ef336b609" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80008168c73ef336b609" title="使用成本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用成本</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80869cbbfbb6eb89a1c7">从成本效益比来看，Trae 在各个维度都展现出明显的成本优势，</div><div class="notion-text notion-block-1ae3ee7af39d80668261fa78acf1f4d8">特别适合初创团队和个人开发者。</div><div class="notion-text notion-block-1ae3ee7af39d80fd8b9fe5f7bdad9780">而 Cursor 虽然收费，</div><div class="notion-text notion-block-1ae3ee7af39d80f7bc25cd574ce75058">但其专业版和企业版的功能更适合对特定功能有强需求的商业用户。</div><div class="notion-text notion-block-1ae3ee7af39d80e09a6fcc2e84c1846d">选择哪个工具，最终还是要根据团队实际需求和预算情况来决定。</div><div class="notion-text notion-block-1ae3ee7af39d80e69f5ee3546907cd29"><b>主要Claude-3.5-Sonnet完全免费，字节真的给我们又送了波福利。</b></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d8095bb25d437313c4ccb" data-id="1ae3ee7af39d8095bb25d437313c4ccb"><span><div id="1ae3ee7af39d8095bb25d437313c4ccb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8095bb25d437313c4ccb" title="五、辅助工具"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、辅助工具</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d802085f0faadf22d86b0" data-id="1ae3ee7af39d802085f0faadf22d86b0"><span><div id="1ae3ee7af39d802085f0faadf22d86b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802085f0faadf22d86b0" title="Copycoder"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Copycoder</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8036ad60cfffcfb4ba1d">https://copycoder.ai/</div><div class="notion-text notion-block-1ae3ee7af39d8012b31cca5494a38a96">CopyCoder，一款专门解决UI设计到前端代码的辅助工具，它可以非常精准地根据截图生成相应的提示词，提示词包括应用结构、组件规划、代码要求等，把网页设计稿、原型图转换成适合 AI 编程工具处理的提示词，适合与 Cursor、Windsurf、Bolt.new、v0.dev 等工具配合使用。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8049af5fed011ed7d5db" data-id="1ae3ee7af39d8049af5fed011ed7d5db"><span><div id="1ae3ee7af39d8049af5fed011ed7d5db" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8049af5fed011ed7d5db" title="主要特色"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">主要特色</span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e0a06de65a88e16265"><li><b>截图生成提示词</b>：根据用户上传的设计图生成代码提示。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80049d20d5dbf2ffdb11"><li><b>适配主流智能代码编辑器</b>：提示结果专门适配Cursor、Bolt和v0，优化效果。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801391cbfe1a368cbf7d"><li><b>页面结构分析能力</b>：基于已有的侧边栏、顶部导航分析系统页面逻辑，构造项目页面结构、路由配置。（截止发文时间，仅支持侧边栏，顶部导航分析尚未支持）</li></ul><div class="notion-text notion-block-1ae3ee7af39d80929237e9adfa6394c1">仅通过一个图片，就能把整个网站复杂的结构、组件规划或者导入路径补充得明明白白，你只需要把关注点放在主要功能开发上，由于该工具未提供试用版本，可试用https://www.codecopypro.com/进行平替。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80f0b526d1b1482d47fe" data-id="1ae3ee7af39d80f0b526d1b1482d47fe"><span><div id="1ae3ee7af39d80f0b526d1b1482d47fe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f0b526d1b1482d47fe" title="Galileo AI"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Galileo AI</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d8057ba2cd0b6b4a0cf3a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A92964cb8-4c44-417e-a78f-3daf2b505d9d%3A3c695529-37d6-4782-a08b-5b6a55aaff52.png?table=block&amp;id=1af3ee7a-f39d-8057-ba2c-d0b6b4a0cf3a&amp;t=1af3ee7a-f39d-8057-ba2c-d0b6b4a0cf3a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80989861ed29b26d55e4">https://www.usegalileo.ai/</div><div class="notion-text notion-block-1ae3ee7af39d800c975cc680382a55f0"><b>Galileo AI</b>是UI界面设计生成工具，用户只需要输入一句简单的文本描述，就可以得到一个完整的UI设计。Galileo AI利用机器学习算法对大量界面设计数据进行分析，根据设计原则、用户需求生成高质量的界面设计方案，特别适合需要快速原型设计和创意探索的设计师和开发者。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80f79510d5c39858545c" data-id="1ae3ee7af39d80f79510d5c39858545c"><span><div id="1ae3ee7af39d80f79510d5c39858545c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f79510d5c39858545c" title="主要功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">主要功能</span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809e8c0ee9db1ad70fc8"><li><b>文本到UI</b>，用户输入文本描述，Galileo AI能够理解并生成相应的UI设计元素。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d807c86dddbd885935404"><li><b>图形到UI</b>，用户上传图片，Galileo AI能够从图片中提取设计灵感，转化为UI设计。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80cfbdfff85cb2bcc532"><li><b>编辑和调整</b>，用户可以在生成的界面基础上进行微调，如切换外观、修改主题色、调整圆角样式和字体等。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80f8a30bf5dad7f4928a"><li><b>辅助设计</b>，提供大量的设计元素、模板和样式参考，帮助用户拓展设计思路。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80c390d4cc3d7d175a0a" data-id="1ae3ee7af39d80c390d4cc3d7d175a0a"><span><div id="1ae3ee7af39d80c390d4cc3d7d175a0a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80c390d4cc3d7d175a0a" title="六、实战演示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">六、实战演示</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d803ebc52d34529ccfcfa" data-id="1ae3ee7af39d803ebc52d34529ccfcfa"><span><div id="1ae3ee7af39d803ebc52d34529ccfcfa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d803ebc52d34529ccfcfa" title="滑雪爱好者H5应用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">滑雪爱好者H5应用</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80959e9bd821f0f33969">由于cursor和windsurf有免费额度限制，此次使用字节最近推出Trae AI编辑器进行演示。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d803b8004d8b49ab61a93" data-id="1ae3ee7af39d803b8004d8b49ab61a93"><span><div id="1ae3ee7af39d803b8004d8b49ab61a93" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d803b8004d8b49ab61a93" title="前置要求"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前置要求</span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d806ab45fed3903fc61d1"><li>安装nodejs</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a89cdfca217bf26dbc"><li>初始化next.js框架项目</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80c29f30ec6b3fe95b50" data-id="1ae3ee7af39d80c29f30ec6b3fe95b50"><span><div id="1ae3ee7af39d80c29f30ec6b3fe95b50" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80c29f30ec6b3fe95b50" title="梳理项目PRD"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">梳理项目PRD</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d802e9056cd8721b6561a">滑雪爱好者应用程序，这里我们可以借助DeepSeek 的深度思考，把项目框架和功能梳理出来，并得出以下页面：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803692e1c0d036bc0f34"><li><b>用户注册/登录</b>：供新用户或老用户创建或访问其帐户。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80f2abd3c6f97cab0d6b"><li><b>度假村选择</b>：允许用户从各种著名的滑雪胜地中进行选择。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800a888fd9250cba047d"><li><b>Run Tracker Dashboard</b>：显示跑步的当前和历史数据，包括地图、距离和时间。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801183bec9a759bc5a8d"><li><b>Run Details （运行详细信息屏幕</b>）：提供有关特定滑雪道的深入统计数据和信息。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8081a5bffa62fff51534"><li><b>设置 / 个人资料</b>：用户可以更新个人信息、首选项和应用程序设置的位置。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8084985cf24a4077508a" data-id="1ae3ee7af39d8084985cf24a4077508a"><span><div id="1ae3ee7af39d8084985cf24a4077508a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8084985cf24a4077508a" title="设计资源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设计资源</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d803dbc56d99312c21ada">由于上面我们已经准备好项目的功能及需求点，可以基于这些信息，利于AI生成对应的设计稿，如使用<b>Galileo AI</b></div><div class="notion-row notion-block-1ae3ee7af39d8012b413c814d2d1d63e"><div class="notion-column notion-block-1ae3ee7af39d80b0880defb7ca389a8f" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d805a941accafabc22a47"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af7f0e73f-779a-4f89-a0fb-9b4bc895444b%3A58dc0b2a-0d21-4447-bc1f-295bfd311eae.png?table=block&amp;id=1af3ee7a-f39d-805a-941a-ccafabc22a47&amp;t=1af3ee7a-f39d-805a-941a-ccafabc22a47" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d8038afdfc5a8427c86eb"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80c19890cea974709dfc" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d805db46ed5377823a651"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A88f4378f-753b-4b48-b887-8e6f77c7a532%3Ac4d30a74-2920-4ce7-a534-55dc2624cc0b.png?table=block&amp;id=1af3ee7a-f39d-805d-b46e-d5377823a651&amp;t=1af3ee7a-f39d-805d-b46e-d5377823a651" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d8057bfc8d3f21cabce76"> </div></div><div class="notion-spacer"></div></div><div class="notion-row notion-block-1ae3ee7af39d8002a3b2c0387fb29853"><div class="notion-column notion-block-1ae3ee7af39d8043b689ce875b872ab3" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80efa613f64340ec243b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aac3078f9-ac28-41d5-b845-14ebc962e511%3A3df1186c-7e02-4164-9190-7dc4fda2dc2f.png?table=block&amp;id=1af3ee7a-f39d-80ef-a613-f64340ec243b&amp;t=1af3ee7a-f39d-80ef-a613-f64340ec243b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d807aba8dd36f550a3322"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d80e0b43dfceccd50270f" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80e9b682c5ebf723eaef"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aab6f31cf-42af-4c71-9d69-d10885a74136%3A85fafe3c-195d-44b1-9668-d1da3ee172a8.png?table=block&amp;id=1af3ee7a-f39d-80e9-b682-c5ebf723eaef&amp;t=1af3ee7a-f39d-80e9-b682-c5ebf723eaef" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d804990f1c30848543cd0"> </div></div><div class="notion-spacer"></div></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d809b8368ec051b90e52c" data-id="1ae3ee7af39d809b8368ec051b90e52c"><span><div id="1ae3ee7af39d809b8368ec051b90e52c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809b8368ec051b90e52c" title="实现步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">实现步骤</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8020bb83fe9a9d258cc7" data-id="1ae3ee7af39d8020bb83fe9a9d258cc7"><span><div id="1ae3ee7af39d8020bb83fe9a9d258cc7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8020bb83fe9a9d258cc7" title="获取生成的prompt"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>获取生成的prompt</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80f18fb0d88b5348839e">获取到具体设计稿之后，截图保存下来，在Code CopyPro，生成对应的prompt内容，对技术栈和图标、布局、代码规范、截图内容分析、开发规划做了详细的补充，如：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80648642f23a471804d0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad3f35537-fd22-4170-9fcb-5089ba841c7b%3A5cca9755-c746-47a8-b805-8f7d8d6fc339_(1).png?table=block&amp;id=1af3ee7a-f39d-8064-8642-f23a471804d0&amp;t=1af3ee7a-f39d-8064-8642-f23a471804d0" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d803195e3e1fa1beac840" data-id="1ae3ee7af39d803195e3e1fa1beac840"><span><div id="1ae3ee7af39d803195e3e1fa1beac840" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d803195e3e1fa1beac840" title="编码引导AI生成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>编码引导AI生成</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80988ba9fe3e7b0a1c80">使用Trae AI编辑器打开项目代码，上传截图和prompt内容，引导AI生成对应的页面和组件。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d807fbb0ff948e03c88fd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Addf3b17a-57e8-4d2f-ac26-638b841fd899%3A5cca9755-c746-47a8-b805-8f7d8d6fc339_(1).png?table=block&amp;id=1af3ee7a-f39d-807f-bb0f-f948e03c88fd&amp;t=1af3ee7a-f39d-807f-bb0f-f948e03c88fd" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-row notion-block-1ae3ee7af39d80b4b1feddc127761b67"><div class="notion-column notion-block-1ae3ee7af39d80ec8e2fda4085e63d0e" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d809bbec1e07f85df73e2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A003ca459-b8e4-462b-b50f-fe9fbd9ace83%3A66b79ab0-e9c3-49b3-8ae6-c24e99559e12.png?table=block&amp;id=1af3ee7a-f39d-809b-bec1-e07f85df73e2&amp;t=1af3ee7a-f39d-809b-bec1-e07f85df73e2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d80fd8736f02350a13931"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-1ae3ee7af39d8034923dc24e497ed719" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1af3ee7af39d80978fdde3208c895ad0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acaa86e0c-91bf-4d88-921b-25a0ea43b2bd%3A66b79ab0-e9c3-49b3-8ae6-c24e99559e12.png?table=block&amp;id=1af3ee7a-f39d-8097-8fdd-e3208c895ad0&amp;t=1af3ee7a-f39d-8097-8fdd-e3208c895ad0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1ae3ee7af39d805c9f29d8e6fb66e5b9"> </div></div><div class="notion-spacer"></div></div><div class="notion-text notion-block-1ae3ee7af39d80a68a81ee8e91d44b30">遇到三方库安装，获取自动唤起终端授权执行</div><div class="notion-text notion-block-1ae3ee7af39d80529b4decfe40bcd932">遇到错误或者无法执行，可以通过# 关联具体文件提问，让AI进行修复。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d804ea165ee8439bc9a3a" data-id="1ae3ee7af39d804ea165ee8439bc9a3a"><span><div id="1ae3ee7af39d804ea165ee8439bc9a3a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d804ea165ee8439bc9a3a" title="实践成果"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>实践成果</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d803e9262e460930ae538">在实际执行过程中，AI生成的代码会一定概率出错，我们可以截图或者复制错误信息让AI分析并修复问题，建议是一个页面的功能完整后，再继续生成其他页面，避免上下文信息缺失，导致生成效果欠佳。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80e59e13f9d7e525a491" data-id="1ae3ee7af39d80e59e13f9d7e525a491"><span><div id="1ae3ee7af39d80e59e13f9d7e525a491" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80e59e13f9d7e525a491" title="七、结论"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">七、结论</span></span></h2><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808faaa3d595c50d4d0e"><li><b>Trae首选推荐团队使用，熟悉其开发习惯和思维转变。</b></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8042a4cdcbe673a6e50f"><li>后续可以续费Cursor满足更复杂项目的开发，同时也支持LLM API方式接入，降低一定的使用成本。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8040b719c78a1ce79a18"><li>LLM 模型选择，可以考虑DeepSeek R1和V3版本，其成本、推理和生成效果令人惊喜，同时在国内私有部署也变得可行性，除了AI编程外，可用于其他项目场景，但是需要开发者拥有LLM应用开发的经验。</li></ul><hr class="notion-hr notion-block-1ae3ee7af39d801d922fcd2158d6e653"/></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prompt 编写指南]]></title>
            <link>https://hrope.cn/article/llm-Prompt 编写指南</link>
            <guid>https://hrope.cn/article/llm-Prompt 编写指南</guid>
            <pubDate>Fri, 02 Jul 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[日常工作和编程过程中，关于Prompt 编写指南]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1ae3ee7af39d8064bd20ceee314259bb"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d8028baeac23ef28484e5" data-id="1ae3ee7af39d8028baeac23ef28484e5"><span><div id="1ae3ee7af39d8028baeac23ef28484e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8028baeac23ef28484e5" title="一、Prompt 的核心价值"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、Prompt 的核心价值</span></span></h3><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8035a0e1fa3505076207"><li><b>精准沟通</b>：明确AI任务目标，减少无效输出。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8056abeee1017feb815e"><li><b>效率提升</b>：通过结构化指令缩短调试时间。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800eb452dde134ad381c"><li><b>结果可控</b>：约束输出格式与范围，提高内容质量。</li></ul><hr class="notion-hr notion-block-1ae3ee7af39d807b9217eac2aaefed81"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d8099a465ea59e45e20ab" data-id="1ae3ee7af39d8099a465ea59e45e20ab"><span><div id="1ae3ee7af39d8099a465ea59e45e20ab" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8099a465ea59e45e20ab" title="二、Prompt 编写原则"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、Prompt 编写原则</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8074bc74c2504f7947e3" style="list-style-type:decimal"><li><b>明确性</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8074bc74c2504f7947e3" style="list-style-type:lower-alpha"><li>❌ 差示例：<code class="notion-inline-code">“写一篇关于气候的文章”</code></li><li>✅ 好示例：<code class="notion-inline-code">“以科普风格撰写800字短文，说明全球变暖对极地生态的影响，包含3个数据案例”</code></li></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d802cbe4cc2acf04c62bf" style="list-style-type:decimal"><li><b>上下文限定</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d802cbe4cc2acf04c62bf" style="list-style-type:lower-alpha"><li>添加背景：<code class="notion-inline-code">“假设你是资深营养师，为糖尿病患者设计一周早餐食谱”</code></li></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80e49cf2c143610695e9" style="list-style-type:decimal"><li><b>输出约束</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80e49cf2c143610695e9" style="list-style-type:lower-alpha"><li>格式要求：<code class="notion-inline-code">“用Markdown表格呈现，包含食材、烹饪时间、热量三列”</code></li><li>风格指定：<code class="notion-inline-code">“使用正式学术语言，APA格式引用来源”</code></li></ol></ol><hr class="notion-hr notion-block-1ae3ee7af39d80ce90aee9bff025b541"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d80d5999ec00493f2463f" data-id="1ae3ee7af39d80d5999ec00493f2463f"><span><div id="1ae3ee7af39d80d5999ec00493f2463f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d5999ec00493f2463f" title="三、标准Prompt结构模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、标准Prompt结构模板</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8054b11efe48a79b484d">主要结构如下</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d8016bceede32c085bdee" data-id="1ae3ee7af39d8016bceede32c085bdee"><span><div id="1ae3ee7af39d8016bceede32c085bdee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8016bceede32c085bdee" title="3.1 通用结构模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.1 通用结构模板</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d8006bd6feec7d34d8a08" data-id="1ae3ee7af39d8006bd6feec7d34d8a08"><span><div id="1ae3ee7af39d8006bd6feec7d34d8a08" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8006bd6feec7d34d8a08" title="3.2 任务执行"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.2 任务执行</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d808d8884d0361a6051d9" data-id="1ae3ee7af39d808d8884d0361a6051d9"><span><div id="1ae3ee7af39d808d8884d0361a6051d9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d808d8884d0361a6051d9" title="3.3 角色扮演"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.3 角色扮演</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d800bb16fc9ac0718e176" data-id="1ae3ee7af39d800bb16fc9ac0718e176"><span><div id="1ae3ee7af39d800bb16fc9ac0718e176" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d800bb16fc9ac0718e176" title="3.3 技能调用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.3 技能调用</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d80818a73cb3b73acfb32" data-id="1ae3ee7af39d80818a73cb3b73acfb32"><span><div id="1ae3ee7af39d80818a73cb3b73acfb32" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80818a73cb3b73acfb32" title="3.4 基于知识库"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.4 基于知识库</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d800e82f1dab842d2d11a" data-id="1ae3ee7af39d800e82f1dab842d2d11a"><span><div id="1ae3ee7af39d800e82f1dab842d2d11a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d800e82f1dab842d2d11a" title="3.5 使用Jinja语法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.5 使用Jinja语法</span></span></h3><hr class="notion-hr notion-block-1ae3ee7af39d800ba693e1426f2387a3"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d80bd853cc63f74e0f534" data-id="1ae3ee7af39d80bd853cc63f74e0f534"><span><div id="1ae3ee7af39d80bd853cc63f74e0f534" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80bd853cc63f74e0f534" title="四、实战编写步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、实战编写步骤</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d803a8beae04f75764fba" style="list-style-type:decimal"><li><b>目标拆解</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d803a8beae04f75764fba" style="list-style-type:lower-alpha"><li>将复杂任务分解为：<code class="notion-inline-code">数据收集 → 分析 → 结论输出</code> 多步骤Prompt</li></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8085b21bfac59c489888" style="list-style-type:decimal"><li><b>边界定义</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8085b21bfac59c489888" style="list-style-type:lower-alpha"><li>负面示例：<code class="notion-inline-code">“不包括2020年前的数据”</code></li><li>术语约束：<code class="notion-inline-code">“用小学生能理解的词汇解释量子力学”</code></li></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80a9a40acba6791fc07d" style="list-style-type:decimal"><li><b>迭代优化</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80a9a40acba6791fc07d" style="list-style-type:lower-alpha"><li>记录每次输出的不足</li><li>逐步添加修正指令：<code class="notion-inline-code">“请将每个论点用「→」符号标出”</code></li></ol></ol><hr class="notion-hr notion-block-1ae3ee7af39d805b8432fca600ce7ba7"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d805cb33bf695dc46db1a" data-id="1ae3ee7af39d805cb33bf695dc46db1a"><span><div id="1ae3ee7af39d805cb33bf695dc46db1a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d805cb33bf695dc46db1a" title="五、高级技巧"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、高级技巧</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8099a5dfe3bf1993b7a2" style="list-style-type:decimal"><li><b>思维链（Chain-of-Thought）</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8099a5dfe3bf1993b7a2" style="list-style-type:lower-alpha"><li>添加：<code class="notion-inline-code">“请逐步解释推理过程”</code></li></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80b4be06fceb33e6c73b" style="list-style-type:decimal"><li><b>角色扮演</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80b4be06fceb33e6c73b" style="list-style-type:lower-alpha"><li><code class="notion-inline-code">“作为十年经验的风险投资人，分析此商业计划书的三大风险点”</code></li></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d809784dcfdfd98df9763" style="list-style-type:decimal"><li><b>动态Prompt</b></li><ol class="notion-list notion-list-numbered notion-block-1ae3ee7af39d809784dcfdfd98df9763" style="list-style-type:lower-alpha"><li>使用变量：<code class="notion-inline-code">“生成{数量}条关于{主题}的知乎风格回答”</code></li></ol></ol><hr class="notion-hr notion-block-1ae3ee7af39d80cbb82bd74bf887b122"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d80caa159d7b13ee092b2" data-id="1ae3ee7af39d80caa159d7b13ee092b2"><span><div id="1ae3ee7af39d80caa159d7b13ee092b2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80caa159d7b13ee092b2" title="六、场景化案例库"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">六、场景化案例库</span></span></h3><table class="notion-simple-table notion-block-1ae3ee7af39d80a19a4ddbdce7147417"><tbody><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8098b079d706d7110b11"><td class="" style="width:120px"><div class="notion-simple-table-cell">场景类型</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">示例Prompt</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8095a7fcd869c6ac5af7"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>数据分析</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">&quot;解析附件销售数据，TOP3滞销商品的特征分析，用柱状图+文字说明呈现&quot;</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8015bd68ee21379343e2"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>客服响应</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">&quot;用亲切语气回复用户投诉，包含解决方案时间线，禁用专业术语&quot;</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8011a64cd819d5f12ffb"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>创意生成</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">&quot;生成5个春节促销口号，包含&#x27;兔&#x27;字，押韵，符合Z世代审美&quot;</div></td></tr></tbody></table><hr class="notion-hr notion-block-1ae3ee7af39d806f90ddd480931fef47"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d8009a08bd8e54e990380" data-id="1ae3ee7af39d8009a08bd8e54e990380"><span><div id="1ae3ee7af39d8009a08bd8e54e990380" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8009a08bd8e54e990380" title="七、常见问题排查"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">七、常见问题排查</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80659aa9fa56395a04e0">当输出不符合预期时检查：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d801eae1bcea60f8a0b5c" style="list-style-type:decimal"><li>是否包含模糊表述？</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80aa9dc6fff436b11e8c" style="list-style-type:decimal"><li>关键约束条件是否遗漏？</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80d9ad8fff48d8f5aa72" style="list-style-type:decimal"><li>角色设定是否清晰？</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8086b05dce20247a9451" style="list-style-type:decimal"><li>示例样本是否具有代表性？</li></ol><hr class="notion-hr notion-block-1ae3ee7af39d8015bb65d724bd8629d6"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ae3ee7af39d8042a47cda9ea701823a" data-id="1ae3ee7af39d8042a47cda9ea701823a"><span><div id="1ae3ee7af39d8042a47cda9ea701823a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8042a47cda9ea701823a" title="八、文档管理建议"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">八、文档管理建议</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d805b9744c567b87abc52" style="list-style-type:decimal"><li>建立团队Prompt库，标注适用场景</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d805ea794ebe7ca39f962" style="list-style-type:decimal"><li>使用版本号管理：<code class="notion-inline-code">V1.2_产品描述生成_2024Q3</code></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8062aab8f8f3b696d202" style="list-style-type:decimal"><li>定期收集使用反馈优化</li></ol><div class="notion-blank notion-block-1ae3ee7af39d804386c4f8b09b39636a"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ollama 模型管理工具]]></title>
            <link>https://hrope.cn/article/ollama-guide</link>
            <guid>https://hrope.cn/article/ollama-guide</guid>
            <pubDate>Mon, 03 Feb 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Ollama 是一个强大的开源工具，旨在帮助用户轻松地在本地运行、部署和管理大型语言模型（LLMs）。它提供了一个简单的命令行界面，使用户能够快速下载、运行和与各种预训练的语言模型进行交互。Ollama 支持多种模型架构，并且特别适合那些希望在本地环境中使用 LLMs 的开发者和研究人员。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1913ee7af39d805c8839ef4eb3a90bbe"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-1913ee7af39d8010ba8edee5960f9256"><code class="notion-inline-code">Ollama</code> 是一个强大的开源工具，旨在帮助用户轻松地在本地运行、部署和管理大型语言模型（<code class="notion-inline-code">LLMs</code>）。它提供了一个简单的命令行界面，使用户能够快速下载、运行和与各种预训练的语言模型进行交互。<code class="notion-inline-code">Ollama</code> 支持多种模型架构，并且特别适合那些希望在本地环境中使用 <code class="notion-inline-code">LLMs</code> 的开发者和研究人员。</div><div class="notion-blank notion-block-1913ee7af39d803c9079e35a0b295f5a"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1913ee7af39d80fa9672e878417c0ab9" data-id="1913ee7af39d80fa9672e878417c0ab9"><span><div id="1913ee7af39d80fa9672e878417c0ab9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1913ee7af39d80fa9672e878417c0ab9" title="主要特点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">主要特点</span></span></h4><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80b6997cc0e01b3fbdec"><li>本地运行：<code class="notion-inline-code">Ollama</code> 允许用户在本地计算机上运行大型语言模型，而不需要依赖云服务。这对于数据隐私和安全性要求较高的场景非常有用。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d8035af14c5f44f39281a"><li>简单易用：通过命令行工具，用户可以轻松地下载、安装和运行模型。<code class="notion-inline-code">Ollama</code> 提供了简单的命令来启动模型并与模型进行交互。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d800cbf10f5559439c93f"><li>支持多种模型：<code class="notion-inline-code">Ollama</code> 支持多种流行的语言模型，包括 <code class="notion-inline-code">Llama 3.3</code>, <code class="notion-inline-code">DeepSeek-R1</code>, <code class="notion-inline-code">Phi-4</code>, <code class="notion-inline-code">Mistral</code>, <code class="notion-inline-code">Gemma 2</code> 等。用户可以根据自己的需求选择合适的模型。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d8097bd34eb663039cc42"><li>跨平台支持：<code class="notion-inline-code">Ollama</code> 支持多种操作系统，包括 <code class="notion-inline-code">Linux、macOS</code> 和 <code class="notion-inline-code">Windows</code>，用户可以在不同的平台上使用相同的工具。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d8005b37bd598078e3bbc"><li>开源：<code class="notion-inline-code">Ollama</code> 是一个开源项目，用户可以自由地查看、修改和分发其代码。</li></ul><div class="notion-blank notion-block-1913ee7af39d80a5bab3f38c035af4fc"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1913ee7af39d80c3bc22c03c0cc49a4b" data-id="1913ee7af39d80c3bc22c03c0cc49a4b"><span><div id="1913ee7af39d80c3bc22c03c0cc49a4b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1913ee7af39d80c3bc22c03c0cc49a4b" title="本地部署私有模型适用于以下场景"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">本地部署私有模型适用于以下场景</span></span></h4><ul class="notion-list notion-list-disc notion-block-1913ee7af39d809aa8e9f4d724da8e8a"><li>设备性能较强，配备独立显卡，能够支撑高效运行。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d801e91c1d9128da5a248"><li>需要处理敏感数据，对数据安全性有较高要求，以防泄露。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d809a8c6aed712f6d6e0d"><li>需要与本地工作流程紧密结合，应对频繁或复杂的任务处理。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d806d9605d03cf457fe6b"><li>日常频繁使用，且 API 调用成本较高，本地部署有助于降低成本。</li></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80d59959cb54ad4843e8"><li>希望在开源模型基础上，进行个性化定制和优化。</li></ul><div class="notion-blank notion-block-1913ee7af39d809cbdcff9bbe4734c6c"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1913ee7af39d807cb346d2f14df68a00" data-id="1913ee7af39d807cb346d2f14df68a00"><span><div id="1913ee7af39d807cb346d2f14df68a00" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1913ee7af39d807cb346d2f14df68a00" title="安装命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装命令</span></span></h4><div class="notion-text notion-block-1913ee7af39d808ca748edb1ac605cb7">在 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://link.juejin.cn/?target=https%3A%2F%2Follama.com%2Fdownload">Ollama 下载页面</a>，我们可以根据自己操作系统类型选择不同的下载方式。</div><div class="notion-text notion-block-1913ee7af39d8066a48bec12a8542d99">安装完成后，打开 <code class="notion-inline-code">cmd</code> 命令行窗口，输入 <code class="notion-inline-code">ollama -v</code> 验证是否安装成功。</div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1913ee7af39d807eb704d16f7de051e5" data-id="1913ee7af39d807eb704d16f7de051e5"><span><div id="1913ee7af39d807eb704d16f7de051e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1913ee7af39d807eb704d16f7de051e5" title="配置模型库下载加速"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置模型库下载加速</span></span></h4><div class="notion-text notion-block-1943ee7af39d8065908bd305749c7ec4">ollama 国内镜像源</div><table class="notion-simple-table notion-block-1943ee7af39d80f78428cf2cdf303779"><tbody><tr class="notion-simple-table-row notion-block-1943ee7af39d80b2a6acf3e127a1bc68"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>镜像提供商</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>镜像地址</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>特性</b></div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d809c81bbfa95e0dcbab7"><td class="" style="width:120px"><div class="notion-simple-table-cell">阿里云</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://registry.ollama.ai</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">企业级CDN加速</div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d80638770f29073a51bbb"><td class="" style="width:120px"><div class="notion-simple-table-cell">DeepSeek官方镜像</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://ollama.deepseek.com</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">原生支持代码模型</div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d80f9bf1bd79eb7219f77"><td class="" style="width:120px"><div class="notion-simple-table-cell">浙江大学镜像站</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://ollama.zju.edu.cn</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">学术网络优化</div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d806b8d01c06d780ad74e"><td class="" style="width:120px"><div class="notion-simple-table-cell">魔搭社区</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://ollama.modelscope.cn</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">中文模型生态整合</div></td></tr></tbody></table><div class="notion-text notion-block-1943ee7af39d8034b6cdee22f7b743d5"><b>Linux/macOS 配置</b></div><div class="notion-text notion-block-1943ee7af39d8072bac8d99c89517fef"><b>Windows 配置</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-1943ee7af39d801b916ffb6fc808666a" style="list-style-type:decimal"><li>在资源管理器地址栏输入 <code class="notion-inline-code">%USERPROFILE%\.ollama</code></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1943ee7af39d808faf79f1ad5eaa8e5a" style="list-style-type:decimal"><li>新建<code class="notion-inline-code">config.json</code>文件，内容：</li></ol><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1943ee7af39d8028a7ccde32b4446226" data-id="1943ee7af39d8028a7ccde32b4446226"><span><div id="1943ee7af39d8028a7ccde32b4446226" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1943ee7af39d8028a7ccde32b4446226" title="模型部署-硬件适配方案"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模型部署-硬件适配方案</span></span></h4><table class="notion-simple-table notion-block-1943ee7af39d80e4ad5cf95d6f85b2e2"><tbody><tr class="notion-simple-table-row notion-block-1943ee7af39d808a810deff11cb0ef50"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>量化精度</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>显存需求</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>内存需求</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>适用场景</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>示例硬件配置</b></div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d80d4bfb3cee11c6a6831"><td class="" style="width:120px"><div class="notion-simple-table-cell">FP32</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">24GB+</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">32GB+</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">科研级代码生成</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">RTX 3090 + DDR4 64GB</div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d80e7b5c8c2f2e5715487"><td class="" style="width:120px"><div class="notion-simple-table-cell">FP16</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">12GB</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">24GB</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">专业开发工作站</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">RTX 4080 + DDR5 32GB</div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d80d192faf64567acc63d"><td class="" style="width:120px"><div class="notion-simple-table-cell">INT8</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">8GB</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">16GB</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">主流游戏本</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">RTX 3060 + DDR4 16GB</div></td></tr><tr class="notion-simple-table-row notion-block-1943ee7af39d80408116e6b1c7568ff6"><td class="" style="width:120px"><div class="notion-simple-table-cell">INT4</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6GB</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">8GB</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">轻薄本开发</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Apple M2 Pro 16GB</div></td></tr></tbody></table><div class="notion-text notion-block-1943ee7af39d804ea0a4d187b228fd6c">部署命令示例：</div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1913ee7af39d80beb1eef6ae258a6311" data-id="1913ee7af39d80beb1eef6ae258a6311"><span><div id="1913ee7af39d80beb1eef6ae258a6311" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1913ee7af39d80beb1eef6ae258a6311" title="本地部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">本地部署</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8095a590f0402f56c223"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad2c6dfcc-5e4c-45e6-9fa2-44d719b9a89f%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-8095-a590-f0402f56c223&amp;t=1ae3ee7a-f39d-8095-a590-f0402f56c223" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1913ee7af39d801bae11f89c1623c269">前面我们已经安装好了 <code class="notion-inline-code">Ollama</code>，接下来可以借助 <code class="notion-inline-code">Ollama</code> 工具来部署 <code class="notion-inline-code">Deepseek</code> 大模型。首先，访问 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://ollama.com/library/deepseek-r1">Deepsee Model 的 deepseek-r1 模型页面</a>，在这个页面中，我们可以看到 <code class="notion-inline-code">1.5b</code>、<code class="notion-inline-code">7b</code> 等不同规模的模型版本，每个版本右侧会明确标注每个版本所需的显存配置。</div><div class="notion-text notion-block-1913ee7af39d8098ace0d69d9ebbcba6">其次，根据自己电脑的显卡配置选择合适的版本。例如，部署 <code class="notion-inline-code">deepseek-r1:7b</code> 版本：</div><div class="notion-text notion-block-1913ee7af39d8087bd93d943b785496f">部署完成后，我们就可以与 <code class="notion-inline-code">Deepseek</code> 大模型进行对话了：</div><div class="notion-blank notion-block-1913ee7af39d80259b58c1ecc3472a76"> </div><div class="notion-text notion-block-1913ee7af39d80028cd2d260a22668bd">使用Ollama AP进行集成，检查运行服务</div><div class="notion-text notion-block-1943ee7af39d801da17cc7cf68a63a6d">本地部署地址一般为：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="http://127.0.0.1:11434/">http://127.0.0.1:11434</a></div><div class="notion-text notion-block-1913ee7af39d80c88d7ee7feb469b512">使用 <code class="notion-inline-code"><b>curl</b></code> 发送请求：</div><div class="notion-blank notion-block-1913ee7af39d808385b5daca93431e30"> </div><div class="notion-text notion-block-1913ee7af39d8017a7cfd3e902830755">通过 <code class="notion-inline-code">Ollama</code> 部署 <code class="notion-inline-code">Deepseek</code> 模型之后，我们就可以在终端与其进行对话了。由于是在终端里面，交互体验相对较为简洁和不够直观，长时间的对话可能会让操作变得不够流畅。为了更方便地与模型进行对话，我们可以使用可视化的聊天项目，例如 <code class="notion-inline-code">Open WebUI</code>、<code class="notion-inline-code">ChatBox</code> 等。通过这些工具，我们能够获得更加直观和流畅的交互体验。接下来将演示如何安装并通过 <code class="notion-inline-code">ChatBox</code> 使用 <code class="notion-inline-code">Deepseek</code>。</div><details class="notion-toggle notion-block-1913ee7af39d80af818adea1b7b2fbb5"><summary><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1913ee7af39d80af818adea1b7b2fbb5" data-id="1913ee7af39d80af818adea1b7b2fbb5"><span><div id="1913ee7af39d80af818adea1b7b2fbb5" class="notion-header-anchor"></div><span class="notion-h-title">ChatBox安装</span></span></h4></summary><div><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80a5aec3c48703dd83fb"><li>首先，进入 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://chatboxai.app/zh">Chatboxai</a>，通过 <b>免费下载</b> 按钮下载软件安装包并进行安装。</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80a5aec3c48703dd83fb"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80dd8f5fc3acf18f6028"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6602eb40-3c29-4041-b8c8-36b2694fb9c5%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-80dd-8f5f-c3acf18f6028&amp;t=1ae3ee7a-f39d-80dd-8f5f-c3acf18f6028" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80d9ae41e2982b91640a"><li>然后打开 <code class="notion-inline-code">Chatbox</code>。首次打开我们会看到以下选项，选择 “使用自己的 API Key 或本地模型”，然后在新的标签页里选择 <code class="notion-inline-code">Ollama API</code>。</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80d9ae41e2982b91640a"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80a884c4c4f2074e0048"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A30eeb767-aeae-402c-8de4-48753d45c31f%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-80a8-84c4-c4f2074e0048&amp;t=1ae3ee7a-f39d-80a8-84c4-c4f2074e0048" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8021bd3bd5f983347f05"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3ec391e5-178d-4341-bd09-7b3f82f09bd4%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-8021-bd3b-d5f983347f05&amp;t=1ae3ee7a-f39d-8021-bd3b-d5f983347f05" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d802a843fcdc0042825fd"><li>接下来，我们能在模型列表里看到通过 <code class="notion-inline-code">Ollama</code> 所部署的大模型，选择 <code class="notion-inline-code">deepseek-r1:7b</code>，然后点击保存。</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d802a843fcdc0042825fd"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80dd8176c173e28e00ba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af0ea949a-6c73-4a8c-9984-6036a047d414%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-80dd-8176-c173e28e00ba&amp;t=1ae3ee7a-f39d-80dd-8176-c173e28e00ba" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d8015bc68dbf789cca147"><li>保存之后，我们就可以在对话框里与 <code class="notion-inline-code">Deepseek</code> 大模型进行对话了。</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d8015bc68dbf789cca147"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f6b658ddb2dc3e9904"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad3eb9e7f-88f3-4a85-b2f4-b52d165ce083%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-80f6-b658-ddb2dc3e9904&amp;t=1ae3ee7a-f39d-80f6-b658-ddb2dc3e9904" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul></div></details><details class="notion-toggle notion-block-1943ee7af39d801dac16c2c35a104afa"><summary><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1943ee7af39d801dac16c2c35a104afa" data-id="1943ee7af39d801dac16c2c35a104afa"><span><div id="1943ee7af39d801dac16c2c35a104afa" class="notion-header-anchor"></div><span class="notion-h-title">Open WebUI安装</span></span></h4></summary><div><div class="notion-text notion-block-1943ee7af39d80b194f3eebbc62a9e20">使用 Web 界面交互模型，可以安装 Open-WebUI。该工具提供了一个用户友好的 Web 前端，使得 DeepSeek-R1 更加易用。</div><div class="notion-text notion-block-1943ee7af39d80ef9192e24acd587b3e">机器提前安装好Docker，然后启动 Open-WebUI 容器</div></div></details><div class="notion-blank notion-block-1943ee7af39d80e88289c2e9f355f65c"> </div><ul class="notion-list notion-list-disc notion-block-1943ee7af39d80a78674ec4b8f7b7a6f"><li>p 3000:8080：将容器的 8080 端口映射到本机 3000 端口；</li></ul><ul class="notion-list notion-list-disc notion-block-1943ee7af39d807a92dae803c818d774"><li>-add-host=host.docker.internal:host-gateway：允许容器访问宿主机网络；</li></ul><ul class="notion-list notion-list-disc notion-block-1943ee7af39d8082aac8dbf6909d01c1"><li>v open-webui:/app/backend/data：挂载数据存储目录，保存容器的状态和数据。</li></ul><ul class="notion-list notion-list-disc notion-block-1943ee7af39d8073b213d6ca55b14536"><li>-restart always：确保容器在重启后自动运行；</li></ul><ul class="notion-list notion-list-disc notion-block-1943ee7af39d80c9be6adc2629ae5a1b"><li>ghcr.io/open-webui/open-webui:main：拉取 Open-WebUI 的最新版本镜像。</li></ul><div class="notion-text notion-block-1943ee7af39d80d2b361fd144682382d">运行容器后，访问 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://link.segmentfault.com/?enc=BULkpjD5DGsckzmWwHxQ0g%3D%3D.OfknZYOaXKApWUh4%2B%2FXMsfQ%2BBq4rxFXdvsVdnNhVPVc%3D">http://localhost:3000</a> 即可访问 Open-WebUI。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1913ee7af39d80569b83c6d6fdaa137a" data-id="1913ee7af39d80569b83c6d6fdaa137a"><span><div id="1913ee7af39d80569b83c6d6fdaa137a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1913ee7af39d80569b83c6d6fdaa137a" title="在 VS Code 里集成 Deepseek"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">在 VS Code 里集成 Deepseek</span></span></h3><div class="notion-text notion-block-1913ee7af39d803ab317d7bc78145716">接下来，我将演示如何在 <code class="notion-inline-code">VS Code</code> 中通过 <code class="notion-inline-code">Continue</code> 插件集成 <code class="notion-inline-code">Deepseek</code>。<code class="notion-inline-code">Continue</code> 是一款领先的开源 <code class="notion-inline-code">AI</code> 代码助手。我们可以将任意模型和上下文连接起来，在 <code class="notion-inline-code">VS Code</code> 和 <code class="notion-inline-code">JetBrains</code> 中构建定制化的自动补全和聊天功能。</div><ul class="notion-list notion-list-disc notion-block-1913ee7af39d800ca00ad77cb4d6d9d7"><li>首先，安装 <code class="notion-inline-code">Cotinue</code> 插件。</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d800ca00ad77cb4d6d9d7"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d800ab523fbf566ea2c2e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab1e5bda9-a857-423f-bb15-851f12e60e18%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-800a-b523-fbf566ea2c2e&amp;t=1ae3ee7a-f39d-800a-b523-fbf566ea2c2e" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d804aa757c34987fc802f"><li>其次，点击 <code class="notion-inline-code">Add Chat model</code> 添加模型。</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d804aa757c34987fc802f"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d807c8f68e942ecf428f3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9ffb5449-3bc9-4ae0-96ba-1577911b6229%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-807c-8f68-e942ecf428f3&amp;t=1ae3ee7a-f39d-807c-8f68-e942ecf428f3" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d806a966dc9ccc229aa0c"><li>接下来，<code class="notion-inline-code">Provider</code> 选项选择 <code class="notion-inline-code">Ollama，Model</code> 选项选择 <code class="notion-inline-code">Autodetect</code>，然后点击 <code class="notion-inline-code">Connect</code>，这样就可以自动选择我们刚才所部署的 <code class="notion-inline-code">deepseek-r1:7b</code> 模型了。</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d806a966dc9ccc229aa0c"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f78236d11d320df166"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1bce6343-3a8b-43c0-b84a-21e1d98578e6%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-80f7-8236-d11d320df166&amp;t=1ae3ee7a-f39d-80f7-8236-d11d320df166" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8081b988dd07ddf8811e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad10f66bc-2b0d-4830-b8b8-9098da07fcab%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-8081-b988-dd07ddf8811e&amp;t=1ae3ee7a-f39d-8081-b988-dd07ddf8811e" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80409bbdf08e749a40dc"><li>对话测试与代码生成测试：</li><ul class="notion-list notion-list-disc notion-block-1913ee7af39d80409bbdf08e749a40dc"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8033bb09c075eff62cbf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7a4b35c1-d1e5-4353-8ed3-bedfe3fe7d17%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-8033-bb09-c075eff62cbf&amp;t=1ae3ee7a-f39d-8033-bb09-c075eff62cbf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80a6834af4b119f7e30c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6292cab0-4111-4ea9-bfd0-5d1709b7d6e7%3Aimage.png?table=block&amp;id=1ae3ee7a-f39d-80a6-834a-f4b119f7e30c&amp;t=1ae3ee7a-f39d-80a6-834a-f4b119f7e30c" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><div class="notion-text notion-block-1913ee7af39d80389f58fca7e1626c3f">在 <code class="notion-inline-code">JetBrains</code> 系列开发工具中集成 <code class="notion-inline-code">DeepSeek</code> 的方式，与在 <code class="notion-inline-code">VS Code</code> 中的集成方法类似。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1913ee7af39d80adb06ff81d3d6038af" data-id="1913ee7af39d80adb06ff81d3d6038af"><span><div id="1913ee7af39d80adb06ff81d3d6038af" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1913ee7af39d80adb06ff81d3d6038af" title="小结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">小结</span></span></h3><div class="notion-text notion-block-1913ee7af39d801b8a59f5ac942a19bc">借助 <code class="notion-inline-code">Ollama</code> 工具，本地部署 <code class="notion-inline-code">DeepSeek</code> 蒸馏模型的过程非常简单。然而，需要注意的是，本地部署的 <code class="notion-inline-code">DeepSeek</code> 大模型在性能上与官网提供的在线版本存在显著差距，尤其是在模型的思考能力和响应速度方面。除非拥有高性能显卡以支持部署更强大的蒸馏模型，并能够进行本地数据训练，否则建议优先使用官方提供的 <code class="notion-inline-code">Web</code> 版或 <code class="notion-inline-code">App</code> 版本，以获得更优质的使用体验。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shopify 开发者指南]]></title>
            <link>https://hrope.cn/article/shopify-developer-document</link>
            <guid>https://hrope.cn/article/shopify-developer-document</guid>
            <pubDate>Mon, 02 Sep 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[完整的Shopify 开发者指南，梳理开发者使用shopify平台的基本知识和技能以及如何集成第三方服务和开发自定义应用。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1ae3ee7af39d800c9ac0f6d896b89a06"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80b08982c006334cef2a" data-id="1ae3ee7af39d80b08982c006334cef2a"><span><div id="1ae3ee7af39d80b08982c006334cef2a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b08982c006334cef2a" title="概述"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">概述</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d80809051c4b3df876da4">Shopify 是一个面向中小型企业的多渠道商务平台，帮助用户创建商店并通过线上的网店或社交媒体以及线下的 POS 机随时随地销售产品。Shopify 为 60 w商家提供服务，在高峰期每秒处理 8 万个请求。</div><div class="notion-text notion-block-1ae3ee7af39d80b1a8a3cbad56cf4306">为了更方便内部同学理解、使用和扩展Shopify功能，本文档面向开发团队、产品经理、技术支持人员，主要目标：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d802481fad20baaf960ea"><li>提供开发者使用shopify平台的基本知识和技能。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8032a47ed630cb9913bb"><li>指导开发者如何集成第三方服务和开发自定义应用。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80cab9bec0dc68c64b45" data-id="1ae3ee7af39d80cab9bec0dc68c64b45"><span><div id="1ae3ee7af39d80cab9bec0dc68c64b45" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80cab9bec0dc68c64b45" title="一、平台介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、平台介绍</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80d09513f543a90959bd" data-id="1ae3ee7af39d80d09513f543a90959bd"><span><div id="1ae3ee7af39d80d09513f543a90959bd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d09513f543a90959bd" title="1. 基本组成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1. <b>基本组成</b></span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80dc8ffddb8d904d4fbe">Shopify 现在是世界上最大最古老的 Rails 应用程序之一，由于押注 Rails 极大地影响了我们基于官方的开放能力，进行二次开发的习惯，所以这里主要还是以前端Web构建进行展开。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d809da253f268077c1a69" data-id="1ae3ee7af39d809da253f268077c1a69"><span><div id="1ae3ee7af39d809da253f268077c1a69" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809da253f268077c1a69" title="前端"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前端</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80e6b46cdf012bfbefc6">前端与用户交互，展示产品、购物车和结账等页面都可以定制开发，并且支持两种方式构建界面，如下：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d802ea580f8d31e939ac5"><li><b>模板方式开发</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d8065bd72c5aa92dc5ab5">用户界面现在由 Shopify 提供的主题和 Liquid 模板语言构建，从前后端的视角看，并未前后分离，页面内容由Rdils 基于Liquid在服务端渲染输出，由于Liquid提供了非常丰富的上下文数据、以及高阶语法，简单的功能其实不需要额外JS脚本编写，这也对开发者增加新的学习成本，而非前端主流的React、Vue等MVVM框架开发习惯。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d802da97dd5175e28e17e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NjRkZDZiYmViNGVlNmNmY2M3MTdkYWRkNzEwYTExOGNfNkZTenljUU5VZ2NLcDhTbUNRd0NnaTBNZlRpR0N5M2ZfVG9rZW46VUxJcWJXZkNEb3F4OFB4T0NhemM2SHFhbjRqXzE3NDEyNTIwMzc6MTc0MTI1NTYzN19WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-802d-a97d-d5175e28e17e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80bc95d3f3446c61cc98">优势的地方：由于Shopify生态非常丰富，所以常用的功能或交互模块大部分都能在应用商店找到，并不完全自己开发。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d802ab055d01d0d2b1b28"><li><b>Headless开发</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d8082a373f4c86f9f5987">在后台获得 Shopify 的所有功能，并完全控制前端。使用 Shopify 的官方无头框架 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/storefronts/headless/hydrogen/getting-started">Hydrogen</a> 开始快速构建，并进一步进行商店定制，获得更佳的开发体验和定制自定义。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d802e814cc7289dcd5c02" data-id="1ae3ee7af39d802e814cc7289dcd5c02"><span><div id="1ae3ee7af39d802e814cc7289dcd5c02" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802e814cc7289dcd5c02" title="后端"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">后端</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d801b9854d26a46ce1bd3">Shopify 提供强大的后端服务，包括数据库、订单管理、用户管理等。开发者通过 API 与后端交互。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80c1abf7f24e9ca05b2b" data-id="1ae3ee7af39d80c1abf7f24e9ca05b2b"><span><div id="1ae3ee7af39d80c1abf7f24e9ca05b2b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80c1abf7f24e9ca05b2b" title="多租户架构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>多租户架构</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80debce6e179e5697a1f">Shopify 是一个多租户平台，多个商家共享官方的同一基础设施，但数据隔离。开发者需要理解如何在这种架构下构建高效应用，意味着我们可以在简单快速搭建出一个具有售卖、支付、物流、多语言等功能强大的独立站，并省掉额外从头搭建的成本。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80e5b7e4e09273119fff" data-id="1ae3ee7af39d80e5b7e4e09273119fff"><span><div id="1ae3ee7af39d80e5b7e4e09273119fff" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80e5b7e4e09273119fff" title="2. Shopify API"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2. Shopify API</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d807aab90e2f2227789d1"><b>API 类型</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809c95bdc22392c1f0cb"><li><b>Storefront API</b>：用于构建自定义前端，例如移动应用或独立网站。支持 GraphQL，允许灵活查询。https://shopify.dev/docs/api/storefront</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80519c1ce9acdae92685"><li><b>Admin API</b>：用于管理商店的后端操作，如产品、订单、客户等。支持 REST 和 GraphQL。</li><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80519c1ce9acdae92685"><li>REST API，目前官方推荐使用GraphQL，新功能API优先在GraphQL支持。https://shopify.dev/docs/api/admin-rest</li><li>GraphQL API，可以自定义查询和聚合数据，减少了rest多接口获取的弊端，https://shopify.dev/docs/api/admin-graphql</li></ul></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d8bd0bdec2bdfb34b3"><li><b>Webhook</b>：用于实时接收商店事件（如订单创建、库存更新等），可以结合自身业务场景实现自动化流程和更新数据。https://shopify.dev/docs/api/webhooks?reference=toml</li></ul><div class="notion-text notion-block-1ae3ee7af39d80b3894ae824d2d0d4e2"><b>API 认证</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80469c3eebcda35bea43"><li>介绍 OAuth 认证流程，确保安全访问 API。</li></ul><div class="notion-text notion-block-1ae3ee7af39d809a8dbbe607413f1579"><b>API 使用注意事项</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80419b88eaa84cd9d5e2"><li><b>速率限制</b>：API 请求有速率限制，开发时需考虑如何优化请求数量。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8005bcb7e9da4f8742eb"><li><b>数据格式</b>：理解 JSON 格式，确保数据解析和处理。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8025aa30c7c08b55ef27" data-id="1ae3ee7af39d8025aa30c7c08b55ef27"><span><div id="1ae3ee7af39d8025aa30c7c08b55ef27" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8025aa30c7c08b55ef27" title="3. 应用生态系统"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3. 应用生态系统</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d800fbc06fb2767075682"><b>Shopify 应用商店</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808ebe9dcb041626df67"><li>提供了丰富的第三方应用，开发者可以利用这些应用扩展商店功能，如营销工具、物流服务等。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80209592e659f963512e"><b>自定义应用开发</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8084a04bdc19f01b59b4"><li>开发者可以创建自定义应用，满足特定业务需求。需要了解如何使用 Shopify CLI 和应用模板快速启动。</li></ul><div class="notion-text notion-block-1ae3ee7af39d807199f7fe92c7e4a69d"><b>应用审核与发布</b>：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8021a812f94693fe783b"><li>自定义应用需经过 Shopify 的审核流程，确保符合平台规范和安全要求。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80ac9b4bce5fbabe6a1f" data-id="1ae3ee7af39d80ac9b4bce5fbabe6a1f"><span><div id="1ae3ee7af39d80ac9b4bce5fbabe6a1f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80ac9b4bce5fbabe6a1f" title="二、设计风格&amp;资源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、设计风格&amp;资源</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d809b8013ed07a7ac7207">遵循Shopify 的应用程序设计指南，可以完成出色的 Shopify 应用程序，以及了解官方对于UI/UX思考方式，优秀的应用是如何制作的。通过这些指南消除了猜测，更助力于构建可预测且易于使用的应用程序。</div><div class="notion-text notion-block-1ae3ee7af39d8042955ff87c6ed70563">更加详情的设计指南参考：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.hrope.cn/article/shopify-design">https://www.hrope.cn/article/shopify-design</a> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80beb2fcc65320b80796" data-id="1ae3ee7af39d80beb2fcc65320b80796"><span><div id="1ae3ee7af39d80beb2fcc65320b80796" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80beb2fcc65320b80796" title="三、技术栈"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、技术栈</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8017bd55f8de19e90145" data-id="1ae3ee7af39d8017bd55f8de19e90145"><span><div id="1ae3ee7af39d8017bd55f8de19e90145" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8017bd55f8de19e90145" title="Shopify Liquid 模板语言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Shopify Liquid 模板语言</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d807584afc9f92dda210d">Liquid 是 Shopify 的模板语言，允许开发者动态生成 HTML 内容。它支持变量、循环、条件语句等基本编程结构。</div><div class="notion-text notion-block-1ae3ee7af39d80c8a440e6dd047c84eb">主要分为三部分：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8001ac40ec28b629cf6f"><li>Tags, <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/liquid/tags">https://shopify.dev/docs/api/liquid/tags</a></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80f79d42f982a3051e71"><li>Filters, <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/liquid/filters">https://shopify.dev/docs/api/liquid/filters</a></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809d8d52ddbdc36de142"><li>Object, <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/liquid/objects">https://shopify.dev/docs/api/liquid/objects</a></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8094acacda0080a6b8b9" data-id="1ae3ee7af39d8094acacda0080a6b8b9"><span><div id="1ae3ee7af39d8094acacda0080a6b8b9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8094acacda0080a6b8b9" title="基本语法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>基本语法</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e2bdc0e92c1945d010"><li><b>变量</b>：使用 <code class="notion-inline-code">{{ variable_name }}</code> 语法输出变量值。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80aa93f5f9efb6cebd72"><li><b>标签</b>：使用 <code class="notion-inline-code">{% tag_name %}</code> 语法执行逻辑，如循环和条件判断。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80d9a092e3b2e9b6137e" data-id="1ae3ee7af39d80d9a092e3b2e9b6137e"><span><div id="1ae3ee7af39d80d9a092e3b2e9b6137e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d9a092e3b2e9b6137e" title="常用功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>常用功能</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80eba537e9f1cf6d9425"><li><b>循环</b>：遍历产品集合、订单等。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80bbabfae6d33495f58e"><li><b>条件判断</b>：根据特定条件显示不同内容。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80109f04ce28fbba4183"><li><b>过滤器</b>：对输出的内容进行格式化，如日期格式、货币转换等。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d804abc8ffa3fcbda94f9" data-id="1ae3ee7af39d804abc8ffa3fcbda94f9"><span><div id="1ae3ee7af39d804abc8ffa3fcbda94f9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d804abc8ffa3fcbda94f9" title="自定义功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>自定义功能</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d806c87eef25e96da4b64"><li>可以创建自定义的 Liquid 过滤器和标签，以扩展 Liquid 的能力。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d806cb037c8b9e97a01fd" data-id="1ae3ee7af39d806cb037c8b9e97a01fd"><span><div id="1ae3ee7af39d806cb037c8b9e97a01fd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d806cb037c8b9e97a01fd" title="Remix"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Remix</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d805a90b2d91c354d9664">基于的开源 React 框架构建，学习主要包括了Remix 处理路由、数据获取、服务器端渲染、UI 响应性和样式。</div><div class="notion-text notion-block-1ae3ee7af39d80cc95c1ccca113436fa">项目结构如下：</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80f6a920fe64b7c67e13" data-id="1ae3ee7af39d80f6a920fe64b7c67e13"><span><div id="1ae3ee7af39d80f6a920fe64b7c67e13" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f6a920fe64b7c67e13" title="关键概念"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">关键概念</span></span></h4><table class="notion-simple-table notion-block-1ae3ee7af39d80439b5ed263a389a6ff"><tbody><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80d3bff0eff1e1dfe1eb"><td class="" style="width:120px"><div class="notion-simple-table-cell">名词</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">说明</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">备注</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8087b6fcec69268bb915"><td class="" style="width:120px"><div class="notion-simple-table-cell">Nested routers(嵌套路由)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Remix 将 App URL 的嵌套逻辑映射到组件和数据加载的嵌套逻辑。这允许并行加载所有页面数据，从而减少总体加载时间。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">https://remix.run/docs/en/main/discussion/routes</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80db9258d2cb1f0b2b74"><td class="" style="width:120px"><div class="notion-simple-table-cell">Loaders（加载器）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Remix 加载器是加载数据以便可以在服务器端渲染数据的函数，从而减少发送到客户端的 JavaScript 量。在 Hydrogen 中，加载程序从 Shopify API 和第三方来源获取数据。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">https://remix.run/docs/en/main/discussion/data-flow#route-loader</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8018b93bde83e0478a67"><td class="" style="width:120px"><div class="notion-simple-table-cell">Actions（行动）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Remix 操作是接受来自客户端的 Web 标准表单数据以更新状态、更改数据或触发副作用的函数。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">https://remix.run/docs/en/main/discussion/data-flow#route-action</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d802c8e7dff3bd4abaabe"><td class="" style="width:120px"><div class="notion-simple-table-cell">SSR（服务端渲染）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Remix 应用程序默认使用服务器端渲染 （SSR），其中它们的 React 组件在发送到浏览器之前被渲染为 HTML</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">https://remix.run/docs/en/main/discussion/server-vs-client</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80699bc2f0def805da74"><td class="" style="width:120px"><div class="notion-simple-table-cell">渐进式增强</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">由于 Remix 操作使用 HTML 表单等 Web 标准技术，因此它们通常无需 JavaScript 即可工作，但可以在客户端 JavaScript 可用时使用 JavaScript 进行增强。这与 SSR 优先的方法一起，意味着 Remix 应用程序通常会提供更小的包大小，但加载速度更快。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">https://remix.run/docs/en/main/discussion/progressive-enhancement</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d800d9857dfd108d4e7ac" data-id="1ae3ee7af39d800d9857dfd108d4e7ac"><span><div id="1ae3ee7af39d800d9857dfd108d4e7ac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d800d9857dfd108d4e7ac" title="GraphQL"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GraphQL</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80c3bbb9d34378d306af">GraphQL 已成为 Shopify 构建 API 的首选技术。如果惯使用 REST API，那么 GraphQL 起初可能会让人感到困惑。当开始使用 GraphQL 时，自身需要改变对检索和处理数据的看法，以下指南介绍 GraphQL 概念。</div><div class="notion-text notion-block-1ae3ee7af39d80169f46d3a0bdd1b92b">GraphQL 是一种查询语言和运行时系统。客户端使用 GraphQL 查询语言形成请求，GraphQL 服务器执行请求并在响应中返回数据。</div><div class="notion-text notion-block-1ae3ee7af39d809d9662f5295aca8e24">与每个资源具有不同终端节点的 REST API 不同，GraphQL API 具有用于所有可用数据的单个终端节点。客户端为读取和写入操作指定所需的数据，而服务器仅使用该数据进行响应。</div><div class="notion-text notion-block-1ae3ee7af39d80adb3adf0e716f954eb">GraphQL 请求结构类似于 JSON。但是，GraphQL 请求不对字段名称使用引号，并且字段名称和值之间没有冒号分隔，响应采用 JSON 格式。</div><div class="notion-text notion-block-1ae3ee7af39d809aa2afc27f2aff7a2b">以下是 GraphQL 请求类型：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80dba0e5d5f0fad75c08"><li>Queries（查询），检索数据的请求，类似REST中的GET请求</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808a8055cf6b9e7ad4c0"><li>Mutations（更改），创建和修改数据的请求，类似REST中的PUT、POST、DELETE请求</li></ul><div class="notion-text notion-block-1ae3ee7af39d80cfa711f664dceace04">以下是一个 GraphQL Mutations 的示例，展示如何创建和修改数据。我们将使用 Shopify 的产品管理作为例子。</div><div class="notion-text notion-block-1ae3ee7af39d8000b241d88124a9ceae"><b>创建产品的 Mutation 示例</b></div><div class="notion-text notion-block-1ae3ee7af39d808b85dbe63831be88fb"><b>更新产品的 Mutation 示例</b></div><div class="notion-text notion-block-1ae3ee7af39d80e38b40e942ff98e32e"><b>删除产品的 Mutation 示例</b></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80dbb59ef91a00947ca1" data-id="1ae3ee7af39d80dbb59ef91a00947ca1"><span><div id="1ae3ee7af39d80dbb59ef91a00947ca1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80dbb59ef91a00947ca1" title="四、上手学习"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、上手学习</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80a2bf97e314c7a63e19" data-id="1ae3ee7af39d80a2bf97e314c7a63e19"><span><div id="1ae3ee7af39d80a2bf97e314c7a63e19" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a2bf97e314c7a63e19" title="1.开发环境设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.开发环境设置</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80b2b52eda2c9d4cfa31"><b>工具和软件</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803b9aa5daca6c953afd"><li>安装 <b>Node.js 14.170+</b></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8032b4ded862a0e4dcb3"><li>安装Node.js包管理器 <b>npm</b>、<b>Yarn</b> 或 <b>pnpm</b></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80cfa863e31e4e73d955"><li>安装 <b>Ruby 3.0+</b></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80cbb586df66546d24dd"><li>安装 <b>Git 2.28+</b></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8090bf7dce86a820a493"><li><b>代码编辑器</b>：推荐使用 VS Code 或其他支持 Git 的编辑器。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80928792e3b4829b6a76"><li><b>版本控制</b>：使用 Git 进行版本管理，确保代码的可追踪性。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8026aedcf45c772a3e7f"><li><b>Shopify CLI</b>：安装和使用命令行工具，创建和管理应用。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80b2a01cea29bc72ee75">Shopify CLI 是一个命令行工具，帮助开发者创建和管理 Shopify 应用、主题和其他项目。以下是安装和使用 Shopify CLI 的详细步骤。</div><div class="notion-text notion-block-1ae3ee7af39d807989a0d61ee22dee2d">常用命令</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80aabdcec12deec04a45"><li><b>创建主题</b>：</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8076ac89eb7d56c4613c"><li><b>上传主题</b>：</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a782c3cff44e629747"><li><b>下载主题</b>：</li></ul><div class="notion-text notion-block-1ae3ee7af39d805c95a2de68de1cf6f3">更多命令可查阅官方文档，<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/cli">Shopify CLI 官方文档</a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80a49a0ec74924e00876" data-id="1ae3ee7af39d80a49a0ec74924e00876"><span><div id="1ae3ee7af39d80a49a0ec74924e00876" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a49a0ec74924e00876" title="2.Shopify 账户"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.Shopify 账户</span></span></h3><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8002bf19c25610fc2a39"><li>创建 Shopify 开发者账户，获取 API 密钥和凭证。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d807bb8d0e03c72ea8100"><li>如果你还没有 Shopify 开发者账户，请访问 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.shopify.com/partners">Shopify Partner</a> 注册。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80748e8acf0cbb13da2d" data-id="1ae3ee7af39d80748e8acf0cbb13da2d"><span><div id="1ae3ee7af39d80748e8acf0cbb13da2d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80748e8acf0cbb13da2d" title="新建开发者商店"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">新建开发者商店</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8081845dfa71ec08d0aa">为了方便开发调试，需要我们在开发者账号创建测试使用的商店，可以在后台，找到「商店」-「添加商店」选项”，点击“创建开发商店”。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b488e2eb891598ae92"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDY0OTY5YWU5MjI5YzYyNDcxZDQ1NmIzMDIzNjU4MGZfU1Rza2twanVqa0ZUWE84ZFdSUGdNZ0lZVVFnQVhNWEhfVG9rZW46TVVIZWJXS3JmbzRNZ0F4eXdpZGM0OE5obmJoXzE3NDEyNTIwMzc6MTc0MTI1NTYzN19WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b4-88e2-eb891598ae92" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e9b567cf8a8c653978">在命令行中，运行以下命令进行登录：</div><div class="notion-text notion-block-1ae3ee7af39d8087a003d4c4652105e9">按照提示输入你的 Shopify 开发者账户凭证。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d809eb6f9dcda7a476bb2" data-id="1ae3ee7af39d809eb6f9dcda7a476bb2"><span><div id="1ae3ee7af39d809eb6f9dcda7a476bb2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809eb6f9dcda7a476bb2" title="3. 开发自定义应用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3. 开发自定义应用</span></span></h3><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80b5b5dad0842c62e9c5"><li><b>前端与后端</b>：介绍如何设计应用的前端和后端架构。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80699c7fe7b2194d1032"><li><b>数据存储</b>：选择合适的数据库（如 MongoDB、PostgreSQL）进行数据存储。</li></ul><div class="notion-text notion-block-1ae3ee7af39d800c9170f0feb42de2d1">使用以下命令创建新的 Shopify 应用：</div><div class="notion-text notion-block-1ae3ee7af39d80468d2fdcb9775e6dd2">按照提示选择应用类型（如 Node.js 或 Ruby on Rails），并输入应用名称。</div><div class="notion-text notion-block-1ae3ee7af39d80a0a80dc2bbc1bc98d3"><b>进入应用目录</b></div><div class="notion-text notion-block-1ae3ee7af39d806fa9fcd13a3d33cf47">创建完成后，进入应用目录：</div><div class="notion-text notion-block-1ae3ee7af39d80048dd8efb143cf6f68">运行以下命令启动开发服务器：</div><div class="notion-text notion-block-1ae3ee7af39d8093a8eaf7b3df3d262b">这将启动本地服务器并打开浏览器，访问你的应用。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d803eb62adaccafe79df8" data-id="1ae3ee7af39d803eb62adaccafe79df8"><span><div id="1ae3ee7af39d803eb62adaccafe79df8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d803eb62adaccafe79df8" title="管理应用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">管理应用</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80339b05d0b7a0d8d4ac"><b>查看命令</b></div><div class="notion-text notion-block-1ae3ee7af39d80dcb79afca71ccf0d50">运行以下命令查看可用的 Shopify CLI 命令：</div><div class="notion-text notion-block-1ae3ee7af39d800b8dd6c9a835961c79"><b>更新应用</b></div><div class="notion-text notion-block-1ae3ee7af39d80edab4ec57dd77cd62f">若需要更新应用，可以使用以下命令：</div><div class="notion-text notion-block-1ae3ee7af39d80e39f79e88dc0a13072"><b>应用部署到 Shopify</b></div><div class="notion-text notion-block-1ae3ee7af39d80bf9ea7fe7ab08452a3">使用以下命令将应用部署到 Shopify：</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80129c28c13e45e59f12" data-id="1ae3ee7af39d80129c28c13e45e59f12"><span><div id="1ae3ee7af39d80129c28c13e45e59f12" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80129c28c13e45e59f12" title="4. 部署与维护"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4. 部署与维护</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80c3842fc59eb07ec0e1"><b>4.1 部署流程</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d805eba80f8800e4ee44d"><li><b>选择平台</b>：推荐使用 Heroku、Vercel 或 AWS 进行应用部署。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d4a02fc7bfb2792c24"><li><b>持续集成</b>：设置 CI/CD 流程，自动化构建和部署。</li></ul><div class="notion-text notion-block-1ae3ee7af39d805dbfced95672b51cc3"><b>4.2 监控与日志</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8098b02af50069228f3a"><li><b>监控工具</b>：使用工具（如 New Relic、Sentry）监控应用性能。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8052bb73e601a40efa8a"><li><b>日志管理</b>：记录和分析应用日志，以便于故障排查。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80fb85f3e15c87cd7578" data-id="1ae3ee7af39d80fb85f3e15c87cd7578"><span><div id="1ae3ee7af39d80fb85f3e15c87cd7578" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80fb85f3e15c87cd7578" title="应用实战"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">应用实战</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80139ef1c7719fee8a8b">基于Shopify Admin API、GraphQL、Remix、Prisma、Sqlite技术栈构建的轻量应用，获取Shopify应用商品信息、生成商品二维码，记录扫描次数等功能。</div><div class="notion-text notion-block-1ae3ee7af39d80dfb17edc51ac04a13f"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://f1l5e2ythy.feishu.cn/docx/HOgcdLqCPonHpjxYlRwcK3etnVg">Shopify 商品二维码生成应用</a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d8020aceac5d3188664ba" data-id="1ae3ee7af39d8020aceac5d3188664ba"><span><div id="1ae3ee7af39d8020aceac5d3188664ba" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8020aceac5d3188664ba" title="五、性能优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、性能优化</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d801db8ede424acf2c0d7">在 Shopify 上优化网站性能，提升加载速度和用户体验，提高加载速度有助于改善这些指标，例如：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808b8d19fe6565822586"><li>用户体验</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d808790b3f9a4ac05b6cc"><li>SEO排名</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80349f07eb7df46fd227"><li>转化率</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804ea3c6c43f388c1d8c"><li>自然流量</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80808bb8f786e4c389a6"><li>页面浏览量</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80ad8a88fe1569c8a642"><li>收入</li></ul><div class="notion-text notion-block-1ae3ee7af39d8021a17bf0272d1962e8">速度越快的网站赚到的钱越多。2018年，Google开始了移动端优先索引—他们开始根据移动端版本而不是桌面端，对网站进行排名。这使得移动端性能尤为重要。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80e894e9f93545a191fe" data-id="1ae3ee7af39d80e894e9f93545a191fe"><span><div id="1ae3ee7af39d80e894e9f93545a191fe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80e894e9f93545a191fe" title="Shopify页面速度影响因素"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Shopify页面速度影响因素</b></span></span></h3><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80eca761dcbe754cf492"><li><b>服务器速度</b>，Shopify服务器的速度很快，开发侧无法控制，所以不需要考虑这个问题。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803fa7a8da55f610e5d3"><li><b>连接速度</b>，因用户和国家而异。如果你的大部分流量来自于移动端，请确保你的网站在任何速度下都能很好地加载，以帮助这些客户。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8087ba03d3400aab2d6f"><li><b>请求数</b>，页面所需的文件。你的页面上的每个应用、图片和文件都需要从服务器上下载，这就造成了总的请求量（文件）。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80b7874efc4934e1fa88"><li><b>页面大小</b>，页面的累计文件大小。从逻辑上讲，减少页面大小和服务器请求量会使你的网站加载速度更快。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d809abc93deafe71965a5" data-id="1ae3ee7af39d809abc93deafe71965a5"><span><div id="1ae3ee7af39d809abc93deafe71965a5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809abc93deafe71965a5" title="速度优化和分析工具"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">速度优化和分析工具</span></span></h3><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c9a533e1249e36473a"><li><b>网页速度测试</b>：https://www.webpagetest.org/</li></ul><div class="notion-text notion-block-1ae3ee7af39d809ca25aeb6770b99b98">这是我们找到的用于测量加载速度，页面大小和请求数量的最准确的工具。提示：你可以选择不同的服务器速度来模拟不同的设备。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80fdbb74c08aa3f67aa4"><li><b>Chrome Dev Tools</b>: https://developer.chrome.com/docs/devtools?hl=zh-cn</li></ul><div class="notion-text notion-block-1ae3ee7af39d80138d9dff9ee76d9d83">这对于web开发者来说是一个很好的工具。对于Shopify的优化，我们将使用控制台和网络功能。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8064bf28f83f6f46ed50"><li><b>PageSpeed Insights</b>: https://pagespeed.web.dev/</li></ul><div class="notion-text notion-block-1ae3ee7af39d801ca4c8e5ca1d03f61c">可以从Google PSI中获得一些想法，但这并不是Shopify优化的好工具，因此我们不使用它.</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80748c8fe052485da8a1"><li><b>Crush Pics: </b>https://apps.shopify.com/crush-pics?locale=zh-CN</li></ul><div class="notion-text notion-block-1ae3ee7af39d80509d9cceae1619972c">这是一款图片优化的必备应用。它可以自动压缩你的图片，让你的整个网站在不损失图片质量的情况下，自动压缩你的图片，让你的整个网站加载速度更快。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8006bdfeda52e436b2ec"><li><b>Tiny Png</b>: https://tinypng.com/</li></ul><div class="notion-text notion-block-1ae3ee7af39d8064a19cfa4f029e9b3d">由于访问限制，Shopify的图片优化应用无法100%压缩图片，所以你必须手动压缩一些图片。这时候，TinyPNG就发挥了它的优势。它是一款免费的网络应用，可以为任何媒体优化图片。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8022b052ea6e79ea160e" data-id="1ae3ee7af39d8022b052ea6e79ea160e"><span><div id="1ae3ee7af39d8022b052ea6e79ea160e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8022b052ea6e79ea160e" title="3. 网站加载速度优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3. 网站加载速度优化</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d801bbd46f0d704a8eb0e">如果时间或预算有限，请先关注关键领域：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800588acc27f99feb744"><li>图像优化</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8035bf06fe1ba19c8b7e"><li>延迟加载</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a78f8ae4850d9fea14"><li>应用分析和优化</li></ul><div class="notion-text notion-block-1ae3ee7af39d801f944dc33937795dd4">通过移动设备测试渠道，使用A / B测试来查看应用程序或设计对我们的帮助或伤害。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80909e84e924ec55f151" data-id="1ae3ee7af39d80909e84e924ec55f151"><span><div id="1ae3ee7af39d80909e84e924ec55f151" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80909e84e924ec55f151" title="图片优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>图片优化</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d808c8198d5ae21b3dbfb">很多网站图片很多而且很大，因此图像优化是提高网站速度的关键策略。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80b9a867e00272d661fd"><li><b>压缩图片</b>：使用工具（如 TinyPNG 或 ImageOptim）压缩图片，减少文件大小而不显著降低质量。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a698b8d9f0cb8b8b87"><li><b>使用适当格式</b>：选择合适的图片格式，例如：</li><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a698b8d9f0cb8b8b87"><li>SVG: 通常是最好的图形文件，因为它们可以无限扩展而不损失分辨率。标志、图标和非图形图形通常可以作为SVG来使用。</li><li>JPEG：适合照片和复杂图像。</li><li>PNG：适合透明背景的图像。</li><li>WebP：现代格式，支持更高压缩率和质量。</li><div class="notion-text notion-block-1ae3ee7af39d80c39564e73bcc525fad">相同分辨率下，在照片图像上使用PNG代替JPG会把原文件大小增加2倍至10倍😧，要注意！</div><div class="notion-text notion-block-1ae3ee7af39d80268d91edf91f2b4f59">可以在Chrome开发者工具的 “网络 “选项卡中扫描您的文件，或者点击Analyzer中的 “总大小”。根据文件大小进行排序，寻找带有”.png “文件扩展名的图像。如果是照片，请下载并转换为JPG，以节省大量的文件大小。</div></ul></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a1b62af308670094d7"><li><b>懒加载</b>：使用懒加载技术，只有在用户滚动到视口时才加载图片，减少初始加载时间。</li></ul><div class="notion-text notion-block-1ae3ee7af39d805db855d158818f6f38">延迟加载是一种性能优化技术，可在用户向下滚动页面时而不是在初始页面加载期间加载图像，通过执行延迟加载，我们通常会看到页面大小减少10％– 30％。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8037b9cafc3f85bc58ce"><li><b>图像尺寸调整</b>：根据显示设备调整图片尺寸，避免加载过大的图片。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80fb9984f5e7dc1ec6cd">根据像素密度选择不同的图像。例如，在普通屏幕上是1x，在视网膜显示器上是2x大小的图像。</div><div class="notion-text notion-block-1ae3ee7af39d800a810ec998ecc89b6d">可以为不同的屏幕范围选择不同的图像</div><div class="notion-text notion-block-1ae3ee7af39d80a29966e1910fe72e11"><code class="notion-inline-code">src</code>现在，该属性成为后备属性，srcset指令根据访问页面的设备加载不同的图像。</div><div class="notion-text notion-block-1ae3ee7af39d809bab03f99edfb7af4f">如果你有延迟加载（下面描述），你只需要担心折叠上方的图片的缩放问题，因为折叠下方的图片会被隐藏起来，直到用户将其滚动到视图中。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80b1a1e1e80193991db1" data-id="1ae3ee7af39d80b1a1e1e80193991db1"><span><div id="1ae3ee7af39d80b1a1e1e80193991db1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b1a1e1e80193991db1" title="代码优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>代码优化</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803d8145c8b93bcfc7cc"><li><b>精简 CSS 和 JavaScript</b>：移除未使用的样式和脚本，合并和压缩文件，减少 HTTP 请求数量。</li></ul><div class="notion-text notion-block-1ae3ee7af39d8088b16ad21feff5c724">通过去掉多余的字符，如空格和注释，缩短变量名称，并将常用的样式组合在一起，对这些文件进行压缩。</div><div class="notion-text notion-block-1ae3ee7af39d80ea9d51eabe82b0c439">编写代码就像写作一样：我们使用样式和命名来编写代码，这样对人类来说是有意义的，而且更容易调试。在生产环境中，计算机是在阅读代码。</div><div class="notion-text notion-block-1ae3ee7af39d80ba8d15e14997fab394">计算机不关心样式，只需要字符串和命令字符串，因此缩小这些文件可以减轻文件大小。</div><div class="notion-text notion-block-1ae3ee7af39d80b892b3cafad500510b">可以使用此工具来缩小JavaScript：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://jscompress.com/">JSCompress</a>。</div><div class="notion-text notion-block-1ae3ee7af39d80418982e33fb088d5e5">在Shopify中，你可以通过改变文件名来minify你的CSS。对于JavaScript，你要备份你的主题资产中的原始文件，这样你就有了原始代码。</div><blockquote class="notion-quote notion-block-1ae3ee7af39d80b68f79eb32ed16e488"><div>如果你的主题资产文件夹中的文件名以.liquid结尾，你很可能无法使用这些策略，因为其中混杂着liquid代码。有一些方法可以做到这一点，但很繁琐，可能会导致BUG。</div></blockquote><div class="notion-text notion-block-1ae3ee7af39d802595eac6f879642127">如果你的代码有错误，则缩小代码可能不起作用。如果你的代码有错误，你需要阅读你的代码并进行修复，也可以使用<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://validatejavascript.com/">ValidateJavaScript</a>和<a target="_blank" rel="noopener noreferrer" class="notion-link" href="http://csslint.net/">CSS Lint</a>等这类的验证器工具。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804681ccea45d2ee8253"><li><b>合并脚本和样式表：</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d8083ad31f42f8cb8b885">对于Shopify网站来说，这个东西不值得做，但它是一种减少资源的优化技术，把文件合并成一个文件，把请求的数量降到最低，理论上可以提高加载速度(这在HTTP2之前是比较重要的)。</div><div class="notion-text notion-block-1ae3ee7af39d80688ee3d40182522b34">缺点：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803aae4de68a7e992545"><li>它可能会破坏网站</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d802e9396c9803e7e1f90"><li>如果合并了现在使用的文件，但是以后不需要这些文件，则将加载额外的代码</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8065b7e2c1cd265640c5"><li>这可能很耗时且需要大量维护</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804f9ac9e3ab9c06ff49"><li>有条件加载比较困难</li></ul><div class="notion-text notion-block-1ae3ee7af39d80bf830bcacabc2dbdbb">通常不会用这种策略来提高性能。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80ac8c89d751e8441fd7"><li><b>使用异步加载</b>：对于非关键 JavaScript，使用 <code class="notion-inline-code">async</code> 或 <code class="notion-inline-code">defer</code> 属性异步加载，避免阻塞页面渲染。</li></ul><div class="notion-text notion-block-1ae3ee7af39d800bb414cb5d6f193f78">如果你的脚本对于关键页面加载并不重要，则可以将其移至页面底部（延迟），也可以异步加载，以便页面的关键元素可以更快地加载并显示给用户。</div><div class="notion-text notion-block-1ae3ee7af39d80038727f8927d22a4b4">将脚本转换为异步很容易，只需将<code class="notion-inline-code">async</code>属性添加到脚本中，如下所示：</div><div class="notion-text notion-block-1ae3ee7af39d80fe84bcef2596e8f5de">异步加载就像在后台下载脚本，然后在准备就绪时执行它。</div><div class="notion-text notion-block-1ae3ee7af39d809cb048c0abfe8e628c">推迟脚本将推迟脚本的执行，直到html文档被解析为止。延迟就像将脚本移到页脚一样。</div><div class="notion-text notion-block-1ae3ee7af39d80f882fee5dc21cc8783">可以尝试使用这些脚本，但是我的一般经验法则是将对页面渲染必不可少的脚本保持为常规（诸如<code class="notion-inline-code">jquery.js</code>）之类的内容，而对于页面渲染而言非必需的<b>异步</b>或<b>推迟</b>脚本。</div><div class="notion-text notion-block-1ae3ee7af39d80b49c62e170651c2fbe">尝试移动脚本，或者根据情况（或如果有很多脚本）根据情况推迟它们。</div><blockquote class="notion-quote notion-block-1ae3ee7af39d805f93aac39ce72108b9"><div>在发布实时内容之前，请务必谨慎并进行测试。如果脚本依赖于异步脚本，则可能会出现JavaScript错误或损坏内容。</div></blockquote><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d807d9823ef2551b22ffb"><li><b>减少重定向</b>：避免不必要的 URL 重定向，减少加载时间。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80dfb017c6b7536c88a1"><li><b>Gzip压缩</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d805fbcc2df75d7a7606a">Shopify会为你处理此问题，因此，如果你在分析器中看到此警告，则表明第三方应用程序正在提供未压缩的文件。</div><div class="notion-text notion-block-1ae3ee7af39d80c19e1eee6aaefd920a">通常这没什么大不了的，但是如果你在此处看到50kb或更高的警告，则值得进行调查。</div><div class="notion-text notion-block-1ae3ee7af39d80acb142f9cf97e5adec">要解决此问题，请在分析器中打开<b>Gzip压缩</b>详细信息，然后查看文件名。如果识别出属于某个应用程序的文件，则可以与他们联系并询问他们是否可以压缩该文件。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80b98f2dd30b487c94bb"><li><b>liquid语言效率低</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d8090bcdbc65e2177c527"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://help.shopify.com/en/themes/liquid">Liquid</a> = Shopify的模板语言，用于控制主题中的数据流和条件。</div><div class="notion-text notion-block-1ae3ee7af39d809389baca8fb7601714">对于大多数站点，不必担心这一点，但是，如果你的站点具有庞大的产品目录，那么过多的逻辑逻辑可能会使事情变慢。</div><div class="notion-text notion-block-1ae3ee7af39d807185bef295849f6b21">一个示例是<code class="notion-inline-code">for loop</code>。这指示代码循环遍历数据集合，直到找到所需的内容为止。</div><div class="notion-text notion-block-1ae3ee7af39d80dba71ff533c14d766e">这个基本示例不会影响性能，但是如果您有多个嵌套的for循环在庞大的集合和产品中进行搜索，那么处理时间可能会导致加载时间增加。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80bf95d5c3f43bfa6337" data-id="1ae3ee7af39d80bf95d5c3f43bfa6337"><span><div id="1ae3ee7af39d80bf95d5c3f43bfa6337" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80bf95d5c3f43bfa6337" title="应用分析"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">应用分析</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8093a9f1cc75fb29283a">应用程序可以实现你想要的功能。但请记住，添加的每一个面向商店的应用程序都会增加你的加载时间。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8003abdfd1627aef232f"><li><b>应用优化步骤#1：卸载任何转化率不高或不需要的应用。</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d80c99ffffb70e002c68e">你可能会因为一两个应用看起来很酷，或者人们说它很好用，而挂在一两个应用上，但在这里，你需要用数据和A/B测试来看看它是否真的好用。</div><div class="notion-text notion-block-1ae3ee7af39d8037a5e2ef6a05fdb55f">Google Analatics、应用的分析（如果他们有的话）、客户反馈和热图（使用<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.hotjar.com/">Hotjar</a>等工具）将帮助你决定一个应用的实用性。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d806988fcfe82e0bbd1f7"><li><b>应用优化步骤2：确保你的主题中没有旧的应用代码还在加载。</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d8089b503e7fe2c3592d3">如果已经卸载了一些应用程序，那么有可能你的网站上有旧的应用程序代码在运行，需要进行删除处理。</div><div class="notion-text notion-block-1ae3ee7af39d80d09852d75548ff71cf">你可以通过在分析器中打开 “域的数量 “来检查，这将显示每个域为页面贡献资源。你可能无法识别每一个域，但如果你注意到一个域属于你卸载的应用程序，那么你猜猜它还在加载文件 ，通常可以在你的主题.liquid文件中找到这些脚本和样式表，尽管它们也可能在其他地方。</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80039390ea8208e464bf"><li><b>应用优化步骤#3：有条件加载App脚本。</b></li></ul><div class="notion-text notion-block-1ae3ee7af39d809f8857cad98c644f58"><b>有条件加载</b>=只在需要的页面上加载资源。</div><div class="notion-text notion-block-1ae3ee7af39d800abed7d5ae66f91ce3">这需要编辑html和liquid代码+测试，确保没有任何问题，所以要谨慎进行。</div><div class="notion-text notion-block-1ae3ee7af39d802094edeb828418926d">例如：很多时候，很多app都会把他们的脚本/CSS放在主题.liquid文件中，因为这样做很容易，而且覆盖了更多的用例。如果那个app只需要在产品页面上使用，那么这个脚本可能会在你网站的每个页面上不必要地加载。</div><div class="notion-text notion-block-1ae3ee7af39d803486cedc9a6deffe4b">为了解决这个问题，您可以限制资源仅在需要的地方加载，如下所示：</div><div class="notion-text notion-block-1ae3ee7af39d80db995bd0ebebdc6332">任何时候你对你的主题进行编辑，确保你先备份它，并在备份的主题上进行，以确保你不会破坏你的实时主题。在发布之前，先预览和测试。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80048c7bf5344453d4f4" data-id="1ae3ee7af39d80048c7bf5344453d4f4"><span><div id="1ae3ee7af39d80048c7bf5344453d4f4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80048c7bf5344453d4f4" title="减少第三方资源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">减少第三方资源</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80a69769e5041b7e897f">在分析器中收到警告，提示<b>缩小第三方文件</b>，则表明你的一些应用可能正在提供未缩小的文件。</div><div class="notion-text notion-block-1ae3ee7af39d8059bd35f6e28cd960ed">在这种情况下，除了要求他们缩小文件大小之外，你也无能为力。有时他们会，有时他们不会。最好的做法是在生产中对文件进行最小化，但他们可能有理由不这样做。</div><div class="notion-text notion-block-1ae3ee7af39d808c90a6cafa93b95e5b">如果你想联系应用程序开发人员，可以使用以下模板：</div><blockquote class="notion-quote notion-block-1ae3ee7af39d807599d6fc849ed3fa34"><div>HI,</div><div class="notion-text notion-block-1ae3ee7af39d8081b735e59ea379618f">It looks like there’s an unminified CSS file being served from your app (see attached screenshot).</div><div class="notion-text notion-block-1ae3ee7af39d8048a102e459298792df">Any chance you can minify that?</div><div class="notion-text notion-block-1ae3ee7af39d8051abf0eb8f5535b5a4">Thanks, love your apps by the way!</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80dcad2df0000ce4a256" data-id="1ae3ee7af39d80dcad2df0000ce4a256"><span><div id="1ae3ee7af39d80dcad2df0000ce4a256" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80dcad2df0000ce4a256" title="资源提示/预加载"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>资源提示/预加载</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80018651e5136e749568">资源提示是html属性，可用于指示浏览器优化某些资源的加载。</div><div class="notion-text notion-block-1ae3ee7af39d80ea8e28fc94fda32f19">这些命令可以帮助快速抓取关键资源+提升网站整体导航。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80c7a37efd363741a3e5" data-id="1ae3ee7af39d80c7a37efd363741a3e5"><span><div id="1ae3ee7af39d80c7a37efd363741a3e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80c7a37efd363741a3e5" title="服务器配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>服务器配置</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80e0976bcb9457fc5c2c">这由Shopify为你100％处理，可以不用管它</div><div class="notion-text notion-block-1ae3ee7af39d8057b823c9cc5b2e851b">Shopify服务器速度很快。如果你遇到随机的网站问题，但尚未编辑主题或应用程序，则可能是服务器问题。</div><div class="notion-text notion-block-1ae3ee7af39d8017aef2cb52c8fb97ba">你可以在这个网站检查Shopify的状态：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://status.shopify.com/">status.shopify.com</a>。</div><div class="notion-text notion-block-1ae3ee7af39d80d98305d50afdc42a25">他们的服务器通常运转良好，但有时它们会掉下来或出现问题。在大多数情况下，如果发生问题，很快就能解决。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8000ae5adf6abe92cff3" data-id="1ae3ee7af39d8000ae5adf6abe92cff3"><span><div id="1ae3ee7af39d8000ae5adf6abe92cff3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8000ae5adf6abe92cff3" title="4. Shopify 缓存机制"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4. Shopify 缓存机制</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80d6ab80cd8d71e52147" data-id="1ae3ee7af39d80d6ab80cd8d71e52147"><span><div id="1ae3ee7af39d80d6ab80cd8d71e52147" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d6ab80cd8d71e52147" title="利用 Shopify 的缓存"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>利用 Shopify 的缓存</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8043bc0be7e780826de0"><li><b>页面缓存</b>：Shopify 自动缓存静态内容，确保用户访问时能快速加载。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a7afbec19470df52bd"><li><b>应用缓存</b>：如果使用自定义应用，确保合理使用缓存，避免频繁请求后端数据。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d804caa56c6d928db9048" data-id="1ae3ee7af39d804caa56c6d928db9048"><span><div id="1ae3ee7af39d804caa56c6d928db9048" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d804caa56c6d928db9048" title="使用 CDN（内容分发网络）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>使用 CDN（内容分发网络）</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a4b23ff8fc4a33ea9c"><li>Shopify 自带 CDN，所有静态资源（如图片、CSS 和 JavaScript 文件）都通过 CDN 提供。确保：</li><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80a4b23ff8fc4a33ea9c"><li>所有静态资源都在 Shopify 上托管。</li><li>使用 Shopify 提供的资源链接，确保利用 CDN 的优势。</li></ul></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d801d83bbc9496c7f21fe" data-id="1ae3ee7af39d801d83bbc9496c7f21fe"><span><div id="1ae3ee7af39d801d83bbc9496c7f21fe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d801d83bbc9496c7f21fe" title="5. 用户体验优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5. 用户体验优化</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d808cad87e9be7cec6558" data-id="1ae3ee7af39d808cad87e9be7cec6558"><span><div id="1ae3ee7af39d808cad87e9be7cec6558" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d808cad87e9be7cec6558" title="提升交互体验"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>提升交互体验</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80778c93caf1ce1b1bca"><li><b>快速反馈</b>：在用户进行操作（如添加到购物车）时，提供即时反馈，使用加载指示器或动画。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8004976bde06d83610ee"><li><b>优化导航</b>：确保网站结构清晰、导航简单，减少用户寻找产品的时间。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d802c8390d23fe3652d85" data-id="1ae3ee7af39d802c8390d23fe3652d85"><span><div id="1ae3ee7af39d802c8390d23fe3652d85" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802c8390d23fe3652d85" title="移动端优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>移动端优化</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8003abe7d0fc28e3f86f"><li><b>响应式设计</b>：确保网站在各类设备上都能良好显示，使用媒体查询调整布局。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8052b83ae36e95a15317"><li><b>简化表单</b>：在移动端简化输入表单，减少用户输入负担，提高转化率。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80149048fa9bf79a111c" data-id="1ae3ee7af39d80149048fa9bf79a111c"><span><div id="1ae3ee7af39d80149048fa9bf79a111c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80149048fa9bf79a111c" title="6. 监测和调整"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6. 监测和调整</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d802bbb65e90878e7ce08" data-id="1ae3ee7af39d802bbb65e90878e7ce08"><span><div id="1ae3ee7af39d802bbb65e90878e7ce08" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802bbb65e90878e7ce08" title="使用性能监测工具"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>使用性能监测工具</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80ea8f23e944641d138a"><li><b>Google PageSpeed Insights</b>：分析页面速度，提供优化建议。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80b1bba2ee17c05622af"><li><b>GTmetrix</b>：监测加载时间，分析资源使用情况。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8049a118e932162f0dc5"><li><b>Shopify Analytics</b>：查看用户行为，识别加载缓慢的页面和资源。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8062b085eea9f68fc863" data-id="1ae3ee7af39d8062b085eea9f68fc863"><span><div id="1ae3ee7af39d8062b085eea9f68fc863" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8062b085eea9f68fc863" title="寻找瓶颈"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>寻找瓶颈</b></span></span></h4><div class="notion-text notion-block-1ae3ee7af39d807a947cd4e3776e7516">你可以使用<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.webpagetest.org/">webpagetest.org</a>或Chrome开发工具来分析页面的<b>瀑布图，</b>以查看加载的每个文件以构建页面。</div><div class="notion-text notion-block-1ae3ee7af39d80cea4b9f463eadcf5f0">如果你之前没有看到资源瀑布，那可能就像查看Matrix，但至少可以查找异常现象，例如文件加载时间长，阻塞其他资源或出错。</div><div class="notion-text notion-block-1ae3ee7af39d8037b508cf718a9d509c">来自webpagetest.org的瀑布示例：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80519b1efcaed480c727"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YWE0MDk2M2UzZjM3MGNlMGEwYmZiNWJmZDY5MWQ1ZjVfQnh3dXo4eEV3V2VhVzdoeEgzcmgxNll2Z2RmeXhQWHhfVG9rZW46VEhqNmJjVE5vb0hURkp4ZHg0emNPbnBobk5iXzE3NDEyNTIwMzc6MTc0MTI1NTYzN19WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8051-9b1e-fcaed480c727" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80cc957df7eded64681c">如果发现奇怪的东西，请查看文件名，它将为您提供引起原因的线索以及从何处开始调试。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8046a4b1cbe4a19349d3" data-id="1ae3ee7af39d8046a4b1cbe4a19349d3"><span><div id="1ae3ee7af39d8046a4b1cbe4a19349d3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8046a4b1cbe4a19349d3" title="定期审查和优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>定期审查和优化</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e89e07d23711a9fb5d"><li>定期审查网站性能，跟踪关键指标（如加载时间、跳出率），根据数据反馈进行调整和优化。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80d5a440e005d5bf7fa5" data-id="1ae3ee7af39d80d5a440e005d5bf7fa5"><span><div id="1ae3ee7af39d80d5a440e005d5bf7fa5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d5a440e005d5bf7fa5" title="六、Shopify设计优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">六、Shopify设计优化</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d809daa6ce88d895dc578">这里着重讲解非技术性的优化会影响你的站点性能，主要原则如下：</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8059b944c9a0d559bd82" data-id="1ae3ee7af39d8059b944c9a0d559bd82"><span><div id="1ae3ee7af39d8059b944c9a0d559bd82" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8059b944c9a0d559bd82" title="使用hero而不是滑块"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用hero而不是滑块</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d800bb561c8489b608123"><b>Hero</b> =在你的网站顶部（通常是首页）的单个横幅图像，显示你的产品有多棒，或者是生活方式的图像，或者是使用你的产品的人的拼贴画。</div><div class="notion-text notion-block-1ae3ee7af39d807bb896e696d89f10e1"><b>Sliders</b> =循环播放大型横幅图片的图片滑块，需要一个jquery插件（通常）。</div><blockquote class="notion-quote notion-block-1ae3ee7af39d8084bc3dd24af1ca97b4"><div>产品页面的图片滑块是个例外。这些都是直观和吸引人的，而且不是像某些主题的主页上的巨大的横幅滑块。保留这些。</div></blockquote><div class="notion-text notion-block-1ae3ee7af39d8041933ac54c6c8eb1e9">针对大型横幅滑块的争论：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d802da59ce20d9e12b857"><li>他们使你的网站变慢</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80918468fe0197e31c8e"><li>人们与你互动的程度不如你希望的那样</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809cbc76d8842cb20cb0"><li>在移动设备上，向下滚动比滑动更自然</li></ul><div class="notion-text notion-block-1ae3ee7af39d8034b1ffc5d388947c1a"><b>如果我告诉你只有1％的人点击滑块该怎么办？你</b>可以在Google上搜索<em>“横幅广告是否很好”之类的内容，</em>以查看一些结果，我最喜欢的是“ <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://yoast.com/opinion-on-sliders/">滑块很烂，应该禁止你的网站上的滑块</a>” 😂</div><div class="notion-text notion-block-1ae3ee7af39d8092ac28f99cd5244e37"><b>建议</b>：试着使用一个单一的英雄图片，搭配酷炫的生活方式图片或明确的信息/行动号召。</div><div class="notion-text notion-block-1ae3ee7af39d80b1aed2dc24b3cb37d8">研究和建议不会对100%的人有效，所以如果你喜欢这个滑块并想保留它，可以尝试A/B测试，以知道什么最适合你的网站/受众。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80f1b7edf52615e1e87e" data-id="1ae3ee7af39d80f1b7edf52615e1e87e"><span><div id="1ae3ee7af39d80f1b7edf52615e1e87e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f1b7edf52615e1e87e" title="轮播"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">轮播</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80b79169db43e633a5b9">旋转木马很酷。但是像滑块一样，它们增加了额外的页面重量和资源。</div><div class="notion-text notion-block-1ae3ee7af39d80329ecde1e81e31ad6f">虽然在某些地方我喜欢旋转木马，所以说要保留它们，只是不要太过分。</div><blockquote class="notion-quote notion-block-1ae3ee7af39d8020850df5d4da029637"><div>好的做法：在主页上有1或2个旋转木马，显示趋势产品、新到产品或收藏夹。</div><div class="notion-text notion-block-1ae3ee7af39d80269725e465e23afa91">坏的做法：一个轮播中有20种产品，可能会加载100多种额外资源。</div></blockquote><div class="notion-text notion-block-1ae3ee7af39d80a4a630c03a6c9a8c34">最好的方法是将轮播硬编码到主题中，首选插件是<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://owlcarousel2.github.io/OwlCarousel2/">Owl Carousel</a>。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80b890efe7fc5bacb015" data-id="1ae3ee7af39d80b890efe7fc5bacb015"><span><div id="1ae3ee7af39d80b890efe7fc5bacb015" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b890efe7fc5bacb015" title="超级菜单（Mega menus）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">超级菜单（Mega menus）</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8032b335f49072ed8dcc">大型菜单看起来很酷，但这是另一个潜在的瓶颈，因为在每个页面的顶部，资源的数量超过了折页。</div><div class="notion-text notion-block-1ae3ee7af39d806f89b5c8d93a331c71">如果你使用这类应用程序，则可能会减慢你的网站速度。</div><div class="notion-text notion-block-1ae3ee7af39d80229191f567baefa0f0">无论你使用的是应用程序还是主题功能，如果你使用的是大型菜单，这些提示将有助于最大程度地降低性能延迟：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8025a066d4b8f28279ea"><li>确保图像已压缩并以合理的大小加载（请参见上面的“ <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.traffic-global.com/shopify-optimization.html#optimize-io">图像优化”</a>部分）</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8032a911d7f9cbe099ed"><li>使用webpagetest.org来测试有无大型菜单的性能差异</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80b382b6c31c0cc684f8"><li>如果你使用的是应用，请考虑将功能硬编码到主题中</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80da8bf0c06dc31e1297" data-id="1ae3ee7af39d80da8bf0c06dc31e1297"><span><div id="1ae3ee7af39d80da8bf0c06dc31e1297" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80da8bf0c06dc31e1297" title="快速浏览"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">快速浏览</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80ce9bdfdd6072c9813f">如果快速浏览功能编码正确（用户单击后使用ajax插入内容），则可能没问题。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80a19b92c26702f3d517"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDBjZjQ3NDVmYjliOWUzYTIwZDlkZDAyMGQwZTBhMzdfMFhmZ1lSNW55ODg2bzh4eGFOVmlPRGgxcThrMWVRY2tfVG9rZW46RGxacWJWOUFFb1o3WTB4M0xsWWMzbktSbldiXzE3NDEyNTIwMzc6MTc0MTI1NTYzN19WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80a1-9b92-c26702f3d517" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d802f9dccfa01f5a0c621">如果快速查看功能的编码不正确（每个快速查看弹出窗口均在页面加载时加载），则说明加载速度会大大滞后。</div><div class="notion-text notion-block-1ae3ee7af39d801e9c91c1d2a945ba1e">通过搜索仅存在于快速查看弹出窗口中的图像来进行测试。然后将你加载的资源与Shopify分析器或Chrome开发工具进行比较。如果你在这些工具中找到该文件，则意味着该文件正在页面加载时（以及该页面上的所有其他快速查看内容）加载。</div><div class="notion-text notion-block-1ae3ee7af39d8067b2b9d857dba78ded">使用快速查看功能，原因有两个：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d6b911d77515b3ebba"><li>他们放慢页面速度</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d9965bdd1da3c9f0e4"><li>你在页面上获得的时间更多，但页面浏览量却更少。我喜欢浏览量</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d802a82c9f4b50745a1c6" data-id="1ae3ee7af39d802a82c9f4b50745a1c6"><span><div id="1ae3ee7af39d802a82c9f4b50745a1c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802a82c9f4b50745a1c6" title="移动优先的心态"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">移动优先的心态</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8050bca0e261d7c2f5af">大多数Shopify网站现在的移动流量都比台式机更多，因此“移动优先”设计是获得出色用户体验的关键。</div><div class="notion-text notion-block-1ae3ee7af39d80d480efc896639c1b9c">即使你的客户仍然在台式机而非移动设备上购买更多商品，你仍然希望创造出色的首次移动体验，然后在重新定位他们时，他们更有可能以两种方式购买。</div><div class="notion-text notion-block-1ae3ee7af39d80d2820af378b4c77b89">作为电商，你可能会在计算机上花费大量时间。这对于完成工作非常有用，只需确保你也花时间在手机上浏览你的网站。把自己当成<b>客户</b>。</div><div class="notion-text notion-block-1ae3ee7af39d8069bbc2fa7340d7c4c3">如果你发现自己的连接速度较慢，那么这是浏览站点的最佳时间。如果你在慢速连接上测试你的网站，但它仍然很有趣且易于使用，那么你的性能将很出色，并且你将在任何连接上实现最大转化。
<b>思想实验</b>：最后一次经历完整的渠道是什么时候？在手机上？就像整个漏斗一样：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d806da4d0d01ee2aac219" style="list-style-type:decimal"><li>搜索产品</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80b79811c6174d4d0c33" style="list-style-type:decimal"><li>点击你的商家信息（查看与其他人相比Google的外观）</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80048040f88a135ac09d" style="list-style-type:decimal"><li>与你的网站互动，“了解你的品牌”</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8079a740cbcaab10de08" style="list-style-type:decimal"><li>添加/删除产品到购物车</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d802c9cc9f3c3815e8370" style="list-style-type:decimal"><li>放弃你的购物车</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d803cb719f2d429192a96" style="list-style-type:decimal"><li>重新定位（通过电子邮件，FB，IG等）</li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80498667e1c6144c47a9" style="list-style-type:decimal"><li>回到你的网站并完成购买</li></ol><ol start="8" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80d9b188deafced8a1a2" style="list-style-type:decimal"><li>获得你的购买后电子邮件</li></ol><ol start="9" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8003969fc0896740b1e6" style="list-style-type:decimal"><li>收到你的产品</li></ol><ol start="10" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80c1a6ffd367cf78de8a" style="list-style-type:decimal"><li>拆箱并阅读产品包装</li></ol><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80da8ae1f19e6015d06c" data-id="1ae3ee7af39d80da8ae1f19e6015d06c"><span><div id="1ae3ee7af39d80da8ae1f19e6015d06c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80da8ae1f19e6015d06c" title="七、SEO 和营销优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">七、SEO 和营销优化</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d809ba681fce7516ca0f8">在 Shopify 上优化网站的 SEO 和集成营销工具是提升流量和销售的关键。以下是从开发和运营者的角度出发的最佳实践。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d808c8c46c5cb9cac1eef" data-id="1ae3ee7af39d808c8c46c5cb9cac1eef"><span><div id="1ae3ee7af39d808c8c46c5cb9cac1eef" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d808c8c46c5cb9cac1eef" title="1. SEO 优化"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1. SEO 优化</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d807ba128d5cddd71ca6f"><b>关键词研究</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80709243e0020e7182a7"><li><b>使用工具</b>：使用 Google Keyword Planner、Ahrefs 或 SEMrush 进行关键词研究，找到与您的产品和行业相关的高流量关键词。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80448e67e48e69221ba0"><li><b>长尾关键词</b>：关注长尾关键词，这些关键词竞争较小，转化率通常更高。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80079f2cdc6f6dfbd08d"><b>网站结构优化</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e98d62c88eb2e9b8f9"><li><b>清晰的 URL 结构</b>：确保 URL 简洁且包含关键词，例如 <code class="notion-inline-code">yourstore.com/collections/shoes</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d9aea6e33337d596dc"><li><b>站点地图</b>：创建 XML 站点地图，并通过 Google Search Console 提交，帮助搜索引擎更好地索引您的网站。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80aca97aff0140a5df0a"><b>页面优化</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d7b303cffd6cc10119"><li><b>标题和描述</b>：为每个页面设置独特且包含关键词的标题标签和 meta 描述，吸引用户点击。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80cc9c24fb7cd0bab757"><li><b>头部标签</b>：使用 H1、H2 标签结构化内容，确保搜索引擎能理解页面层次。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80dfbb0cc80ec57e28e9"><li><b>图像优化</b>：为每个图像添加描述性 alt 标签，包含关键词，这有助于图像搜索引擎优化。</li></ul><div class="notion-text notion-block-1ae3ee7af39d8024829ce66d3fde4fe0"><b>内容策略</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c99132d8d762632c71"><li><b>高质量内容</b>：定期发布与行业相关的博客文章，提供有价值的信息，吸引用户并提升网站权威性。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80f183cde96fa69d16b8"><li><b>用户生成内容</b>：鼓励客户撰写评价和反馈，增加网站内容的多样性和可信度。</li></ul><div class="notion-text notion-block-1ae3ee7af39d8050b0bee3b40b36a311"><b>移动端优化</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d809abe91cb53938f29cf"><li><b>响应式设计</b>：确保网站在各种设备上均能良好显示，Google 优先考虑移动友好的网站。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8083a314d9eee9536dce"><li><b>页面加载速度</b>：优化网站性能，确保快速加载，使用工具（如 Google PageSpeed Insights）检测并改进速度。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8037841ce5c05ddbc767" data-id="1ae3ee7af39d8037841ce5c05ddbc767"><span><div id="1ae3ee7af39d8037841ce5c05ddbc767" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8037841ce5c05ddbc767" title="2. 集成营销工具"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2. 集成营销工具</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d800d9873ee3b4df1bc6e"><b>电子邮件营销</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d805388cfc79bd3ad676a"><li><b>集成邮件服务</b>：使用 Shopify 的电子邮件营销应用（如 Klaviyo 或 Mailchimp）进行客户管理和活动推广。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804093dfce5cf3450a94"><li><b>个性化邮件</b>：根据用户行为（如购物车放弃、浏览历史）发送个性化邮件，提高打开率和转化率。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8078bea9c78c24d7f59e"><li><b>自动化工作流程</b>：设置自动化邮件（如欢迎邮件、生日优惠），增强客户关系。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80c989f5e261402ae892"><b>社交媒体推广</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8062b53fd2d47e5f8532"><li><b>社交媒体整合</b>：将社交媒体链接集成到网站，鼓励用户关注您的品牌。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80698e1cfb5f99662784"><li><b>分享按钮</b>：在产品页面和博客文章中添加社交分享按钮，方便用户分享内容，增加曝光率。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8036bd65c0db3005dde0"><li><b>定期发布内容</b>：在社交媒体上定期发布有吸引力的内容（如产品图片、促销活动），吸引用户互动。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80a483affe5bf6cfa1ed"><b>付费广告</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80768989e475247aca01"><li><b>Google Ads 和 Facebook Ads</b>：利用 Google Ads 和 Facebook Ads 进行定向广告投放，吸引潜在客户。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80caa679f1c194efd257"><li><b>再营销策略</b>：使用再营销广告，针对之前访问过您网站的用户，提高转化率。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80a69984f84432b640c6" data-id="1ae3ee7af39d80a69984f84432b640c6"><span><div id="1ae3ee7af39d80a69984f84432b640c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a69984f84432b640c6" title="3. 数据分析与调整"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3. 数据分析与调整</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d804d998fc93e8a0b52f3"><b>使用分析工具</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8012a8dee419cef13dd2"><li><b>Google Analytics</b>：集成 Google Analytics，监测流量来源、用户行为和转化率，获取数据驱动的洞察。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d803db893c1dcb5053608"><li><b>Shopify Analytics</b>：利用 Shopify 内置的分析工具，跟踪销售和客户行为。</li></ul><div class="notion-text notion-block-1ae3ee7af39d8049a1c2f9ccb07dbc20"><b>定期审查和优化</b></div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d805d9091f61bb7999c01"><li><b>A/B 测试</b>：进行 A/B 测试，比较不同页面设计和内容的效果，优化用户体验和转化率。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80538137eff2790f8518"><li><b>调整策略</b>：根据数据分析结果定期调整 SEO 和营销策略，确保持续改进。</li></ul></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shopify Admin Design设计指南]]></title>
            <link>https://hrope.cn/article/shopify-design</link>
            <guid>https://hrope.cn/article/shopify-design</guid>
            <pubDate>Tue, 02 Jul 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Shopify 的应用程序设计指南，展示了出色的 Shopify 应用程序是什么样的以及它们是如何制作的。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1ae3ee7af39d801b94dafc1780aab256"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-1ae3ee7af39d805f8047de186f30062c">Shopify 的应用程序设计指南，展示了出色的 Shopify 应用程序是什么样的以及它们是如何制作的。</div><div class="notion-text notion-block-1ae3ee7af39d80d4b991c0b071cee32f">遵循应用程序设计指南并满足其他适用条件的应用有资格获得 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/apps/store/built-for-shopify">Built for Shopify</a> 状态，获取Build for Shopify认证后，应用将在 Shopify 应用商店中获得优惠待遇，并向商家表明符合官方的质量和信任标准。</div><div class="notion-text notion-block-1ae3ee7af39d8060acf0f48cc553da7d">官方文档及设计、开发侧资料：https://polaris.shopify.com/getting-started</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d808eb53addaced9f1f19" data-id="1ae3ee7af39d808eb53addaced9f1f19"><span><div id="1ae3ee7af39d808eb53addaced9f1f19" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d808eb53addaced9f1f19" title="一、设计准则"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、设计准则</span></span></h2><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d800dbd8eccfca03c6bab"><li>专为 Shopify 打造</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d801d968fc1d47bc40264"><li>更好的商家体验</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8096a86effb8489b706d"><li>移动端优化，满足自适应</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8067835acd284167611d"><li>交互操作访问是最佳体验</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d80e7925dcd7945734050" data-id="1ae3ee7af39d80e7925dcd7945734050"><span><div id="1ae3ee7af39d80e7925dcd7945734050" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80e7925dcd7945734050" title="二、Admin应用结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、Admin应用结构</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d800fb18cd378c73f3e31" data-id="1ae3ee7af39d800fb18cd378c73f3e31"><span><div id="1ae3ee7af39d800fb18cd378c73f3e31" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d800fb18cd378c73f3e31" title="1. 页面结构分析"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1. 页面结构分析</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8040aee7def4e28082c2">应用程序的结构可与 Shopify 后台无缝协作，并为商家提供直观的体验，信息构架分别如下，序号表示的模块内容：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80c3a5b7e3dc69340ac6" style="list-style-type:decimal"><li>后面侧边栏菜单</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80558fddd262dd256f05" style="list-style-type:decimal"><li>应用导航</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8068baa6d8a37c0d7f9e" style="list-style-type:decimal"><li>应用标题</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80dca74fed3fd92e73cb" style="list-style-type:decimal"><li>页眉</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8014a73df2cb00b4ddbe" style="list-style-type:decimal"><li>菜单</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8098802efc28819f9426" style="list-style-type:decimal"><li>应用正文</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8084bc66ce3f4bd6ae91"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YWE0ODdkZjA2NzZmOTQ3OTUxODljZTRhNGY2Zjc1MjlfY1F6UTlaV1MwZmxGNnY1QzVDQkVjeVVzSzJVUk1BWUxfVG9rZW46Q2JvbmI2RGozb3BpbmN4T00wN2NpVTdWbkllXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8084-bc66-ce3f4bd6ae91" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80c0a356f7250cd96145">严格遵循信息流内容，可以提供出色的商家体验，如图：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f895e9eb6cf7e7c480"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OGQ2ZjcyYjUxZDRkZDg4ZDM1ZGZiZmE3N2ZkYjg5ZTBfamN3M0IwakU5RmJwcUFGdWFkRlFrUHZ3YzNTZjZkallfVG9rZW46SjRuWGJXWncyb3FZSlp4akZSTmNXa2FvbkliXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f8-95e9-eb6cf7e7c480" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d804bb707eeee10ace305" data-id="1ae3ee7af39d804bb707eeee10ace305"><span><div id="1ae3ee7af39d804bb707eeee10ace305" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d804bb707eeee10ace305" title="模态弹窗分析"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模态弹窗分析</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8051aafde0858521a4c9">模态弹窗是Admin常用的方式，其中分为数据操作和提示等使用场景，需要注意的是全屏的模态弹窗是针对特定沉浸式任务的专用环境，信息结构主要分为：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80619366e113dd5bb940" style="list-style-type:decimal"><li>模态标头</li></ol><div class="notion-text notion-block-1ae3ee7af39d80a9a1b0dc2867225a23">全屏模态弹窗可以包含一个 top bar 元素，用于呈现主要和次要操作。</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8014ba58c4031ea48696" style="list-style-type:decimal"><li>应用正文</li></ol><div class="notion-text notion-block-1ae3ee7af39d809ca245c25ae02bf75a">在模态弹窗主体中，您可以添加所有内容以获得全屏体验。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8081b556f15bd8248bdb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NGNmYWQwN2EyYThiOWYwZmMxMjM0MGUwMGYzMDM2ODJfVUhKbUdCWThhY2Q2R3FJSEhaaUtGc1RueW8xSm1ReUtfVG9rZW46VGhJUGJWQmVxb0ExbnJ4SHdKTWNUT2l5bklkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8081-b556-f15bd8248bdb" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80c398b0f4b5f565484d" data-id="1ae3ee7af39d80c398b0f4b5f565484d"><span><div id="1ae3ee7af39d80c398b0f4b5f565484d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80c398b0f4b5f565484d" title="2.3 何时使用模态弹窗"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.3 何时使用模态弹窗</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d805aa6b9fef321aa5812">当商家需要完成重点任务时，请使用模态弹窗，根据任务的复杂度，是否选用全屏模态弹窗，可利用完整视区可以改善用户体验，使用案例：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80db9463e435730b325a"><li>复杂的编辑体验，例如用于创建新闻稿内容的编辑器</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8014a37bd0049777c121"><li>沉浸式体验，例如用于裁剪和修改图像的编辑器</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80778b32f952ee7480a6"><li>预览，例如向产品页面添加元素并允许商家预览更改的应用程序</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8058bbddc4dafc7bd071" data-id="1ae3ee7af39d8058bbddc4dafc7bd071"><span><div id="1ae3ee7af39d8058bbddc4dafc7bd071" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8058bbddc4dafc7bd071" title="2.5 推荐行为"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.5 推荐行为</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f38383f139b22ff53b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZjdjODk3ZTQ0MTg0NzNkYWE3Njk2ZjZkYmQzOGI1NDJfYnVkYjBUN3NyUTFpSEZDNThsTk4xZThWMkJJTXpGTW1fVG9rZW46WTQ2NmJMWE5ib2YwSjF4Um8yc2M2a2VQbmJjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f3-8383-f139b22ff53b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80618a12ffdaac96f25b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDgwZjE0ZWExOTZkMDIxYWE0YzIwYjU2MzMwZTZiYWRfMnFPS3FqZVZ5ek9oc0Z6dG8zbFZsYzJTRUs4U0ZnN0xfVG9rZW46VHBVNmJjSDFpb1JrcVV4dW91NGNxVHBsbmNlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8061-8a12-ffdaac96f25b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d806ba912c2685ef278fc">应用程序的主要导航应显示在模态框的顶部栏中，并且主要操作不得重复</div><div class="notion-text notion-block-1ae3ee7af39d8025be69dee702f255a3">如果有未保存的更改，请在退出全屏模式之前提示商家保存。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d807db980fe5eb84da223" data-id="1ae3ee7af39d807db980fe5eb84da223"><span><div id="1ae3ee7af39d807db980fe5eb84da223" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d807db980fe5eb84da223" title="Admin UI 扩展"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Admin UI 扩展</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d807d91d9faa079142810">使用Admin UI 扩展与 Shopify Admin更深入地集成，并创建无缝的商家工作流程。可以集成以下扩展：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d802daaa4e470cc0387e3" style="list-style-type:decimal"><li>Admin block</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d804aa85cc76404477553" style="list-style-type:decimal"><li>Admin 操作</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80218e4addd07ff63c51" style="list-style-type:decimal"><li>Admin 链接</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80ddba5cd1d20e5df5b0" style="list-style-type:decimal"><li>批量操作</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b39803d9010a8ccc57"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=Mjk4NWNjNTM0MDBkNjI3Y2RmZTAwNTdkMjkwMWI4ZTZfN1ZSdHdtYmVJUWxUYk5vOHVTc05KbDlWam91RmZoemRfVG9rZW46WUNqU2JhSUtKb1luc2V4WUV2dGNvbjlWbnllXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b3-9803-d9010a8ccc57" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d808d81c5ea3dc008dcc3" data-id="1ae3ee7af39d808d81c5ea3dc008dcc3"><span><div id="1ae3ee7af39d808d81c5ea3dc008dcc3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d808d81c5ea3dc008dcc3" title="3.1 可时使用admin blocks"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.1 可时使用admin blocks</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80d29dc7fb7bd5bca305">使用admin blocks扩展在资源详细信息页面的上下文中提供应用的功能或数据。商家可以选择将您的应用块添加到页面，并将其排列在页面布局中（如：产品、订单、客户详细信息页面）。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d808e90ffc14ee68bf888"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjA2ODFjYzgwY2M4Zjk0OGUyODExNWM1NDM4NzgyNzlfQmZ4Z1Vjem9JMGExYTE0dTEwWUk1Yzg1elcwektiNnJfVG9rZW46SHc2U2JuVXphb1p3WVN4RDJNMmM5ZkdlbkdlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-808e-90ff-c14ee68bf888" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80e49730d525dd07461a" data-id="1ae3ee7af39d80e49730d525dd07461a"><span><div id="1ae3ee7af39d80e49730d525dd07461a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80e49730d525dd07461a" title="3.2 推荐行为"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.2 推荐行为</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8007b3b7f8c9837a661e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ODY2MGZkY2I0MTUyZDVjNjhkYjZkNWUyYjQ3NDZlZWRfRTFOVW9IM2ZJTzZoN3cxT2xlaWF5MVdnRDRnTzR0bFBfVG9rZW46QWpFRmJ2aWNPb2NPRkN4VnZFSmM4TjA1bjRjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8007-b3b7-f8c9837a661e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d809dbf41e0432ff164b9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZmU4ZmNiOTUxNjg4YzA1ZTk1NjBhMjMxMGJhYjEyODRfYVdZZTZYNGtKQ2RTckhISWdHaFcyTmQ4WktGaHFRYnlfVG9rZW46QTZ3cWJFeVp2b1BXSWl4YW56eWN1RjZobmdjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-809d-bf41-e0432ff164b9" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8054ae64d6e37ad24a31">内容的高度必须小于 <code class="notion-inline-code">600 像素</code>，以避免应用程序块过高。如有必要，请实施分页以确保满足此要求。</div><div class="notion-text notion-block-1ae3ee7af39d806e8704e8e45051e1be">输入字段必须始终可见。如有必要，应用块应触发应用操作，以确保满足此要求。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d800f8c20c52719c5835b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NGJhMjg2NjRlYTYyNzZiYTUwYzMwNGViNzliZDk4ODFfbmc0VjZSZVhsVUY0SjlWVHhOT25hYVk2NmNOTnBSbVpfVG9rZW46QzBTdGI3VDh6bzhzT014Tlp0OWNQdlVObmxlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-800f-8c20-c52719c5835b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e0acacd2ff834af76c">数据块必须具有空状态，以告知商家您的应用数据块的作用。例如，它应该告诉商家区块中将显示哪些数据。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d808c897ad86a2eee4ecd" data-id="1ae3ee7af39d808c897ad86a2eee4ecd"><span><div id="1ae3ee7af39d808c897ad86a2eee4ecd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d808c897ad86a2eee4ecd" title="三、布局"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、布局</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d801f9fb1e175b2516ae7">布局设计是在页面上排列文本、图像和形状等视觉元素的过程，应用程序具有多种可用布局，这些布局使应用正文内容适应各种屏幕大小和设备类型。为手头的任务选择合适的布局将有利于您应用的商家体验。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d805e8b14f29e24e51b1c" data-id="1ae3ee7af39d805e8b14f29e24e51b1c"><span><div id="1ae3ee7af39d805e8b14f29e24e51b1c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d805e8b14f29e24e51b1c" title="响应式布局"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">响应式布局</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8047a671ee9151eef232">Polaris <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/components/layout-and-structure/layout#all-examples">Layout</a> 组件提供内置的响应能力。以下断点在 Shopify 后台中应用。在构建应用程序时，请考虑这些因素。</div><table class="notion-simple-table notion-block-1ae3ee7af39d805a9ce2d9de194aa50d"><tbody><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8051b7cdf6a22b5944a5"><td class="" style="width:120px"><div class="notion-simple-table-cell">断点</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">最小视图大小</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">最大视图大小</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80adb5c6c61f105f7a31"><td class="" style="width:120px"><div class="notion-simple-table-cell">xs</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">489px</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80a8b79dd752f097dbe1"><td class="" style="width:120px"><div class="notion-simple-table-cell">sm</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">490px</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">767px</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8018add2cc8835092a81"><td class="" style="width:120px"><div class="notion-simple-table-cell">md</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">768px</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1039px</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80cda100e46b37903a40"><td class="" style="width:120px"><div class="notion-simple-table-cell">lg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1040px</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1399px</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d804bbf33e317c8f2c67c"><td class="" style="width:120px"><div class="notion-simple-table-cell">xl</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1440px</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">∞</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b28963da4922622f0b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ODMyOTc4NzE1Nzk4MTIzZmZhZDUxZDc1NzM1ODJiMDJfdGt1UHdsdlJMR0hEREtOSHdGSEJ4dE5sWUI0N2I5eUtfVG9rZW46QjZKWGJVYjFqb0w1ZlF4Uk53NmNEN0c5bk1iXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b2-8963-da4922622f0b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d801799add08ef4559915">将应用设计为响应式并适应不同的屏幕大小和设备。这确保了跨各种平台的无缝用户体验。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d809a970ac926335b0400" data-id="1ae3ee7af39d809a970ac926335b0400"><span><div id="1ae3ee7af39d809a970ac926335b0400" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809a970ac926335b0400" title="应用主体宽度"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">应用主体宽度</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80cbbbabe37465710912">Polaris Page 组件是一种简单的方法，可以将应用程序正文与 Shopify 后台的其余部分保持一致，并随着时间的推移简化布局的更新。下表显示了应用程序正文宽度的建议大小。</div><table class="notion-simple-table notion-block-1ae3ee7af39d8057adf5c60f63644292"><tbody><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80fc8393f49216dacce8"><td class="" style="width:120px"><div class="notion-simple-table-cell">断点</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认应用正文宽度</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">处理方式</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80379170eeb9fe559feb"><td class="" style="width:120px"><div class="notion-simple-table-cell">xs</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">灵活，始终全宽</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80549e1cde0000f53616"><td class="" style="width:120px"><div class="notion-simple-table-cell">sm</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">442px – 719px</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">灵活，始终全宽</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80ab9362e231e116d0a9"><td class="" style="width:120px"><div class="notion-simple-table-cell">md</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">480px – 751px</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">灵活，始终全宽</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d8052a035ed6102fe6ea8"><td class="" style="width:120px"><div class="notion-simple-table-cell">lg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">752px – 950px</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">灵活，然后固定宽度为 <code class="notion-inline-code">998 </code>px</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d806aac1ad5cf02224563"><td class="" style="width:120px"><div class="notion-simple-table-cell">xl</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">950px fixed</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">固定宽度</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80668c5cffa59b3a210e" data-id="1ae3ee7af39d80668c5cffa59b3a210e"><span><div id="1ae3ee7af39d80668c5cffa59b3a210e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80668c5cffa59b3a210e" title="布局设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局设置</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8088be6ec6d474ff69c8">Polaris <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/components/layout-and-structure/layout#all-examples">Layout</a> 组件提供了各种布局来匹配应用程序的复杂性。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80bf864dca361d3b6f56" data-id="1ae3ee7af39d80bf864dca361d3b6f56"><span><div id="1ae3ee7af39d80bf864dca361d3b6f56" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80bf864dca361d3b6f56" title="3.1 单列布局"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.1 单列布局</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80f89668c113426af428">单列布局使商家能够从上到下扫描内容，并专注于一项明显的任务，大多数情况下，应用程序的主页在默认宽度的页面中使用单列布局。但是，如果您的应用程序感觉更像一个仪表板，那么您也可以使用两列等宽或三列布局。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8028b4fae225e93f8d33"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OGFhODdlY2Y4OWUxZjY0YTA0MzM4ZWIwM2Y2YjE4ZDhfNEM1RmNWajh5S3lIUUpncURkTGRybUJUbDB6ZndObHVfVG9rZW46QVdqZWJETjJLb0NrZ2d4M1VmaWNUZWZCblZlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8028-b4fa-e225e93f8d33" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80efb98fc8d935f89884">对于<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/patterns/resource-index-layout">资源索引页</a>，请使用全宽页。当商家处理包含许多列的数据列表时，这非常有用。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80d3b5aefa20bc0613bf" data-id="1ae3ee7af39d80d3b5aefa20bc0613bf"><span><div id="1ae3ee7af39d80d3b5aefa20bc0613bf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d3b5aefa20bc0613bf" title="3.2 两列布局"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.2 两列布局</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d802f8cf2fd2876aa003e">两列布局允许商家一次查看更多内容。这对于可视化编辑器或内容密集的页面很有帮助。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80fcae83e634413e0f33"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YmU3YjM0OWM3ZDQ4ZGYyMTdiNDUzZmE1YTZjM2JlNjVfUHVVa3ZEUVNTWEU2NHoxd0FlM2d5UmRpNHJNWlBXaDVfVG9rZW46RjVrb2J3ampzb0hPOTF4NnhTeGNDTlFnbmtoXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80fc-ae83-e634413e0f33" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80f9a425da71814497cd">对于可视化编辑器，请使用两列布局。这允许商家实时预览他们的编辑结果。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80ef8c63e1865009a2e2" data-id="1ae3ee7af39d80ef8c63e1865009a2e2"><span><div id="1ae3ee7af39d80ef8c63e1865009a2e2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80ef8c63e1865009a2e2" title="3.3 设置layout"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.3 设置layout</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8000aabed8e5e9451c42">通过设置layout，商户可以快速扫描和查找彼此相关的设置组。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80368055c36c4b184667"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MmFmYThmZWI0ODU4NTFlNTQwNzY2ZWRlOGE2N2ZmMjRfRkMyMEgwQ2l1eE1Sc1FYY21zUXJJbFNIckh2YkNDbzBfVG9rZW46RTlZSmJ5b0Rxb1IzZGd4RzNRSWN4OWlibmlkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8036-8055-c36c4b184667" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80d78922ca1526c3d9e6">对于设置页面，请使用<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/patterns/app-settings-layout">应用设置布局</a>为商家提供有关应用配置选项的清晰上下文。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80f7b119d52a933dab9d" data-id="1ae3ee7af39d80f7b119d52a933dab9d"><span><div id="1ae3ee7af39d80f7b119d52a933dab9d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f7b119d52a933dab9d" title="间距"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">间距</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d808db265f57392866572">间距通过使界面组件保持位置正确且具有一致的视觉节奏，帮助您的应用程序保持愉快的体验。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d806ab38ccbaed8b00b55"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NGYwNzY0ODMwYTc2YWUwMTY0NzI5ZTlkYjk0MmRhNjlfdjNMMVc2VkxXaDR1M092anFUMzRYckowZzFDV0dMZmRfVG9rZW46SHlrVWJnOGk5b29aU2Z4M2tvWWMyS2ltbnBoXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-806a-b38c-cbaed8b00b55" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80649f17c05f3d883565">Shopify 后台建立在 <code class="notion-inline-code">4px</code> 间距网格上。遵循此网格是提供无缝应用程序体验的好方法。您可以使用 Polaris spacing tokens来实现此目的。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80cba686f992991842ad" data-id="1ae3ee7af39d80cba686f992991842ad"><span><div id="1ae3ee7af39d80cba686f992991842ad" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80cba686f992991842ad" title="信息密度"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">信息密度</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8098ade0c437d35b0176">布局中元素的密度会极大地影响应用的可读性和易用性，通过在正确的时间为正确的任务提供正确的密度，使您的应用程序高效且易于使用。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8084b953fbcca3f32b1a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MTdkMGM5NGE3YmZjYmRiMmZmM2MwYzEwOTI1NzdmMjlfZDZyTEdENFBZNWNadFRzN2dSNzZBaWtnNjRhVlVvdmZfVG9rZW46Q2RlZWJqWU16bzJvbWJ4TlhNNWNiM2w3blZkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8084-b953-fbcca3f32b1a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80dab582cbf3092880b6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OWZlZGMzMGFiY2U1MTE1ZDgzYWI3MjM3ODViZTUxZmFfTE5ScmRJM1JOWHpRUFhoZThwMjNwbndjV29FVG1taFlfVG9rZW46SmRPY2IwTlVPb3NKYmh4YWVEc2N2dzRJbmxnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80da-b582-cbf3092880b6" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80a0b447feaa63fb8fc7">对于低密度布局，请使用较宽松的间距。对于高密度布局，请使用更紧密的间距。</div><div class="notion-text notion-block-1ae3ee7af39d80dc8451f0ca0f91fe02">不要更改单个页面中的信息密度，否则您的应用程序可能会感觉脱节。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80f591c1d28de18a40cb" data-id="1ae3ee7af39d80f591c1d28de18a40cb"><span><div id="1ae3ee7af39d80f591c1d28de18a40cb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f591c1d28de18a40cb" title="容器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">容器</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80e787b0eb0c999c4d7f">应用程序的大部分内容都存在于容器中。容器对内容进行分区，并在界面的各个部分之间创建自然的层次结构。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d806a849acce2765ccc1b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDA1NTNlYjk1Y2NmMzIzYjliOTRhMmJlM2FiZGNjMGVfd1Bhdk9MRFRnYzlQTUUyNGk1RVliN0F6aFFSZ3dWRjRfVG9rZW46UjdLRmJSQ0pGb0hFcE94R1NBZmNzY05EblpnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-806a-849a-cce2765ccc1b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80598fa1c89d07eba12d">不要将文本段落直接放在背景上。这会降低可读性，并使商家难以扫描页面。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d808bae3ed3d0f6bdb6a5" data-id="1ae3ee7af39d808bae3ed3d0f6bdb6a5"><span><div id="1ae3ee7af39d808bae3ed3d0f6bdb6a5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d808bae3ed3d0f6bdb6a5" title="6.1 使用卡片"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.1 使用卡片</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80cea621f4fe120a33f2">卡片可以构建应用的内容，以便商家可以轻松扫描信息。卡片充当容器，可以是静态的，也可以是交互式的。Polaris <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/components/layout-and-structure/card">Card</a> 组件提供了一种简单的方法来细分内容，同时仍遵守 Shopify 的应用程序设计指南。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8091ab39d3a942659891"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OTQ5MmI4OGQ1N2JiYmEzYmQwMGVkMmRmYTFkNjU1YjhfUHpmR1lpdnM0RXZGVXNpblBEeEk5NzZFaUdBT2xBYlNfVG9rZW46SmtiMGI4dXlwb1h4TUR4TERJdWNOODFVblRjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8091-ab39-d3a942659891" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d804d9dfff9620a31240c">将应用的大部分内容放在容器（如卡片）中。这创造了视觉结构和节奏，帮助商家快速找到信息。复杂的组件或图像不一定需要位于容器中。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8090bbebd23344787261" data-id="1ae3ee7af39d8090bbebd23344787261"><span><div id="1ae3ee7af39d8090bbebd23344787261" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8090bbebd23344787261" title="6.2 使用表格"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.2 使用表格</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80f2a383f5a125146dfd">表格有助于汇总许多对象实例。使用 Polaris Table组件进行相对简单的摘要，使用 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/components/tables/index-table">Index </a>Table（当您要显示大量数据时）。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d807d8d48e6bdb1c8cfc9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=M2ZiM2NkNmE1OWUzN2IxYWE2ZTdlYjNmZWU2ZjE3YWVfZHFIWTlIaVU3VGpWOFhvNlM0YWM5dThZU1hNT29ETGxfVG9rZW46SXB2dWJva2s3b1U0Mld4OExUUWNYQ0V1bkdoXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-807d-8d48-e6bdb1c8cfc9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d809e8bcfd4f5df9953e1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OTRkMWZlMmRjOTVhMGI2OTdiMmFiZDg3YzY1ODU2NTdfUTFMaFZ6cUZnQ0xDTjJtcjFtN2NkNm5IS2Z2NHB2cnlfVG9rZW46SHBDRWJESlpNb21zZnN4OTE3S2NlZXZKbmloXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-809e-8bcf-d4f5df9953e1" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d804cb9f9f9a07725c05c">表中的操作必须使用辅助操作样式，例如文本按钮、次要图标或下拉菜单。不要在表格中使用主要样式按钮。</div><div class="notion-text notion-block-1ae3ee7af39d80e297bdde2d8814e165">当一行中有许多单元格时，表格很容易在视觉上变得混乱。通过仅在该行悬停或处于焦点状态时显示操作，减少表行中的混乱。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d8036a3b8c8eddcd9fffe" data-id="1ae3ee7af39d8036a3b8c8eddcd9fffe"><span><div id="1ae3ee7af39d8036a3b8c8eddcd9fffe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8036a3b8c8eddcd9fffe" title="四、视觉设计"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、视觉设计</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d8086a3cec0c50cc00aa3">视觉设计通过战略性地使用图像、颜色、字体和其他元素来关注应用程序美学，颜色、字体、图标、插图和许多其他视觉元素对应用程序的可用性有很大影响。出色的应用程序使用强大的视觉设计来提升商家体验。</div><div class="notion-text notion-block-1ae3ee7af39d80d98469e625ad5e762c">了解我们在 Shopify 后台中使用的样式，例如颜色、排版、间距、阴影、边框等，请参阅 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/tokens/color">Polaris 样式</a> Tokens。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80938ae7c67fef188b4f" data-id="1ae3ee7af39d80938ae7c67fef188b4f"><span><div id="1ae3ee7af39d80938ae7c67fef188b4f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80938ae7c67fef188b4f" title="颜色"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">颜色</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d808ead75d4264b776a24">您的应用存在于 Shopify 后台中，因此您应该考虑符合 Polaris Color Roles的颜色。与文本或交互式元素一起使用时，颜色还应遵循最小对比度。</div><div class="notion-text notion-block-1ae3ee7af39d80c3b964e7a34f043e62">虽然颜色在设计中很有用，但请避免仅依赖颜色来提供上下文。对于错误状态、成功状态或系统警告等<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts">警报</a>，请包含说明所发生情况的消息或图标。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80879ee1d41a76d55c59"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NWJmMjc0ZjcyYTg1ZGE3YjA0NjE2NThhZDBhZmQyMzZfdTh4aElJaFh0T0VNT1BBUDJEMlp4R1Y5S0x6WWI1MmJfVG9rZW46QUlzbWJUcThtb0d6Ykd4dzVUdmNrV0ZGbmVkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8087-9ee1-d41a76d55c59" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e19c51d8698fdceede">以清晰易读的中性色（如黑色或深灰色）显示大部分应用程序文本。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8038b045f05df03e91b2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjlhYzMwZWMzODg5YzVhM2VmYWE0YzQxMDcwNjMyMTVfSUNqZnNKWWFMTmQyTTk5bUVlRGNVYjlzbG1nZGhvUGFfVG9rZW46SlI2emJKWEx4b1JZSDh4VFNqU2NTNGcybllnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8038-b045-f05df03e91b2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80a38c2ee54891b7deed">应使用绿色 （<code class="notion-inline-code">--p-color-text-success</code> 或 <code class="notion-inline-code">rgba（1， 75， 64， 1）</code>） 来表示状态为积极或操作已成功完成。不要使用绿色来吸引商家或吸引不必要的注意力。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80c4b2e8d7eb180a040e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDYwMjFlNzgxNzViN2VkZjQ0NDdhMzM1YjkwNDQ4MDNfWkdYZWJ6Y2dIRzkyUFlwa3BrQlBiMWROcWJQQVVPV3ZfVG9rZW46V25LRGJzMjYzb3FGWm54SkZoV2NzVUs3bjFiXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80c4-b2e8-d7eb180a040e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d803c84edc074574b4202">黄色 （<code class="notion-inline-code">--p-color-bg-fill-caution</code> 或 <code class="notion-inline-code">rgba（255， 230， 0， 1）</code>） 应用于表示状态处于暂停状态或未完成状态，或突出显示需要商家注意但不紧急的信息。不要对公告使用黄色。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d804e85f5ddea72707bd2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NTdlM2U2NzA5ZTY5NmNiY2UyYjNjZTJmYTMxNzRlOTlfUnVydFFSVjBVY3NsUXJRQ1dTZzBlNWtKMHBpd0k4SmxfVG9rZW46V3cxM2JyeFA4b3ZlRWl4dnhpbmNMYWxNblVkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-804e-85f5-ddea72707bd2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80048b4df05bfc7cbe38">橙色（<code class="notion-inline-code">--p-color-bg-fill-warning</code> 或 <code class="notion-inline-code">rgba（255， 184， 0， 1）</code>）应用于表示状态为“正在进行”、“待处理”，或告知商户需要注意某些事项。橙色是 Shopify 后台中最强的非屏蔽颜色角色。不要将橙色用于“正在建设中”或“即将推出”消息。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80cca31ae713f5890808"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZWZjMzRjOTU5Y2Y2MjQxY2IwYzIyMWJlNjhlNjRhNTNfRHUwMWNjRjhnWkl1cnhGNWNQQVduZVczbW5paVRmejZfVG9rZW46SHV5amJ6aWdxbzJPWU54M01aNWNpOHdXbk9lXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80cc-a31a-e713f5890808" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8099a5bfd61da96c5775">红色 （<code class="notion-inline-code">--p-color-text-critical</code> 或 <code class="notion-inline-code">rgba（142， 11， 33， 1）</code>） 只能用于传达暗示某项操作不可能、被阻止或已导致错误的消息。不要使用红色来吸引商家或吸引不必要的注意力。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80e1acb8c30d09d049be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ODQ2MDcxMTZhNWI3MjliZTFjYjU5MWY3NjUwNDNhZmRfb3lOTGc2dXZlTml4Z01NYjJoUDlKdE1vMU5NUjlFTzhfVG9rZW46QUF5RGJRVktub1A1aHZ4QUZheGNadWpmbm9nXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80e1-acb8-c30d09d049be" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80c8b961cffed17f7951">背景到文本的对比度必须至少为 4.5：1 才能<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html">符合 WCAG AA</a> 标准。使用 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://webaim.org/resources/contrastchecker/">WebAIM Contrast Checker</a> 等工具测试您的比率。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d800c833ac2c8012401fe" data-id="1ae3ee7af39d800c833ac2c8012401fe"><span><div id="1ae3ee7af39d800c833ac2c8012401fe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d800c833ac2c8012401fe" title="App图标"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">App图标</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d809584b8f968d957b69d">应用图标显示在 Shopify 后台的应用页面上的许多接触点中，例如 Shopify 应用商店中。Shopify 将您的应用程序图标作为 SVG 呈现到管理员左侧导航栏中。</div><div class="notion-text notion-block-1ae3ee7af39d80f4966ef6cd16a6d8ea">应用程序图标将用于白色和浅灰色背景，因此请避免使用类似的颜色，否则可能会使您的图标难以辨认。请参阅 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/tokens/color">Polaris 样式令牌</a>，了解 Shopify 管理员颜色值。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80ddab15ec476883e339"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OTdjYWNjZjk4ZGJhMWZjMGFlZmJiOGJjN2MwMmRkNDVfNHZkY2VmdWkza3BNREVJTG1TRG5XZFNJelRhenRPd1ZfVG9rZW46RUR1RmJ6djF1b0c2NTZ4VXVVWGNnbXNWbmhnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80dd-ab15-ec476883e339" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80a6a6cfeb811768dbca" data-id="1ae3ee7af39d80a6a6cfeb811768dbca"><span><div id="1ae3ee7af39d80a6a6cfeb811768dbca" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a6a6cfeb811768dbca" title="2.1 图标设计规范"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.1 图标设计规范</span></span></h4><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80f3bf3bdfa47c09e9d0"><li>PNG 或 JPG</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d804188d2e2424967816d"><li>正方形 <code class="notion-inline-code">1200 像素 × 1200 像素</code></li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80088917ca175b70c9df"><li>无圆角</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80639fe2e147cabc7bd0"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/store/requirements#2-app-icon">其他 Shopify 应用商店图标指南</a></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8041b107c136f47a0140"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OGI0MjVhYjA0NTM5OWJjNzg5OTc0MWRmNmY0Njg2NjBfMGc1Q3k2Zjh2WkZSM3QxUnRYc2tad21ZSnQzWEJYOVdfVG9rZW46S2x5ZmJBSHp4b2hJS1R4T21mT2NEaHhBbmNnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8041-b107-c136f47a0140" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80d583ebf4c5524e91fb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OGE1Y2ViODNhOWY0MDQxMDk4Y2QxYjdlMzlmMjRkODlfOEVXNHIza2xza2NMMnV5YU9PQlRMVVhvaUtaOUpXMERfVG9rZW46RGZNbWJDUm1Pb2Z1dlB4N1R4Z2NaSWJJbnViXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80d5-83eb-f4c5524e91fb" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8071b2d9e0e022b4cdba">设计您的图标以填充垂直或水平空间的 10/16（<code class="notion-inline-code">1200 像素</code>图标为 <code class="notion-inline-code">750 像素</code>）。</div><div class="notion-text notion-block-1ae3ee7af39d802d98ddffa33b76d71c">将图标设计为最多填充垂直或水平空间的 12/16（<code class="notion-inline-code">1200 像素</code>图标为 <code class="notion-inline-code">900 像素</code>）。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8049b04dfe7312080d62"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDljMjkzYTkzMGRiZTM4ZDIwMzg2NjJmNjBhZmExM2NfaUExZllRbWNOdlA0UEg4aG1zaVhEQXpvQ1AwR0ozMU5fVG9rZW46S2NINWJuUkxYb1NoMXN4UWN0YmNUY3ltbmtlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8049-b04d-fe7312080d62" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80189bcfcd6d3ac0ed61">在图标周围留出 1/16（<code class="notion-inline-code">1200 像素</code>图标为 <code class="notion-inline-code">75 像素</code>）的边距，该边距没有任何视觉元素。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8044ade0ede452469845"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YWRkODRhYjUwYTlkODljOGY0NWMzMTQwN2JjYmY4Y2ZfSEZhbDFlREdiRk5MUUhTbVI2UGp3QTNXNjBROW9yTXpfVG9rZW46WGthNGJxd1BVbzVTVHJ4QXpsbGMzUVJHbjhmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8044-ade0-ede452469845" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8057baf5db629f77bb8e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTdhNmRkMDFhYWQxZGIzNzFmY2E2YmNkMGNiOTMyZTlfZEpZeVJCTUZ4RGlVY1FSTmZWZGNDS0dPYURta0ZEQUVfVG9rZW46WlRrNWJvZGZ6b0NBalh4WndqNWMxRks0blVjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8057-baf5-db629f77bb8e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d802ba4d0f0e632703bf8">不要在图标中使用过多的文本。这使得在较小的尺寸下难以识别和读取。</div><div class="notion-text notion-block-1ae3ee7af39d800eb076ed0f883871a6">不要通过使用不属于您的应用程序图标来误导商家。这包括 Shopify logo 的任何部分。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80aaad77de1f38664fdf" data-id="1ae3ee7af39d80aaad77de1f38664fdf"><span><div id="1ae3ee7af39d80aaad77de1f38664fdf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80aaad77de1f38664fdf" title="2.2 图标使用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2 图标使用</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80c0b6c7df13e4e44a9d">图标充当视觉辅助工具，帮助商家完成任务。它们通常与文本配对，以使您的应用程序更易于使用并消除某些交互的歧义。您可以使用 Polaris icons节省时间，也可以按照 Polaris 图标指南创建自己的图标。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8051967dd3f617c34d87"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YzM1MTZhZDI2MDg5ZGU2NWUxNmZlNjJiYTdmMGI4MmRfU2FWcThSZExydUVVWXgzVjkyWE5TNG41MFpOQkFWRENfVG9rZW46S2J2N2JsRUdKb2xJaUR4WmF1OGN0RnFRbk5jXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8051-967d-d3f617c34d87" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b18d79c635d1f3de63"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OTg2MWI5NGVhM2RlMzc1YTNhMzBlZWYyYjRlNDlhZjRfQ0FUWUx1VVFjVXRCNEp1bGkyTjZmVW9rUmNsdGtxYVJfVG9rZW46RlJ4RGI5dFp1b0tBSUJ4RnVRSGN3WFNKbjRkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b1-8d79-c635d1f3de63" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d803e849bd5a299e34c17">图标可以帮助商家更好地了解操作的结果，或帮助他们理解更多他们可能不熟悉的技术术语。</div><div class="notion-text notion-block-1ae3ee7af39d8043bcc7f9300e9b4819">不要在列表和其他重复元素中不一致地使用图标。这会使你的应用程序看起来不完整。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8037b1ddc99c5d9d1a73" data-id="1ae3ee7af39d8037b1ddc99c5d9d1a73"><span><div id="1ae3ee7af39d8037b1ddc99c5d9d1a73" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8037b1ddc99c5d9d1a73" title="字体排版"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">字体排版</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80818143e4913c12b629">排版是字母的排列方式，使商家能够轻松舒适地阅读文本，Polaris typography tokens提供了一种简化排版的好方法。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8080819fe8f2c3c81d27"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YWQxYzVjNmIwNDRmNTk1ODNmY2M0YjhiZjZkZTJkMmFfUXVodFppa3MyMmpiU3ROdnpSZVI3UUV0SzBSc3h2VVBfVG9rZW46R2xZQmJnM2pJb0ZFVGJ4T29EYWNPYXRzbm1iXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8080-819f-e8f2c3c81d27" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8073bc47d459f1d2b80c" data-id="1ae3ee7af39d8073bc47d459f1d2b80c"><span><div id="1ae3ee7af39d8073bc47d459f1d2b80c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8073bc47d459f1d2b80c" title="3.1 类型层次结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.1 类型层次结构</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8051b6bbf43520cf4aa5">正确使用排版可以改善应用程序体验。通过在标题和文案之间创建健康的视觉层次结构，您将提高易读性和与 Shopify 后台的一致性。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8098beeac26244ef3f62"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MWZmODVkYmIwNWE0OGZiZjdjMjE1OTkwYmRkYjc0YjlfOVg0Q1BEZWxBcmphYlFiaDdMRDY0VmQ5cU14YkxscFhfVG9rZW46Uk8wWmJycEZjbzlIbUp4ZHNKTGMyMnYwbkFlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8098-beea-c26244ef3f62" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80bc8171dae84fb4d943">排版应在标题和文本之间建立清晰的层次结构，以便商家易于阅读。只要有可能，当前页面的标题应为最大的标题大小。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d809caacdc34e28664ffe"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ODRkODU2YzhlODRjODZjZDdmZDg2OGU1YTJkNzAwOGNfNU5wQmlNR3RmYmlHSGNGem5RclVMYlJkVlN2UTVjb1JfVG9rZW46WG9YbWJZbXRYb2NFMmR4NVh6Z2NzbnVsbkpjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-809c-aacd-c34e28664ffe" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80faa92ed8af09a547b5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NzY0N2FhNzQ2ZjgxODVlZTEzOWJjNzFkNTViMzZhNGRfeVA0THVIbWthZXd4bFVwYkZHT2pQVENJQ2lKZ2JVektfVG9rZW46SmMzOWJOVmFjb3dXTkV4MVhEbWNjeVRXbm5mXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80fa-a92e-d8af09a547b5" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d803db7e2f38104c5f24f">通过更粗、更大或两者兼而有之，使标题在视觉上与文本的其余部分区分开来。不要使用可能被误认为是链接的下划线。</div><div class="notion-text notion-block-1ae3ee7af39d804e8a79fb7711b25fa4">不要只使用颜色来区分标题来传达层次结构，因为某些商家可能无法感知颜色。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8090893efd385870be95" data-id="1ae3ee7af39d8090893efd385870be95"><span><div id="1ae3ee7af39d8090893efd385870be95" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8090893efd385870be95" title="3.2 字体大小"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.2 字体大小</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80068f62e136a74c4d80">我们的字体大小规范适用于 Shopify 后台中易读性所需的最小大小。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8078915cfc3c043cd2c4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZmZkMzNhMTBmMWIzM2IwYjgwZTAzMzRiNWUwMGUzYmNfNExLa2JGaHdqQzlINVFyUmtGOEd2ZVpJdm9ZaHZacXpfVG9rZW46Ukd0YmJLbTdpb1BmSk94NEFMcGNaZDh1bmNkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8078-915c-fc3c043cd2c4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8048a82ddbd80726b5d2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDhkMTc5ODg3OTg0MTgyOWFlZGVjYWQ3Y2UwMWYwODlfUk1yWWF1b0dUc21NS2dobUJ3d1E4OGxONk1LZ3hEUjZfVG9rZW46RjBnYWJBcU9Ib0ZVbHR4MWtVaWM0UlVDbm5nXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8048-a82d-dbd80726b5d2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80a4b823d78d556614c9">使用 <code class="notion-inline-code">13px</code> 作为交互式元素中标题、正文文本和文本的最小大小。</div><div class="notion-text notion-block-1ae3ee7af39d80aa9f68d44e4692a7fa"><code class="notion-inline-code">12px</code> 是较小副本（如标题和副标题）的最小大小。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8017be44deb78fe033ec" data-id="1ae3ee7af39d8017be44deb78fe033ec"><span><div id="1ae3ee7af39d8017be44deb78fe033ec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8017be44deb78fe033ec" title="插图"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">插图</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80ea9d66d274dd20eae4">插图为您的应用程序赋予个性，并通过有意义的视觉隐喻帮助商家理解复杂的概念。遵循 Polaris <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/design/illustrations">插图指南</a>是使您的应用程序插图与 Shopify Admin完美契合的好方法。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80839018f03df81a7a2b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OWVlYjgyM2EwMzdmZWViOTU4YjY3NDQxNWM4NzM5NTRfN2VFc0Q1WWtrUlhKTmFRVEtHenY5Ymw1SFFNUjcyTmpfVG9rZW46Sm1WUWJRbG5Vb3J2WnF4UVZZZ2NWZ0pKbm1XXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8083-9018-f03df81a7a2b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80c89affd6c4427e69d7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZGQ5YjZkNDUxNDZkOTVlMjM0ZmUzZjJkYjgxNjBiNjNfZmdWUkZFZG9HaWpBbnZrMlZSRkJzckhDUnlqUkFGUUJfVG9rZW46S284bGJaWVdjbzc0ZjB4TXNQWWMwcnF4bjFmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80c8-9aff-d6c4427e69d7" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80f69d53d10aa0815a71">在您的应用程序中保持一致的插图风格可以增强您的品牌影响力并使您的应用程序易于识别。</div><div class="notion-text notion-block-1ae3ee7af39d8047a712d7f3090dad95">请勿使用低分辨率的照片或图像，因为这些照片或图像可能会传达出缺乏关心和质量差的体验。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d807cb4a7f8c8f37f26c6" data-id="1ae3ee7af39d807cb4a7f8c8f37f26c6"><span><div id="1ae3ee7af39d807cb4a7f8c8f37f26c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d807cb4a7f8c8f37f26c6" title="五、内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、内容</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d8000a2abf90c63a29cd0">以深思熟虑的方式编写和设计内容可使您的应用程序可用、可访问和可读。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8015ac8afe904b91d292" data-id="1ae3ee7af39d8015ac8afe904b91d292"><span><div id="1ae3ee7af39d8015ac8afe904b91d292" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8015ac8afe904b91d292" title="语音和语气"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">语音和语气</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80f29717d6aa533ccac0">您的书面内容的语音和语气可帮助您以一致、可识别的方式与商家交谈，语音是指在所有上下文和受众中保持一致的写作方面。语气可以根据受众及其当前上下文而变化。</div><div class="notion-text notion-block-1ae3ee7af39d80e4b3c6d294e35bf1f5">了解如何应用 Shopify 的语音并选择正确的语气，无论你正在构建什么应用程序，都可以参考 Polaris 关于<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/content/voice-and-tone">语音和语气</a>的指南。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80a5a6dfd10d52e165de"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDBlYzkyMTE0OTVlMmU0MzYwNTU2MDgwZDZlOGE4YWRfeTltamdGTDltYXFPVXhyQmYzV1h3cjRZdERjWGFmS2dfVG9rZW46RlRGNmJTM0pQb1hRQml4MEljRGNtRkVQbjlkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80a5-a6df-d10d52e165de" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80a1bc74fd390b5f9552" data-id="1ae3ee7af39d80a1bc74fd390b5f9552"><span><div id="1ae3ee7af39d80a1bc74fd390b5f9552" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a1bc74fd390b5f9552" title="产品内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">产品内容</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80cb90c6cc66c839c086"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjVhZWU1ZjNiNzRiYWVjYWRjODJkNmY2ZmUxNmVlOGVfZDd5ZEpiQTY5ME1LbDRSMENzR2tOWm9YamVFSWhhTE5fVG9rZW46QWw1dGJMM05sb0d0Q1J4bE0zdWNmN2owbklnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80cb-90c6-cc66c839c086" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d808cb20acf1fbce70e94">以下是为提供优质商户体验而编写商品内容的一些原则。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8006bd4febe3b53407f2" data-id="1ae3ee7af39d8006bd4febe3b53407f2"><span><div id="1ae3ee7af39d8006bd4febe3b53407f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8006bd4febe3b53407f2" title="2.1 使用简明语言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.1 使用简明语言</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8025a8a6fef0a151e6cd">Shopify 商家遍布世界各地，具有不同的文化水平，并且可能不以英语为第一语言。内容很容易被误译或误解，以清晰、高效的方式构建您的内容。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d803780c3f999f679899b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NzUwNjhiOTUxYTU4YTIzZDBhOGQwODg2MzQxNjc4YjZfbXdFZkd6WlBJRjNwcW1CMEdYZmJEVDVzc0wwNFB3YnVfVG9rZW46S2FmOGJ6RlJ5b2UyQ0V4N0RId2NMc1R3bm5nXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8037-80c3-f999f679899b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80799e47d5c78e33a736"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YzcyNjI3NzRkZGQ3ODdkMmFlNjljZTUxYjJiZDU0ODJfRXhIODZtSWxiVW9hbnpOdTlDUjFJd0N3bHdEU3hDUkJfVG9rZW46UlJZVWJyVmVwb09RTm14NVJSWGNySUE3bjNmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8079-9e47-d5c78e33a736" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d803ab9efe329ec01b67a">使用标题、项目符号和短句使您的内容更易于浏览。</div><div class="notion-text notion-block-1ae3ee7af39d80c0bc04d7f860158149">使用易于理解的清晰术语。作为基准，以美国 7 年级的阅读水平为目标。您可以使用 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="http://www.hemingwayapp.com/">Hemingway App</a> 等工具检查阅读水平。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f58a66fc0ff9986197"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZWRjYmQ3OTA3MjI0MjQ2NmVhMjg1NWM1MWY4MzY3MmJfOFlDWXVqbnowODAzRDdaRFd6NElCSGZkcUU1bjFlblFfVG9rZW46SnI1M2JpTWhvb0lMVGN4blYyMWNMUnhsbjlkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f5-8a66-fc0ff9986197" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80d5aad8f941ba151062"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTJiNWI2Y2Q0ZDMyODc2ODJlOWI3M2E5NDE1YjczY2ZfSVhPaEg4Vm5VQlFmUHRUQ05RVGhwQ1dtNEJKMjlxN3dfVG9rZW46Sk1VTGJxeHpwb3F4bnB4a0paZWMzZ2l6blVjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80d5-aad8-f941ba151062" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8044af67e5a63cba3419">请勿使用商家可能难以理解的行话或过于技术性的语言。</div><div class="notion-text notion-block-1ae3ee7af39d80a1ad7adccce384fac2">不要使用大块文本，因为商家很难快速扫描和收集最重要的信息。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d808a98dbdf7a72cc812c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NzNlYzA2MDAzMGYyOWQ4Y2M0YmFkMjRlNjA0Y2VhZTBfYnlXdlo4d0tCbDFKSU14aWZ3T2NBZGdiSWFEUUdGUEtfVG9rZW46TkxQbmI4Q0tLbzhEelB4b3RZTmN3Nm1ybmNjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-808a-98db-df7a72cc812c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d807ab569de22be6d888f">不要使用具有间接或讽刺含义的成语和短语，因为它们可能会被误解或误译。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8007b312e5083d37a903" data-id="1ae3ee7af39d8007b312e5083d37a903"><span><div id="1ae3ee7af39d8007b312e5083d37a903" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8007b312e5083d37a903" title="2.2 保持一致"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2 保持一致</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80578b55dfa6d41d692c">为了帮助商家理解关键概念和操作，请以一致的方式使用术语，确保一致性的一种方法是识别并消除关键概念和操作的同义词。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d806fb9f7f05908d527cd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MmIzNTE2MmY4ZDdiN2U5YzliYWM3MmQ3MTRkNmUyZTNfQkFEaHVla2FveDFESzMxQ2RkNlJNM1J3TU5PTWJSYWtfVG9rZW46VzNiNGJhRnlsb014SjF4czNlOGN3dFRRbnhmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-806f-b9f7-f05908d527cd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80a097d2fe094f527412"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MzRiZjk4YTg3OWNhMTMxYWU1ZTRhMjYyMzM1NzBiMTlfQmt0SmZ3VDVLM0V6T2VlUUlnV3pzdnFsRURDT3kxN2JfVG9rZW46TUdyb2J2Szdsb0dTc0l4TGViUmNxcllUblRzXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80a0-97d2-fe094f527412" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80de9f46fe597710b700">使用单个名词、动词或短语来描述特定的事物、动作或概念。</div><div class="notion-text notion-block-1ae3ee7af39d80cab0d6cf868bbbe685">不要使用多个同义词来描述特定的事物、操作或概念。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80d69b8fd3bb5bc58d62" data-id="1ae3ee7af39d80d69b8fd3bb5bc58d62"><span><div id="1ae3ee7af39d80d69b8fd3bb5bc58d62" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d69b8fd3bb5bc58d62" title="2.3 鼓励采取行动"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.3 鼓励采取行动</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80f89767eaa9434d7be0">商家使用 Shopify 为他们的业务完成工作。编写有助于商家了解并采取最重要行动的内容。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80c28025c91cf99d5b40"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MTc5ZDU1M2Q1ZDlkOGM0ZjJkM2YxYWE3NjNkYWEwMmNfYUt0ZkZQMVkzR0VUQUNhYUJreWtMOUlHRXZyUFEzU2lfVG9rZW46UGdZdmJ4NGdNb2s0a1B4VnM3Y2NUM3llbnZnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80c2-8025-c91cf99d5b40" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8054ab9bc8cc247984f6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MmE5MDQyNWQ4NDM0YzBjNmJjZjdjMDQyOWY4NmE0ZTRfanNQbGpkUUpjZDB1N1psTFVmS3FYWk9DRnpZcVNvZFNfVG9rZW46T2swcGI5OGo3b0h6Zk54Vm5SY2NybExpbjVkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8054-ab9b-c8cc247984f6" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d807aa907f28910686f98">对于行动号召 （CTA），请以描述操作的强动词开头。使用主动语态来阐明主题和操作。</div><div class="notion-text notion-block-1ae3ee7af39d80cc8051cab6b1e35078">确定最重要的信息和任务的优先级。将复杂的任务分解为专注于单个操作的步骤。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80f580c3c54cc4965f75" data-id="1ae3ee7af39d80f580c3c54cc4965f75"><span><div id="1ae3ee7af39d80f580c3c54cc4965f75" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f580c3c54cc4965f75" title="2.4 指南，但不要擅自决定"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.4 指南，但不要擅自决定</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d804ba491fd1e70c1dc43">以以您的商家为中心并处于控制状态的方式进行写作。为商家提供工具和知识，以做出最佳决策。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80958966ff7f638f7187"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NmE4YjAxMjU4OWU4ODZmM2U0NmU1OTBmODgwZmI1ZDJfU09sWjBhNlNlbm9hWUU3dDhGbGpzb3FIREFnMzhmYk1fVG9rZW46T1hDNWJ0N3Zyb1NZazl4S1FYUWNKeHE0bmJnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8095-8966-ff7f638f7187" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80f495d6ea5b2b605140">为商家提供足够的信息，以便他们自己做出正确的决定。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d804485a0e50e4e07292c" data-id="1ae3ee7af39d804485a0e50e4e07292c"><span><div id="1ae3ee7af39d804485a0e50e4e07292c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d804485a0e50e4e07292c" title="语法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">语法</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d805bb967e9b86a53fa03">有关拼写、标点符号和其他语法注意事项，请参阅 Polaris 语法<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/content/grammar-and-mechanics#section-basics">和机制</a>指南。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80bdbcd3dc1441d6d180"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NTQzYjMxODQ0ODE1NDg5OTU3ZGJjODE5MjU1ZTk5NmNfbDFQdTZScnBTT0RxSHZYYUFrelNnSUtsTkJNa0R5dkFfVG9rZW46UmJzTmJaTVZYb251bWp4QzBWdGNPZWp3bjNmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80bd-bcd3-dc1441d6d180" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d802dbf14f0c6c9a75afe">应用程序必须始终使用正确的语法，以确保为商家提供最佳体验。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d802cac8cdf5fa2227c9c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjczMDI1ZmUzYmJjNjA4ZGE5ODY0OTUyNmU3NTdkNDlfV1pkMGM2SDFJUk1OUEhKMmJWTTlIb1drdHRXc1lPcmlfVG9rZW46UWRSZWIwQ0ZKb211cHJ4NUNXQWNyc05ubngzXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-802c-ac8c-df5fa2227c9c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d803caf39f19cad929952">在第一次引用您的应用程序或公司时，使用其正确的名称。如果您需要在同一内容部分进行其他引用，则可以使用“我们”。这有助于保持清晰，同时保持内容简洁。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d809aba5deb36db3eccdf" data-id="1ae3ee7af39d809aba5deb36db3eccdf"><span><div id="1ae3ee7af39d809aba5deb36db3eccdf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809aba5deb36db3eccdf" title="六、导航"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">六、导航</span></span></h2><div class="notion-text notion-block-1ae3ee7af39d80549f82dd47be6020cc">导航使商家能够在应用程序的各个部分之间移动，导航是商家从一个任务移动到另一个任务的方式。良好的导航结构使商家能够轻松无摩擦地完成任务。围绕商家需要做什么来构建您的应用导航。</div><div class="notion-text notion-block-1ae3ee7af39d8075bd4dd542d1bd7799">导航元素显示在以下区域中：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d808b833fe6365b730820" style="list-style-type:decimal"><li>应用导航</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8049bff6cb4e9f869e13" style="list-style-type:decimal"><li>应用标题</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80909eedfa29ef2d2a11" style="list-style-type:decimal"><li>页眉</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8043beaad612b0f1dc48"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YWNhNGI5N2NlMDE4MWEyYWQ1OWJkYzBiNWVlMTUyOTVfMUxoUTBPNjllZXFvbGxsZDN4c3RSd3B1VGRXS0RRNjJfVG9rZW46SWhjSmJJakVEb3FLVUd4NjFabGN1d2NzblVnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8043-beaa-d612b0f1dc48" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80d39f4fc500682df561" data-id="1ae3ee7af39d80d39f4fc500682df561"><span><div id="1ae3ee7af39d80d39f4fc500682df561" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d39f4fc500682df561" title="信息构架"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">信息构架</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80ce8acbe3f837bc978a">信息架构 （IA） 是组织各部分的做法，以便它们作为一个整体有意义。IA 向商家显示他们当前的位置，以及如何浏览应用程序的其余部分。以前发生的事情和接下来会发生什么应该很明显。</div><div class="notion-text notion-block-1ae3ee7af39d80a88e0acc3c70d8e9a2">依靠应用导航和应用正文组件之间的关系来引导商家前往他们需要去的地方，使用尽可能少的类别来定义您的应用程序的功能。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80709fdacfbb6da30a42"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDg4MjM2NDk5MTZjZjU3NDIzYThlN2VmOThiYWI3MjhfS1R5QWZmRzkyUWI4aHB0eUU0WWJneFZHa2RRYXlQQnJfVG9rZW46VTR4amJnYnE3bzZZWmd4c3d2Z2M0czZRbnpiXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8070-9fda-cfbb6da30a42" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d805a92c2f231dea61d4e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZGNmMGYyYjRlOTNhM2NmMDkwMDIwNDAyYTQwN2ZiODJfQVZmQWY3NmI5aEhkN01nQ012SUlvZXNVdENZMTVtY2tfVG9rZW46TlZSQmJXa0dybzFuMjN4eGVXOGNtWTlWbmRlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-805a-92c2-f231dea61d4e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8094826ed3bf2c97263e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDVjNGRiZDhmZDYxYzViMjJjNzA5NGE4ZjVkZGY0YjFfaVlHb0JmRXpvZzZDd2k4emNtVUFjUmlxZjBrUGJHWWlfVG9rZW46VDFSMGIwUUQ0b2Q3WGh4QVUwRmNPVHVzblNmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8094-826e-d3bf2c97263e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80fd9623dc32d27f5585">商户必须能够在不使用浏览器按钮的情况下返回上一页。为此，您的应用可以在页面上提供痕迹导航或返回按钮。</div><div class="notion-text notion-block-1ae3ee7af39d800ca892e760ef3f992e">请勿将商家发送到 Shopify 后台之外进行关键操作或在主要工作流期间。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d804ab5fdc5504ebbc551"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=N2QwODAyNTM5MjQwMmE0N2Y4NDQ5YjUzNDdmODQ3YWVfcWwyTmIyR0tROWZmMTZ6UjViVE1haHdlM29mS1hwVHlfVG9rZW46QXhMa2IxNGN6b1NJdzV4STZGYWNiM1U0bmliXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-804a-b5fd-c5504ebbc551" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80ccbe66eb8ae7840272"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjNjNmVhNjA1YzI4MWY5ZDhjNDJlMTdkZTdjZjE2NzhfQk9TdTBaZ2VmanNoYkRLMnZhVWI1ZXJzRjFrN2poZldfVG9rZW46WTR6QWJpcEIwb2JlNkZ4enUzYWNyMDZUbm1jXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80cc-be66-eb8ae7840272" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8075b894f5849da74591">使用应用程序名称指向应用程序的主页。这可在 Partner Dashboard 的 App Setup &gt; App URL 下进行控制。</div><div class="notion-text notion-block-1ae3ee7af39d80699351cd08b9a721e9">请勿在导航中复制应用首页的 URL。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80d184f3c95daea0f767" data-id="1ae3ee7af39d80d184f3c95daea0f767"><span><div id="1ae3ee7af39d80d184f3c95daea0f767" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d184f3c95daea0f767" title="应用导航"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">应用导航</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8035a718f69e0d41ae57">应用程序导航为商家提供了一种在应用程序页面之间移动的方法，应用导航位于 Shopify 后台的侧边栏和 Shopify 移动版的标题中。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f7809bdfc1e348b6fc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDAwNjNhNzM1MTE4MDg5NzJmYjUzNDI4ZWM0NDc4ZWNfVkRwZ0J6UDd6a0trWUhCRUFTa3duRUhFY2toVTgya3NfVG9rZW46UDRObGJmTGFlb2pBTkx4OHZsNGNSVFhvbnFiXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f7-809b-dfc1e348b6fc" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d806ea3c2e7fab925039f">如果您的应用具有不同的部分，请使用 App Bridge <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-nav-menu">ui-nav-menu</a> Web 组件或 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/react-components/navmenu">NavMenu</a> React 组件将这些部分集成到 Shopify 后台和 Shopify 移动导航中。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80ffaf96e24253d72232"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTU0MGRlNDFkNDAyZTY3NjQ1MDkwMWZkYWQ4NTU0NjNfSWdhY1pNVGxTR1NPUDIzZHpQc3BFSTRYOHc4a3o0dTZfVG9rZW46QlZ6WWJvb0ppbzhaaHF4Sm00VmMyeklLbjliXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80ff-af96-e24253d72232" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80a2b6d5fac1b52c2e52">当 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-nav-menuhttps://shopify.dev/docs/api/app-bridge-library/web-components/ui-nav-menu">ui-nav-menu</a> 不够用时，请谨慎使用选项卡进行辅助导航。单击选项卡应该只会更改其下方的内容，而不会更改其上方的内容。制表符绝不应换行到多行。在选项卡之间导航不应导致选项卡更改位置或移动。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d804e86f4fa56c40dd2fa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MzkwMjkxMmU4YzRmZWZlZTZlNThkZWZlYjE0MTg2MmVfbXRvRzJjMnhmM0c1eTMxVGNYZk8zY0FrTlI3eEV4MGNfVG9rZW46QlQ4N2JPRDhYb3lUWXN4bEZKVGM2ZkZ0bmVnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-804e-86f4-fa56c40dd2fa" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b9b203fde6fb3faab3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YjU1MGQ4ZTQ2MmZmYmQ2MjQwYWYzOGQ2MWZjNzVmMWJfNGgxblJ3Tk1VU3pSZXFXTG4yblhQUEZFd2tvRkZjdEFfVG9rZW46V0JmbGJidmtqbzlXS1F4T0M3bGNWNVFnblViXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b9-b203-fde6fb3faab3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80819e79cad624fdcc3f">使导航项简短且可扫描。使用名词而不是动词，以保持导航菜单简洁。</div><div class="notion-text notion-block-1ae3ee7af39d8018a4b1ed776df75e05">当您在 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-nav-menu">ui-nav-menu</a> Web 组件或 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/react-components/navmenu">NavMenu</a> React 组件中使用超过 7 项时，第 7 项及以上的项目将被截断为 View more （查看更多） 按钮。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80008304e062b6158fe4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NjIzODJhMzYyZGIwNGZkYzYwYmIyNzdhZjY3MDRmYWNfWWtMY09sbUtud3p3dUdTMzFKbmhsQUtwaGxtanJzMG9fVG9rZW46Rms1QmJWZWJUb3NRRHN4Z2NPN2NGZGFmblFjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8000-8304-e062b6158fe4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80629d1fc641d2e35195"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZjJlODZiNTZkYWQ5MmNmMDY1NzM3OWVhM2Q5YjA1NGVfTHRJQ3lkZlZHMjRYNHN0eVl3QTVRa3dRZlkzaEpXTDVfVG9rZW46RUNUM2JkOHFJb3p5cXh4SXFXRWNkakxzbnJjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8062-9d1f-c641d2e35195" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80bc942fd4f6394c4255">不要在应用程序正文中复制应用程序导航内容，因为这会导致不必要的重复。</div><div class="notion-text notion-block-1ae3ee7af39d8055ae8cf93e7ac079a2">不要将主导航放在页眉中。这可能会误导商家。<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/navigation#page-header">页眉</a>是为页面内操作保留的。</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8098bd9dc0afb6e501f2" style="list-style-type:decimal"><li>应用名称</li></ol><div class="notion-text notion-block-1ae3ee7af39d80478cc4e7406246615a">应用名称表示商家在 Shopify 后台中跨多个接触点识别您的应用的一种方式，应用名称可以比 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/apps/store/requirements#1-app-name">Shopify 应用商店列表</a>短，以便适合应用导航。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80aebaaffd0b5305b5fd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDM2N2FlMzg4ZTAxYWNkZWJjYjI2NmVlNTc4ODJlMTlfRmI5UVRvc1hnR21NSUx3Q2dGTERQVExzSEozMFNROTlfVG9rZW46VVNlcmIycmtnb3E5RjB4akdiVmNMb29rbmpmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80ae-baaf-fd0b5305b5fd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80728026cab4c35c10d0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NjhlNzJhZmZmNmFiODA2MjMzNDNlNzc2YWZkNmIyZTBfeGFYcWE2TW9BUERzMjRzUkoxcGprbHhzdldrSjZCMklfVG9rZW46VkhIdmI0NTU4b3Vaejd4akNaNGNZTk5rbmRkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8072-8026-cab4c35c10d0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e49ff6e63ba52da33e">保持应用程序名称简短，不超过 20 个字符。超过 20 个字符的名称将被截断。</div><div class="notion-text notion-block-1ae3ee7af39d806bad3bf19acd5dad84">不要在应用程序名称中添加说明。将描述放在 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/apps/store/requirements#1-app-name">Shopify 应用商店列表中</a>。</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80619212f967a81b9fc8" style="list-style-type:decimal"><li>导航图标</li></ol><div class="notion-text notion-block-1ae3ee7af39d80379cf9e8df592f88e9">提交显示在应用程序导航中的导航图标。导航图标在处于非活动状态时为灰色，在处于活动状态时为绿色。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b98397f1c5090539a9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTUyMmE3ZmQ4Mzg3ODdiNmFjMWQyZWU1ZDE2ZjkzYmRfekV3bnU5RE9uRzN6VUZKWGRCUXg2NURncVNSRklSSVhfVG9rZW46TkpnYmJRbUNVbzlyTkp4c0o2cWNBeHZIbkFnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b9-8397-f1c5090539a9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d805a8bb2cbc6b8263fec"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDA1ODBjM2VhNWYwNWI4MGI4MWQwN2U2ZWI5ODQ0N2FfbWo1MmFIVE5HaXNwZnR4cHFCVHVLNzE1bnRaYkh3UlRfVG9rZW46VzUyRWJPVWtmb1NLdW94bU1QQ2MyTHVobmloXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-805a-8bb2-cbc6b8263fec" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d806a83b2c50ec2aafd61">如果您在 Shopify 后台导航中使用 SVG 图标，则它必须与您应用的 App Store 图标相似。SVG 图标不是强制性的。</div><div class="notion-text notion-block-1ae3ee7af39d8026a118c58346c34aa0">导航应用程序图标的边框半径为 <code class="notion-inline-code">4px</code>。您无需提交带有圆角的图标。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80d2b1b3d76ab66611eb" data-id="1ae3ee7af39d80d2b1b3d76ab66611eb"><span><div id="1ae3ee7af39d80d2b1b3d76ab66611eb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80d2b1b3d76ab66611eb" title="应用标题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">应用标题</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d804e8e62d8ccb814a1d0">应用程序标头包含应用程序的主要结构部分。这是商家在整个应用程序体验中将与之交互的标头。</div><div class="notion-text notion-block-1ae3ee7af39d800a898ce2605faafe10">应用程序标头包含以下元素：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8079b910e062cc984857" style="list-style-type:decimal"><li>应用图标和名称</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d805bbe45cb013f9df571" style="list-style-type:decimal"><li>“固定”图标</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d805780baed2868fe56c3" style="list-style-type:decimal"><li>Overflow 菜单</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d803a8c9efa9a7653798c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OWVmMWI0M2UzNGQ5ZjA4YTE5NDg2ZmRjMzNkZDAxZGRfd293aW1MSjkweHlabFpwRUYybzk5THRqUDJSdDAxYjFfVG9rZW46UGhQdWJXQ3pTb0kzQTV4UWh6eWNJTm9BbjBmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-803a-8c9e-fa9a7653798c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80a7a07cdee940d376cb" data-id="1ae3ee7af39d80a7a07cdee940d376cb"><span><div id="1ae3ee7af39d80a7a07cdee940d376cb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80a7a07cdee940d376cb" title="Overflow 菜单"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Overflow 菜单</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80f88af4df4d567d59a3">溢出菜单保留用于提供有关应用程序的其他支持信息，目前，溢出菜单不可自定义，溢出菜单包括以下内容：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d489f6c473895696d8"><li>关于此应用程序</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d291cdcc5899e5a3ea"><li>支持</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8012bf86eeeba645a3a1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDhjY2ZlYWY5NjFkY2Q1NzdjOWZkZDg4ZDc1YmM2YWNfTktmWmUwY3NHSTFDdXNFTnFqZGdJdzFrcXdzM2NmbmdfVG9rZW46SWpwWGJGYmR6b3dTR3d4MjRXRmNlS21pbmhjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8012-bf86-eeeba645a3a1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80258cddd8b240d515b0" data-id="1ae3ee7af39d80258cddd8b240d515b0"><span><div id="1ae3ee7af39d80258cddd8b240d515b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80258cddd8b240d515b0" title="页眉"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">页眉</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8028b753f36315ee933d">页眉包含特定页面的标题和操作，页眉至少应包含页面的标题。您可以选择添加更多元素，例如按钮。有关示例，请参阅 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-title-bar">ui-title-bar</a> Web 组件或 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/react-components/titlebar">TitleBar</a> React 组件文档。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d801ea6cfe52d90560419"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MGY3NzFlM2YwNmY0NTQwNGI1MmFhMTAzOWE5MDhkMzJfOHA2WTF3czE1cEVQbW5kYm9EQ3kxSGhpQU9pMGhKY0lfVG9rZW46QUhCQ2JiUDhJbzVYcWl4S3B6a2NVbnZCbnBmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-801e-a6cf-e52d90560419" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80ef8b85e75b0100631e" data-id="1ae3ee7af39d80ef8b85e75b0100631e"><span><div id="1ae3ee7af39d80ef8b85e75b0100631e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80ef8b85e75b0100631e" title="4.1 页面标题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.1 页面标题</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80a59d79d1e93fd7a606">页面标题应简短，并描述页面的一般用途，尝试将每个页面限制为单一用途。商家更喜欢将注意力集中在特定的任务上，分散注意力可能会损害用户体验。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80588b5ceb66834a7806"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjAwMDU3MTYxOGVkMGZiY2Y2ODdlNGJiMjA5ZjQzYjdfdDZoZmdtRlVncVg4SURMc0E4ZkRVVGdDb0hJQm9KOFZfVG9rZW46SUJEeGJRWmtsb0FBZ3B4YkR6d2NHQ1JHbmFkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8058-8b5c-eb66834a7806" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d806c8ff7ccdfdc9339ed" data-id="1ae3ee7af39d806c8ff7ccdfdc9339ed"><span><div id="1ae3ee7af39d806c8ff7ccdfdc9339ed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d806c8ff7ccdfdc9339ed" title="4.2 主要和次要操作"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.2 主要和次要操作</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8088b962c1926f1d9ff6"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-title-bar">ui-title-bar</a> Web 组件或 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/react-components/titlebar">TitleBar</a> React 组件中的主要和辅助按钮可启动特定于页面的操作，</div><div class="notion-text notion-block-1ae3ee7af39d803abdcfd56543c15c82">主按钮标签和辅助按钮标签应具有以下属性：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8043832aec5c32a17665"><li>清晰性和可预测性： 商家应该能够预测点击页面操作时会发生什么。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d807387e4ed3fb62adcdd"><li>操作引导：按钮标签应始终以鼓励操作的强烈动词开头。为了给商家提供足够的上下文，请使用 {verb}+{noun} 格式。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80938b97c6a6fef37075"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDllMzY2NDNjNzI1Zjc1NmU3YmJmZDA1YjIxMDI5ZDBfbVRTY2txRXJ1VlhLbXFnWGdKWXZTZ09FV25TcW9mSXhfVG9rZW46T0tnVmJlTDhhb1lwdXh4VVZYbmNpc05pbkM1XzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8093-8b97-c6a6fef37075" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80828521f8f420fbd727"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTA5ZTk2OGNiNzg4YTI5MDg4ZDg2NWNiN2QyNWE2ZWZfNzIwcHdkU01LMFJjeDU0dTJzSGNiN3hVbGRXeW5nYkVfVG9rZW46SDc4YWJsOWFmb2pmTXp4T0VTSGNMbm1XbnpjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8082-8521-f8f420fbd727" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80178c36e312f36346ba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NTBkMzI5MTVmMzdiNWU5YzUwZjAwNTM4MDJkM2E2MzRfVHZTeFB6QUxHRzRRSHF3TGJGbTdzNGhSQXNmZ2tKVVdfVG9rZW46STNqcGJXdGttb0JnWDZ4RzcxMmMyaDFzbjhkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8017-8c36-e312f36346ba" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80ec95decaae1121e149">为商家提供清晰且可预测的操作标签。</div><div class="notion-text notion-block-1ae3ee7af39d807fae54cd89b79d2c17"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-title-bar">ui-title-bar</a> Web 组件或 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/react-components/titlebar">TitleBar</a> React 组件接受一个主要操作和多个辅助操作。当存在多个辅助操作时，它们将被截断到 More actions （更多操作） 下拉列表中。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1ae3ee7af39d8077935bc946ca40cbaa" data-id="1ae3ee7af39d8077935bc946ca40cbaa"><span><div id="1ae3ee7af39d8077935bc946ca40cbaa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8077935bc946ca40cbaa" title="七、用户体验策略"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">七、用户体验策略</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80c4915fdbe2f075569f" data-id="1ae3ee7af39d80c4915fdbe2f075569f"><span><div id="1ae3ee7af39d80c4915fdbe2f075569f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80c4915fdbe2f075569f" title="Alert"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Alert</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80f08412cf33a6b9e93f">提醒会通知商户重要的系统信息，并提供有关商户操作的反馈，警报模式如下：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80aabb9fe2d4c874676d" style="list-style-type:decimal"><li>横幅（系统警报）</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d8004b7e5db03289123bc" style="list-style-type:decimal"><li>内联（任务警报）</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1ae3ee7af39d80aa8821ff93af406b4a" style="list-style-type:decimal"><li>Toast （任务警报）</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80d0a381c3c74ec349bc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDYxOTRmYTJlYzA4NTY3MDgyYjM0ODI0NzA2NjM2NjlfcFZIVm1NSjZCWnFOa1dScjk3ZUZIdmFqUXkyeW8xcVRfVG9rZW46Wmx5SGJHSDN1b3VMMDB4Rkd5MmNFUThSbjBiXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80d0-a381-c3c74ec349bc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80219437e02a0c5d5340"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjMyYzBjOTI4YTI5ZTc2ZTQwOTQ0MWE0YTVlYTIwYmJfajlDWEhicjFObWxSS1Q0U2xqTUxIb29IZFJhU3FDcXZfVG9rZW46SVRNcGJ1Zkg2bzlPR0V4WURjR2N6VHBUbnpjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8021-9437-e02a0c5d5340" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80879fd0dcc666f30c63"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ODcwN2ZjZjU1Y2I5ODcyNzMzNDUzYWQ3ZDJkM2JlYzNfdmlCMEZVVW5DVlNGV0lUZnFhZVhIdlliRVRXclVyQU1fVG9rZW46TElVbWJmZ3l3b0dVZm14cnBEd2NKRWsxbnI2XzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8087-9fd0-dcc666f30c63" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80f6a44ff64b4ae1efd7"><b>任务警报</b></div><div class="notion-text notion-block-1ae3ee7af39d8006a8cfd70c0676a927">任务提醒是为了响应特定任务期间的商家操作而启动的。任务提醒为商家提供直接和即时的反馈。</div><div class="notion-text notion-block-1ae3ee7af39d8053b4f2f099f51f9566">以下是任务警报的示例：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8057880adb3a4a827657"><li>表单提交成功。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8090a0e9c54e79eed555"><li>上传内容时出现问题。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8093a2c7c4e60c73b229"><li>提供的信息不正确或与请求的格式不匹配。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80cda8d7c37f298f6fc0"><b>系统警报</b></div><div class="notion-text notion-block-1ae3ee7af39d8010ba8efba5628adf67">系统提醒由应用程序或系统发起，独立于商家操作。系统警报提供有关后台系统状态或已完成的脱离上下文事件的更新。</div><div class="notion-text notion-block-1ae3ee7af39d808ca18efd8a12829e63">以下是系统警报的示例：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d2950fe0dad89640be"><li>网络连接丢失。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80e2a672d0c89168c333"><li>计划升级。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c9a62cc9ae96c8fc99"><li>应用程序订阅即将到期。</li></ul><div class="notion-text notion-block-1ae3ee7af39d80c08eaae31e69776ee0">以下是可用于商家提醒的常见模式：</div><table class="notion-simple-table notion-block-1ae3ee7af39d803f9335d5b3f4922f4a"><tbody><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80219d47d4c84052805a"><td class="" style="width:120px"><div class="notion-simple-table-cell">模式</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">定义</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">持续时间和交互</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">用于场景</div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d805a92d0f48b2f5c1210"><td class="" style="width:120px"><div class="notion-simple-table-cell">Banner</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">页面级警报，通常与系统相关or 或特定于卡片、部分或模式的上下文警报</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">横幅会一直保留，直到商家关闭它们，并且可以包含操作按钮或链接。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts#information">Information 信息</a><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts#success">Success 成功</a><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts#warning">Warning 警告</a><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts#error">Error 错误</a></div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d80029f27f6b81c397769"><td class="" style="width:120px"><div class="notion-simple-table-cell">Inline</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">为商家提供尽可能贴近源头的反馈</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">内嵌提醒将持续存在，直到商家解决消息为止。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts#warning">Warning 警告</a><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts#error">Error 错误</a></div></td></tr><tr class="notion-simple-table-row notion-block-1ae3ee7af39d805f85edddf1924f4849"><td class="" style="width:120px"><div class="notion-simple-table-cell">Toast</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">简短的临时消息，可滑入和滑出页面并提供简洁的信息。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">没有操作的 Toast 提醒可能会自动消失，或者商家可以将其关闭。</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design/user-experience/alerts#success">Success 成功</a></div></td></tr></tbody></table><div class="notion-text notion-block-1ae3ee7af39d80dd8bc6c15e116048a0">当您使用警报将重要信息传达给商家时，您可以从一些标准模式中进行选择。</div><div class="notion-text notion-block-1ae3ee7af39d80af991dcb0eda53aad5"><b>当您想要传达不重要的一般信息或操作时，请使用带有蓝色标题的信息横幅。</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80039819cdef6aea297c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MThmOWJiYTA2YWQ2YTMxYTNjMTRhYzhhMTEyNjdmMTVfb1VzcmJpQU5IMFdWWjVlUG9EanFKNGcwVnFYUEk4Z0NfVG9rZW46REVwOGJIYzlabzJua3Z4SVFPSWN0ZEFKbktjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8003-9819-cdef6aea297c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80c2a7bafdafcbb78b97">横幅必须可以关闭，除非它们包含商家需要解决的关键信息才能继续前进。已关闭的横幅不应在同一用户会话中再次显示。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80df85dce443b9dec126" data-id="1ae3ee7af39d80df85dce443b9dec126"><span><div id="1ae3ee7af39d80df85dce443b9dec126" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80df85dce443b9dec126" title="1.1 Success"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.1 Success</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80ad85cdff5bca9349ab"><b>在传达成功时，提供反馈很重要。这意味着使用在任务成功完成时通知商家的模式。</b></div><div class="notion-text notion-block-1ae3ee7af39d8020aa02d8d795d85f7a">Toast 通知商家应用程序已执行或将要执行的流程。Toast 临时显示在界面底部。Toast 不需要任何商家输入消失，也不应中断商家体验。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8090adf7c233da0aa0b1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MmI4NTU2OGYzOWRlOTk3YWIzMTAwZmQ4NWU5YTY1NmJfVEM3RE03S1p5OHpqU0RkVE1mbnlDYmM0OUh2dEd3RVRfVG9rZW46R0tXdWJUaUdub1MyYlN4bzRnQ2NtZHBobjFkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8090-adf7-c233da0aa0b1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f2bc4bc28a0f328fcb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NzMzOWFiYmEzMTEwOGYwN2QzNWQ4YjgyMjZlZTAyMzdfNHltcGJOUjJNc2FyR0ZXS2ZvM005dGlIOXFMbk16amhfVG9rZW46U2R2RWI3R3VSbzQwbGd4ekR2NWNVRmQwblViXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f2-bc4b-c28a0f328fcb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80e4a88ceb75458878d2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZGNlNTVmYTc1ZDhiMTlkYTkxNDk3OGM0YjQxMzE4YTlfa1h2ZnlETXZlTzZlRlZYdnFOUWJUNmFGcDVJTHI5T2pfVG9rZW46V2UxYmJSY282b0lEYWh4anFhNGNzN1k3bjdnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80e4-a88c-eb75458878d2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80a7b413c425894ee404">仅对确认操作的短消息使用 toast。</div><div class="notion-text notion-block-1ae3ee7af39d803cba1de5fda82ce9c6">将 Toast 消息设置为三个单词或更少。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d808682c8fe3c46fd8211"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTM3ZDBiMGE1MDk3NTZhODZlMmFkMWJjMWU2NjdhZWNfSHhMNkwwdFhxSUFMYjhOMDFzRmtlTlJsdEF6dHl4TTdfVG9rZW46WTNhd2JRQ1hNbzdlTWd4Y0VBc2NiNkRRblliXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8086-82c8-fe3c46fd8211" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80a0a1a5ea68fd1d23f1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDU3ZmQ4YzQ1MmI3Y2JlYjE4Y2JlODljZWRlYzg0ZWNfYkRXNkxsVU1UTDhORlJZZzY5elNQUjBCanZmWFM0bFRfVG9rZW46Rng1emJmTlE1b0lXd094amNtYmNNc2pjbk5jXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80a0-a1a5-ea68fd1d23f1" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d803eb004f2ccf2b949de">Toast 仅适用于当前相关的非关键消息。</div><div class="notion-text notion-block-1ae3ee7af39d80598599f415b0c1d315">不要对错误消息使用 toast，但连接错误等持久性错误除外。有关更多信息，请参阅 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/components/feedback-indicators/toast#best-practices">Polaris Toast 最佳实践</a>。</div><div class="notion-text notion-block-1ae3ee7af39d803097a5c73f588f725f"><b>仅当反馈延迟、持续或具有行动号召 （CTA） 时，才使用成功横幅。否则，请使用 Toast。</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d805990b7dc0dcf708dd2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NzUwOGM1MjY4NGUyM2E2Y2FmNmJkNDIwMmI3MDI2ZWJfdW9RSE1zUGhxTXFyNHlIemswZUx5MU41Z2d3Ym9ydGZfVG9rZW46TjVJa2I3UUtLb2tVM0p4bkNjVWNmbUhjbk1jXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8059-90b7-dc0dcf708dd2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80caa668cca6d6c28d4e">将成功横幅设置为绿色，并包含后续步骤（如果适用）。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8046a274f3216f0e0d39"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OTkxOTRhY2Y3NzkzNTRkMDRjMDQ5MDE1OGMxMjA2MmNfWUpRT1BzMzdQMVlVNmZtT2p4cmtJWmRjWkNnV0pxRXZfVG9rZW46RWJJZmJyeU5xb1Jza2x4cTNGcGN4eWFVblBkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8046-a274-f3216f0e0d39" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80fdba39fb79e6b1eb1c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTQ3NTc0ODU4MjEzZjZhN2UxODhiN2FiNzcwNTVkMTlfcnh6d2JMRzhjODVtVlpwSTI1ajFNMWZwTVlJMDhndUlfVG9rZW46SGg1WGJzNUdYb21tOW14bjY4d2NIWE5VbmFiXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80fd-ba39-fb79e6b1eb1c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d803f9e02d376b7bde4b5">请勿使用横幅来显示商家已完成的操作的成功消息。对于用户发起的反馈，请改用成功 toast。</div><div class="notion-text notion-block-1ae3ee7af39d80cc9001c2d37a932c99">如果没有 CTA，请不要使用成功横幅。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80f6be91c484fd81443e" data-id="1ae3ee7af39d80f6be91c484fd81443e"><span><div id="1ae3ee7af39d80f6be91c484fd81443e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80f6be91c484fd81443e" title="1.2 Warning"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2 Warning</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80d08d6ecd24632b54b5">当您向商家传达警告时，根据导致警告的原因，您有不同的选择。</div><div class="notion-text notion-block-1ae3ee7af39d80f187b3fc2a6c2cebcc"><b>警告横幅</b></div><div class="notion-text notion-block-1ae3ee7af39d8050af2ae580df3d0511">使用警告横幅显示需要注意或商家需要采取措施的信息，将警告横幅设为黄色。看到这些横幅可能会给商家带来压力，因此请有意识地使用它们。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d807eb4abf634b06ab4b0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTczMjkxN2I4M2FjOTNkZWI4YjBkOTJlOGJmNjJjZTdfQXk1V3hqaGFGdzVoWnZXVldNQjRqTjY1VmEyS2hMTXFfVG9rZW46SkVnNWJydDVYb3Vwa2R4NU5DeGNXQzZKbjFmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-807e-b4ab-f634b06ab4b0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d800babe5d12525478e91"><b>列表中的内联警告</b></div><div class="notion-text notion-block-1ae3ee7af39d803ab8d8f6f9d18c4248">在列表中指明您希望让商家了解的特定商品。为此，您可以使用 Polaris <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/components/feedback-indicators/exception-list">ExceptionList</a> 组件。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80eb8894e11be8689212"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OWE1MjMxYmIyMzU2N2Y2NDgwYzIxMDM1NWM3MmI1ZjFfb3p4anIzVUhoSlNHczQySlVubXczT2NyZ3FCM2xyU21fVG9rZW46SERUa2JST092b3NibXl4ZGpOb2MzNUZqbkhoXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80eb-8894-e11be8689212" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b6896fc4ca6d66c69a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZmJlMDMxNGIxZmJkYTdhZjU4OGJlODFhNGQ4NjM2OWVfY1J6TkJmMDVzTjFjY3lFWkxiT3JkZ09LSXdtMHVpRTlfVG9rZW46T0xGdGJYWWhOb0t4M2x4bXdDamNybms4bmpzXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b6-896f-c4ca6d66c69a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d807892acd8d9c9fb066c">使用内联警告来提请注意列表中的异常，并尽可能鼓励采取行动。</div><div class="notion-text notion-block-1ae3ee7af39d80c78167e373591c6e61">不要只使用颜色来传达警告。将警告消息与警告图标配对。这通过提供额外的标识符来提高可访问性。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80109ce3e3074532411d" data-id="1ae3ee7af39d80109ce3e3074532411d"><span><div id="1ae3ee7af39d80109ce3e3074532411d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80109ce3e3074532411d" title="1.3 Error"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.3 Error</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80c89e54cfaff9bb580b">在传达问题和错误时，请使用可识别的模式来告知商家警报的重要性。将错误消息尽可能靠近问题。当某些内容未按预期工作时，或者当应提醒商家出现严重中断时，错误消息是必不可少的。当错误发生时，它们可能会令人沮丧甚至可怕。清晰快速地引导商家找到解决方案。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8034a413e75176211ef8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZmIyNDU1ZmJjZDJkMjU4M2Q2ZDAwZDEzOTdiN2Y5M2JfZmI1bTZ5V2ZobEd0MjBrOEd3R3AxR3VtWGQyU2NaY25fVG9rZW46VTZkZGJYTDd0b3JvbFp4emdkeGNpNDNzbmZmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8034-a413-e75176211ef8" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8071a5e6e468503f50a8">将错误横幅设为红色。始终告诉商家发生了什么并提供前进的道路。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8096a3c5d46e2ae38415"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZWYxMjk0YWQxM2ViZjQ3MDkzZmU0ZDcwMzg2Njg0NGJfUzUyY0tPQUlQY25SemxjRkJsNW9GakVGNFY4R2hPNlhfVG9rZW46S1llT2JUYXF1b1QxTll4YkJEMmNHVnZNbm5kXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8096-a3c5-d46e2ae38415" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80ae8e24dc1894168c93"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDcxNGFlNDVhZmFjY2Y0YTZjNWNmNjRjOTNmNGZmNTFfQnVvSG1PZDZxUTJxcGZkV29ITmVQUTRnQVZ5TmVPUnJfVG9rZW46SG5RWWJKQnhHb2pUV2l4OEEzUGNybE1GbkJjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80ae-8e24-dc1894168c93" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d801a934bc4bf07f97c41">不要使用可怕的语言、技术术语和行话</div><div class="notion-text notion-block-1ae3ee7af39d80cc8c81ebbb00379a98">请勿使用幽默、成语或其他可能无法正确翻译的单词和短语。</div><div class="notion-text notion-block-1ae3ee7af39d80418e7becba98719fc0"><b>关键横幅</b></div><div class="notion-text notion-block-1ae3ee7af39d80c8af8ad5fc468b8656">当您传达需要立即解决以便商家完成任务的问题时，请使用关键横幅。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d806e8851c94e7811d247"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MzcyZTdlYTRkODE1OTg1M2E5MzQyYTAxYmIzMTA2ZThfMjZZTEdhYUJzRkVZbHJaVGRDNU9ZTVZBTnZySHAyY0FfVG9rZW46SklXT2JpYjRnbzhXbGd4UGMwZWN3Nm9zbmtmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-806e-8851-c94e7811d247" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d804e8770f578807b2c2c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NjMyODE1ZTMyNzBkMjUwNGYwOWM1NjM4MWNjMjQ5OWRfdWZENTJSQ1M4bVNCZEd1TDVBNGhIenJsM3Z3WWl1eGxfVG9rZW46QU1EUmJMWnFNb0hzTDF4SHA3SWNkZG9SblNnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-804e-8770-f578807b2c2c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80fab37bf4b7a426c2c7">将关键横幅设为红色并谨慎使用。</div><div class="notion-text notion-block-1ae3ee7af39d80699f80f5538ad36503">提供故障排除步骤和获取支持的明确方法。</div><div class="notion-text notion-block-1ae3ee7af39d80029a64f014d2d3bc1b"><b>表单中的内联错误</b></div><div class="notion-text notion-block-1ae3ee7af39d80e4bc4ddf3d70fa2f51">在验证文本字段等表单字段时，请将错误消息直接放在受影响的字段下方，对错误消息文本使用 red，因为这是 Shopify 之外的常见惯例。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8087ac5dc52169129b80"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OTk0Nzc1NzBlOTE5ZjFiNTUxMzI1ZTY4MGIwNTU2NWFfNWZNSGMzanlZRTJuTGVzMUkzOW9lQUVTemZmMEFsWU9fVG9rZW46WU5FYmJySzZ1b0FNdU54REpLRWNCcWRBbk9jXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8087-ac5d-c52169129b80" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f29185e3546acae39c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OTdjMDY1MDhjMDdiZGE1NGRjZGZhNzIxYzU1OTRlOTlfbVg2MWdlcGV1WVRrUGk3R1pXaml0Q0xTTmNXT3pDd3ZfVG9rZW46R1BYbWJlaUFxb0R4QTN4UWtSRWNvYlFHbjhnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f2-9185-e3546acae39c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d806bb001f47e0227df4f">将错误消息直接放在受影响的字段下方。</div><div class="notion-text notion-block-1ae3ee7af39d80b1aab8d87da7ab2b7b">请勿在商家输入时显示错误，因为这可能会导致混淆。等待键盘焦点从字段上移开，然后显示错误。</div><div class="notion-text notion-block-1ae3ee7af39d805ea65ef1cbdeffd3fa"><b>列表中的内联错误</b></div><div class="notion-text notion-block-1ae3ee7af39d808c9ebbce4a8a98fb67">在列表中指明您希望让商家了解的特定商品。为此，您可以使用 Polaris <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/components/feedback-indicators/exception-list">ExceptionList</a> 组件。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f39148e7f7572d595a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTc4OTU3OWY4NDEzYmNlNTYzZjQ3M2U1NTU3NGU2NjRfQmF5OWFGMEJ2enJ4V281SHg2UFF5dThEUG00Sm9JNnNfVG9rZW46T2xLRmJySXNxb0dyYlV4MW9HTWNMdlJ2bjdRXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f3-9148-e7f7572d595a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8055b24dd4c18938180d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NzgyZWU4OTlkZmQ2OGMzNWY5MTVhZmM2NWI1OTYyYjlfUm90NGZPN3JTRVR5Q0g5M0hzNWR4MkFvZTZkNnJ0NUlfVG9rZW46V0FTWmJJdXRpb0Ftc3R4V09HWWM3bno1bjNnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8055-b24d-d4c18938180d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d809fbb72efaf10e91b68">突出显示鼓励商家点击列表项的特殊状态。以出错的地方为导向。</div><div class="notion-text notion-block-1ae3ee7af39d8028b4d6eec7a936966a">不要只使用颜色来传达错误。相反，请将错误消息与错误图标配对。这通过提供额外的标识符来提高可访问性。</div><div class="notion-text notion-block-1ae3ee7af39d8080912ff74494b1d688"><b>卡片、部分或模式中的错误</b></div><div class="notion-text notion-block-1ae3ee7af39d80b4aa00cd0e5d72b5e3">如果错误适用于特定卡片、部分或模态，请将其放置在受影响元素的顶部附近。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80d8bb3eed7b5733aa17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=N2FlNzIxZjhkZjNhMzIyYzJhMWQ1YzY5OGZmMTk3YWJfbjlNcXpqNHc0MnpDallMWVBrTG5RUUcyZ1N4V2F0S3ZfVG9rZW46SzcyaWJ5ZnhEbzV5S3R4akZrZmNPa2UxbnlmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80d8-bb3e-ed7b5733aa17" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d807fa6a6d3a334abbfd7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NjkwMDI2NGQ3YWJkOWZlM2EyZDFiYzgxOGEwMDQxZjZfc0E5Q2ZVVGFhUHRleEZKOU9WN2F5aXUzSXhKa1RiOG1fVG9rZW46RmFRMmI3TW5nb0JrNTN4blM3M2NLTTJzbm5lXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-807f-a6a6-d3a334abbfd7" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8092a5a5c1b0cfcd5b60">不要将错误消息嵌套在应用程序的层次结构中太深。如果错误适用范围更广，请将其放在受影响元素的顶部。</div><div class="notion-text notion-block-1ae3ee7af39d80b9bbffdd8a1fb88332">不要使用模态来处理错误消息。仅当模态本身遇到错误时，才在 modal 中放置错误消息。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80de8680ff288ad74d4f" data-id="1ae3ee7af39d80de8680ff288ad74d4f"><span><div id="1ae3ee7af39d80de8680ff288ad74d4f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80de8680ff288ad74d4f" title="App首页"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">App首页</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80c18831c0f221755c20">应用首页是商家看到的第一个页面，它应该为他们提供每日价值。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80838a21e0f2b00c416e" data-id="1ae3ee7af39d80838a21e0f2b00c416e"><span><div id="1ae3ee7af39d80838a21e0f2b00c416e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80838a21e0f2b00c416e" title="2.1 设计"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.1 设计</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8074b4d5e6b677a71f59">以快速回答商家可能遇到的任何问题并传达他们可用的操作的方式设计应用程序主页。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8007a46bebf7908109b1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MzFhZDBhMWEyZWEyMjcwNGM5YTg5ZWU1MDdlODliOGFfaUpEdFVZSnJlbHpLWk4wU3dza0ZNNFA4b2VmaGQ1RFJfVG9rZW46VHg2VGJ2S3pIb0FGQkx4enFxZmM5Zk5tbk1kXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8007-a46b-ebf7908109b1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d806ea1e5e973ea7e3f5f" data-id="1ae3ee7af39d806ea1e5e973ea7e3f5f"><span><div id="1ae3ee7af39d806ea1e5e973ea7e3f5f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d806ea1e5e973ea7e3f5f" title="2.2 目的"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2 目的</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d803a9bf1fdcdfa47e66a">应用主页有多种形式。一个好的主页应该做到以下几点：</div><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80d3ac15d48796c16ba9"><li>提供状态更新。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d8019b5dfc75e5ce047a8"><li>使商家能够响应即时需求。</li></ul><ul class="notion-list notion-list-disc notion-block-1ae3ee7af39d80c39336cfda77a6ccd9"><li>提供清晰的行动号召 （CTA） 按钮，以便商家可以轻松查看他们可以在应用程序中执行的操作。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80bca690eaa80473f134"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjhiYTgyNDI2MGUyZThmZmU2OGUwZWVmNTI2YTIwY2FfOWFCOTNGRFNCQjVoZm42MnBhOUpIU0xUTWxQVFBtYjRfVG9rZW46UTAzSGJCQU9vb1pkUlN4U1cwWGNkeGM5bnBlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80bc-a690-eaa80473f134" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8057a39adf4480809180">您的应用首页应为商家提供快速统计数据、状态更新或可立即采取行动的信息。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d802f90c7e03b958553e1" data-id="1ae3ee7af39d802f90c7e03b958553e1"><span><div id="1ae3ee7af39d802f90c7e03b958553e1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d802f90c7e03b958553e1" title="2.3 支持"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.3 支持</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80f2b251ed3182e2615f">提供一流的客户支持是让您的应用程序和服务与众不同的好方法。将您的支持 CTA 放置在一致且可发现的位置。尽可能回应商家的问题。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8065804cfb9dcb006e8e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDNjNzMxNzIzOTgwYTkxYjA3MzJiNzk5NjYzYTdmOTlfblJobEF1OHJjcExMMVAwV1VTc25rUEtqNFZUa3dKUGdfVG9rZW46U1FRbWI3WUtEb2hLU054eXk4QWNwOHlMbktlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8065-804c-fb9dcb006e8e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8040bfe3c0a03aed7ffa">始终如一地放置您的支持 CTA，但也要避免商家的干扰。您可以使用 App Bridge 的 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-nav-menu">ui-nav-menu</a> Web 组件或 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/react-components/navmenu">NavMenu</a> React 组件中的项目，在页脚中放置链接，或使用浮动操作按钮。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d809086b5eac5b6721809" data-id="1ae3ee7af39d809086b5eac5b6721809"><span><div id="1ae3ee7af39d809086b5eac5b6721809" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809086b5eac5b6721809" title="入门引导"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">入门引导</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8078aa2ced590bbc51c5">入门是商家设置您的应用时遵循的流程。开户流程对于商家的成功至关重要。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8009894fc3efda452cab" data-id="1ae3ee7af39d8009894fc3efda452cab"><span><div id="1ae3ee7af39d8009894fc3efda452cab" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8009894fc3efda452cab" title="3.1 目的"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.1 目的</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80d6a909e09e8aa179f6">引导应该欢迎商家，并让他们渴望使用您的应用程序或功能。引导让商家感到舒适，并在他们开始使用您的应用后立即设定他们的期望。</div><div class="notion-text notion-block-1ae3ee7af39d80abbca8d3e1f1d085e4">商家在完成入门体验后，应该觉得他们知道在您的应用程序中该做什么。这会导致更高的使用保留率。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d808fa40ac2ded390ec2e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ODk0MzNiOWU4MDY4MDZlZDBmYjg5OTZhMTlmMTc1NjZfaGtmTXlpSTZ4eTUzalVDVUVUdWVJbDBhd1hld3RzNUtfVG9rZW46VUtFY2JDUTBob3IwN2x4MVdlWGNzRTRvbndlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-808f-a40a-c2ded390ec2e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80fabf8cc0ff35169094">新手引导是指分享您的应用优势，并让商家快速准备好使用您的应用。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d800a81b1c32d8297d195"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MTRhMWM5MjQ0MDExMDIzYmI4ZGU4MmIwZDc1N2Q4OGRfeFN1U0toYTBGanZDNWMxbWpzVFlEVjdQN2MwbjRRNnZfVG9rZW46WWk1b2JqTlRib3R5aWd4NXllS2NoZ0xBbkdlXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-800a-81b1-c32d8297d195" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80ef9537eba165fb68f3">入门指南必须简短直接。提供清晰的指示并指导商家完成。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80589bbccb317bffe63d" data-id="1ae3ee7af39d80589bbccb317bffe63d"><span><div id="1ae3ee7af39d80589bbccb317bffe63d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80589bbccb317bffe63d" title="3.2 指导"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.2 指导</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d809688bdc0037fe146c4">引导体验可以有效地引导商家了解应用的功能，这样商家就不必自己发现它们，出色的入门体验会尽快向商家展示应用的基础知识。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d806ba516f6dec35426db"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NjgxMjM2NDdhODVkZTJhYTI3Y2Q2ZDBlMDk4MDdkODdfRFdqTkdvNmFDaG5LbGdsc0JEczJVdXg3elp5NmRHak1fVG9rZW46WXU3RGJMeEI1b01mT0t4TWlXOWNQQ3p1bm9nXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-806b-a516-f6dec35426db" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80c28d6ae3c1713eccbd">引导体验还可以以一系列操作的形式出现，商家可以快速轻松地理解这些操作。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80bebc4fd3d3ad5ac495"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NGJjNzQ2NGJiNzg2ZjNkOGVjMmNiOGEwMGE1MGE3ZmRfTEpNNXZKTnZWYVdFS0ZhOEtoZU5Xd0pXN1VNR21ybndfVG9rZW46T0dXRmJvU0tvb0pMQ0l4NW1XUmNQT21ibk1mXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80be-bc4f-d3d3ad5ac495" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80cea499ff3d3f99ad62">在某些情况下，复杂的载入可能需要比预期更长的时间。让商家可以选择稍后完成引导，以避免停止其工作流程。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80b08ae9f8b8da99b8b1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MGM0NmIwODliMzk2MGY3NGViYjIxMjFhNjljOTUwZTRfVmRTYlNlYkZ4MzJrc0FBYXRCcHZJWWdiYlFLeWhrNHBfVG9rZW46UXhOaWJhakp1b2RkbGp4cUp0cmN4aHE4bkplXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80b0-8ae9-f8b8da99b8b1" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80978be1c13b678d0f6b">虽然没有现成的 Polaris 模式用于设置指南，但您可以使用 Polaris 组件编写自己的模式，并在 Shopify 后台中查找示例。一个好的设置可以作为一个快速的开始，其中的离散步骤会自动标记为完成。包含进度指示器是向商家提供鼓舞人心的反馈的另一种良好做法。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8009bb38f554ed771da7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NTVjOTc2NDA4YWUxMDlkOGJmNTk2Yjg4OTVkOTdmMDlfQ0pGNHJ2eERKV2JXbVZWeWRwODhVWEJNRVo1cDFNV1dfVG9rZW46TUJZVmIyNzB0b3ZVTUR4M1JjemM2c1llbmJnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8009-bb38-f554ed771da7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8090927bddb45c3b4392"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MWZjNzcxMTQzMWI0MjdiMGNiMGE4ZTMyOTkzNmJhMjNfN0xLdGwxTDhoSVZST3o5YzJzSEJuNHlDeUhXSnZ5YXpfVG9rZW46R0NnWmJrcjlEb05VQzJ4a3lRc2MyVTNTbnplXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8090-927b-ddb45c3b4392" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d800f987bfb4c7c081a2d">仅在必要时向商家索取信息。</div><div class="notion-text notion-block-1ae3ee7af39d80ecbb09e3952d2cdae3">如果您的入门引导不是必需的，请使用 Polaris <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://polaris.shopify.com/design/icons">Cancel</a> 图标将其关闭。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d805cb94fc214ebfb8a48"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTY0N2I0ZWYzNDY4MTg5YjYwNGMwOGQ4NGQzMjE3ZTRfTkxiQWdaYmo5Z0Vmc21CQnJOOFhqVW9IanFmUGFQWDdfVG9rZW46QW9EY2JDVVJWb1VYTmF4elFaNWN1Yms1bm9iXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-805c-b94f-c214ebfb8a48" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e8af6ec716150e0075">您的入门流程中的步骤不要超过 5 个。这可能会导致商家放弃而不使用您的应用程序。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80b08bd6e17d8f8bc185" data-id="1ae3ee7af39d80b08bd6e17d8f8bc185"><span><div id="1ae3ee7af39d80b08bd6e17d8f8bc185" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b08bd6e17d8f8bc185" title="应用品牌营销"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">应用品牌营销</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d809e96b0f0e645c0e421">Shopify 后台首先是商家完成工作的地方。这些指令解释了如何以不显眼的方式将营销信息整合到您的应用程序中。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d80b786c7d2addcd57073" data-id="1ae3ee7af39d80b786c7d2addcd57073"><span><div id="1ae3ee7af39d80b786c7d2addcd57073" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80b786c7d2addcd57073" title="4.1 品牌"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.1 品牌</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d80e0a2e7c7d81761670d">品牌塑造可以使您的应用程序与其他应用程序区分开来，但过度品牌塑造会使其与 Shopify 区分开来。我们建议用轻描淡写的方式表达您的品牌。图像和插图样式是实现此目的的绝佳且无中断的方法。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80e7847ae15cf6a4104c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZjgzZmM2ZGFjMzViNzlkZGY3MzBlYmVkMWNkMzIzY2Nfa0Q2aUY5UEgyZ2Q4VVpITXJ6bUVkbDZubExLNTRpbktfVG9rZW46RFV1MGJScmlZb3pDcUh4OXp6YWNVdXdObkNnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80e7-847a-e15cf6a4104c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80969d43c9bff9c6d9e1">通过插图和图像来表达您的应用品牌。尽量使应用的布局和常用组件（如 Cards）与 Shopify 后台保持一致。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d809895d7dd913c6e5da8" data-id="1ae3ee7af39d809895d7dd913c6e5da8"><span><div id="1ae3ee7af39d809895d7dd913c6e5da8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d809895d7dd913c6e5da8" title="4.2 促销"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.2 促销</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d8065bc20f89b405a7fbb">促销消息包括对应用程序、计划或订阅升级进行评级的请求，或下载其他应用程序的电话。请记住，商家正在寻找他们安装的当前应用程序来完成任务或特定工作流程。我们有具体的指令来限制营销信息的干扰。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80f7a8dacaf4eb797cff"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDU1YjZmYmVlMjcwZTk1ODA4ZTI1MmUzMmUxMDEwZTdfd2ZHWkIyamNEYWZVdFE4c1JRb3R1VnFhSlV5NEM0YWlfVG9rZW46SDk5VmJ6Njg0b1RUS1V4bTczM2NnMnlLbkFjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80f7-a8da-caf4eb797cff" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80a7ac18f1f15336b853">将促销信息放入应用首页底部的可关闭容器（如卡片或图库）中。或者，创建一个专门用于促销信息的单独页面。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80d1965ac59f27201af1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZTA4NzEyYzg0NWFkZjI3YzFlZGM3YmVkMjE2NTE1NWFfYXZ0R08yVXp3SHJGb3VJM21UV3VZOGdUNGtVNFdnMnJfVG9rZW46SFZaT2IwNTJ6b3VRcGd4ZVJtRWNzMnQwblJiXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80d1-965a-c59f27201af1" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d802cb581c144ee03ca23">应用程序主页上的促销信息必须可关闭。如果关闭，则不应再次为同一用户显示该信息。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d804c80cdda8630264925"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDU3YzU1OTg3ZTk2Yjk0ZmFhM2MzZDk0ZjNhYzAyYThfeHpiVmxDRHBWVTJxWG8yc3JBdTByeDhBc09oVEIxcENfVG9rZW46T3hZNWJ5Tmwxb0VScTV4WWZiNGNSYXVqbnpkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-804c-80cd-da8630264925" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8042817bd202fee98472"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDJjZGM1ZTY3YmNlODg5N2I3ZWQ2ZWMyNzE1YTViNjNfWmdUTUJoTUw0OUFvS0R0MW1jYlRqd1d6MEhlS0duYmtfVG9rZW46V1BZdGJ2aTN1b1lFYmF4RmpEa2M2VENLblRoXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8042-817b-d202fee98472" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d801d9f6ff44a1ac6f6c9">仅适用于付费或高级计划的功能必须处于视觉禁用状态。使用柔和颜色的字幕样式文本来传达该功能只有通过升级才能使用。</div><div class="notion-text notion-block-1ae3ee7af39d80c1a8c3ca54328045c3">不要误导或向商家施压。您的应用不得包含虚假评论、虚假特别优惠或使用限时机会的倒数计时器等元素。欺骗性或操纵性的促销做法会削弱商家对您的应用和 Shopify 的信任。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d800cac1ed4709c78e275"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=OGU0YWJkMjU3ODk5ZDk2YzYyYmIyNzliOGZkM2UxMjhfMGpqVEhYcFBpSjFBaUp3M3pNY2UwR2JKSk1OSTFnZVZfVG9rZW46SndhNGJYeXFPb0s0c2F4RlFNQWN3WFBCblBjXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-800c-ac1e-d4709c78e275" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8065a946fa09afcfb36a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YThkODUzOGMxN2JiM2FiNzdiNWI4MDA0ZDA5YTE2NzNfN0lheER1bG5GN3BldEs1b2ROTk8zY2NDTGpyTVFyMmdfVG9rZW46TlZaQ2JHQWJPb1kwcjN4RmxZb2NKYWphbk1iXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8065-a946-fa09afcfb36a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e68410c357549246ff">不要过度推销或过度承诺。这可能会破坏与客户的信任。</div><div class="notion-text notion-block-1ae3ee7af39d8067bb7dfef2f895afca">不要将主要行动号召 （CTA） 与不相关的操作（如营销消息或支持请求）混合使用。这会掩盖主要操作。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d803bb92ce31647cb01b8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDczY2U1ODU4ZWQxY2I3NmMxYmNmZThiNzk2NTI2OTRfV29tQzZCak42S0hDUzkyVVJYZTRaVDdnUExUQ200WllfVG9rZW46U0FkTmJidVNJbzdrMVR4dTdTNmN2eTlVbk1oXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-803b-b92c-e31647cb01b8" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8009b2c4e061fe49dec4">不要在所有应用页面上展示相同的营销信息。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d80cabeceeb740427ce2d" data-id="1ae3ee7af39d80cabeceeb740427ce2d"><span><div id="1ae3ee7af39d80cabeceeb740427ce2d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d80cabeceeb740427ce2d" title="表单内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">表单内容</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d80e28c73f2a7e33ed84e">大多数 Create 和 Edit 操作都需要使用表单进行数据输入。良好的表单设计很重要，因为这些可能是商家与您的应用程序之间最常见的接触点。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1ae3ee7af39d8088b559e0085ae5c519" data-id="1ae3ee7af39d8088b559e0085ae5c519"><span><div id="1ae3ee7af39d8088b559e0085ae5c519" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8088b559e0085ae5c519" title="5.1 指导"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5.1 指导</span></span></h4><div class="notion-text notion-block-1ae3ee7af39d804fb516dcbafaede0de">许多应用程序具有复杂的表单，其中包含许多输入字段。这对商家来说可能会让人不知所措。使用 Polaris Form Layout组件确保您的表单使用适当的间距，按照本指南创建商家易于理解的有序表单。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8025bf8ec852a137f834"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YTIwNjUyMDcwOTI0NjgxNzY2MmFjNDAxNzBmODQ3ZTdfaDhhYkw2azRLR3hsMUN0OE5lUVJ6Mklpd041dmN2YlFfVG9rZW46U3RrNWI3SzU1b0VDUlF4OEMzbGNINVJubjllXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8025-bf8e-c852a137f834" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8057a3a1e2f22a2e26c3">当表单输入或信息根据输入值而变化时，使用<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.shopify.com/partners/blog/progressive-disclosure">渐进式披露</a>。这可以防止商家被很长的表单淹没。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80c29142dee364ffb2b0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=YWE5ZTA3OTc0Yzk0OTY4ZTAxZWQwYmY0YjY2Mjg5NDFfNWs5S1lqRDRIeXZLMDNBclo1V3NEc2pYNUJhVjk3QVpfVG9rZW46Q0h4eGJwOTlUb0Z0cHZ4TVYydWNqSXUwbkpmXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80c2-9142-dee364ffb2b0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d809783eee9c755111a79">Shopify 后台使用单独的页面进行对象定义。例如，单个页面用于单个产品定义，或单个页面用于变型定义。遵循此模式有助于集中商家工作流，并使您的应用看起来更像 Shopify 后台。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80c58033dc837213e815"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MDViZDY4OGU1YjE2N2NlMWQ1NmZmY2FjNzRlMzNiNmNfellzSk90UFRoUGF5RlJqaFVIWUJJd0hXUmpiZGs3MmlfVG9rZW46SXFoRGJ5R21Kb1ozVzd4cFJvTWNFUHRMbnRkXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80c5-8033-dc837213e815" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8005a04adfb2dcc16d3c">对于五个以上的输入，请在一个卡中使用带有标题的节，或者使用多个带有标题的卡。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80789d93e028d064ea92"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NWMzNDNlOTc2ZmZmMTk5MWIyMzc0YmY1NTRmMTk4NDNfclVTVk1oZlJqYU5QWVlndUJ5U0ltcmNOM044OUxrVWFfVG9rZW46SzE3bWJrN1o4b01ybER4NmZVa2NCRldEbnNoXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8078-9d93-e028d064ea92" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d805a8971f13a9baee1d5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=ZGM1NDgxNTcxNzc3YWY4YmJkZjdmMWIwYWUyYzE0NTlfaFJHWVAxZzhkQnh0TzZvTzFqcnJQUWhUc2g2UjVMOTRfVG9rZW46T0lxYmJqeTBNb25qWEx4YlVTdmNpVTA2blFnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-805a-8971-f13a9baee1d5" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e9a07cc28808f921b1">不要将大型表单放在最大高度、最大宽度的模态框内。相反，请在嵌入式应用程序中创建一个新页面，以便为商家提供处理表单输入的空间。</div><div class="notion-text notion-block-1ae3ee7af39d8044abeafc39aa1b00d6">应使用 App Bridge <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/apis/contextual-save-bar">上下文保存栏</a> API 保存表单输入。这也适用于 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/api/app-bridge-library/web-components/ui-modal#UsingaforminaModal">max 模态框内的表单</a>。表单的持续数据验证或自动保存与标准 Shopify 管理员保存 UX 不一致。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d8042bfe7c0cf2688ce74"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NjY2NzkyOTAwMDRhNmJmNmU0OGU1MDUzMTI3YjM2NjZfWENjRVB0Y3NKYk5kU3paMXVQY3ZhTndXaXJVNUF3bVVfVG9rZW46RXNKcmJETkFSb1RsZHp4ZGhBZmNZRE9DblVnXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-8042-bfe7-c0cf2688ce74" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d80e79d39cf4ddaf38af7">请参阅<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/apps/design-guidelines/user-experience/alerts">提醒页面</a>，了解如何向商家显示表单错误。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1ae3ee7af39d8099b8bbcb60ba45a5aa" data-id="1ae3ee7af39d8099b8bbcb60ba45a5aa"><span><div id="1ae3ee7af39d8099b8bbcb60ba45a5aa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ae3ee7af39d8099b8bbcb60ba45a5aa" title="订阅应用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">订阅应用</span></span></h3><div class="notion-text notion-block-1ae3ee7af39d8001a89dd87cefc48189">订阅应用程序为客户提供订阅购买选项。为确保为客户提供良好的体验，订阅应用应遵循这些设计准则。本指南介绍了订阅需求的关键原则以及实现订阅用户界面的组件级准则。有关更多详细信息，请参阅 Shopify.dev 的 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://shopify.dev/docs/storefronts/themes/pricing-payments/subscriptions/subscription-ux-guidelines">subscriptions 部分</a>。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80afb60feb33e0edc84d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=NDMxMjgzMzhmNjI4NTI4YjIyMzJlZDYzNTAxODJlNmNfRHRIaGVqOHNCVkJ3bVl5M0tkd1BOdWVseEVwdnBSR2NfVG9rZW46WW8zZGJNMmdkb25GMGt4bUdNTGNsZW9obk5oXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80af-b60f-eb33e0edc84d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1ae3ee7af39d80bcb371f09ca82c4f8d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://f1l5e2ythy.feishu.cn/space/api/box/stream/download/asynccode/?code=MjljZTUxNWFmMDYyNDNjMWRlZjQ3OGQxOTcyMDYyN2JfbkZpZER3MWtUNGNtYWZ1RlNwWnMxWkdTTDdRYnEyTmlfVG9rZW46TDdrc2JZdkROb1RaU2J4aVpQRGNZWk9RbmZiXzE3NDEyNTE3ODg6MTc0MTI1NTM4OF9WNA&amp;spaceId=d86e7502-26c0-4456-9c57-f0fcee518c4d&amp;t=1ae3ee7a-f39d-80bc-b371-f09ca82c4f8d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1ae3ee7af39d8077a344e06ae0d00f26">当买家从商品表中选择销售计划时，订阅价格必须清晰可见。</div><div class="notion-text notion-block-1ae3ee7af39d805a8d85d0e49fdd6d18">默认情况下，与订阅相关的 UI 必须与商店当前主题的调色板、字体、字体大小和字体粗细匹配。</div><div class="notion-blank notion-block-1ae3ee7af39d80df9842e7d1807c4b23"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[如何搭建属于自己ChatGPT]]></title>
            <link>https://hrope.cn/article/custom-chatgpt</link>
            <guid>https://hrope.cn/article/custom-chatgpt</guid>
            <pubDate>Mon, 25 Mar 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[使用Azure OpenAI 提供的 API 服务使得构建和部署自己的 ChatGPT]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-319601541bdb4cf19549c3dc01062458"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-ac211252941f46fcb45ab5257e8dcde3"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💫">💫</span></div><div class="notion-callout-text">当今的人工智能技术正在不断发展，越来越多的企业和个人开始探索人工智能在各个领域中的应用。其中，在自然语言处理领域，OpenAI 的 GPT 系列模型成为了研究热点。OpenAI 公司的 ChatGPT 带起了一波 AI 应用的浪潮，一些科技公司都在努力跟进，比如百度的文心一言，Google 的 Bard 以及 Notion AI。就目前体验来说还是 OpenAI ChatGPT 表现最好。目前 Microsoft Azure 是独一家的提供 OpenAI 云服务的云厂商，Azure OpenAI 提供的 API 服务使得构建和部署自己的 ChatGPT 成为了可能。</div></div><div class="notion-blank notion-block-598e4caa82b34b91a550bf0fee156a67"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-62550a80c329404c8c4d9ad1544e55bb" data-id="62550a80c329404c8c4d9ad1544e55bb"><span><div id="62550a80c329404c8c4d9ad1544e55bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#62550a80c329404c8c4d9ad1544e55bb" title="一、Azure服务申请"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、Azure服务申请</span></span></h2><div class="notion-text notion-block-19a636f260cb4b3fb7a5322feb7bb7fd">Azure OpenAI 和 OpenAI 官方提供的服务基本是一致的，但是目前前者还是处于预览版的状态，一些功能还没有完全开放。</div><div class="notion-text notion-block-72ceac2c34254293808c99b400d9339e">注意：需要使用 Azure 国际版，<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://azure.microsoft.com/en-us/products/cognitive-services/openai-service?WT.mc_id=DT-MVP-5003133">点此进行申请</a></div><div class="notion-text notion-block-398c8b52ca53485d90970d9c6b8c02d0">优点：</div><ul class="notion-list notion-list-disc notion-block-500bcbb091454adda5e67beb831bb44d"><li>不受地域限制，国内可以直接调用。</li></ul><ul class="notion-list notion-list-disc notion-block-2799a835933e43f595e6505904cb043d"><li>可以自己上传训练数据进行训练（据说很贵）。</li></ul><ul class="notion-list notion-list-disc notion-block-d62cbe3185cd47e686ce46940da8bcd3"><li>Azure 多语言 SDK 支持。</li></ul><ul class="notion-list notion-list-disc notion-block-714df2de02464447ad5efc21e692e00b"><li>更适合企业私有化，数据可完全控制删除。</li></ul><div class="notion-text notion-block-02a6f2923e8e4ce782e661b245e7f0b4">缺点：</div><ul class="notion-list notion-list-disc notion-block-b9efeea8cfca4449bd15ea4860531520"><li>部分功能未开放，但 ChatGPT 的功能是没问题的。</li></ul><ul class="notion-list notion-list-disc notion-block-decf93fdd9324ded9566b53297c69e71"><li>和 OpenAI 官方的 API 标准有差异，<b>无法直接用</b>一些只支持 OpenAI 官方API 的开源项目。</li></ul><div class="notion-blank notion-block-9457974c83964234acf5adbce39c74e0"> </div><div class="notion-text notion-block-20f1f312480244f88debb7e245db4a7b"><span class="notion-orange_background">注册时，需要除外填写个人资料外，还需要额外准备一张Visa或Master的信用卡、借记卡，便于后续认证和扣费。</span></div><div class="notion-blank notion-block-9dfae910a4c94dafa55df0e98e452b43"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-41aba15e85f34cc7974945b66f61c437" data-id="41aba15e85f34cc7974945b66f61c437"><span><div id="41aba15e85f34cc7974945b66f61c437" class="notion-header-anchor"></div><a class="notion-hash-link" href="#41aba15e85f34cc7974945b66f61c437" title="1.1 创建服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.1 创建服务</span></span></h3><div class="notion-text notion-block-f4d1bacb61ff42909a8c2509b66a953b">进入 Azure 后，直接搜索 &quot;Azure OpenAI”</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d233402afcfa40f4a5367da05853515e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fd86e7502-26c0-4456-9c57-f0fcee518c4d%2F123cfeec-86a9-4077-8057-35975863aae5%2FUntitled.png?table=block&amp;id=d233402a-fcfa-40f4-a536-7da05853515e&amp;t=d233402a-fcfa-40f4-a536-7da05853515e&amp;width=544&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-b4a599bc192f4059beadc9f736b52f52"> </div><div class="notion-text notion-block-0cd9f9a823f94fb5a6282b3fabdbc24f">选择你已经申请通过的订阅进行创建，如果该订阅没有启动则不能创建。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-dcf9f35102c643aaa56c51edf9217140"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fd86e7502-26c0-4456-9c57-f0fcee518c4d%2Fe40756ca-82a0-4f33-9637-2016ab24f655%2FUntitled.png?table=block&amp;id=dcf9f351-02c6-43aa-a56c-51edf9217140&amp;t=dcf9f351-02c6-43aa-a56c-51edf9217140&amp;width=544&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-41ec48a4b40e413090a16768aa0c0042"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1816e0549d424fc3bbab602c11ad65e8" data-id="1816e0549d424fc3bbab602c11ad65e8"><span><div id="1816e0549d424fc3bbab602c11ad65e8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1816e0549d424fc3bbab602c11ad65e8" title="1.2 创建模型部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2 创建模型部署</span></span></h3><div class="notion-text notion-block-2743f819201d4e0a881feecd82a2229e">在资源管理-&gt;模型部署 选择需要的模型进行创建，每个模型只能创建1个部署。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-9d0a470610b048e9a138e60d7e46e682"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fd86e7502-26c0-4456-9c57-f0fcee518c4d%2Fef56544b-a378-47e9-85c4-5eaedab59df0%2FUntitled.png?table=block&amp;id=9d0a4706-10b0-48e9-a138-e60d7e46e682&amp;t=9d0a4706-10b0-48e9-a138-e60d7e46e682&amp;width=544&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-203eeaa5d0084e0fbb6f8bf36938e038"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-0c94958eb57a43c18369ed007068fd04" data-id="0c94958eb57a43c18369ed007068fd04"><span><div id="0c94958eb57a43c18369ed007068fd04" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0c94958eb57a43c18369ed007068fd04" title="1.3 Azure OpenAI Studio"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.3 <b>Azure OpenAI Studio</b></span></span></h3><div class="notion-text notion-block-3e5da4b20de04026a75c2d77e4482d8c">模型创建完成以后，我们可以直接使用 Azure OpenAI Studio 来进行快速的测试。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-9a093cf7f0a14cde9dfea3b10ebbb61b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fd86e7502-26c0-4456-9c57-f0fcee518c4d%2F79898805-7503-4d52-a25b-9f64a43b420f%2FUntitled.png?table=block&amp;id=9a093cf7-f0a1-4cde-9dfe-a3b10ebbb61b&amp;t=9a093cf7-f0a1-4cde-9dfe-a3b10ebbb61b&amp;width=544&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-00abbc6aa5c941f5a5e11ab64a15ad78"> </div><div class="notion-text notion-block-172d6f56431c44d0b9344c176cca8109">ChatGPT 测试</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-8e8dc0db07e14487a6b0379f2c28ea64"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fd86e7502-26c0-4456-9c57-f0fcee518c4d%2F95c03b17-ef55-4417-9ffb-ce04e9f5cb3a%2FUntitled.png?table=block&amp;id=8e8dc0db-07e1-4487-a6b0-379f2c28ea64&amp;t=8e8dc0db-07e1-4487-a6b0-379f2c28ea64&amp;width=544&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-09f826c639ce4a17acac4d31b860bf84"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-17633b616f71403c824359b41b217929" data-id="17633b616f71403c824359b41b217929"><span><div id="17633b616f71403c824359b41b217929" class="notion-header-anchor"></div><a class="notion-hash-link" href="#17633b616f71403c824359b41b217929" title="1.4 API 调用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.4 <b>API 调用</b></span></span></h3><div class="notion-text notion-block-29785232fbaa4292b15de6e66189cf26">在 资源管理-&gt;密钥和终结点 可以获取 API 地址以及调用密钥。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-13fedf7726cc40eea0a11f3fea8516b7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fd86e7502-26c0-4456-9c57-f0fcee518c4d%2F70da1fcd-3326-4d0a-a89e-0fbc0e0f1675%2FUntitled.png?table=block&amp;id=13fedf77-26cc-40ee-a0a1-1f3fea8516b7&amp;t=13fedf77-26cc-40ee-a0a1-1f3fea8516b7&amp;width=544&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-662132fe2925449e92ca09301d86b5cb"> </div><div class="notion-text notion-block-264a9e047b3f49d788a91e08886b217f">详细文档查看 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://learn.microsoft.com/en-us/azure/cognitive-services/openai/chatgpt-quickstart?WT.mc_id=DT-MVP-5003133">API 文档</a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-6b05459e605945ca927bb753e715b91e" data-id="6b05459e605945ca927bb753e715b91e"><span><div id="6b05459e605945ca927bb753e715b91e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6b05459e605945ca927bb753e715b91e" title="二、打造专属ChatGPT"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、打造专属ChatGPT</span></span></h2><div class="notion-text notion-block-1f7b4b370cf943b0ac02facb1eb910b4">打造自己的 ChatGPT 推荐直接使用 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/Chanzhaoyu/chatgpt-web">https://github.com/Chanzhaoyu/chatgpt-web</a> 这个项目。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3810e03e9fd04360968a1c9fb779a58c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fd86e7502-26c0-4456-9c57-f0fcee518c4d%2Fe880b14c-975c-4c4b-9a99-efeeae375e7d%2FUntitled.png?table=block&amp;id=3810e03e-9fd0-4360-968a-1c9fb779a58c&amp;t=3810e03e-9fd0-4360-968a-1c9fb779a58c&amp;width=544&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-7ee0119c334b4edf9cdfdbdbc1b8def9"> </div><div class="notion-blank notion-block-a18c5281dc314e36b17d789bc1490f7b"> </div><div class="notion-text notion-block-9fd93e491c2f4cd6ae075f66833ecd60">参考资料</div><div class="notion-text notion-block-d0d2711d7a764867a9bbc6b85d21195b">Azure OpenAI 代理转发到Open AI</div><div class="notion-text notion-block-c92e817cb04d41a3a6be8722f5dd4bf5"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.cnblogs.com/stulzq/p/17271937.html">https://www.cnblogs.com/stulzq/p/17271937.html</a></div><div class="notion-text notion-block-cac2ca69fab74206a50641751b6b44b0"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README_CN.md">https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README_CN.md</a></div><div class="notion-blank notion-block-df426ffb2fb34c5e96ad4ca80a37046a"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>