Showing preview only (1,640K chars total). Download the full file or copy to clipboard to get everything.
Repository: Sunbelife/apple-store-helper-15
Branch: master
Commit: 7597be89e686
Files: 139
Total size: 13.6 MB
Directory structure:
gitextract_y93ozk9n/
├── .github/
│ ├── build/
│ │ └── build_info.json
│ └── workflows/
│ └── go.yml
├── .gitignore
├── EMBEDDED_DATA_README.md
├── LICENSE
├── NEW_REGION_ADAPTATION.md
├── PROJECT_DOCUMENTATION.md
├── README.md
├── REGION_PRODUCT_ADAPTATION.md
├── cache/
│ ├── html/
│ │ ├── iphone-16_au.html
│ │ ├── iphone-16_cn.html
│ │ ├── iphone-16_hk.html
│ │ ├── iphone-16_jp.html
│ │ ├── iphone-16_sg.html
│ │ ├── iphone-16_uk.html
│ │ ├── iphone-16_us.html
│ │ ├── iphone-17-pro_au.html
│ │ ├── iphone-17-pro_cn.html
│ │ ├── iphone-17-pro_hk.html
│ │ ├── iphone-17-pro_jp.html
│ │ ├── iphone-17-pro_sg.html
│ │ ├── iphone-17-pro_uk.html
│ │ ├── iphone-17-pro_us.html
│ │ ├── iphone-17_au.html
│ │ ├── iphone-17_cn.html
│ │ ├── iphone-17_hk.html
│ │ ├── iphone-17_jp.html
│ │ ├── iphone-17_sg.html
│ │ ├── iphone-17_uk.html
│ │ ├── iphone-17_us.html
│ │ ├── iphone-air_au.html
│ │ ├── iphone-air_cn.html
│ │ ├── iphone-air_hk.html
│ │ ├── iphone-air_jp.html
│ │ ├── iphone-air_sg.html
│ │ ├── iphone-air_uk.html
│ │ ├── iphone-air_us.html
│ │ ├── iphone_17_pro_au.html
│ │ ├── iphone_17_pro_cn.html
│ │ ├── iphone_17_pro_hk.html
│ │ ├── iphone_17_pro_jp.html
│ │ ├── iphone_17_pro_sg.html
│ │ ├── iphone_17_pro_uk.html
│ │ └── iphone_17_pro_us.html
│ └── store_html/
│ └── apple_store_list.html
├── common/
│ └── const.go
├── data/
│ ├── config/
│ │ └── apple_urls.json
│ ├── product/
│ │ ├── product_data_au.json
│ │ ├── product_data_cn.json
│ │ ├── product_data_hk.json
│ │ ├── product_data_jp.json
│ │ ├── product_data_sg.json
│ │ ├── product_data_uk.json
│ │ └── product_data_us.json
│ ├── store/
│ │ ├── store_ae.json
│ │ ├── store_at.json
│ │ ├── store_au.json
│ │ ├── store_be.json
│ │ ├── store_br.json
│ │ ├── store_ca.json
│ │ ├── store_ch.json
│ │ ├── store_cn.json
│ │ ├── store_de.json
│ │ ├── store_es.json
│ │ ├── store_fr.json
│ │ ├── store_hk.json
│ │ ├── store_in.json
│ │ ├── store_it.json
│ │ ├── store_jp.json
│ │ ├── store_kr.json
│ │ ├── store_mx.json
│ │ ├── store_my.json
│ │ ├── store_nl.json
│ │ ├── store_se.json
│ │ ├── store_th.json
│ │ ├── store_tr.json
│ │ ├── store_tw.json
│ │ ├── store_uk.json
│ │ └── store_us.json
│ └── store_data.json
├── embedded/
│ ├── data/
│ │ ├── product/
│ │ │ ├── product_data_au.json
│ │ │ ├── product_data_cn.json
│ │ │ ├── product_data_hk.json
│ │ │ ├── product_data_jp.json
│ │ │ ├── product_data_sg.json
│ │ │ ├── product_data_uk.json
│ │ │ └── product_data_us.json
│ │ └── store/
│ │ ├── store_ae.json
│ │ ├── store_at.json
│ │ ├── store_au.json
│ │ ├── store_be.json
│ │ ├── store_br.json
│ │ ├── store_ca.json
│ │ ├── store_ch.json
│ │ ├── store_cn.json
│ │ ├── store_de.json
│ │ ├── store_es.json
│ │ ├── store_fr.json
│ │ ├── store_hk.json
│ │ ├── store_in.json
│ │ ├── store_it.json
│ │ ├── store_jp.json
│ │ ├── store_kr.json
│ │ ├── store_mx.json
│ │ ├── store_my.json
│ │ ├── store_nl.json
│ │ ├── store_se.json
│ │ ├── store_th.json
│ │ ├── store_tr.json
│ │ ├── store_tw.json
│ │ ├── store_uk.json
│ │ └── store_us.json
│ └── embedded_data.go
├── final_embedded_test.go
├── final_test.go
├── go.mod
├── go.sum
├── main.go
├── model/
│ ├── area.go
│ ├── area_iphone17.go
│ ├── area_iphone17.go.bak
│ ├── china_location.go
│ ├── china_stores.go
│ ├── global_stores.go
│ ├── product.go
│ ├── product_structure.go
│ └── store.go
├── services/
│ ├── area.go
│ ├── listen.go
│ ├── product.go
│ ├── product_fetcher.go
│ ├── setting.go
│ ├── store.go
│ └── store_fetcher.go
├── theme/
│ ├── bundle.go
│ └── theme.go
├── user_settings.json
└── view/
├── custom_select.go
└── view.go
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/build/build_info.json
================================================
{
"darwin": {
"amd64": {"arch": "o64", "name": "macos-64"},
"arm64": {"arch": "oa64", "name": "macos-arm64-v8a"}
}
}
================================================
FILE: .github/workflows/go.yml
================================================
name: Build
on:
push:
branches:
- '*'
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/*.yml"
- "*.png"
- "*.go"
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/*.yml"
- "*.png"
- "*.go"
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ darwin ]
goarch: [ amd64, arm64 ]
env:
CGO_ENABLED: 1
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARM: ${{ matrix.goarm }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^1.23.0
- name: Setup compiler environment
id: info
run: |
export _NAME=apple-store-helper-$(jq ".$GOOS[\"$GOARCH$GOARM\"].name" -r < .github/build/build_info.json)
export _ARCH=$(jq ".$GOOS[\"$GOARCH$GOARM\"].arch" -r < .github/build/build_info.json)
export _ABI=$(jq ".$GOOS[\"$GOARCH$GOARM\"].abi // \"\"" -r < .github/build/build_info.json)
export _ARTIFACT=apple-store-helper-$GOOS-$GOARCH$(if [[ "$GOARM" ]]; then echo "v$GOARM"; fi)
echo "GOOS: $GOOS, GOARCH: $GOARCH, GOARM: $GOARM, ABI: $_ABI, RELEASE_NAME: $_NAME, ARTIFACT_NAME: $_ARTIFACT"
echo "ARCH_NAME=$_ARCH" >> $GITHUB_ENV
echo "ABI=$_ABI" >> $GITHUB_ENV
echo "DIST=$_NAME" >> $GITHUB_ENV
echo "ARTIFACT=$_ARTIFACT" >> $GITHUB_ENV
- name: Install darwin cross compiler
if: env.GOOS == 'darwin'
run: |
curl -L https://github.com/Hintay/crossosx/releases/latest/download/crossosx.tar.zst -o crossosx.tar.zst
tar xvaf crossosx.tar.zst
echo "LD_LIBRARY_PATH=$(pwd)/crossosx/lib/" >> $GITHUB_ENV
echo "PATH=$(pwd)/crossosx/bin/:$PATH" >> $GITHUB_ENV
echo "CC=${{ env.ARCH_NAME }}-clang" >> $GITHUB_ENV
echo "CXX=${{ env.ARCH_NAME }}-clang++" >> $GITHUB_ENV
echo "LD_FLAGS=-w" >> $GITHUB_ENV
- name: Build
run: |
mkdir -p dist
go build -o dist/apple-store-helper -v main.go
- name: Archive backend artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: dist/apple-store-helper
- name: Prepare publish
if: github.event_name == 'release'
run: |
cp README*.md ./dist
find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T -
openssl dgst -sha512 ${{ env.DIST }}.tar.gz | sed 's/([^)]*)//g' | awk '{print $NF}' >> ${{ env.DIST }}.tar.gz.digest
- name: Publish
uses: softprops/action-gh-release@v2
if: github.event_name == 'release'
with:
files: |
${{ env.DIST }}.tar.gz
${{ env.DIST }}.tar.gz.digest
================================================
FILE: .gitignore
================================================
fyne-cross
.idea
tmp/main
tmp/build-errors.log
================================================
FILE: EMBEDDED_DATA_README.md
================================================
# 嵌入数据说明
## 概述
本项目已成功将 data 文件嵌入到 Go 程序中,使用 Go 1.16+ 的 `embed` 包实现。这样程序就不再依赖外部的 JSON 文件,可以独立运行。
## 实现方式
### 1. 嵌入包结构
```
embedded/
├── embedded_data.go # 嵌入数据定义
└── data/ # 复制的数据文件
├── product/ # 产品数据
│ ├── product_data_cn.json
│ ├── product_data_hk.json
│ ├── product_data_jp.json
│ ├── product_data_sg.json
│ ├── product_data_us.json
│ ├── product_data_uk.json
│ └── product_data_au.json
└── store/ # 门店数据
├── store_cn.json
├── store_jp.json
├── store_us.json
├── store_uk.json
└── store_au.json
```
### 2. 嵌入的数据
#### 产品数据 (7 个地区)
- **中国大陆 (cn)**: 4 个产品系列
- **香港 (hk)**: 6 个产品系列
- **日本 (jp)**: 6 个产品系列
- **新加坡 (sg)**: 6 个产品系列
- **美国 (us)**: 6 个产品系列
- **英国 (uk)**: 6 个产品系列
- **澳大利亚 (au)**: 6 个产品系列
#### 门店数据 (5 个地区)
- **中国大陆 (cn)**: 49 个门店
- **日本 (jp)**: 11 个门店
- **美国 (us)**: 274 个门店
- **英国 (uk)**: 40 个门店
- **澳大利亚 (au)**: 22 个门店
### 3. 数据加载逻辑
程序会优先从嵌入的数据加载,如果嵌入数据不存在,则回退到文件系统:
```go
// 产品数据加载
func LoadProductData(areaCode string) (*ProductData, error) {
// 首先尝试从嵌入的数据加载
if data, exists := embedded.GetProductData(areaCode); exists {
// 解析嵌入的数据
// ...
}
// 如果嵌入数据不存在,回退到文件系统
// ...
}
// 门店数据加载
func LoadStoreData(areaCode string) (*StoreData, error) {
// 首先尝试从嵌入的数据加载
if data, exists := embedded.GetStoreData(areaCode); exists {
// 解析嵌入的数据
// ...
}
// 如果嵌入数据不存在,回退到文件系统
// ...
}
```
## 优势
### 1. 独立运行
- 程序不再依赖外部的 data 目录
- 可以打包成单个可执行文件分发
- 减少了文件丢失的风险
### 2. 性能提升
- 数据在编译时嵌入,启动时直接加载
- 避免了文件 I/O 操作
- 提高了程序启动速度
### 3. 部署简化
- 只需要分发一个可执行文件
- 不需要担心数据文件的路径问题
- 简化了安装和部署流程
## 数据更新
### 更新嵌入数据
1. **修改源数据文件**:
```bash
# 修改原始数据文件
vim data/product/product_data_cn.json
```
2. **复制到嵌入目录**:
```bash
# 复制更新的文件到嵌入目录
cp data/product/*.json embedded/data/product/
cp data/store/store_*.json embedded/data/store/
```
3. **重新编译**:
```bash
go build -o apple-store-helper .
```
### 添加新地区数据
1. **添加新的 embed 声明**:
```go
//go:embed data/product/product_data_xx.json
var ProductDataXX []byte
//go:embed data/store/store_xx.json
var StoreDataXX []byte
```
2. **更新映射表**:
```go
var ProductDataMap = map[string][]byte{
// ... 现有映射
"xx": ProductDataXX,
}
var StoreDataMap = map[string][]byte{
// ... 现有映射
"xx": StoreDataXX,
}
```
3. **复制数据文件并重新编译**
## 注意事项
### 1. 文件大小限制
- 嵌入的数据会增加可执行文件的大小
- 当前总嵌入数据约 100KB,影响较小
- 如果数据过大,可以考虑压缩或分片
### 2. 编译时间
- 嵌入大量数据会增加编译时间
- 建议在 CI/CD 中预编译
### 3. 数据更新
- 更新数据需要重新编译程序
- 对于频繁更新的数据,可以考虑保持文件系统方式
## 测试验证
使用以下命令验证嵌入的数据:
```bash
# 编译程序
go build -o apple-store-helper .
# 运行程序测试数据加载
./apple-store-helper
```
程序启动时会显示类似以下日志:
```
Loaded embedded product data for cn
Loaded embedded store data for cn: 49 stores
```
## 总结
通过使用 Go embed 包,我们成功将 data 文件嵌入到程序中,实现了:
- ✅ 独立运行:不依赖外部数据文件
- ✅ 性能提升:启动时直接加载嵌入数据
- ✅ 部署简化:单个可执行文件即可运行
- ✅ 向后兼容:支持文件系统回退机制
这种实现方式特别适合需要独立分发的桌面应用程序。
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
================================================
FILE: NEW_REGION_ADAPTATION.md
================================================
# 新地区适配指南
## 概述
本文档描述了如何为 Apple Store Helper 添加新地区支持的完整流程。
## 适配步骤
### 1. 添加地区定义
在 `model/area.go` 中添加新地区:
```go
var Areas = []Area{
// ... 现有地区
{
Title: "地区名称", // 显示名称
Locale: "语言_地区", // 如 en_US
ShortCode: "地区代码", // 如 us
ProductsJson: iPhone17ProductsJson,
},
}
```
### 2. 获取产品数据
#### 2.1 配置产品数据获取器
在 `services/product_fetcher.go` 中添加地区支持:
```go
func FetchProductsFromApple(areaCode string) (*ProductData, error) {
// 添加新地区的URL
urls := map[string]string{
"cn": "https://www.apple.com.cn/shop/buy-iphone/iphone-16",
"hk": "https://www.apple.com/hk/shop/buy-iphone/iphone-16",
"jp": "https://www.apple.com/jp/shop/buy-iphone/iphone-16",
// 新地区:
"us": "https://www.apple.com/shop/buy-iphone/iphone-16",
}
}
```
#### 2.2 运行产品数据获取
产品数据会自动保存到 `data/product_data_[地区代码].json`
### 3. 配置门店数据获取
#### 3.1 更新门店获取服务
在 `services/store_fetcher.go` 中添加地区支持:
```go
func FetchStoresForArea(areaCode string, location string) ([]model.Store, error) {
switch areaCode {
case "新地区代码":
// 配置API URL
baseURL := "https://www.apple.com/[地区]/shop/address-lookup"
// 设置查询参数
}
}
```
#### 3.2 配置请求头
```go
func getAcceptLanguage(areaCode string) string {
switch areaCode {
case "新地区代码":
return "语言代码"
}
}
func getReferer(areaCode string) string {
switch areaCode {
case "新地区代码":
return "https://www.apple.com/[地区]/shop/buy-iphone/iphone-16"
}
}
```
### 4. 配置库存查询
在 `services/listen.go` 中更新 `monitorInventory` 函数:
#### 4.1 配置查询参数
```go
// 根据地区设置location参数
if s.Area.ShortCode == "新地区代码" {
// 设置location格式
// 例如:邮编、城市名或其他地区特定格式
}
```
#### 4.2 配置API域名
```go
// 根据地区选择域名
domain := "www.apple.com"
if s.Area.ShortCode == "cn" {
domain = "www.apple.com.cn"
} else if s.Area.ShortCode == "新地区代码" {
domain = "www.apple.com/[地区路径]"
}
```
### 5. 静态门店数据(可选)
如果需要提供静态门店数据作为备份,创建 `model/[地区]_stores.go`:
```go
var [地区]Stores = map[string][]Store{
"语言_地区": {
{
StoreNumber: "R###",
CityStoreName: "城市-门店名",
Province: "省/州",
City: "城市",
District: "区/邮编",
},
},
}
```
然后在 `model/global_stores.go` 中注册:
```go
var GlobalStores = map[string][]Store{
// ... 现有地区
"语言_地区": [地区]Stores["语言_地区"],
}
```
### 6. UI适配
根据地区特性,可能需要在 `main.go` 中进行UI调整:
- **需要邮编的地区**(如日本):添加邮编输入框
- **基于位置的地区**(如中国):使用省市区选择器
- **简单地区**(如香港):使用固定location值
### 7. 测试步骤
1. **获取数据**:
```bash
# 程序会自动获取,或点击"更新数据"按钮
```
2. **验证产品数据**:
检查 `data/product_data_[地区代码].json` 文件内容
3. **验证门店数据**:
检查 `data/stores_[地区代码].json` 文件内容
4. **测试库存查询**:
运行程序并验证库存监控功能
## 数据文件结构
### 产品数据 (product_data_[地区].json)
```json
{
"update_time": "2025-09-10 18:20:57",
"area_code": "地区代码",
"products": {
"产品系列": [
{
"Model": "型号",
"Capacity": "容量",
"Color": "颜色",
"Code": "产品代码",
"Type": "产品类型"
}
]
}
}
```
### 门店数据 (stores_[地区].json)
```json
{
"update_time": "2025-09-10 18:20:57",
"area_code": "地区代码",
"stores": [
{
"StoreNumber": "R###",
"CityStoreName": "门店名称",
"Province": "省/州",
"City": "城市",
"District": "区/邮编"
}
]
}
```
## 注意事项
1. **Unicode空格处理**:产品数据解析时需要规范化各种空格字符
2. **动态请求头**:使用随机User-Agent和动态headers避免被识别
3. **缓存管理**:定期清理HTTP客户端缓存
4. **库存字段**:使用 `pickupDisplay` 字段判断库存状态
- `"available"` = 有货
- `"ineligible"` = 无货
## 常见问题
### Q: 如何找到正确的API端点?
A: 打开浏览器开发者工具,访问Apple官网选择产品和门店,观察网络请求
### Q: 产品代码格式不正确?
A: 检查HTML中的metrics JSON,确保正确解析产品信息
### Q: 门店列表为空?
A: 验证location参数格式是否符合该地区要求
================================================
FILE: PROJECT_DOCUMENTATION.md
================================================
# Apple Store Helper 项目文档
## 📋 目录
- [项目概述](#项目概述)
- [技术架构](#技术架构)
- [项目结构](#项目结构)
- [核心流程](#核心流程)
- [数据管理](#数据管理)
- [API 接口](#api-接口)
- [用户界面](#用户界面)
- [推送系统](#推送系统)
- [部署说明](#部署说明)
- [开发指南](#开发指南)
## 🎯 项目概述
### 项目简介
Apple Store Helper(抢你妹)是一个基于 Go 语言开发的 Apple 产品库存监控工具,能够实时监控 Apple Store 的库存状态,并通过 Bark 推送及时通知用户。
### 核心功能
- **实时库存监控**:自动扫描 Apple Store 库存状态
- **多地区支持**:支持 7 个主要地区的 Apple Store
- **智能推送**:集成 Bark 推送服务,第一时间通知用户
- **独立运行**:使用 Go embed 技术,无需外部数据文件
- **用户友好**:基于 Fyne 框架的现代化 GUI 界面
### 技术栈
- **后端语言**:Go 1.17+
- **GUI 框架**:Fyne v2
- **数据存储**:JSON + Go embed
- **网络请求**:标准库 + gorequest
- **推送服务**:Bark API
- **音频播放**:beep 库
## 🏗️ 技术架构
### 整体架构图
```
┌─────────────────────────────────────────────────────────────┐
│ Apple Store Helper │
├─────────────────────────────────────────────────────────────┤
│ Presentation Layer (Fyne GUI) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Main UI │ │ Settings │ │ Monitoring │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ Business Logic Layer │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Product │ │ Store │ │ Listen │ │
│ │ Service │ │ Service │ │ Service │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ Data Layer │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Embedded │ │ Product │ │ Store │ │
│ │ Data │ │ Fetcher │ │ Fetcher │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ External Services │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Apple APIs │ │ Bark API │ │ HTTP APIs │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────────┘
```
### 核心组件
#### 1. 表示层 (Presentation Layer)
- **Main UI**:主界面,产品选择和监控控制
- **Settings UI**:设置界面,配置推送和监控参数
- **Monitoring UI**:监控状态显示和日志输出
#### 2. 业务逻辑层 (Business Logic Layer)
- **Product Service**:产品数据管理和查询
- **Store Service**:门店数据管理和查询
- **Listen Service**:监控逻辑和状态管理
#### 3. 数据层 (Data Layer)
- **Embedded Data**:嵌入的静态数据
- **Product Fetcher**:产品数据获取和解析
- **Store Fetcher**:门店数据获取和解析
## 📁 项目结构
```
apple-store-helper-15/
├── main.go # 主程序入口
├── go.mod # Go 模块定义
├── go.sum # 依赖版本锁定
├── README.md # 项目说明
├── PROJECT_DOCUMENTATION.md # 项目文档
├── LICENSE # 许可证
├── apple-store-helper # 编译后的可执行文件
│
├── common/ # 公共模块
│ └── const.go # 常量定义
│
├── model/ # 数据模型
│ ├── area.go # 地区模型
│ ├── product.go # 产品模型
│ ├── store.go # 门店模型
│ ├── china_location.go # 中国地区数据
│ ├── china_stores.go # 中国门店数据
│ ├── global_stores.go # 全球门店数据
│ └── product_structure.go # 产品结构定义
│
├── services/ # 业务服务
│ ├── product.go # 产品服务
│ ├── store.go # 门店服务
│ ├── listen.go # 监控服务
│ ├── area.go # 地区服务
│ ├── setting.go # 设置服务
│ ├── product_fetcher.go # 产品数据获取
│ └── store_fetcher.go # 门店数据获取
│
├── view/ # 视图层
│ ├── view.go # 视图定义
│ └── custom_select.go # 自定义选择组件
│
├── theme/ # 主题和资源
│ ├── theme.go # 主题定义
│ ├── bundle.go # 资源打包
│ ├── font/ # 字体文件
│ └── mp3/ # 音频文件
│
├── embedded/ # 嵌入数据
│ ├── embedded_data.go # 嵌入数据定义
│ └── data/ # 数据文件
│ ├── product/ # 产品数据
│ └── store/ # 门店数据
│
└── data/ # 原始数据(开发用)
├── product/ # 产品数据
├── store/ # 门店数据
└── config/ # 配置文件
```
## 🔄 核心流程
### 1. 程序启动流程
```mermaid
graph TD
A[程序启动] --> B[初始化 Fyne 应用]
B --> C[加载主题和资源]
C --> D[初始化服务层]
D --> E[加载嵌入数据]
E --> F[构建用户界面]
F --> G[显示主窗口]
G --> H[等待用户操作]
```
### 2. 数据加载流程
```mermaid
graph TD
A[选择地区] --> B{检查嵌入数据}
B -->|存在| C[从嵌入数据加载]
B -->|不存在| D[从文件系统加载]
C --> E[解析产品数据]
D --> E
E --> F[解析门店数据]
F --> G[更新 UI 选项]
G --> H[用户选择产品]
```
### 3. 监控流程
```mermaid
graph TD
A[开始监控] --> B[验证配置]
B --> C[启动监控协程]
C --> D[构建 API 请求]
D --> E[发送 HTTP 请求]
E --> F{请求成功?}
F -->|是| G[解析响应数据]
F -->|否| H[记录错误日志]
G --> I{有库存?}
I -->|是| J[发送推送通知]
I -->|否| K[等待下次扫描]
J --> L[播放提醒音]
L --> M[更新监控状态]
K --> N[等待扫描间隔]
N --> D
H --> N
```
### 4. 推送流程
```mermaid
graph TD
A[检测到库存] --> B[构建推送消息]
B --> C[调用 Bark API]
C --> D{推送成功?}
D -->|是| E[记录推送日志]
D -->|否| F[重试推送]
F --> G{重试次数<3?}
G -->|是| C
G -->|否| H[记录推送失败]
E --> I[播放提醒音]
H --> I
I --> J[更新 UI 状态]
```
## 💾 数据管理
### 数据架构
#### 1. 产品数据结构
```go
type ProductData struct {
UpdateTime string `json:"update_time"`
AreaCode string `json:"area_code"`
Products map[string][]ProductInfo `json:"products"`
}
type ProductInfo struct {
Model string `json:"Model"`
Capacity string `json:"Capacity"`
Color string `json:"Color"`
Code string `json:"Code"`
Type string `json:"Type"`
}
```
#### 2. 门店数据结构
```go
type StoreData struct {
UpdateTime string `json:"update_time"`
AreaCode string `json:"area_code"`
Stores []Store `json:"stores"`
}
type Store struct {
StoreNumber string `json:"StoreNumber"`
CityStoreName string `json:"CityStoreName"`
Province string `json:"Province"`
City string `json:"City"`
District string `json:"District"`
}
```
### 数据嵌入机制
#### 1. Go Embed 实现
```go
//go:embed data/product/product_data_cn.json
var ProductDataCN []byte
//go:embed data/store/store_cn.json
var StoreDataCN []byte
var ProductDataMap = map[string][]byte{
"cn": ProductDataCN,
"hk": ProductDataHK,
// ... 其他地区
}
```
#### 2. 数据加载策略
1. **优先从嵌入数据加载**:启动时直接访问内存中的数据
2. **文件系统回退**:如果嵌入数据不存在,从文件系统加载
3. **网络获取**:如果本地数据不存在,从 Apple API 获取
### 数据更新流程
```mermaid
graph TD
A[数据更新请求] --> B[检查网络连接]
B --> C[调用 Apple API]
C --> D[解析响应数据]
D --> E[验证数据格式]
E --> F[保存到文件系统]
F --> G[更新内存缓存]
G --> H[通知 UI 更新]
```
## 🌐 API 接口
### Apple Store API
#### 1. 产品数据 API
```
GET https://www.apple.com/{region}/shop/buy-iphone/iphone-16
```
**请求头**:
```
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
Referer: https://www.apple.com/{region}/shop/buy-iphone/iphone-16
```
#### 2. 库存查询 API
```
GET https://www.apple.com/{region}/shop/fulfillment-messages
```
**参数**:
- `fae=true`:启用库存查询
- `pl=true`:启用位置查询
- `mts.0=regular`:查询常规库存
- `parts.0={product_code}`:产品代码
- `location={location}`:位置信息
#### 3. 门店查询 API
```
GET https://www.apple.com/{region}/shop/address-lookup
```
### Bark 推送 API
#### 推送接口
```
POST https://api.day.app/{device_key}
```
**请求体**:
```json
{
"title": "库存提醒",
"body": "iPhone 16 Pro 有库存!",
"url": "https://www.apple.com/shop/buy-iphone/iphone-16-pro"
}
```
## 🖥️ 用户界面
### 界面架构
#### 1. 主界面布局
```
┌─────────────────────────────────────────────────────────┐
│ 抢你妹 - Apple 产品库存监控工具 │
├─────────────────────────────────────────────────────────┤
│ 地区选择: [下拉框] 产品型号: [下拉框] │
│ 容量/尺寸: [下拉框] 颜色: [下拉框] │
│ 门店选择: [下拉框] │
├─────────────────────────────────────────────────────────┤
│ Bark 推送: [输入框] [测试推送] │
│ 提醒方式: ○ 通知推送 ○ 持续响铃 │
├─────────────────────────────────────────────────────────┤
│ [开始监控] [停止监控] [更新数据] │
├─────────────────────────────────────────────────────────┤
│ 监控状态: 未开始 │
│ 日志输出: [滚动区域] │
└─────────────────────────────────────────────────────────┘
```
#### 2. 组件说明
**地区选择器**:
- 支持 7 个地区
- 自动加载对应数据
- 动态更新产品选项
**产品选择器**:
- 型号 → 容量/尺寸 → 颜色
- 级联选择逻辑
- 实时验证选择
**门店选择器**:
- 中国大陆:省份 → 城市 → 门店
- 其他地区:直接选择门店
- 支持搜索和筛选
**监控控制**:
- 开始/停止监控
- 实时状态显示
- 日志输出区域
### 界面交互流程
```mermaid
graph TD
A[用户选择地区] --> B[加载产品数据]
B --> C[用户选择产品]
C --> D[用户选择门店]
D --> E[配置推送设置]
E --> F[开始监控]
F --> G[显示监控状态]
G --> H[检测到库存]
H --> I[发送推送通知]
I --> J[播放提醒音]
J --> K[更新界面状态]
```
## 📱 推送系统
### Bark 推送集成
#### 1. 推送配置
```go
type PushConfig struct {
BarkURL string `json:"bark_url"`
NotifyMode string `json:"notify_mode"` // "notification" | "ring"
TestMode bool `json:"test_mode"`
}
```
#### 2. 推送消息构建
```go
func buildPushMessage(product, store, url string) map[string]string {
return map[string]string{
"title": "🎉 库存提醒",
"body": fmt.Sprintf("%s 在 %s 有库存!", product, store),
"url": url,
"sound": "bell",
}
}
```
#### 3. 推送发送
```go
func sendPushNotification(config PushConfig, message map[string]string) error {
url := fmt.Sprintf("https://api.day.app/%s", config.BarkURL)
resp, err := http.PostForm(url, message)
// 处理响应...
}
```
### 音频提醒系统
#### 1. 音频播放
```go
func playNotificationSound() {
// 使用 beep 库播放 MP3 文件
streamer, format, err := mp3.Decode(audioFile)
speaker.Play(beep.Seq(streamer, beep.Callback(func() {
streamer.Close()
})))
}
```
#### 2. 提醒模式
- **通知推送**:静默推送,适合办公环境
- **持续响铃**:持续播放提醒音,确保不错过
## 🚀 部署说明
### 编译配置
#### 1. 开发环境编译
```bash
# 安装依赖
go mod tidy
# 编译程序
go build -o apple-store-helper .
# 运行程序
./apple-store-helper
```
#### 2. 生产环境编译
```bash
# 优化编译
go build -ldflags="-s -w" -o apple-store-helper .
# 压缩可执行文件
upx apple-store-helper
```
#### 3. 跨平台编译
```bash
# macOS
GOOS=darwin GOARCH=amd64 go build -o apple-store-helper-macOS .
# Windows
GOOS=windows GOARCH=amd64 go build -o apple-store-helper.exe .
# Linux
GOOS=linux GOARCH=amd64 go build -o apple-store-helper-linux .
```
### 打包分发
#### 1. macOS 应用包
```bash
# 创建应用包结构
mkdir -p AppleStoreHelper.app/Contents/MacOS
mkdir -p AppleStoreHelper.app/Contents/Resources
# 复制可执行文件
cp apple-store-helper AppleStoreHelper.app/Contents/MacOS/
# 创建 Info.plist
cat > AppleStoreHelper.app/Contents/Info.plist << EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>apple-store-helper</string>
<key>CFBundleIdentifier</key>
<string>com.example.apple-store-helper</string>
<key>CFBundleName</key>
<string>Apple Store Helper</string>
<key>CFBundleVersion</key>
<string>1.6.2</string>
</dict>
</plist>
EOF
```
#### 2. 安装包制作
```bash
# 使用 pkgbuild 创建安装包
pkgbuild --root AppleStoreHelper.app --identifier com.example.apple-store-helper --version 1.6.2 AppleStoreHelper.pkg
```
## 👨💻 开发指南
### 开发环境设置
#### 1. 环境要求
- Go 1.17+
- Git
- 代码编辑器(推荐 VS Code)
#### 2. 项目设置
```bash
# 克隆项目
git clone https://github.com/your-repo/apple-store-helper.git
cd apple-store-helper
# 安装依赖
go mod tidy
# 运行测试
go test ./...
# 运行程序
go run main.go
```
### 代码规范
#### 1. 命名规范
- **包名**:小写字母,简短有意义
- **函数名**:驼峰命名,动词开头
- **变量名**:驼峰命名,名词开头
- **常量名**:全大写,下划线分隔
#### 2. 注释规范
```go
// Package services 提供业务逻辑服务
package services
// ProductService 管理产品数据
type ProductService struct {
// products 存储产品数据
products map[string][]Product
}
// LoadProduct 加载指定地区的产品数据
// 参数:
// - areaCode: 地区代码,如 "cn", "us"
// 返回:
// - error: 加载失败时返回错误信息
func (s *ProductService) LoadProduct(areaCode string) error {
// 实现逻辑...
}
```
#### 3. 错误处理
```go
func processData() error {
data, err := fetchData()
if err != nil {
return fmt.Errorf("failed to fetch data: %w", err)
}
if err := validateData(data); err != nil {
return fmt.Errorf("invalid data: %w", err)
}
return nil
}
```
### 测试指南
#### 1. 单元测试
```go
func TestProductService_LoadProduct(t *testing.T) {
service := NewProductService()
tests := []struct {
name string
areaCode string
wantErr bool
}{
{"valid area", "cn", false},
{"invalid area", "xx", true},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
err := service.LoadProduct(tt.areaCode)
if (err != nil) != tt.wantErr {
t.Errorf("LoadProduct() error = %v, wantErr %v", err, tt.wantErr)
}
})
}
}
```
#### 2. 集成测试
```go
func TestIntegration_Monitoring(t *testing.T) {
// 设置测试环境
config := &Config{
AreaCode: "cn",
Product: "iPhone 16 Pro",
Store: "北京-王府井",
}
// 启动监控
monitor := NewMonitor(config)
go monitor.Start()
// 等待结果
select {
case result := <-monitor.Results():
// 验证结果
assert.NotNil(t, result)
case <-time.After(30 * time.Second):
t.Fatal("monitoring timeout")
}
}
```
### 性能优化
#### 1. 内存优化
- 使用对象池减少 GC 压力
- 及时释放不需要的资源
- 避免内存泄漏
#### 2. 网络优化
- 使用连接池复用连接
- 设置合理的超时时间
- 实现重试机制
#### 3. 并发优化
- 使用协程池控制并发数
- 避免竞态条件
- 合理使用锁机制
## 📈 项目统计
### 代码统计
- **总行数**:约 3000 行
- **Go 文件**:25 个
- **测试文件**:5 个
- **文档文件**:3 个
### 功能统计
- **支持地区**:7 个
- **支持产品**:40+ 个系列
- **支持门店**:400+ 个
- **API 接口**:10+ 个
### 性能指标
- **启动时间**:< 2 秒
- **内存占用**:< 50MB
- **CPU 占用**:< 5%
- **网络延迟**:< 1 秒
---
## 📞 联系方式
- **项目地址**:https://github.com/your-repo/apple-store-helper
- **问题反馈**:https://github.com/your-repo/apple-store-helper/issues
- **功能建议**:https://github.com/your-repo/apple-store-helper/discussions
- **邮箱**:your-email@example.com
---
*最后更新:2025-09-11*
================================================
FILE: README.md
================================================
# 抢你妹 - Apple 产品库存监控工具
<div align="center">




**实时监控 Apple Store 库存,第一时间抢购心仪产品!**
[下载地址](#下载安装) | [使用教程](#使用教程) | [Bark 推送](#bark-推送设置) | [问题反馈](#问题反馈)
</div>
## ✨ 功能特色
### 🚀 核心功能
- **实时监控**:自动扫描 Apple Store 库存状态
- **多地区支持**:支持中国大陆、香港、日本、新加坡、美国、英国、澳大利亚
- **智能提醒**:Bark 推送 + 声音提醒,不错过任何机会
- **一键下单**:推送直达苹果官网购物车
- **独立运行**:无需外部数据文件,单文件即可运行
### 📱 支持的产品
- **iPhone 系列**:iPhone 16、iPhone 16 Plus、iPhone 17/Air/17 Pro/17 Pro Max
### 🌍 支持的地区
| 地区 | 产品数据 | 门店数据 | 状态 |
|------|----------|----------|------|
| 🇨🇳 中国大陆 | ✅ 4 个系列 | ✅ 49 个门店 | 完全支持 |
| 🇭🇰 香港 | ✅ 6 个系列 | ✅ 6 个门店 | 完全支持 |
| 🇯🇵 日本 | ✅ 6 个系列 | ✅ 11 个门店 | 完全支持 |
| 🇸🇬 新加坡 | ✅ 6 个系列 | ❌ 门店数据 | 部分支持 |
| 🇺🇸 美国 | ✅ 6 个系列 | ✅ 274 个门店 | 完全支持 |
| 🇬🇧 英国 | ✅ 6 个系列 | ✅ 40 个门店 | 完全支持 |
| 🇦🇺 澳大利亚 | ✅ 6 个系列 | ✅ 22 个门店 | 完全支持 |
## 📥 下载安装
### 系统要求
- **操作系统**:macOS 10.15+ (Catalina 或更高版本)
- **架构**:Intel x64 / Apple Silicon (M1/M2/M3)
- **内存**:至少 4GB RAM
- **网络**:稳定的互联网连接
### 下载方式
#### 方式一:直接下载(推荐)
1. 访问 [Releases 页面]
2. 下载最新版本的编译版本。
3. 解压后双击运行
#### 方式二:从源码编译
# 克隆仓库
# 编译程序
# 运行程序
## 🚀 使用教程
### 首次使用
1. **启动程序**
- 双击 `apple-store-helper` 启动
- 首次启动会自动加载数据,请耐心等待
2. **选择地区**
- 在「地区」下拉框中选择目标地区
- 程序会自动加载该地区的产品和门店数据
3. **选择产品**
- 在「型号」下拉框中选择产品型号
- 在「容量/尺寸」下拉框中选择规格
- 在「颜色」下拉框中选择颜色
4. **选择门店**
- 中国大陆:选择省份 → 城市 → 门店
- 其他地区:选择具体门店
5. **设置提醒**
- 配置 Bark 推送(见下方教程)
- 选择提醒方式(通知推送/持续响铃)
6. **开始监控**
- 点击「开始监控」按钮
- 程序将自动扫描库存状态
### 高级功能
#### 批量监控
- 可以同时监控多个产品
- 支持不同地区、不同门店的监控
- 每个监控任务独立运行
#### 自定义扫描间隔
- 默认扫描间隔:500ms
- 可根据网络情况调整
- 建议不要设置过短,避免被限制
#### 数据更新
- 程序内置最新数据,无需手动更新
- 支持手动刷新产品数据
- 自动检测数据更新
## 📱 Bark 推送设置
Bark 是一款优秀的 iOS 推送工具,让你第一时间收到库存提醒!
### 步骤 1:下载 Bark
从 App Store 下载 Bark:
🔗 **下载链接**:https://apps.apple.com/my/app/bark-custom-notifications/id1403753865

### 步骤 2:注册设备
1. 打开 Bark 应用
2. 点击「注册设备」按钮
3. 系统会自动生成你的推送地址

### 步骤 3:配置推送
1. 复制 Bark 生成的推送地址
2. 在「抢你妹」程序中粘贴到「Bark 推送」输入框
3. 选择提醒方式:
- **通知推送**:静默推送,适合办公环境
- **持续响铃**:持续响铃提醒,确保不错过

### 步骤 4:开始监控
1. 在「抢你妹」中点击「开始监控」
2. 程序开始扫描库存
3. 有库存时会立即推送通知
### 步骤 5:快速下单
1. 点击 iPhone 上的推送通知
2. 自动跳转到苹果官网购物车
3. 完成下单购买
<div align="center">
**⭐ 如果这个项目对你有帮助,请给个 Star!**
Made with ❤️ by [Your Name]
</div>
================================================
FILE: REGION_PRODUCT_ADAPTATION.md
================================================
# Apple Store Helper - 新地区和新产品适配指南
本文档详细说明如何为 Apple Store Helper 添加新地区支持和新产品系列支持,确保任何人都可以按照此流程进行适配。
## 📋 目录
1. [概述](#概述)
2. [新地区适配流程](#新地区适配流程)
3. [新产品系列适配流程](#新产品系列适配流程)
4. [技术细节说明](#技术细节说明)
5. [测试验证](#测试验证)
6. [常见问题](#常见问题)
## 概述
Apple Store Helper 支持多个地区的 Apple Store 库存监控,包括:
- 中国大陆 (cn)
- 香港 (hk)
- 日本 (jp)
- 新加坡 (sg)
每个地区都有独立的产品数据和门店数据,通过 Apple 官方 API 获取。
## 新地区适配流程
### 步骤 1: 添加地区定义
**文件**: `model/area.go`
```go
// 在 Areas 数组中添加新地区
var Areas = []Area{
{Title: "中国大陆", Locale: "zh_CN", ShortCode: "cn", ProductsJson: iPhone17ProductsJson},
{Title: "香港", Locale: "zh_HK", ShortCode: "hk", ProductsJson: iPhone17ProductsJson},
{Title: "日本", Locale: "ja_JP", ShortCode: "jp", ProductsJson: iPhone17ProductsJson},
{Title: "新加坡", Locale: "en_SG", ShortCode: "sg", ProductsJson: iPhone17ProductsJson},
// 添加新地区,例如:
{Title: "美国", Locale: "en_US", ShortCode: "us", ProductsJson: iPhone17ProductsJson},
}
```
**参数说明**:
- `Title`: 在UI中显示的地区名称
- `Locale`: 地区语言代码 (如: en_US, zh_CN, ja_JP)
- `ShortCode`: 地区代码,用于API调用和文件命名
- `ProductsJson`: 产品JSON配置 (通常使用 iPhone17ProductsJson)
### 步骤 2: 更新产品获取逻辑
**文件**: `services/product_fetcher.go`
在 `FetchProductData` 函数的 switch 语句中添加新地区:
```go
// 根据地区代码构建基础URL
baseURL := ""
switch areaCode {
case "cn":
baseURL = "https://www.apple.com.cn"
case "hk":
baseURL = "https://www.apple.com/hk"
case "jp":
baseURL = "https://www.apple.com/jp"
case "sg":
baseURL = "https://www.apple.com/sg"
case "us": // 新地区
baseURL = "https://www.apple.com/us"
default:
return nil, fmt.Errorf("unsupported area code: %s", areaCode)
}
```
### 步骤 3: 更新门店获取逻辑
**文件**: `services/store_fetcher.go`
#### 3.1 添加API调用逻辑
在 `FetchStoresForArea` 函数的 switch 语句中添加:
```go
switch areaCode {
case "cn":
sampleProduct = "MYEW3CH/A" // iPhone 16 白色 128GB
postalCode := getPostalCodeForLocation(location)
apiURL = fmt.Sprintf("https://www.apple.com.cn/shop/fulfillment-messages?fae=true&pl=true&mts.0=regular&parts.0=%s&location=%s",
sampleProduct, postalCode)
case "hk":
sampleProduct = "MYEW3ZA/A"
apiURL = fmt.Sprintf("https://www.apple.com/hk/shop/fulfillment-messages?fae=true&pl=true&mts.0=regular&parts.0=%s&location=Central",
sampleProduct)
case "jp":
sampleProduct = "MYDR3J/A"
apiURL = fmt.Sprintf("https://www.apple.com/jp/shop/fulfillment-messages?fae=true&pl=true&mts.0=regular&parts.0=%s&location=%s&cppart=UNLOCKED_JP",
sampleProduct, url.QueryEscape(location))
case "sg":
sampleProduct = "MXY23ZP/A"
apiURL = fmt.Sprintf("https://www.apple.com/sg/shop/fulfillment-messages?fae=true&pl=true&mts.0=regular&parts.0=%s&location=Singapore",
sampleProduct)
case "us": // 新地区
sampleProduct = "MYEW3LL/A" // 美国iPhone 16 白色 128GB
apiURL = fmt.Sprintf("https://www.apple.com/us/shop/fulfillment-messages?fae=true&pl=true&mts.0=regular&parts.0=%s&location=%s",
sampleProduct, url.QueryEscape(location))
default:
return nil, fmt.Errorf("unsupported area code: %s", areaCode)
}
```
**重要**: 需要找到该地区有效的产品代码,可以通过以下方式获取:
1. 访问该地区的 Apple 官网产品页面
2. 查看页面源码中的 `<script type="application/json" id="metrics">` 标签
3. 找到产品代码 (如: MYEW3LL/A)
#### 3.2 添加地区配置
在 `UpdateStoresForAllAreas` 函数中添加新地区:
```go
areas := map[string][]string{
"cn": {"北京", "上海", "深圳", "广州", "成都", "杭州", "南京", "武汉", "西安", "重庆", "天津", "苏州", "青岛", "长沙", "大连", "厦门", "无锡", "福州", "济南", "宁波", "温州", "郑州", "沈阳", "哈尔滨", "石家庄", "太原", "呼和浩特", "长春", "合肥", "南昌", "南宁", "海口", "贵阳", "昆明", "兰州", "西宁", "银川", "乌鲁木齐"},
"hk": {"Central"},
"jp": {"100-0001", "150-0001", "460-0008", "530-0001", "650-0001", "700-0001", "800-0001", "900-0001"},
"sg": {"Singapore"},
"us": {"10001", "90210", "60601", "33101", "75201"}, // 美国主要城市邮编
}
```
#### 3.3 添加语言和Referer配置
在 `getAcceptLanguage` 函数中添加:
```go
func getAcceptLanguage(areaCode string) string {
switch areaCode {
case "cn":
return "zh-CN,zh;q=0.9,en;q=0.8"
case "hk":
return "zh-HK,zh;q=0.9,en;q=0.8"
case "jp":
return "ja-JP,ja;q=0.9,en;q=0.8"
case "sg":
return "en-SG,en;q=0.9,zh;q=0.8"
case "us": // 新地区
return "en-US,en;q=0.9"
default:
return "en-US,en;q=0.9"
}
}
```
在 `getReferer` 函数中添加:
```go
func getReferer(areaCode string) string {
switch areaCode {
case "cn":
return "https://www.apple.com.cn/shop/buy-iphone/iphone-16"
case "hk":
return "https://www.apple.com/hk/shop/buy-iphone/iphone-16"
case "jp":
return "https://www.apple.com/jp/shop/buy-iphone/iphone-16"
case "sg":
return "https://www.apple.com/sg/shop/buy-iphone/iphone-16"
case "us": // 新地区
return "https://www.apple.com/us/shop/buy-iphone/iphone-16"
default:
return "https://www.apple.com/shop/buy-iphone/iphone-16"
}
}
```
### 步骤 4: 更新UI逻辑
**文件**: `main.go`
#### 4.1 添加地区到更新列表
在更新数据按钮的逻辑中添加新地区:
```go
// 更新所有地区的产品数据
areaCodes := []string{"cn", "hk", "jp", "sg", "us"} // 添加新地区
```
#### 4.2 添加UI显示逻辑
在地区选择器的回调函数中添加新地区的UI逻辑:
```go
} else if value == "新加坡" {
// 新加坡:直接显示所有门店
zipCodeEntry.Disable()
zipCodeEntry.Text = ""
storeWidget.Options = services.Store.ByAreaTitleForOptions(value)
storeWidget.Enable()
storeWidget.PlaceHolder = "选择门店"
locationContainer.Objects = []fyne.CanvasObject{
container.NewVBox(
widget.NewLabelWithStyle("门店", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
storeWidget,
),
}
} else if value == "美国" { // 新地区
// 美国:直接显示所有门店
zipCodeEntry.Disable()
zipCodeEntry.Text = ""
storeWidget.Options = services.Store.ByAreaTitleForOptions(value)
storeWidget.Enable()
storeWidget.PlaceHolder = "选择门店"
locationContainer.Objects = []fyne.CanvasObject{
container.NewVBox(
widget.NewLabelWithStyle("门店", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
storeWidget,
),
}
}
```
## 新产品系列适配流程
### 步骤 1: 添加产品系列定义
**文件**: `services/product_fetcher.go`
在 `FetchProductData` 函数的 series 数组中添加新产品系列:
```go
series := []struct {
name string
url string
}{
{"iPhone 16", baseURL + "/shop/buy-iphone/iphone-16"},
{"iPhone 16 Plus", baseURL + "/shop/buy-iphone/iphone-16-plus"},
{"iPhone 16 Pro", baseURL + "/shop/buy-iphone/iphone-16-pro"},
{"iPhone 16 Pro Max", baseURL + "/shop/buy-iphone/iphone-16-pro-max"},
{"Apple Watch Series 10", baseURL + "/shop/buy-watch/apple-watch-series-10"}, // 新产品系列
{"Apple Watch Ultra 2", baseURL + "/shop/buy-watch/apple-watch-ultra-2"}, // 新产品系列
}
```
### 步骤 2: 更新产品解析逻辑
如果新产品系列有特殊的解析需求,需要在 `parseProductFromMetrics` 函数中添加相应的处理逻辑。
### 步骤 3: 更新产品类型映射
**文件**: `model/product.go`
如果需要新的产品类型,在 `TypeCode` 映射中添加:
```go
var TypeCode = map[string]string{
"iPhone": "iPhone",
"Apple Watch": "Apple Watch",
"iPad": "iPad", // 新产品类型
"Mac": "Mac", // 新产品类型
}
```
## 技术细节说明
### API 调用机制
#### 产品数据获取
1. **URL 格式**: `https://www.apple.com/{region}/shop/buy-{product}/{product-series}`
2. **数据源**: 页面中的 `<script type="application/json" id="metrics">` 标签
3. **解析方式**: 使用 `gjson` 库解析 JSON 数据
#### 门店数据获取
1. **API 端点**: `https://www.apple.com/{region}/shop/fulfillment-messages`
2. **必需参数**:
- `fae=true`: 启用门店查询
- `pl=true`: 启用位置查询
- `mts.0=regular`: 消息类型
- `parts.0={product_code}`: 产品代码
- `location={location}`: 位置信息
3. **位置参数格式**:
- **中国大陆**: 邮编 (如: 100000)
- **香港**: Central (固定)
- **日本**: 邮编 (如: 100-0001)
- **新加坡**: Singapore (固定)
- **美国**: 邮编 (如: 10001)
### 反爬虫策略
1. **随机 User-Agent**: 使用真实的浏览器 User-Agent
2. **随机 Referer**: 使用对应的产品页面作为 Referer
3. **请求延迟**: 在请求间添加随机延迟 (1-3秒)
4. **Accept-Language**: 根据地区设置合适的语言头
### 数据存储结构
#### 产品数据文件
- **路径**: `data/product_data_{area_code}.json`
- **结构**:
```json
{
"UpdateTime": "2025-01-01 12:00:00",
"AreaCode": "cn",
"Products": {
"iPhone 16": [
{
"SKU": "MYEW3CH",
"PartNumber": "MYEW3CH/A",
"Name": "iPhone 16 128GB 白色"
}
]
}
}
```
#### 门店数据文件
- **路径**: `data/stores_{area_code}.json`
- **结构**:
```json
{
"UpdateTime": "2025-01-01 12:00:00",
"AreaCode": "cn",
"Stores": [
{
"StoreNumber": "R448",
"CityStoreName": "北京-王府井",
"Province": "北京",
"City": "北京",
"District": ""
}
]
}
```
## 测试验证
### 步骤 1: 创建测试脚本
```go
// test_new_region.go
package main
import (
"apple-store-helper/services"
"fmt"
"log"
)
func main() {
areaCode := "us" // 新地区代码
fmt.Printf("=== 测试新地区: %s ===\n", areaCode)
// 测试产品数据获取
fmt.Println("\n1. 测试产品数据获取...")
if err := services.UpdateProductDatabase(areaCode); err != nil {
log.Printf("产品数据获取失败: %v", err)
} else {
fmt.Println("✓ 产品数据获取成功")
}
// 测试门店数据获取
fmt.Println("\n2. 测试门店数据获取...")
stores, err := services.FetchStoresForArea(areaCode, "10001") // 使用该地区的测试位置
if err != nil {
log.Printf("门店数据获取失败: %v", err)
} else {
fmt.Printf("✓ 成功获取 %d 个门店\n", len(stores))
for i, store := range stores {
if i < 3 {
fmt.Printf(" %d. %s (%s)\n", i+1, store.CityStoreName, store.StoreNumber)
}
}
}
fmt.Println("\n=== 测试完成 ===")
}
```
### 步骤 2: 运行测试
```bash
go run test_new_region.go
```
### 步骤 3: 验证数据文件
检查生成的数据文件:
```bash
ls -la data/
cat data/product_data_us.json | jq '.Products | keys'
cat data/stores_us.json | jq '.Stores | length'
```
### 步骤 4: 测试UI功能
1. 编译并运行程序
2. 在地区选择器中选择新地区
3. 验证门店列表是否正确显示
4. 测试产品选择功能
## 常见问题
### Q1: 产品数据获取失败
**可能原因**:
- 产品页面URL不正确
- 页面结构发生变化
- 网络连接问题
**解决方案**:
1. 检查产品页面URL是否正确
2. 查看页面源码确认 `<script id="metrics">` 标签存在
3. 检查网络连接和代理设置
### Q2: 门店数据获取失败
**可能原因**:
- 产品代码无效
- 位置参数格式不正确
- API 端点不支持该地区
**解决方案**:
1. 使用 `curl` 测试 API 调用
2. 确认产品代码在该地区有效
3. 检查位置参数格式
### Q3: UI 中不显示新地区
**可能原因**:
- 地区定义不正确
- 地区选择器未更新
**解决方案**:
1. 检查 `model/area.go` 中的地区定义
2. 确认 `services.Area.ForOptions()` 包含新地区
3. 重新编译程序
### Q4: 门店筛选不工作
**可能原因**:
- 门店数据结构不正确
- 筛选逻辑有误
**解决方案**:
1. 检查门店数据的 `Province` 字段
2. 验证 `ByAreaAndProvinceForOptions` 函数逻辑
3. 查看控制台日志输出
## 调试技巧
### 1. 启用详细日志
在代码中添加日志输出:
```go
log.Printf("Fetching stores for area %s, location %s", areaCode, location)
log.Printf("API URL: %s", apiURL)
log.Printf("Response: %s", string(body))
```
### 2. 使用 curl 测试 API
```bash
curl -s "https://www.apple.com/us/shop/fulfillment-messages?fae=true&pl=true&mts.0=regular&parts.0=MYEW3LL/A&location=10001" \
-H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36" \
-H "Accept: application/json" | jq '.body.content.pickupMessage.stores'
```
### 3. 检查数据文件
```bash
# 查看产品数据
cat data/product_data_us.json | jq '.Products | keys'
# 查看门店数据
cat data/stores_us.json | jq '.Stores[0:3]'
# 统计门店数量
cat data/stores_us.json | jq '.Stores | length'
```
## 总结
按照本指南的步骤,任何人都可以成功适配新地区和新产品系列。关键是要:
1. **仔细检查 API 调用参数**
2. **验证产品代码的有效性**
3. **测试数据获取和解析**
4. **验证 UI 功能**
如果遇到问题,请参考常见问题部分或查看调试技巧。记住,每个地区的 Apple 官网可能有细微差异,需要根据实际情况调整参数。
================================================
FILE: cache/store_html/apple_store_list.html
================================================
<!DOCTYPE html><html class="no-js" lang="zh-CN" dir="ltr" prefix="og: http://ogp.me/ns#"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><link rel="canonical" href="https://www.apple.com.cn/retail/storelist/" data-next-head=""/><title data-next-head="">零售店列表 - Apple Store 零售店 - Apple (中国大陆)</title><meta name="description" content="浏览全球每家 Apple Store 零售店列表,查看零售店的营业时间、交通指引以及更多信息。" data-next-head=""/><meta property="og:title" content="零售店列表 - Apple Store 零售店" data-next-head=""/><meta property="og:description" content="浏览全球每家 Apple Store 零售店列表,查看零售店的营业时间、交通指引以及更多信息。" data-next-head=""/><meta property="og:url" content="https://www.apple.com.cn/retail/storelist/" data-next-head=""/><meta property="og:image" content="https://www.apple.com.cn/ac/structured-data/images/open_graph_logo.png" data-next-head=""/><meta property="og:locale" content="zh_CN" data-next-head=""/><meta property="og:type" content="website" data-next-head=""/><meta property="og:site_name" content="Apple (中国大陆) - 官方网站" data-next-head=""/><link rel="alternate" href="https://www.apple.com/mo/retail/storelist/" hrefLang="zh-MO" data-next-head=""/><link rel="alternate" href="https://www.apple.com/at/retail/storelist/" hrefLang="de-AT" data-next-head=""/><link rel="alternate" href="https://www.apple.com/ae/retail/storelist/" hrefLang="en-AE" data-next-head=""/><link rel="alternate" href="https://www.apple.com/ca/retail/storelist/" hrefLang="en-CA" data-next-head=""/><link rel="alternate" href="https://www.apple.com/kr/retail/storelist/" hrefLang="ko-KR" data-next-head=""/><link rel="alternate" href="https://www.apple.com/fr/retail/storelist/" hrefLang="fr-FR" data-next-head=""/><link rel="alternate" href="https://www.apple.com/chfr/retail/storelist/" hrefLang="fr-CH" data-next-head=""/><link rel="alternate" href="https://www.apple.com/chde/retail/storelist/" hrefLang="de-CH" data-next-head=""/><link rel="alternate" href="https://www.apple.com/mx/retail/storelist/" hrefLang="es-MX" data-next-head=""/><link rel="alternate" href="https://www.apple.com/ca/fr/retail/storelist/" hrefLang="fr-CA" data-next-head=""/><link rel="alternate" href="https://www.apple.com.cn/retail/storelist/" hrefLang="zh-CN" data-next-head=""/><link rel="alternate" href="https://www.apple.com/my/retail/storelist/" hrefLang="en-MY" data-next-head=""/><link rel="alternate" href="https://www.apple.com/sg/retail/storelist/" hrefLang="en-SG" data-next-head=""/><link rel="alternate" href="https://www.apple.com/it/retail/storelist/" hrefLang="it-IT" data-next-head=""/><link rel="alternate" href="https://www.apple.com/hk/retail/storelist/" hrefLang="zh-HK" data-next-head=""/><link rel="alternate" href="https://www.apple.com/uk/retail/storelist/" hrefLang="en-GB" data-next-head=""/><link rel="alternate" href="https://www.apple.com/th/retail/storelist/" hrefLang="th-TH" data-next-head=""/><link rel="alternate" href="https://www.apple.com/se/retail/storelist/" hrefLang="sv-SE" data-next-head=""/><link rel="alternate" href="https://www.apple.com/retail/storelist/" hrefLang="en-US" data-next-head=""/><link rel="alternate" href="https://www.apple.com/de/retail/storelist/" hrefLang="de-DE" data-next-head=""/><link rel="alternate" href="https://www.apple.com/mo-en/retail/storelist/" hrefLang="en-MO" data-next-head=""/><link rel="alternate" href="https://www.apple.com/au/retail/storelist/" hrefLang="en-AU" data-next-head=""/><link rel="alternate" href="https://www.apple.com/br/retail/storelist/" hrefLang="pt-BR" data-next-head=""/><link rel="alternate" href="https://www.apple.com/benl/retail/storelist/" hrefLang="nl-BE" data-next-head=""/><link rel="alternate" href="https://www.apple.com/tr/retail/storelist/" hrefLang="tr-TR" data-next-head=""/><link rel="alternate" href="https://www.apple.com/befr/retail/storelist/" hrefLang="fr-BE" data-next-head=""/><link rel="alternate" href="https://www.apple.com/tw/retail/storelist/" hrefLang="zh-TW" data-next-head=""/><link rel="alternate" href="https://www.apple.com/nl/retail/storelist/" hrefLang="nl-NL" data-next-head=""/><link rel="alternate" href="https://www.apple.com/jp/retail/storelist/" hrefLang="ja-JP" data-next-head=""/><link rel="alternate" href="https://www.apple.com/hk/en/retail/storelist/" hrefLang="en-HK" data-next-head=""/><link rel="alternate" href="https://www.apple.com/es/retail/storelist/" hrefLang="es-ES" data-next-head=""/><link rel="alternate" href="https://www.apple.com/in/retail/storelist/" hrefLang="en-IN" data-next-head=""/><meta name="version" content="18040b92cc02db217c100a2cc5f86081df40c1a1"/><meta name="version-env" content="prod-pub"/><meta name="initial-path" content="/retail/storelist/"/><link rel="preload" href="/retail/_next/static/css/e4b265aa54bd118f.css" as="style"/><link rel="preload" href="/retail/_next/static/css/93196bf2bb2b5cc3.css" as="style"/><link rel="preload" href="/retail/_next/static/css/d45b0392f6908268.css" as="style"/><script id="breadcrumbs-data" type="application/ld+json" data-next-head="">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":"1","name":"零售店","item":"https://www.apple.com.cn/retail/"},{"@type":"ListItem","position":"2","name":"零售店列表"}]}</script><link rel="stylesheet" href="/wss/fonts?families=SF+Pro,v3|SF+Pro+Icons,v3" type="text/css" media="all"/><link rel="stylesheet" href="/wss/fonts?family=SF+Pro+SC&weights=300,400,500,600&v=1" type="text/css" media="all"/><link rel="stylesheet" type="text/css" href="https://www.apple.com/api-www/global-elements/global-header/v1/assets/globalheader.css"/><link rel="stylesheet" type="text/css" href="/retail/assets/global-elements/globalfooter/zh_CN/styles/ac-globalfooter.built.css"/><link rel="stylesheet" type="text/css" href="/ac/localeswitcher/4/zh_CN/styles/localeswitcher.built.css"/><link rel="stylesheet" href="/retail/_next/static/css/e4b265aa54bd118f.css" data-n-g=""/><link rel="stylesheet" href="/retail/_next/static/css/93196bf2bb2b5cc3.css" data-n-p=""/><link rel="stylesheet" href="/retail/_next/static/css/d45b0392f6908268.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/retail/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/metrics/ac-analytics/latest/scripts/ac-analytics.js" defer="" data-nscript="beforeInteractive"></script><script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js" defer="" data-nscript="beforeInteractive"></script><script src="/retail/_next/static/chunks/webpack-90c751684183eb0b.js" defer=""></script><script src="/retail/_next/static/chunks/framework-8042fbed3df71407.js" defer=""></script><script src="/retail/_next/static/chunks/main-86bdd69007a5e701.js" defer=""></script><script src="/retail/_next/static/chunks/pages/_app-d48b8e63fb4fa26d.js" defer=""></script><script src="/retail/_next/static/chunks/658-82c9683273de45d3.js" defer=""></script><script src="/retail/_next/static/chunks/433-e824c11d6e8ecfae.js" defer=""></script><script src="/retail/_next/static/chunks/198-b5f0d24c94e4d0ae.js" defer=""></script><script src="/retail/_next/static/chunks/pages/storelist-c27a20362b67862d.js" defer=""></script><script src="/retail/_next/static/2NJH76GBGueAZ6NMxARaG/_buildManifest.js" defer=""></script><script src="/retail/_next/static/2NJH76GBGueAZ6NMxARaG/_ssgManifest.js" defer=""></script></head><body><div>
<meta name="globalnav-store-key" content="SFX9YPYY9PPXCU9KH" />
<div id="globalheader"><aside id="globalmessage-segment" lang="zh-CN" dir="ltr" class="globalmessage-segment"><ul data-strings="{"view":"{%STOREFRONT%} 商店首页","segments":{"smb":"企业商店首页","eduInd":"教育商店首页","other":"商店首页"},"exit":"退出商店"}" class="globalmessage-segment-content"></ul></aside><nav id="globalnav" lang="zh-CN" dir="ltr" aria-label="全部网页" data-analytics-element-engagement-start="globalnav:onFlyoutOpen" data-analytics-element-engagement-end="globalnav:onFlyoutClose" data-store-api="/shop/bag/status" data-analytics-activitymap-region-id="global nav" data-analytics-region="global nav" class="globalnav no-js "><div class="globalnav-content"><div class="globalnav-item globalnav-menuback"><button aria-label="主菜单" class="globalnav-menuback-button"><span class="globalnav-chevron-icon"><svg height="48" viewBox="0 0 9 48" width="9" xmlns="http://www.w3.org/2000/svg"><path d="m1.5618 24.0621 6.5581-6.4238c.2368-.2319.2407-.6118.0088-.8486-.2324-.2373-.6123-.2407-.8486-.0088l-7 6.8569c-.1157.1138-.1807.2695-.1802.4316.001.1621.0674.3174.1846.4297l7 6.7241c.1162.1118.2661.1675.4155.1675.1577 0 .3149-.062.4326-.1846.2295-.2388.2222-.6187-.0171-.8481z"/></svg></span></button></div><ul id="globalnav-list" class="globalnav-list"><li data-analytics-element-engagement="globalnav hover - apple" class="
globalnav-item
globalnav-item-apple
"><a href="/" data-globalnav-item-name="apple" data-analytics-title="apple home" aria-label="Apple" class="globalnav-link globalnav-link-apple"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 14 44" width="14" xmlns="http://www.w3.org/2000/svg"><path d="m13.0729 17.6825a3.61 3.61 0 0 0 -1.7248 3.0365 3.5132 3.5132 0 0 0 2.1379 3.2223 8.394 8.394 0 0 1 -1.0948 2.2618c-.6816.9812-1.3943 1.9623-2.4787 1.9623s-1.3633-.63-2.613-.63c-1.2187 0-1.6525.6507-2.644.6507s-1.6834-.9089-2.4787-2.0243a9.7842 9.7842 0 0 1 -1.6628-5.2776c0-3.0984 2.014-4.7405 3.9969-4.7405 1.0535 0 1.9314.6919 2.5924.6919.63 0 1.6112-.7333 2.8092-.7333a3.7579 3.7579 0 0 1 3.1604 1.5802zm-3.7284-2.8918a3.5615 3.5615 0 0 0 .8469-2.22 1.5353 1.5353 0 0 0 -.031-.32 3.5686 3.5686 0 0 0 -2.3445 1.2084 3.4629 3.4629 0 0 0 -.8779 2.1585 1.419 1.419 0 0 0 .031.2892 1.19 1.19 0 0 0 .2169.0207 3.0935 3.0935 0 0 0 2.1586-1.1368z"/></svg></span><span class="globalnav-image-compact globalnav-link-image"><svg height="48" viewBox="0 0 17 48" width="17" xmlns="http://www.w3.org/2000/svg"><path d="m15.5752 19.0792a4.2055 4.2055 0 0 0 -2.01 3.5376 4.0931 4.0931 0 0 0 2.4908 3.7542 9.7779 9.7779 0 0 1 -1.2755 2.6351c-.7941 1.1431-1.6244 2.2862-2.8878 2.2862s-1.5883-.734-3.0443-.734c-1.42 0-1.9252.7581-3.08.7581s-1.9611-1.0589-2.8876-2.3584a11.3987 11.3987 0 0 1 -1.9373-6.1487c0-3.61 2.3464-5.523 4.6566-5.523 1.2274 0 2.25.8062 3.02.8062.734 0 1.8771-.8543 3.2729-.8543a4.3778 4.3778 0 0 1 3.6822 1.841zm-6.8586-2.0456a1.3865 1.3865 0 0 1 -.2527-.024 1.6557 1.6557 0 0 1 -.0361-.337 4.0341 4.0341 0 0 1 1.0228-2.5148 4.1571 4.1571 0 0 1 2.7314-1.4078 1.7815 1.7815 0 0 1 .0361.373 4.1487 4.1487 0 0 1 -.9867 2.587 3.6039 3.6039 0 0 1 -2.5148 1.3236z"/></svg></span><span class="globalnav-link-text">Apple</span></a></li><li data-topnav-flyout-item="menu" data-topnav-flyout-label="Menu" role="none" class="globalnav-item globalnav-menu"><div data-topnav-flyout="menu" class="globalnav-flyout"><div class="globalnav-menu-list"><div data-analytics-element-engagement="globalnav hover - store" class="
globalnav-item
globalnav-item-store
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/cn/shop/goto/store" data-globalnav-item-name="store" data-topnav-flyout-trigger-compact="true" data-analytics-title="store" data-analytics-element-engagement="hover - store" aria-label="商店" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-store"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 20 44" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m2.2568 23.0189-.6035-.7793v4.1426h-.9316v-6.6562h2.1328c-.1465-.3633-.2988-.7266-.4863-1.0488h-2.0743v-.9375h4.0254c-.0938-.2461-.1934-.4805-.2988-.6855l1.0781-.1642c.1055.2578.1934.5449.293.8496h4.0371v.9375h-2.1504c-.1582.3867-.3223.7324-.498 1.0488h2.2031v5.4961c0 .7793-.3398 1.1836-1.002 1.1836h-1.0488l-.2461-.8848.9844.0293c.2461 0 .3809-.1816.3809-.5332v-4.4297h-6.3985v1.6113c.8203-.4512 1.5-.9844 2.0508-1.5879l.6855.6035c-.416.498-.8965.9434-1.4414 1.3477h3.9082v2.7012h-4.002v-2.6309c-.1933.1349-.3866.2638-.5976.3868zm3.4571-3.293c.1816-.3457.3516-.6914.498-1.0488h-2.7773c.1465.3164.293.6621.4102 1.0488zm.205 3.7032h-2.121v.9727h2.1211v-.9727zm2.1094-1.1485-.7266.7207c-.4746-.5566-1.1484-1.1426-2.0098-1.7754l.6562-.6211c.8205.5567 1.5177 1.125 2.0802 1.6758zm7.9336-4.3652h3.7441v.9434h-7.4414v2.1328c-.0293 2.2559-.4043 4.0547-1.1133 5.4141l-.7383-.6562c.5684-1.1426.8613-2.7305.8848-4.7578v-3.0762h3.668c-.1406-.293-.3047-.5625-.4688-.8086l1.0137-.1641c.1641.2988.3047.621.4512.9726zm.2461 1.2598v1.1074h3.2637v.9199h-3.2637v1.3008h2.6836v3.9434h-.9609v-.4512h-4.043v.4512h-.9609v-3.9434h2.3086v-3.3281zm1.7227 5.9062v-1.6699h-4.043v1.6699z"/></svg></span><span class="globalnav-link-text">商店</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - mac" class="
globalnav-item
globalnav-item-mac
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/mac/" data-globalnav-item-name="mac" data-topnav-flyout-trigger-compact="true" data-analytics-title="mac" data-analytics-element-engagement="hover - mac" aria-label="Mac" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-mac"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 23 44" width="23" xmlns="http://www.w3.org/2000/svg"><path d="m8.1558 25.9987v-6.457h-.0703l-2.666 6.457h-.8907l-2.666-6.457h-.0703v6.457h-.9844v-8.4551h1.2246l2.8945 7.0547h.0938l2.8945-7.0547h1.2246v8.4551zm2.5166-1.7696c0-1.1309.832-1.7812 2.3027-1.8691l1.8223-.1113v-.5742c0-.7793-.4863-1.207-1.4297-1.207-.7559 0-1.2832.2871-1.4238.7852h-1.0195c.1348-1.0137 1.1309-1.6816 2.4785-1.6816 1.541 0 2.4023.791 2.4023 2.1035v4.3242h-.9609v-.9318h-.0938c-.4102.6738-1.1016 1.043-1.9453 1.043-1.2246 0-2.1328-.7266-2.1328-1.8809zm4.125-.5859v-.5801l-1.6992.1113c-.9609.0645-1.3828.3984-1.3828 1.0312 0 .6445.5449 1.0195 1.2773 1.0195 1.0371.0001 1.8047-.6796 1.8047-1.5819zm6.958-2.0273c-.1641-.627-.7207-1.1367-1.6289-1.1367-1.1367 0-1.8516.9082-1.8516 2.3379 0 1.459.7266 2.3848 1.8516 2.3848.8496 0 1.4414-.3926 1.6289-1.1074h1.0195c-.1816 1.1602-1.125 2.0156-2.6426 2.0156-1.7695 0-2.9004-1.2832-2.9004-3.293 0-1.9688 1.125-3.2461 2.8945-3.2461 1.5352 0 2.4727.9199 2.6484 2.0449z"/></svg></span><span class="globalnav-link-text">Mac</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - ipad" class="
globalnav-item
globalnav-item-ipad
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/ipad/" data-globalnav-item-name="ipad" data-topnav-flyout-trigger-compact="true" data-analytics-title="ipad" data-analytics-element-engagement="hover - ipad" aria-label="iPad" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-ipad"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 24 44" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m14.9575 23.7002c0 .902-.768 1.582-1.805 1.582-.732 0-1.277-.375-1.277-1.02 0-.632.422-.966 1.383-1.031l1.699-.111zm-1.395-4.072c-1.347 0-2.343.668-2.478 1.681h1.019c.141-.498.668-.785 1.424-.785.944 0 1.43.428 1.43 1.207v.574l-1.822.112c-1.471.088-2.303.738-2.303 1.869 0 1.154.908 1.881 2.133 1.881.844 0 1.535-.369 1.945-1.043h.094v.931h.961v-4.324c0-1.312-.862-2.103-2.403-2.103zm6.769 5.575c-1.155 0-1.846-.885-1.846-2.361 0-1.471.697-2.362 1.846-2.362 1.142 0 1.857.914 1.857 2.362 0 1.459-.709 2.361-1.857 2.361zm1.834-8.027v3.503h-.088c-.358-.691-1.102-1.107-1.981-1.107-1.605 0-2.654 1.289-2.654 3.27 0 1.986 1.037 3.269 2.654 3.269.873 0 1.623-.416 2.022-1.119h.093v1.008h.961v-8.824zm-15.394 4.869h-1.863v-3.563h1.863c1.225 0 1.899.639 1.899 1.799 0 1.119-.697 1.764-1.899 1.764zm.276-4.5h-3.194v8.455h1.055v-3.018h2.127c1.588 0 2.719-1.119 2.719-2.701 0-1.611-1.108-2.736-2.707-2.736zm-6.064 8.454h1.008v-6.316h-1.008zm-.199-8.237c0-.387.316-.704.703-.704s.703.317.703.704c0 .386-.316.703-.703.703s-.703-.317-.703-.703z"/></svg></span><span class="globalnav-link-text">iPad</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - iphone" class="
globalnav-item
globalnav-item-iphone
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/iphone/" data-globalnav-item-name="iphone" data-topnav-flyout-trigger-compact="true" data-analytics-title="iphone" data-analytics-element-engagement="hover - iphone" aria-label="iPhone" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-iphone"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 38 44" width="38" xmlns="http://www.w3.org/2000/svg"><path d="m32.7129 22.3203h3.48c-.023-1.119-.691-1.857-1.693-1.857-1.008 0-1.711.738-1.787 1.857zm4.459 2.045c-.293 1.078-1.277 1.746-2.66 1.746-1.752 0-2.848-1.266-2.848-3.264 0-1.986 1.113-3.275 2.848-3.275 1.705 0 2.742 1.213 2.742 3.176v.386h-4.541v.047c.053 1.248.75 2.039 1.822 2.039.815 0 1.366-.298 1.629-.855zm-12.282-4.682h.961v.996h.094c.316-.697.932-1.107 1.898-1.107 1.418 0 2.209.838 2.209 2.338v4.09h-1.007v-3.844c0-1.137-.481-1.676-1.489-1.676s-1.658.674-1.658 1.781v3.739h-1.008zm-2.499 3.158c0-1.5-.674-2.361-1.869-2.361-1.196 0-1.87.861-1.87 2.361 0 1.495.674 2.362 1.87 2.362 1.195 0 1.869-.867 1.869-2.362zm-4.782 0c0-2.033 1.114-3.269 2.913-3.269 1.798 0 2.912 1.236 2.912 3.269 0 2.028-1.114 3.27-2.912 3.27-1.799 0-2.913-1.242-2.913-3.27zm-6.636-5.666h1.008v3.504h.093c.317-.697.979-1.107 1.946-1.107 1.336 0 2.179.855 2.179 2.338v4.09h-1.007v-3.844c0-1.119-.504-1.676-1.459-1.676-1.131 0-1.752.715-1.752 1.781v3.739h-1.008zm-6.015 4.87h1.863c1.202 0 1.899-.645 1.899-1.764 0-1.16-.674-1.799-1.899-1.799h-1.863zm2.139-4.5c1.599 0 2.707 1.125 2.707 2.736 0 1.582-1.131 2.701-2.719 2.701h-2.127v3.018h-1.055v-8.455zm-6.114 8.454h1.008v-6.316h-1.008zm-.2-8.238c0-.386.317-.703.703-.703.387 0 .704.317.704.703 0 .387-.317.704-.704.704-.386 0-.703-.317-.703-.704z"/></svg></span><span class="globalnav-link-text">iPhone</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - watch" class="
globalnav-item
globalnav-item-watch
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/watch/" data-globalnav-item-name="watch" data-topnav-flyout-trigger-compact="true" data-analytics-title="watch" data-analytics-element-engagement="hover - watch" aria-label="Watch" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-watch"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 35 44" width="35" xmlns="http://www.w3.org/2000/svg"><path d="m28.9819 17.1758h1.008v3.504h.094c.316-.697.978-1.108 1.945-1.108 1.336 0 2.18.856 2.18 2.338v4.09h-1.008v-3.844c0-1.119-.504-1.675-1.459-1.675-1.131 0-1.752.715-1.752 1.781v3.738h-1.008zm-2.42 4.441c-.164-.627-.721-1.136-1.629-1.136-1.137 0-1.852.908-1.852 2.338 0 1.459.727 2.384 1.852 2.384.849 0 1.441-.392 1.629-1.107h1.019c-.182 1.16-1.125 2.016-2.642 2.016-1.77 0-2.901-1.284-2.901-3.293 0-1.969 1.125-3.247 2.895-3.247 1.535 0 2.472.92 2.648 2.045zm-6.533-3.568v1.635h1.407v.844h-1.407v3.574c0 .744.282 1.06.938 1.06.182 0 .281-.006.469-.023v.85c-.2.035-.393.058-.592.058-1.301 0-1.822-.48-1.822-1.687v-3.832h-1.02v-.844h1.02v-1.635zm-4.2 5.596v-.58l-1.699.111c-.961.064-1.383.398-1.383 1.031 0 .645.545 1.02 1.277 1.02 1.038 0 1.805-.68 1.805-1.582zm-4.125.586c0-1.131.832-1.782 2.303-1.869l1.822-.112v-.574c0-.779-.486-1.207-1.43-1.207-.755 0-1.283.287-1.423.785h-1.02c.135-1.014 1.131-1.682 2.479-1.682 1.541 0 2.402.792 2.402 2.104v4.324h-.961v-.931h-.094c-.41.673-1.101 1.043-1.945 1.043-1.225 0-2.133-.727-2.133-1.881zm-7.684 1.769h-.996l-2.303-8.455h1.101l1.682 6.873h.07l1.893-6.873h1.066l1.893 6.873h.07l1.682-6.873h1.101l-2.302 8.455h-.996l-1.946-6.674h-.07z"/></svg></span><span class="globalnav-link-text">Watch</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - vision" class="
globalnav-item
globalnav-item-vision
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/apple-vision-pro/" data-globalnav-item-name="vision" data-topnav-flyout-trigger-compact="true" data-analytics-title="vision" data-analytics-element-engagement="hover - vision" aria-label="Vision" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-vision"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg xmlns="http://www.w3.org/2000/svg" width="34" height="44" viewBox="0 0 34 44"><path d="m.4043,17.5449h1.1074l2.4844,7.0898h.0938l2.4844-7.0898h1.1074l-3.1172,8.4551h-1.043L.4043,17.5449Zm8.3467.2168c0-.3867.3164-.7031.7031-.7031s.7031.3164.7031.7031-.3164.7031-.7031.7031-.7031-.3164-.7031-.7031Zm.1875,1.9219h1.0195v6.3164h-1.0195v-6.3164Zm2.499,4.7051h1.043c.1699.5273.6738.873,1.4824.873.8496,0,1.4531-.4043,1.4531-.9785v-.0117c0-.4277-.3223-.7266-1.1016-.9141l-.9785-.2344c-1.1836-.2812-1.7168-.7969-1.7168-1.7051v-.0059c0-1.0488,1.0078-1.8398,2.3496-1.8398,1.3242,0,2.2441.6621,2.3848,1.6934h-1.002c-.1348-.498-.627-.8438-1.3887-.8438-.75,0-1.3008.3867-1.3008.9434v.0117c0,.4277.3164.6973,1.0605.8789l.9727.2344c1.1895.2871,1.7637.8027,1.7637,1.7051v.0117c0,1.125-1.0957,1.9043-2.5312,1.9043-1.4062,0-2.373-.6797-2.4902-1.7227Zm6.3203-6.627c0-.3867.3164-.7031.7031-.7031s.7031.3164.7031.7031-.3164.7031-.7031.7031-.7031-.3164-.7031-.7031Zm.1875,1.9219h1.0195v6.3164h-1.0195v-6.3164Zm2.5049,3.1641v-.0117c0-2.0273,1.1133-3.2637,2.9121-3.2637s2.9121,1.2363,2.9121,3.2637v.0117c0,2.0215-1.1133,3.2637-2.9121,3.2637s-2.9121-1.2422-2.9121-3.2637Zm4.7812,0v-.0117c0-1.4941-.6738-2.3613-1.8691-2.3613s-1.8691.8672-1.8691,2.3613v.0117c0,1.4883.6738,2.3613,1.8691,2.3613s1.8691-.873,1.8691-2.3613Zm2.5049-3.1641h1.0195v.9492h.0938c.3164-.668.9082-1.0605,1.8398-1.0605,1.418,0,2.209.8379,2.209,2.3379v4.0898h-1.0195v-3.8438c0-1.1367-.4688-1.6816-1.4766-1.6816s-1.6465.6797-1.6465,1.7871v3.7383h-1.0195v-6.3164Z"></path></svg>
</span><span class="globalnav-link-text">Vision</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - airpods" class="
globalnav-item
globalnav-item-airpods
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/airpods/" data-globalnav-item-name="airpods" data-topnav-flyout-trigger-compact="true" data-analytics-title="airpods" data-analytics-element-engagement="hover - airpods" aria-label="AirPods" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-airpods"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 43 44" width="43" xmlns="http://www.w3.org/2000/svg"><path d="m11.7153 19.6836h.961v.937h.094c.187-.615.914-1.048 1.752-1.048.164 0 .375.011.504.029v1.008c-.082-.024-.446-.059-.645-.059-.961 0-1.658.645-1.658 1.535v3.914h-1.008zm28.135-.111c1.324 0 2.244.656 2.379 1.693h-.996c-.135-.504-.627-.838-1.389-.838-.75 0-1.336.381-1.336.943 0 .434.352.704 1.096.885l.973.235c1.189.287 1.763.802 1.763 1.711 0 1.13-1.095 1.91-2.531 1.91-1.406 0-2.373-.674-2.484-1.723h1.037c.17.533.674.873 1.482.873.85 0 1.459-.404 1.459-.984 0-.434-.328-.727-1.002-.891l-1.084-.264c-1.183-.287-1.722-.796-1.722-1.71 0-1.049 1.013-1.84 2.355-1.84zm-6.665 5.631c-1.155 0-1.846-.885-1.846-2.362 0-1.471.697-2.361 1.846-2.361 1.142 0 1.857.914 1.857 2.361 0 1.459-.709 2.362-1.857 2.362zm1.834-8.028v3.504h-.088c-.358-.691-1.102-1.107-1.981-1.107-1.605 0-2.654 1.289-2.654 3.269 0 1.987 1.037 3.27 2.654 3.27.873 0 1.623-.416 2.022-1.119h.094v1.007h.961v-8.824zm-9.001 8.028c-1.195 0-1.869-.868-1.869-2.362 0-1.5.674-2.361 1.869-2.361 1.196 0 1.869.861 1.869 2.361 0 1.494-.673 2.362-1.869 2.362zm0-5.631c-1.799 0-2.912 1.236-2.912 3.269 0 2.028 1.113 3.27 2.912 3.27s2.912-1.242 2.912-3.27c0-2.033-1.113-3.269-2.912-3.269zm-17.071 6.427h1.008v-6.316h-1.008zm-.199-8.238c0-.387.317-.703.703-.703.387 0 .703.316.703.703s-.316.703-.703.703c-.386 0-.703-.316-.703-.703zm-6.137 4.922 1.324-3.773h.093l1.325 3.773zm1.892-5.139h-1.043l-3.117 8.455h1.107l.85-2.42h3.363l.85 2.42h1.107zm14.868 4.5h-1.864v-3.562h1.864c1.224 0 1.898.639 1.898 1.799 0 1.119-.697 1.763-1.898 1.763zm.275-4.5h-3.193v8.455h1.054v-3.017h2.127c1.588 0 2.719-1.119 2.719-2.701 0-1.612-1.107-2.737-2.707-2.737z"/></svg></span><span class="globalnav-link-text">AirPods</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - home" class="
globalnav-item
globalnav-item-home
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/apple-home/" data-globalnav-item-name="home" data-topnav-flyout-trigger-compact="true" data-analytics-title="home" data-analytics-region="home" data-analytics-element-engagement="hover - home" aria-label="家居" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-home"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 20 44" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m5.9951 22.6498c.1582.4688.2344.9844.2461 1.5352 0 .8203-.123 1.4004-.3457 1.7051-.2637.3691-.8613.5566-1.7988.5566h-.3223l-.334-.8613h.5273c.5742 0 .9316-.0879 1.0781-.2402.1641-.2051.252-.5801.252-1.1602 0-.0996-.0059-.2051-.0059-.293-1.1074.832-2.5664 1.5176-4.3477 2.0742l-.4922-.832c1.998-.5684 3.5566-1.2949 4.6699-2.1738-.0586-.2051-.1406-.4102-.2227-.5977-.9609.7207-2.2441 1.3008-3.832 1.7637l-.4805-.8379c1.6699-.4336 2.9707-.9727 3.9023-1.6465-.0996-.1289-.1934-.252-.293-.375-.041.0234-.0762.0293-.1055.0527-.668.3164-1.6055.6562-2.8184 1.0137l-.4922-.8086c.9434-.1934 1.8223-.4629 2.6426-.8027.2461-.0996.4805-.2051.709-.3164h-2.2965v-.9023h6.0879v.9023h-2.2735c-.252.1641-.4863.3164-.709.4629.2988.3281.5449.6738.75 1.0488.9023-.2754 1.7637-.6562 2.584-1.1836l.6563.6562c-.5391.3398-1.0957.627-1.7051.8672.4746 1.2012 1.2422 2.1621 2.291 2.9062l-.7031.8086c-1.084-.9141-1.8691-2.0625-2.3672-3.4336-.1524.0411-.3047.0703-.4512.1114zm-.5625-4.8399h3.8438v1.9102h-.9727v-1.002h-6.8496v1.002h-.9727v-1.9102h3.9668c-.0996-.2637-.2168-.498-.3281-.7148l.9961-.1758c.1113.2695.2168.5684.3164.8906zm5.666 8.666-.7676-.6855c.6973-1.2832 1.0547-2.9355 1.0664-4.9395v-3.5098h7.752v2.6777h-2.8184v.9902h3.2168v.8965h-3.2168v1.0312h2.543v3.5449h-.9375v-.4395h-4.0078v.4395h-.9316v-3.5449h2.3848v-1.0312h-3.0645c-.1231 1.7404-.5215 3.2579-1.2188 4.5704zm1.2598-8.2441v.9023h5.8242v-.9023zm0 1.7871v.9902h3.0234v-.9902zm5.5781 5.1445v-1.3418h-4.0078v1.3418z"/></svg></span><span class="globalnav-link-text">家居</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - entertainment" class="
globalnav-item
globalnav-item-entertainment
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/entertainment/" data-globalnav-item-name="entertainment" data-topnav-flyout-trigger-compact="true" data-analytics-title="entertainment" data-analytics-element-engagement="hover - entertainment" aria-label="娱乐" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-entertainment"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg id="Outlined" xmlns="http://www.w3.org/2000/svg" width="22" height="44" viewBox="0 0 22 44"><path id="art_" d="M3.69,17.0293c-.1055.6562-.1993,1.2715-.293,1.84H4.9434v.5391a12.1563,12.1563,0,0,1-.8262,4.0957c.4512.3691.8262.6973,1.125.99l-.6445.7559c-.252-.2871-.5567-.5859-.8907-.8965A7.8518,7.8518,0,0,1,1.9434,26.498l-.627-.7675A6.5715,6.5715,0,0,0,2.998,23.7383c-.41-.3457-.873-.7207-1.3828-1.1133.2461-.873.4688-1.8164.668-2.8184H1.44v-.9375H2.4473c.1-.6328.205-1.2773.2871-1.9336Zm.3515,2.7773h-.82a22.6557,22.6557,0,0,1-.6445,2.543c.2929.2051.5566.3984.8027.58A10.1091,10.1091,0,0,0,4.041,19.8066ZM7.2285,22.666c.041-.2871.0762-.5976.1-.9023H5.3125V20.873h5.0039v.8907H8.2539c-.0176.3281-.0351.6269-.0644.9023h2.5019v.9082H8.4824a5.7678,5.7678,0,0,0,2.461,2.1328l-.6622.7735a6.9141,6.9141,0,0,1-2.4667-2.35,5.5451,5.5451,0,0,1-.3282.6738A4.56,4.56,0,0,1,5.1953,26.51L4.68,25.6953A4.0693,4.0693,0,0,0,6.748,24.1719a4.176,4.176,0,0,0,.2579-.5977h-2.08V22.666Zm2.8653-5.32v2.7188H5.5293V17.3457Zm-.8965.8027H6.4316v1.1133H9.1973Zm5.06,4.7813A14.6857,14.6857,0,0,1,12.47,26.0352l-.85-.6153a11.6928,11.6928,0,0,0,1.7754-2.9121Zm-1.43-5.3027a5.5675,5.5675,0,0,0,.7852.0761,20.6473,20.6473,0,0,0,5.7773-.6914l.4629.82a26.3685,26.3685,0,0,1-6.2343.7032c-.1407.8789-.2989,1.67-.4512,2.3789h2.6777V19.0273h.9844v1.8868h3.6563v.9492H16.8291v3.4394c0,.7325-.3633,1.1133-1.0547,1.1133H14.3857l-.2168-.9551c.4395.0411.8614.0645,1.2657.0645.2636,0,.41-.1641.41-.4746V21.8633h-3.75C12.44,20.27,12.6865,18.8516,12.8271,17.627Zm7.8223,7.98-.9258.4629a23.26,23.26,0,0,0-1.6582-3.1992l.8672-.41A34.6694,34.6694,0,0,1,20.6494,25.6074Z"/></svg></span><span class="globalnav-link-text">娱乐</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - accessories" class="
globalnav-item
globalnav-item-accessories
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="/cn/shop/goto/buy_accessories" data-globalnav-item-name="accessories" data-topnav-flyout-trigger-compact="true" data-analytics-title="accessories" data-analytics-element-engagement="hover - accessories" aria-label="配件" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-accessories"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 20 44" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m4.9404 17.3412v.9258h-1.2363v.9727h1.1074v7.1719h-.8613v-.4922h-2.666v.4922h-.8613v-7.1719h1.084v-.9727h-1.3008v-.9258zm-3.6562 5.9765h2.666v-.6973h-.3867c-.4805 0-.7207-.2578-.7207-.75v-1.752h-.4922v.5625c-.0117 1.0957-.2285 1.8984-.6387 2.4082l-.4277-.3867zm0-3.1992v2.4199c.2812-.4277.4219-1.043.4277-1.8574v-.5625zm2.666 4.8867v-.8086h-2.666v.8086zm-1.0723-5.7656v-.9726h-.539v.9727h.539zm1.0723.8789h-.457v1.5586c0 .1348.0762.2051.252.2051h.2051v-1.7637zm5.2441 5.6895c-.1465.3164-.4805.4805-.9902.4805h-2.1211c-.5156 0-.7617-.3457-.7617-1.0371v-4.4884h2.748v-2.4844h-2.8476v-.9258h3.7793v4.3594h-2.7246v3.1523c0 .3281.0703.4922.2285.5156h1.5351c.2227 0 .3691-.1465.4277-.4219.0645-.2754.1055-.8027.123-1.5703l.9785.3105c-.0819 1.0725-.2049 1.7814-.3749 2.1096zm4.2715-8.4785c-.252.8145-.5859 1.582-.9961 2.2969v6.8262h-.9551v-5.4082c-.2871.3633-.5977.7148-.9141 1.0547l-.3223-1.0371c1.0254-1.1895 1.7871-2.5723 2.2793-4.1543zm1.7696.4394c-.0879.4629-.1758.9082-.293 1.3125h1.2363v-2.0449h.9727v2.0449h2.2617v.9551h-2.2617v2.2031h2.6426v.9434h-2.6426v3.2285h-.9727v-3.2285h-2.918v-.9434h2.918v-2.2031h-1.5469c-.2578.6445-.5684 1.2305-.9375 1.7637l-.627-.8086c.5977-.9141 1.0078-2.0273 1.2129-3.3398z"/></svg></span><span class="globalnav-link-text">配件</span></span></a></li></ul></div><div data-analytics-element-engagement="globalnav hover - support" class="
globalnav-item
globalnav-item-support
globalnav-item-menu
"><ul role="none" class="globalnav-submenu-trigger-group"><li class="globalnav-submenu-trigger-item"><a href="https://support.apple.com/zh-cn/?cid=gn-ols-home-hp-tab" data-globalnav-item-name="support" data-topnav-flyout-trigger-compact="true" data-analytics-title="support" data-analytics-element-engagement="hover - support" data-analytics-exit-link="true" aria-label="技术支持" class="globalnav-link globalnav-submenu-trigger-link globalnav-link-support"><span class="globalnav-link-text-container"><span class="globalnav-image-regular globalnav-link-image"><svg height="44" viewBox="0 0 41 44" width="41" xmlns="http://www.w3.org/2000/svg"><path d="m.8916 26.3412-.2051-.9141c.2637.041.5098.0586.7441.0586.2461 0 .3691-.1406.3691-.416v-2.1738c-.3691.1465-.75.2871-1.1133.4102l-.252-.9609c.4629-.1055.9141-.2344 1.3652-.3984v-2.2207h-1.16v-.9316h1.1602v-1.7871h.9434v1.7871h1.002v.9316h-1.002v1.8281c.3457-.1641.6855-.3398 1.0254-.5215v.9492c-.3398.1875-.6797.3516-1.0254.5156v2.8184c0 .6797-.3281 1.0254-.9844 1.0254h-.8672zm5.543-7.9453v-1.3711h.9375v1.3711h2.4023v.9375h-2.4023v1.459h2.0098v.8613c-.3281 1.0664-.873 1.9922-1.6465 2.7598.6328.4746 1.4121.8965 2.3262 1.248l-.5039.8027c-.9844-.4336-1.8105-.9199-2.4902-1.459-.7793.6094-1.7227 1.0957-2.8301 1.4883l-.4629-.8086c1.0254-.3281 1.8984-.75 2.6074-1.2832-.7969-.7969-1.3359-1.6934-1.6113-2.6895h-.5333v-.9199h2.1973v-1.459h-2.4024v-.9375h2.4024zm.6093 5.4433c.6152-.6152 1.0781-1.3184 1.3887-2.127h-2.748c.2461.7911.6972 1.5059 1.3593 2.127zm7.9688-4.5v-2.3672h.9609v2.3672h3.9082v.9316h-3.0176c.6562 1.5996 1.7637 3.0234 3.3223 4.2773l-.6562.8203c-1.6934-1.5-2.8828-3.1816-3.5566-5.0449v6.1113h-.9609v-6.0938c-.75 2.0566-1.9922 3.7441-3.7266 5.0684l-.5273-.873c1.5352-1.1074 2.6602-2.5312 3.3633-4.2656h-3.0059v-.9316zm3.9844-.7558-.7793.5508c-.3281-.5098-.7793-1.0605-1.3301-1.6816l.7559-.4688c.5859.6093 1.0371 1.1484 1.3535 1.5996zm7.2304-1.5879v1.2598h3.9316v.9434h-3.9316v1.3418h2.7305v.8613c-.5391 1.1016-1.3301 2.0508-2.3555 2.8418.457.2461.9609.4805 1.5059.6855.7383.2637 1.5059.498 2.3262.6855l-.5684.8613c-.8906-.2402-1.7285-.5215-2.5312-.8613-.5625-.2461-1.084-.5098-1.5645-.8027-1.1367.709-2.5137 1.2715-4.1074 1.6992l-.5684-.8672c1.4941-.334 2.7773-.8145 3.832-1.4004-.5098-.4043-.9609-.8555-1.3418-1.3477-.3574-.4512-.6152-.9316-.7676-1.4414h-.7148v-.9141h3.1289v-1.3418h-3.9141v-.9434h3.9141v-1.2598h.9961zm1.6231 4.459h-4.0664c.1816.4805.4512.9023.7969 1.2656.3457.3691.7383.709 1.166 1.0078.9023-.6445 1.6113-1.4004 2.1035-2.2734zm3.8027 4.9101-.2051-.9375c.2637.041.5215.0586.7676.0586.2402 0 .3809-.1289.3809-.3926v-2.1445c-.3633.123-.7207.2461-1.0898.3574l-.2461-.9785c.4512-.1055.8906-.2285 1.3359-.375v-2.1387h-1.166v-.9375h1.166v-1.752h.9551v1.752h.9785v.9375h-.9785v1.7812c.334-.1582.6621-.3164.9902-.4805v.9961c-.3281.1582-.668.3164-.9902.457v2.7715c0 .6738-.3398 1.0254-.9961 1.0254h-.9024zm6.7324-4.4824v-.709h.9727v.709h1.207v.9141h-1.207v2.5605c0 .6738-.3398 1.0254-1.0137 1.0254h-1.3535l-.2109-.9434c.4277.0293.8262.0469 1.2129.0469.2637 0 .3926-.1289.3926-.375v-2.3145h-3.6504v-.9141h3.6503zm-.2343-4.8281v.9492h2.0215v.8965h-2.0215v.9727h2.4023v.9199h-5.6543v-.9199h2.2969v-.9727h-1.9277v-.8965h1.9277v-.9492zm-1.0606 7.6699-.7617.5273c-.2812-.4863-.6562-1.043-1.1309-1.6465l.791-.4863c.4805.6094.8497 1.1426 1.1016 1.6055z"/></svg></span><span class="globalnav-link-text">技术支持</span></span></a></li></ul></div></div></div></li><li data-topnav-flyout-label="搜索 apple.com.cn" data-analytics-title="open - search field" class="globalnav-item globalnav-search"><a role="button" id="globalnav-menubutton-link-search" href="/search" data-topnav-flyout-trigger-regular="true" data-topnav-flyout-trigger-compact="true" aria-label="搜索 apple.com.cn" data-analytics-title="open - search field" class="globalnav-link globalnav-link-search"><span class="globalnav-image-regular"><svg xmlns="http://www.w3.org/2000/svg" width="15px" height="44px" viewBox="0 0 15 44">
<path d="M14.298,27.202l-3.87-3.87c0.701-0.929,1.122-2.081,1.122-3.332c0-3.06-2.489-5.55-5.55-5.55c-3.06,0-5.55,2.49-5.55,5.55 c0,3.061,2.49,5.55,5.55,5.55c1.251,0,2.403-0.421,3.332-1.122l3.87,3.87c0.151,0.151,0.35,0.228,0.548,0.228 s0.396-0.076,0.548-0.228C14.601,27.995,14.601,27.505,14.298,27.202z M1.55,20c0-2.454,1.997-4.45,4.45-4.45 c2.454,0,4.45,1.997,4.45,4.45S8.454,24.45,6,24.45C3.546,24.45,1.55,22.454,1.55,20z"/>
</svg>
</span><span class="globalnav-image-compact"><svg height="48" viewBox="0 0 17 48" width="17" xmlns="http://www.w3.org/2000/svg"><path d="m16.2294 29.9556-4.1755-4.0821a6.4711 6.4711 0 1 0 -1.2839 1.2625l4.2005 4.1066a.9.9 0 1 0 1.2588-1.287zm-14.5294-8.0017a5.2455 5.2455 0 1 1 5.2455 5.2527 5.2549 5.2549 0 0 1 -5.2455-5.2527z"/></svg></span></a><div id="globalnav-submenu-search" aria-labelledby="globalnav-menubutton-link-search" class="globalnav-flyout globalnav-submenu"><div class="globalnav-flyout-scroll-container"><div class="globalnav-flyout-content globalnav-submenu-content"><form action="/search" method="get" class="globalnav-searchfield"><div class="globalnav-searchfield-wrapper"><input placeholder="搜索 apple.com.cn" aria-label="搜索 apple.com.cn" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false" class="globalnav-searchfield-input"/><input id="globalnav-searchfield-src" type="hidden" name="src" value/><input type="hidden" name="type" value/><input type="hidden" name="page" value/><input type="hidden" name="locale" value/><button aria-label="清除搜索" tabindex="-1" type="button" class="globalnav-searchfield-reset"><span class="globalnav-image-regular"><svg height="14" viewBox="0 0 14 14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="m7 .0339a6.9661 6.9661 0 1 0 6.9661 6.9661 6.9661 6.9661 0 0 0 -6.9661-6.9661zm2.798 8.9867a.55.55 0 0 1 -.778.7774l-2.02-2.02-2.02 2.02a.55.55 0 0 1 -.7784-.7774l2.0206-2.0206-2.0204-2.02a.55.55 0 0 1 .7782-.7778l2.02 2.02 2.02-2.02a.55.55 0 0 1 .778.7778l-2.0203 2.02z"/></svg></span><span class="globalnav-image-compact"><svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="m0 8a8.0474 8.0474 0 0 1 7.9922-8 8.0609 8.0609 0 0 1 8.0078 8 8.0541 8.0541 0 0 1 -8 8 8.0541 8.0541 0 0 1 -8-8zm5.6549 3.2863 2.3373-2.353 2.3451 2.353a.6935.6935 0 0 0 .4627.1961.6662.6662 0 0 0 .6667-.6667.6777.6777 0 0 0 -.1961-.4706l-2.3451-2.3373 2.3529-2.3607a.5943.5943 0 0 0 .1961-.4549.66.66 0 0 0 -.6667-.6589.6142.6142 0 0 0 -.447.1961l-2.3686 2.3606-2.353-2.3527a.6152.6152 0 0 0 -.447-.1883.6529.6529 0 0 0 -.6667.651.6264.6264 0 0 0 .1961.4549l2.3451 2.3529-2.3451 2.353a.61.61 0 0 0 -.1961.4549.6661.6661 0 0 0 .6667.6667.6589.6589 0 0 0 .4627-.1961z" /></svg></span></button><button aria-label="提交搜索" tabindex="-1" aria-hidden="true" type="submit" class="globalnav-searchfield-submit"><span class="globalnav-image-regular"><svg height="32" viewBox="0 0 30 32" width="30" xmlns="http://www.w3.org/2000/svg"><path d="m23.3291 23.3066-4.35-4.35c-.0105-.0105-.0247-.0136-.0355-.0235a6.8714 6.8714 0 1 0 -1.5736 1.4969c.0214.0256.03.0575.0542.0815l4.35 4.35a1.1 1.1 0 1 0 1.5557-1.5547zm-15.4507-8.582a5.6031 5.6031 0 1 1 5.603 5.61 5.613 5.613 0 0 1 -5.603-5.61z"/></svg></span><span class="globalnav-image-compact"><svg width="38" height="40" viewBox="0 0 38 40" xmlns="http://www.w3.org/2000/svg"><path d="m28.6724 27.8633-5.07-5.07c-.0095-.0095-.0224-.0122-.032-.0213a7.9967 7.9967 0 1 0 -1.8711 1.7625c.0254.03.0357.0681.0642.0967l5.07 5.07a1.3 1.3 0 0 0 1.8389-1.8379zm-18.0035-10.0033a6.5447 6.5447 0 1 1 6.545 6.5449 6.5518 6.5518 0 0 1 -6.545-6.5449z"/></svg></span></button></div><div role="status" aria-live="polite" data-topnav-searchresults-label="全部结果" class="globalnav-searchresults-count"></div></form><div class="globalnav-searchresults"></div></div></div></div></li><li id="globalnav-bag" data-analytics-region="bag" class="globalnav-item globalnav-bag"><div class="globalnav-bag-wrapper"><a role="button" id="globalnav-menubutton-link-bag" href="/cn/shop/goto/bag" aria-label="打开购物袋" data-globalnav-item-name="bag" data-topnav-flyout-trigger-regular="true" data-topnav-flyout-trigger-compact="true" data-analytics-title="open - bag" class="globalnav-link globalnav-link-bag"><span class="globalnav-image-regular"><svg height="44" viewBox="0 0 14 44" width="14" xmlns="http://www.w3.org/2000/svg"><path d="m11.3535 16.0283h-1.0205a3.4229 3.4229 0 0 0 -3.333-2.9648 3.4229 3.4229 0 0 0 -3.333 2.9648h-1.02a2.1184 2.1184 0 0 0 -2.117 2.1162v7.7155a2.1186 2.1186 0 0 0 2.1162 2.1167h8.707a2.1186 2.1186 0 0 0 2.1168-2.1167v-7.7155a2.1184 2.1184 0 0 0 -2.1165-2.1162zm-4.3535-1.8652a2.3169 2.3169 0 0 1 2.2222 1.8652h-4.4444a2.3169 2.3169 0 0 1 2.2222-1.8652zm5.37 11.6969a1.0182 1.0182 0 0 1 -1.0166 1.0171h-8.7069a1.0182 1.0182 0 0 1 -1.0165-1.0171v-7.7155a1.0178 1.0178 0 0 1 1.0166-1.0166h8.707a1.0178 1.0178 0 0 1 1.0164 1.0166z"/></svg></span><span class="globalnav-image-compact"><svg height="48" viewBox="0 0 17 48" width="17" xmlns="http://www.w3.org/2000/svg"><path d="m13.4575 16.9268h-1.1353a3.8394 3.8394 0 0 0 -7.6444 0h-1.1353a2.6032 2.6032 0 0 0 -2.6 2.6v8.9232a2.6032 2.6032 0 0 0 2.6 2.6h9.915a2.6032 2.6032 0 0 0 2.6-2.6v-8.9231a2.6032 2.6032 0 0 0 -2.6-2.6001zm-4.9575-2.2768a2.658 2.658 0 0 1 2.6221 2.2764h-5.2442a2.658 2.658 0 0 1 2.6221-2.2764zm6.3574 13.8a1.4014 1.4014 0 0 1 -1.4 1.4h-9.9149a1.4014 1.4014 0 0 1 -1.4-1.4v-8.9231a1.4014 1.4014 0 0 1 1.4-1.4h9.915a1.4014 1.4014 0 0 1 1.4 1.4z"/></svg></span></a><span aria-hidden="true" data-analytics-title="open - bag" class="globalnav-bag-badge"><span class="globalnav-bag-badge-separator"></span><span class="globalnav-bag-badge-number">0</span><span class="globalnav-bag-badge-unit">+</span></span></div><div id="globalnav-submenu-bag" aria-labelledby="globalnav-menubutton-link-bag" class="globalnav-flyout globalnav-submenu"><div class="globalnav-flyout-scroll-container"><div class="globalnav-flyout-content globalnav-submenu-content"></div></div></div></li></ul><div class="globalnav-menutrigger"><button id="globalnav-menutrigger-button" aria-controls="globalnav-list" aria-label="Menu" data-topnav-menu-label-open="Menu" data-topnav-menu-label-close="Close" data-topnav-flyout-trigger-compact="menu" class="globalnav-menutrigger-button"><svg width="18" height="18" viewBox="0 0 18 18"><polyline id="globalnav-menutrigger-bread-bottom" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" points="2 12, 16 12" class="globalnav-menutrigger-bread globalnav-menutrigger-bread-bottom"><animate id="globalnav-anim-menutrigger-bread-bottom-open" attributeName="points" keyTimes="0;0.5;1" dur="0.24s" begin="indefinite" fill="freeze" calcMode="spline" keySplines="0.42, 0, 1, 1;0, 0, 0.58, 1" values=" 2 12, 16 12; 2 9, 16 9; 3.5 15, 15 3.5"></animate><animate id="globalnav-anim-menutrigger-bread-bottom-close" attributeName="points" keyTimes="0;0.5;1" dur="0.24s" begin="indefinite" fill="freeze" calcMode="spline" keySplines="0.42, 0, 1, 1;0, 0, 0.58, 1" values=" 3.5 15, 15 3.5; 2 9, 16 9; 2 12, 16 12"></animate></polyline><polyline id="globalnav-menutrigger-bread-top" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" points="2 5, 16 5" class="globalnav-menutrigger-bread globalnav-menutrigger-bread-top"><animate id="globalnav-anim-menutrigger-bread-top-open" attributeName="points" keyTimes="0;0.5;1" dur="0.24s" begin="indefinite" fill="freeze" calcMode="spline" keySplines="0.42, 0, 1, 1;0, 0, 0.58, 1" values=" 2 5, 16 5; 2 9, 16 9; 3.5 3.5, 15 15"></animate><animate id="globalnav-anim-menutrigger-bread-top-close" attributeName="points" keyTimes="0;0.5;1" dur="0.24s" begin="indefinite" fill="freeze" calcMode="spline" keySplines="0.42, 0, 1, 1;0, 0, 0.58, 1" values=" 3.5 3.5, 15 15; 2 9, 16 9; 2 5, 16 5"></animate></polyline></svg></button></div></div></nav><div id="globalnav-curtain" class="globalnav-curtain"></div><div id="globalnav-placeholder" class="globalnav-placeholder"></div></div><script id="__ACGH_DATA__" type="application/json">{"props":{"globalNavData":{"locale":"zh_CN","ariaLabel":"全部网页","analyticsAttributes":[{"name":"data-analytics-activitymap-region-id","value":"global nav"},{"name":"data-analytics-region","value":"global nav"}],"links":[{"id":"2758e8127e4ab787ae4e849277f79b83b3522719ae4b96a595421e50ea2d03f7","name":"apple","text":"Apple","url":"/","ariaLabel":"Apple","submenuAriaLabel":"Apple 目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 14 44\" width=\"14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m13.0729 17.6825a3.61 3.61 0 0 0 -1.7248 3.0365 3.5132 3.5132 0 0 0 2.1379 3.2223 8.394 8.394 0 0 1 -1.0948 2.2618c-.6816.9812-1.3943 1.9623-2.4787 1.9623s-1.3633-.63-2.613-.63c-1.2187 0-1.6525.6507-2.644.6507s-1.6834-.9089-2.4787-2.0243a9.7842 9.7842 0 0 1 -1.6628-5.2776c0-3.0984 2.014-4.7405 3.9969-4.7405 1.0535 0 1.9314.6919 2.5924.6919.63 0 1.6112-.7333 2.8092-.7333a3.7579 3.7579 0 0 1 3.1604 1.5802zm-3.7284-2.8918a3.5615 3.5615 0 0 0 .8469-2.22 1.5353 1.5353 0 0 0 -.031-.32 3.5686 3.5686 0 0 0 -2.3445 1.2084 3.4629 3.4629 0 0 0 -.8779 2.1585 1.419 1.419 0 0 0 .031.2892 1.19 1.19 0 0 0 .2169.0207 3.0935 3.0935 0 0 0 2.1586-1.1368z\"/></svg>"},{"name":"compact","assetInline":"<svg height=\"48\" viewBox=\"0 0 17 48\" width=\"17\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m15.5752 19.0792a4.2055 4.2055 0 0 0 -2.01 3.5376 4.0931 4.0931 0 0 0 2.4908 3.7542 9.7779 9.7779 0 0 1 -1.2755 2.6351c-.7941 1.1431-1.6244 2.2862-2.8878 2.2862s-1.5883-.734-3.0443-.734c-1.42 0-1.9252.7581-3.08.7581s-1.9611-1.0589-2.8876-2.3584a11.3987 11.3987 0 0 1 -1.9373-6.1487c0-3.61 2.3464-5.523 4.6566-5.523 1.2274 0 2.25.8062 3.02.8062.734 0 1.8771-.8543 3.2729-.8543a4.3778 4.3778 0 0 1 3.6822 1.841zm-6.8586-2.0456a1.3865 1.3865 0 0 1 -.2527-.024 1.6557 1.6557 0 0 1 -.0361-.337 4.0341 4.0341 0 0 1 1.0228-2.5148 4.1571 4.1571 0 0 1 2.7314-1.4078 1.7815 1.7815 0 0 1 .0361.373 4.1487 4.1487 0 0 1 -.9867 2.587 3.6039 3.6039 0 0 1 -2.5148 1.3236z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"apple home"}]},{"id":"75b9dea386fab56ffd38d8479802cbd97bdfeb93b86ccd649fd8acce1676dc0e","name":"store","text":"商店","url":"/cn/shop/goto/store","ariaLabel":"商店","submenuAriaLabel":"商店目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 20 44\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m2.2568 23.0189-.6035-.7793v4.1426h-.9316v-6.6562h2.1328c-.1465-.3633-.2988-.7266-.4863-1.0488h-2.0743v-.9375h4.0254c-.0938-.2461-.1934-.4805-.2988-.6855l1.0781-.1642c.1055.2578.1934.5449.293.8496h4.0371v.9375h-2.1504c-.1582.3867-.3223.7324-.498 1.0488h2.2031v5.4961c0 .7793-.3398 1.1836-1.002 1.1836h-1.0488l-.2461-.8848.9844.0293c.2461 0 .3809-.1816.3809-.5332v-4.4297h-6.3985v1.6113c.8203-.4512 1.5-.9844 2.0508-1.5879l.6855.6035c-.416.498-.8965.9434-1.4414 1.3477h3.9082v2.7012h-4.002v-2.6309c-.1933.1349-.3866.2638-.5976.3868zm3.4571-3.293c.1816-.3457.3516-.6914.498-1.0488h-2.7773c.1465.3164.293.6621.4102 1.0488zm.205 3.7032h-2.121v.9727h2.1211v-.9727zm2.1094-1.1485-.7266.7207c-.4746-.5566-1.1484-1.1426-2.0098-1.7754l.6562-.6211c.8205.5567 1.5177 1.125 2.0802 1.6758zm7.9336-4.3652h3.7441v.9434h-7.4414v2.1328c-.0293 2.2559-.4043 4.0547-1.1133 5.4141l-.7383-.6562c.5684-1.1426.8613-2.7305.8848-4.7578v-3.0762h3.668c-.1406-.293-.3047-.5625-.4688-.8086l1.0137-.1641c.1641.2988.3047.621.4512.9726zm.2461 1.2598v1.1074h3.2637v.9199h-3.2637v1.3008h2.6836v3.9434h-.9609v-.4512h-4.043v.4512h-.9609v-3.9434h2.3086v-3.3281zm1.7227 5.9062v-1.6699h-4.043v1.6699z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"store"},{"name":"data-analytics-element-engagement","value":"hover - store"}]},{"id":"9a82f08a3cc17e59a61372a40e7ecb17783e9c10aef163465f29bb5b00d4725a","name":"mac","text":"Mac","url":"/mac/","ariaLabel":"Mac","submenuAriaLabel":"Mac 目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 23 44\" width=\"23\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.1558 25.9987v-6.457h-.0703l-2.666 6.457h-.8907l-2.666-6.457h-.0703v6.457h-.9844v-8.4551h1.2246l2.8945 7.0547h.0938l2.8945-7.0547h1.2246v8.4551zm2.5166-1.7696c0-1.1309.832-1.7812 2.3027-1.8691l1.8223-.1113v-.5742c0-.7793-.4863-1.207-1.4297-1.207-.7559 0-1.2832.2871-1.4238.7852h-1.0195c.1348-1.0137 1.1309-1.6816 2.4785-1.6816 1.541 0 2.4023.791 2.4023 2.1035v4.3242h-.9609v-.9318h-.0938c-.4102.6738-1.1016 1.043-1.9453 1.043-1.2246 0-2.1328-.7266-2.1328-1.8809zm4.125-.5859v-.5801l-1.6992.1113c-.9609.0645-1.3828.3984-1.3828 1.0312 0 .6445.5449 1.0195 1.2773 1.0195 1.0371.0001 1.8047-.6796 1.8047-1.5819zm6.958-2.0273c-.1641-.627-.7207-1.1367-1.6289-1.1367-1.1367 0-1.8516.9082-1.8516 2.3379 0 1.459.7266 2.3848 1.8516 2.3848.8496 0 1.4414-.3926 1.6289-1.1074h1.0195c-.1816 1.1602-1.125 2.0156-2.6426 2.0156-1.7695 0-2.9004-1.2832-2.9004-3.293 0-1.9688 1.125-3.2461 2.8945-3.2461 1.5352 0 2.4727.9199 2.6484 2.0449z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"mac"},{"name":"data-analytics-element-engagement","value":"hover - mac"}]},{"id":"00948525be55e5a61fc12335c2fe8fbc94664d6237757d79344cadd205bde991","name":"ipad","text":"iPad","url":"/ipad/","ariaLabel":"iPad","submenuAriaLabel":"iPad 目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 24 44\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m14.9575 23.7002c0 .902-.768 1.582-1.805 1.582-.732 0-1.277-.375-1.277-1.02 0-.632.422-.966 1.383-1.031l1.699-.111zm-1.395-4.072c-1.347 0-2.343.668-2.478 1.681h1.019c.141-.498.668-.785 1.424-.785.944 0 1.43.428 1.43 1.207v.574l-1.822.112c-1.471.088-2.303.738-2.303 1.869 0 1.154.908 1.881 2.133 1.881.844 0 1.535-.369 1.945-1.043h.094v.931h.961v-4.324c0-1.312-.862-2.103-2.403-2.103zm6.769 5.575c-1.155 0-1.846-.885-1.846-2.361 0-1.471.697-2.362 1.846-2.362 1.142 0 1.857.914 1.857 2.362 0 1.459-.709 2.361-1.857 2.361zm1.834-8.027v3.503h-.088c-.358-.691-1.102-1.107-1.981-1.107-1.605 0-2.654 1.289-2.654 3.27 0 1.986 1.037 3.269 2.654 3.269.873 0 1.623-.416 2.022-1.119h.093v1.008h.961v-8.824zm-15.394 4.869h-1.863v-3.563h1.863c1.225 0 1.899.639 1.899 1.799 0 1.119-.697 1.764-1.899 1.764zm.276-4.5h-3.194v8.455h1.055v-3.018h2.127c1.588 0 2.719-1.119 2.719-2.701 0-1.611-1.108-2.736-2.707-2.736zm-6.064 8.454h1.008v-6.316h-1.008zm-.199-8.237c0-.387.316-.704.703-.704s.703.317.703.704c0 .386-.316.703-.703.703s-.703-.317-.703-.703z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"ipad"},{"name":"data-analytics-element-engagement","value":"hover - ipad"}]},{"id":"254873a73c00038209d1c486273a47e092f598ac6df39eaa74322285d69c22d6","name":"iphone","text":"iPhone","url":"/iphone/","ariaLabel":"iPhone","submenuAriaLabel":"iPhone 目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 38 44\" width=\"38\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m32.7129 22.3203h3.48c-.023-1.119-.691-1.857-1.693-1.857-1.008 0-1.711.738-1.787 1.857zm4.459 2.045c-.293 1.078-1.277 1.746-2.66 1.746-1.752 0-2.848-1.266-2.848-3.264 0-1.986 1.113-3.275 2.848-3.275 1.705 0 2.742 1.213 2.742 3.176v.386h-4.541v.047c.053 1.248.75 2.039 1.822 2.039.815 0 1.366-.298 1.629-.855zm-12.282-4.682h.961v.996h.094c.316-.697.932-1.107 1.898-1.107 1.418 0 2.209.838 2.209 2.338v4.09h-1.007v-3.844c0-1.137-.481-1.676-1.489-1.676s-1.658.674-1.658 1.781v3.739h-1.008zm-2.499 3.158c0-1.5-.674-2.361-1.869-2.361-1.196 0-1.87.861-1.87 2.361 0 1.495.674 2.362 1.87 2.362 1.195 0 1.869-.867 1.869-2.362zm-4.782 0c0-2.033 1.114-3.269 2.913-3.269 1.798 0 2.912 1.236 2.912 3.269 0 2.028-1.114 3.27-2.912 3.27-1.799 0-2.913-1.242-2.913-3.27zm-6.636-5.666h1.008v3.504h.093c.317-.697.979-1.107 1.946-1.107 1.336 0 2.179.855 2.179 2.338v4.09h-1.007v-3.844c0-1.119-.504-1.676-1.459-1.676-1.131 0-1.752.715-1.752 1.781v3.739h-1.008zm-6.015 4.87h1.863c1.202 0 1.899-.645 1.899-1.764 0-1.16-.674-1.799-1.899-1.799h-1.863zm2.139-4.5c1.599 0 2.707 1.125 2.707 2.736 0 1.582-1.131 2.701-2.719 2.701h-2.127v3.018h-1.055v-8.455zm-6.114 8.454h1.008v-6.316h-1.008zm-.2-8.238c0-.386.317-.703.703-.703.387 0 .704.317.704.703 0 .387-.317.704-.704.704-.386 0-.703-.317-.703-.704z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"iphone"},{"name":"data-analytics-element-engagement","value":"hover - iphone"}]},{"id":"53df160ebeaf43e20199b03d483006c3d35b44cc88b0fc6ad48af0114776e209","name":"watch","text":"Watch","url":"/watch/","ariaLabel":"Watch","submenuAriaLabel":"Apple Watch 目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 35 44\" width=\"35\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m28.9819 17.1758h1.008v3.504h.094c.316-.697.978-1.108 1.945-1.108 1.336 0 2.18.856 2.18 2.338v4.09h-1.008v-3.844c0-1.119-.504-1.675-1.459-1.675-1.131 0-1.752.715-1.752 1.781v3.738h-1.008zm-2.42 4.441c-.164-.627-.721-1.136-1.629-1.136-1.137 0-1.852.908-1.852 2.338 0 1.459.727 2.384 1.852 2.384.849 0 1.441-.392 1.629-1.107h1.019c-.182 1.16-1.125 2.016-2.642 2.016-1.77 0-2.901-1.284-2.901-3.293 0-1.969 1.125-3.247 2.895-3.247 1.535 0 2.472.92 2.648 2.045zm-6.533-3.568v1.635h1.407v.844h-1.407v3.574c0 .744.282 1.06.938 1.06.182 0 .281-.006.469-.023v.85c-.2.035-.393.058-.592.058-1.301 0-1.822-.48-1.822-1.687v-3.832h-1.02v-.844h1.02v-1.635zm-4.2 5.596v-.58l-1.699.111c-.961.064-1.383.398-1.383 1.031 0 .645.545 1.02 1.277 1.02 1.038 0 1.805-.68 1.805-1.582zm-4.125.586c0-1.131.832-1.782 2.303-1.869l1.822-.112v-.574c0-.779-.486-1.207-1.43-1.207-.755 0-1.283.287-1.423.785h-1.02c.135-1.014 1.131-1.682 2.479-1.682 1.541 0 2.402.792 2.402 2.104v4.324h-.961v-.931h-.094c-.41.673-1.101 1.043-1.945 1.043-1.225 0-2.133-.727-2.133-1.881zm-7.684 1.769h-.996l-2.303-8.455h1.101l1.682 6.873h.07l1.893-6.873h1.066l1.893 6.873h.07l1.682-6.873h1.101l-2.302 8.455h-.996l-1.946-6.674h-.07z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"watch"},{"name":"data-analytics-element-engagement","value":"hover - watch"}]},{"id":"b605ab234f32c76b9d586469b3201bde23eb3c09e73007566a1ab8ee6a3fb8e4","name":"vision","text":"Vision","url":"/apple-vision-pro/","ariaLabel":"Vision","submenuAriaLabel":"Vision 菜单","images":[{"name":"regular","assetInline":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"34\" height=\"44\" viewBox=\"0 0 34 44\"><path d=\"m.4043,17.5449h1.1074l2.4844,7.0898h.0938l2.4844-7.0898h1.1074l-3.1172,8.4551h-1.043L.4043,17.5449Zm8.3467.2168c0-.3867.3164-.7031.7031-.7031s.7031.3164.7031.7031-.3164.7031-.7031.7031-.7031-.3164-.7031-.7031Zm.1875,1.9219h1.0195v6.3164h-1.0195v-6.3164Zm2.499,4.7051h1.043c.1699.5273.6738.873,1.4824.873.8496,0,1.4531-.4043,1.4531-.9785v-.0117c0-.4277-.3223-.7266-1.1016-.9141l-.9785-.2344c-1.1836-.2812-1.7168-.7969-1.7168-1.7051v-.0059c0-1.0488,1.0078-1.8398,2.3496-1.8398,1.3242,0,2.2441.6621,2.3848,1.6934h-1.002c-.1348-.498-.627-.8438-1.3887-.8438-.75,0-1.3008.3867-1.3008.9434v.0117c0,.4277.3164.6973,1.0605.8789l.9727.2344c1.1895.2871,1.7637.8027,1.7637,1.7051v.0117c0,1.125-1.0957,1.9043-2.5312,1.9043-1.4062,0-2.373-.6797-2.4902-1.7227Zm6.3203-6.627c0-.3867.3164-.7031.7031-.7031s.7031.3164.7031.7031-.3164.7031-.7031.7031-.7031-.3164-.7031-.7031Zm.1875,1.9219h1.0195v6.3164h-1.0195v-6.3164Zm2.5049,3.1641v-.0117c0-2.0273,1.1133-3.2637,2.9121-3.2637s2.9121,1.2363,2.9121,3.2637v.0117c0,2.0215-1.1133,3.2637-2.9121,3.2637s-2.9121-1.2422-2.9121-3.2637Zm4.7812,0v-.0117c0-1.4941-.6738-2.3613-1.8691-2.3613s-1.8691.8672-1.8691,2.3613v.0117c0,1.4883.6738,2.3613,1.8691,2.3613s1.8691-.873,1.8691-2.3613Zm2.5049-3.1641h1.0195v.9492h.0938c.3164-.668.9082-1.0605,1.8398-1.0605,1.418,0,2.209.8379,2.209,2.3379v4.0898h-1.0195v-3.8438c0-1.1367-.4688-1.6816-1.4766-1.6816s-1.6465.6797-1.6465,1.7871v3.7383h-1.0195v-6.3164Z\"></path></svg>\n"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"vision"},{"name":"data-analytics-element-engagement","value":"hover - vision"}]},{"id":"43b376b005d0715028ef96e1ca418805056f15d9b10456f5139d4e361450b048","name":"airpods","text":"AirPods","url":"/airpods/","ariaLabel":"AirPods","submenuAriaLabel":"AirPods 目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 43 44\" width=\"43\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m11.7153 19.6836h.961v.937h.094c.187-.615.914-1.048 1.752-1.048.164 0 .375.011.504.029v1.008c-.082-.024-.446-.059-.645-.059-.961 0-1.658.645-1.658 1.535v3.914h-1.008zm28.135-.111c1.324 0 2.244.656 2.379 1.693h-.996c-.135-.504-.627-.838-1.389-.838-.75 0-1.336.381-1.336.943 0 .434.352.704 1.096.885l.973.235c1.189.287 1.763.802 1.763 1.711 0 1.13-1.095 1.91-2.531 1.91-1.406 0-2.373-.674-2.484-1.723h1.037c.17.533.674.873 1.482.873.85 0 1.459-.404 1.459-.984 0-.434-.328-.727-1.002-.891l-1.084-.264c-1.183-.287-1.722-.796-1.722-1.71 0-1.049 1.013-1.84 2.355-1.84zm-6.665 5.631c-1.155 0-1.846-.885-1.846-2.362 0-1.471.697-2.361 1.846-2.361 1.142 0 1.857.914 1.857 2.361 0 1.459-.709 2.362-1.857 2.362zm1.834-8.028v3.504h-.088c-.358-.691-1.102-1.107-1.981-1.107-1.605 0-2.654 1.289-2.654 3.269 0 1.987 1.037 3.27 2.654 3.27.873 0 1.623-.416 2.022-1.119h.094v1.007h.961v-8.824zm-9.001 8.028c-1.195 0-1.869-.868-1.869-2.362 0-1.5.674-2.361 1.869-2.361 1.196 0 1.869.861 1.869 2.361 0 1.494-.673 2.362-1.869 2.362zm0-5.631c-1.799 0-2.912 1.236-2.912 3.269 0 2.028 1.113 3.27 2.912 3.27s2.912-1.242 2.912-3.27c0-2.033-1.113-3.269-2.912-3.269zm-17.071 6.427h1.008v-6.316h-1.008zm-.199-8.238c0-.387.317-.703.703-.703.387 0 .703.316.703.703s-.316.703-.703.703c-.386 0-.703-.316-.703-.703zm-6.137 4.922 1.324-3.773h.093l1.325 3.773zm1.892-5.139h-1.043l-3.117 8.455h1.107l.85-2.42h3.363l.85 2.42h1.107zm14.868 4.5h-1.864v-3.562h1.864c1.224 0 1.898.639 1.898 1.799 0 1.119-.697 1.763-1.898 1.763zm.275-4.5h-3.193v8.455h1.054v-3.017h2.127c1.588 0 2.719-1.119 2.719-2.701 0-1.612-1.107-2.737-2.707-2.737z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"airpods"},{"name":"data-analytics-element-engagement","value":"hover - airpods"}]},{"id":"61960681a9805d42f14b4a653cecf8f69ef9b84cd64119fd0d44a33502cbb859","name":"home","text":"家居","url":"/apple-home/","ariaLabel":"家居","submenuAriaLabel":"家居目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 20 44\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m5.9951 22.6498c.1582.4688.2344.9844.2461 1.5352 0 .8203-.123 1.4004-.3457 1.7051-.2637.3691-.8613.5566-1.7988.5566h-.3223l-.334-.8613h.5273c.5742 0 .9316-.0879 1.0781-.2402.1641-.2051.252-.5801.252-1.1602 0-.0996-.0059-.2051-.0059-.293-1.1074.832-2.5664 1.5176-4.3477 2.0742l-.4922-.832c1.998-.5684 3.5566-1.2949 4.6699-2.1738-.0586-.2051-.1406-.4102-.2227-.5977-.9609.7207-2.2441 1.3008-3.832 1.7637l-.4805-.8379c1.6699-.4336 2.9707-.9727 3.9023-1.6465-.0996-.1289-.1934-.252-.293-.375-.041.0234-.0762.0293-.1055.0527-.668.3164-1.6055.6562-2.8184 1.0137l-.4922-.8086c.9434-.1934 1.8223-.4629 2.6426-.8027.2461-.0996.4805-.2051.709-.3164h-2.2965v-.9023h6.0879v.9023h-2.2735c-.252.1641-.4863.3164-.709.4629.2988.3281.5449.6738.75 1.0488.9023-.2754 1.7637-.6562 2.584-1.1836l.6563.6562c-.5391.3398-1.0957.627-1.7051.8672.4746 1.2012 1.2422 2.1621 2.291 2.9062l-.7031.8086c-1.084-.9141-1.8691-2.0625-2.3672-3.4336-.1524.0411-.3047.0703-.4512.1114zm-.5625-4.8399h3.8438v1.9102h-.9727v-1.002h-6.8496v1.002h-.9727v-1.9102h3.9668c-.0996-.2637-.2168-.498-.3281-.7148l.9961-.1758c.1113.2695.2168.5684.3164.8906zm5.666 8.666-.7676-.6855c.6973-1.2832 1.0547-2.9355 1.0664-4.9395v-3.5098h7.752v2.6777h-2.8184v.9902h3.2168v.8965h-3.2168v1.0312h2.543v3.5449h-.9375v-.4395h-4.0078v.4395h-.9316v-3.5449h2.3848v-1.0312h-3.0645c-.1231 1.7404-.5215 3.2579-1.2188 4.5704zm1.2598-8.2441v.9023h5.8242v-.9023zm0 1.7871v.9902h3.0234v-.9902zm5.5781 5.1445v-1.3418h-4.0078v1.3418z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"home"},{"name":"data-analytics-region","value":"home"},{"name":"data-analytics-element-engagement","value":"hover - home"}]},{"id":"51baa0c1c201be6929902126e4ffa5de0e3475d131be56659642d4106605129b","name":"entertainment","text":"娱乐","url":"/entertainment/","ariaLabel":"娱乐","submenuAriaLabel":"娱乐目录","images":[{"name":"regular","assetInline":"<svg id=\"Outlined\" xmlns=\"http://www.w3.org/2000/svg\" width=\"22\" height=\"44\" viewBox=\"0 0 22 44\"><path id=\"art_\" d=\"M3.69,17.0293c-.1055.6562-.1993,1.2715-.293,1.84H4.9434v.5391a12.1563,12.1563,0,0,1-.8262,4.0957c.4512.3691.8262.6973,1.125.99l-.6445.7559c-.252-.2871-.5567-.5859-.8907-.8965A7.8518,7.8518,0,0,1,1.9434,26.498l-.627-.7675A6.5715,6.5715,0,0,0,2.998,23.7383c-.41-.3457-.873-.7207-1.3828-1.1133.2461-.873.4688-1.8164.668-2.8184H1.44v-.9375H2.4473c.1-.6328.205-1.2773.2871-1.9336Zm.3515,2.7773h-.82a22.6557,22.6557,0,0,1-.6445,2.543c.2929.2051.5566.3984.8027.58A10.1091,10.1091,0,0,0,4.041,19.8066ZM7.2285,22.666c.041-.2871.0762-.5976.1-.9023H5.3125V20.873h5.0039v.8907H8.2539c-.0176.3281-.0351.6269-.0644.9023h2.5019v.9082H8.4824a5.7678,5.7678,0,0,0,2.461,2.1328l-.6622.7735a6.9141,6.9141,0,0,1-2.4667-2.35,5.5451,5.5451,0,0,1-.3282.6738A4.56,4.56,0,0,1,5.1953,26.51L4.68,25.6953A4.0693,4.0693,0,0,0,6.748,24.1719a4.176,4.176,0,0,0,.2579-.5977h-2.08V22.666Zm2.8653-5.32v2.7188H5.5293V17.3457Zm-.8965.8027H6.4316v1.1133H9.1973Zm5.06,4.7813A14.6857,14.6857,0,0,1,12.47,26.0352l-.85-.6153a11.6928,11.6928,0,0,0,1.7754-2.9121Zm-1.43-5.3027a5.5675,5.5675,0,0,0,.7852.0761,20.6473,20.6473,0,0,0,5.7773-.6914l.4629.82a26.3685,26.3685,0,0,1-6.2343.7032c-.1407.8789-.2989,1.67-.4512,2.3789h2.6777V19.0273h.9844v1.8868h3.6563v.9492H16.8291v3.4394c0,.7325-.3633,1.1133-1.0547,1.1133H14.3857l-.2168-.9551c.4395.0411.8614.0645,1.2657.0645.2636,0,.41-.1641.41-.4746V21.8633h-3.75C12.44,20.27,12.6865,18.8516,12.8271,17.627Zm7.8223,7.98-.9258.4629a23.26,23.26,0,0,0-1.6582-3.1992l.8672-.41A34.6694,34.6694,0,0,1,20.6494,25.6074Z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"entertainment"},{"name":"data-analytics-element-engagement","value":"hover - entertainment"}]},{"id":"84b81348264fbec1cc74d334219f882e4455b0bcf7461f4da21c98dab4d38a3f","name":"accessories","text":"配件","url":"/cn/shop/goto/buy_accessories","ariaLabel":"配件","submenuAriaLabel":"配件目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 20 44\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m4.9404 17.3412v.9258h-1.2363v.9727h1.1074v7.1719h-.8613v-.4922h-2.666v.4922h-.8613v-7.1719h1.084v-.9727h-1.3008v-.9258zm-3.6562 5.9765h2.666v-.6973h-.3867c-.4805 0-.7207-.2578-.7207-.75v-1.752h-.4922v.5625c-.0117 1.0957-.2285 1.8984-.6387 2.4082l-.4277-.3867zm0-3.1992v2.4199c.2812-.4277.4219-1.043.4277-1.8574v-.5625zm2.666 4.8867v-.8086h-2.666v.8086zm-1.0723-5.7656v-.9726h-.539v.9727h.539zm1.0723.8789h-.457v1.5586c0 .1348.0762.2051.252.2051h.2051v-1.7637zm5.2441 5.6895c-.1465.3164-.4805.4805-.9902.4805h-2.1211c-.5156 0-.7617-.3457-.7617-1.0371v-4.4884h2.748v-2.4844h-2.8476v-.9258h3.7793v4.3594h-2.7246v3.1523c0 .3281.0703.4922.2285.5156h1.5351c.2227 0 .3691-.1465.4277-.4219.0645-.2754.1055-.8027.123-1.5703l.9785.3105c-.0819 1.0725-.2049 1.7814-.3749 2.1096zm4.2715-8.4785c-.252.8145-.5859 1.582-.9961 2.2969v6.8262h-.9551v-5.4082c-.2871.3633-.5977.7148-.9141 1.0547l-.3223-1.0371c1.0254-1.1895 1.7871-2.5723 2.2793-4.1543zm1.7696.4394c-.0879.4629-.1758.9082-.293 1.3125h1.2363v-2.0449h.9727v2.0449h2.2617v.9551h-2.2617v2.2031h2.6426v.9434h-2.6426v3.2285h-.9727v-3.2285h-2.918v-.9434h2.918v-2.2031h-1.5469c-.2578.6445-.5684 1.2305-.9375 1.7637l-.627-.8086c.5977-.9141 1.0078-2.0273 1.2129-3.3398z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"accessories"},{"name":"data-analytics-element-engagement","value":"hover - accessories"}]},{"id":"e7fc491c3f79481d3e6d4e7741e5f29a5ef6ce7c95b0c527e3fe7e1212782e04","name":"support","text":"技术支持","url":"https://support.apple.com/zh-cn/?cid=gn-ols-home-hp-tab","ariaLabel":"技术支持","submenuAriaLabel":"技术支持目录","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 41 44\" width=\"41\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m.8916 26.3412-.2051-.9141c.2637.041.5098.0586.7441.0586.2461 0 .3691-.1406.3691-.416v-2.1738c-.3691.1465-.75.2871-1.1133.4102l-.252-.9609c.4629-.1055.9141-.2344 1.3652-.3984v-2.2207h-1.16v-.9316h1.1602v-1.7871h.9434v1.7871h1.002v.9316h-1.002v1.8281c.3457-.1641.6855-.3398 1.0254-.5215v.9492c-.3398.1875-.6797.3516-1.0254.5156v2.8184c0 .6797-.3281 1.0254-.9844 1.0254h-.8672zm5.543-7.9453v-1.3711h.9375v1.3711h2.4023v.9375h-2.4023v1.459h2.0098v.8613c-.3281 1.0664-.873 1.9922-1.6465 2.7598.6328.4746 1.4121.8965 2.3262 1.248l-.5039.8027c-.9844-.4336-1.8105-.9199-2.4902-1.459-.7793.6094-1.7227 1.0957-2.8301 1.4883l-.4629-.8086c1.0254-.3281 1.8984-.75 2.6074-1.2832-.7969-.7969-1.3359-1.6934-1.6113-2.6895h-.5333v-.9199h2.1973v-1.459h-2.4024v-.9375h2.4024zm.6093 5.4433c.6152-.6152 1.0781-1.3184 1.3887-2.127h-2.748c.2461.7911.6972 1.5059 1.3593 2.127zm7.9688-4.5v-2.3672h.9609v2.3672h3.9082v.9316h-3.0176c.6562 1.5996 1.7637 3.0234 3.3223 4.2773l-.6562.8203c-1.6934-1.5-2.8828-3.1816-3.5566-5.0449v6.1113h-.9609v-6.0938c-.75 2.0566-1.9922 3.7441-3.7266 5.0684l-.5273-.873c1.5352-1.1074 2.6602-2.5312 3.3633-4.2656h-3.0059v-.9316zm3.9844-.7558-.7793.5508c-.3281-.5098-.7793-1.0605-1.3301-1.6816l.7559-.4688c.5859.6093 1.0371 1.1484 1.3535 1.5996zm7.2304-1.5879v1.2598h3.9316v.9434h-3.9316v1.3418h2.7305v.8613c-.5391 1.1016-1.3301 2.0508-2.3555 2.8418.457.2461.9609.4805 1.5059.6855.7383.2637 1.5059.498 2.3262.6855l-.5684.8613c-.8906-.2402-1.7285-.5215-2.5312-.8613-.5625-.2461-1.084-.5098-1.5645-.8027-1.1367.709-2.5137 1.2715-4.1074 1.6992l-.5684-.8672c1.4941-.334 2.7773-.8145 3.832-1.4004-.5098-.4043-.9609-.8555-1.3418-1.3477-.3574-.4512-.6152-.9316-.7676-1.4414h-.7148v-.9141h3.1289v-1.3418h-3.9141v-.9434h3.9141v-1.2598h.9961zm1.6231 4.459h-4.0664c.1816.4805.4512.9023.7969 1.2656.3457.3691.7383.709 1.166 1.0078.9023-.6445 1.6113-1.4004 2.1035-2.2734zm3.8027 4.9101-.2051-.9375c.2637.041.5215.0586.7676.0586.2402 0 .3809-.1289.3809-.3926v-2.1445c-.3633.123-.7207.2461-1.0898.3574l-.2461-.9785c.4512-.1055.8906-.2285 1.3359-.375v-2.1387h-1.166v-.9375h1.166v-1.752h.9551v1.752h.9785v.9375h-.9785v1.7812c.334-.1582.6621-.3164.9902-.4805v.9961c-.3281.1582-.668.3164-.9902.457v2.7715c0 .6738-.3398 1.0254-.9961 1.0254h-.9024zm6.7324-4.4824v-.709h.9727v.709h1.207v.9141h-1.207v2.5605c0 .6738-.3398 1.0254-1.0137 1.0254h-1.3535l-.2109-.9434c.4277.0293.8262.0469 1.2129.0469.2637 0 .3926-.1289.3926-.375v-2.3145h-3.6504v-.9141h3.6503zm-.2343-4.8281v.9492h2.0215v.8965h-2.0215v.9727h2.4023v.9199h-5.6543v-.9199h2.2969v-.9727h-1.9277v-.8965h1.9277v-.9492zm-1.0606 7.6699-.7617.5273c-.2812-.4863-.6562-1.043-1.1309-1.6465l.791-.4863c.4805.6094.8497 1.1426 1.1016 1.6055z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"support"},{"name":"data-analytics-element-engagement","value":"hover - support"},{"name":"data-analytics-exit-link","value":"true"}]}],"bag":{"analyticsAttributes":[{"name":"data-analytics-region","value":"bag"}],"open":{"url":"/cn/shop/goto/bag","images":[{"name":"regular","assetInline":"<svg height=\"44\" viewBox=\"0 0 14 44\" width=\"14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m11.3535 16.0283h-1.0205a3.4229 3.4229 0 0 0 -3.333-2.9648 3.4229 3.4229 0 0 0 -3.333 2.9648h-1.02a2.1184 2.1184 0 0 0 -2.117 2.1162v7.7155a2.1186 2.1186 0 0 0 2.1162 2.1167h8.707a2.1186 2.1186 0 0 0 2.1168-2.1167v-7.7155a2.1184 2.1184 0 0 0 -2.1165-2.1162zm-4.3535-1.8652a2.3169 2.3169 0 0 1 2.2222 1.8652h-4.4444a2.3169 2.3169 0 0 1 2.2222-1.8652zm5.37 11.6969a1.0182 1.0182 0 0 1 -1.0166 1.0171h-8.7069a1.0182 1.0182 0 0 1 -1.0165-1.0171v-7.7155a1.0178 1.0178 0 0 1 1.0166-1.0166h8.707a1.0178 1.0178 0 0 1 1.0164 1.0166z\"/></svg>"},{"name":"compact","assetInline":"<svg height=\"48\" viewBox=\"0 0 17 48\" width=\"17\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m13.4575 16.9268h-1.1353a3.8394 3.8394 0 0 0 -7.6444 0h-1.1353a2.6032 2.6032 0 0 0 -2.6 2.6v8.9232a2.6032 2.6032 0 0 0 2.6 2.6h9.915a2.6032 2.6032 0 0 0 2.6-2.6v-8.9231a2.6032 2.6032 0 0 0 -2.6-2.6001zm-4.9575-2.2768a2.658 2.658 0 0 1 2.6221 2.2764h-5.2442a2.658 2.658 0 0 1 2.6221-2.2764zm6.3574 13.8a1.4014 1.4014 0 0 1 -1.4 1.4h-9.9149a1.4014 1.4014 0 0 1 -1.4-1.4v-8.9231a1.4014 1.4014 0 0 1 1.4-1.4h9.915a1.4014 1.4014 0 0 1 1.4 1.4z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-title","value":"open - bag"}],"ariaLabel":"打开购物袋"},"close":{"analyticsAttributes":[{"name":"data-analytics-click","value":"prop3:close - bag"},{"name":"data-analytics-title","value":"close - bag"}],"ariaLabel":"关闭购物袋"},"badge":{"ariaLabel":"购物袋中的商品数量:{%BAGITEMCOUNT%} 件"},"storeApiUrl":"/shop/bag/status"},"search":{"analyticsAttributes":[{"name":"data-analytics-region","value":"search"}],"open":{"url":"/search","images":[{"name":"regular","assetInline":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"15px\" height=\"44px\" viewBox=\"0 0 15 44\">\n<path d=\"M14.298,27.202l-3.87-3.87c0.701-0.929,1.122-2.081,1.122-3.332c0-3.06-2.489-5.55-5.55-5.55c-3.06,0-5.55,2.49-5.55,5.55 c0,3.061,2.49,5.55,5.55,5.55c1.251,0,2.403-0.421,3.332-1.122l3.87,3.87c0.151,0.151,0.35,0.228,0.548,0.228 s0.396-0.076,0.548-0.228C14.601,27.995,14.601,27.505,14.298,27.202z M1.55,20c0-2.454,1.997-4.45,4.45-4.45 c2.454,0,4.45,1.997,4.45,4.45S8.454,24.45,6,24.45C3.546,24.45,1.55,22.454,1.55,20z\"/>\n</svg>\n"},{"name":"compact","assetInline":"<svg height=\"48\" viewBox=\"0 0 17 48\" width=\"17\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m16.2294 29.9556-4.1755-4.0821a6.4711 6.4711 0 1 0 -1.2839 1.2625l4.2005 4.1066a.9.9 0 1 0 1.2588-1.287zm-14.5294-8.0017a5.2455 5.2455 0 1 1 5.2455 5.2527 5.2549 5.2549 0 0 1 -5.2455-5.2527z\"/></svg>"}],"ariaLabel":"搜索 apple.com.cn","analyticsAttributes":[{"name":"data-analytics-title","value":"open - search field"}]},"close":{"ariaLabel":"关闭"},"input":{"placeholderTextRegular":"搜索 apple.com.cn","placeholderTextCompact":"搜索","ariaLabel":"搜索 apple.com.cn"},"submit":{"images":[{"name":"regular","assetInline":"<svg height=\"32\" viewBox=\"0 0 30 32\" width=\"30\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m23.3291 23.3066-4.35-4.35c-.0105-.0105-.0247-.0136-.0355-.0235a6.8714 6.8714 0 1 0 -1.5736 1.4969c.0214.0256.03.0575.0542.0815l4.35 4.35a1.1 1.1 0 1 0 1.5557-1.5547zm-15.4507-8.582a5.6031 5.6031 0 1 1 5.603 5.61 5.613 5.613 0 0 1 -5.603-5.61z\"/></svg>"},{"name":"compact","assetInline":"<svg width=\"38\" height=\"40\" viewBox=\"0 0 38 40\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m28.6724 27.8633-5.07-5.07c-.0095-.0095-.0224-.0122-.032-.0213a7.9967 7.9967 0 1 0 -1.8711 1.7625c.0254.03.0357.0681.0642.0967l5.07 5.07a1.3 1.3 0 0 0 1.8389-1.8379zm-18.0035-10.0033a6.5447 6.5447 0 1 1 6.545 6.5449 6.5518 6.5518 0 0 1 -6.545-6.5449z\"/></svg>"}],"ariaLabel":"提交搜索"},"reset":{"images":[{"name":"regular","assetInline":"<svg height=\"14\" viewBox=\"0 0 14 14\" width=\"14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m7 .0339a6.9661 6.9661 0 1 0 6.9661 6.9661 6.9661 6.9661 0 0 0 -6.9661-6.9661zm2.798 8.9867a.55.55 0 0 1 -.778.7774l-2.02-2.02-2.02 2.02a.55.55 0 0 1 -.7784-.7774l2.0206-2.0206-2.0204-2.02a.55.55 0 0 1 .7782-.7778l2.02 2.02 2.02-2.02a.55.55 0 0 1 .778.7778l-2.0203 2.02z\"/></svg>"},{"name":"compact","assetInline":"<svg height=\"16\" viewBox=\"0 0 16 16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m0 8a8.0474 8.0474 0 0 1 7.9922-8 8.0609 8.0609 0 0 1 8.0078 8 8.0541 8.0541 0 0 1 -8 8 8.0541 8.0541 0 0 1 -8-8zm5.6549 3.2863 2.3373-2.353 2.3451 2.353a.6935.6935 0 0 0 .4627.1961.6662.6662 0 0 0 .6667-.6667.6777.6777 0 0 0 -.1961-.4706l-2.3451-2.3373 2.3529-2.3607a.5943.5943 0 0 0 .1961-.4549.66.66 0 0 0 -.6667-.6589.6142.6142 0 0 0 -.447.1961l-2.3686 2.3606-2.353-2.3527a.6152.6152 0 0 0 -.447-.1883.6529.6529 0 0 0 -.6667.651.6264.6264 0 0 0 .1961.4549l2.3451 2.3529-2.3451 2.353a.61.61 0 0 0 -.1961.4549.6661.6661 0 0 0 .6667.6667.6589.6589 0 0 0 .4627-.1961z\" /></svg>"}],"ariaLabel":"清除搜索"},"results":{"ariaLabel":"全部结果"},"defaultLinks":{"title":"快速链接","images":[{"name":"regular","assetInline":"<svg height=\"16\" viewBox=\"0 0 9 16\" width=\"9\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.6124 8.1035-2.99 2.99a.5.5 0 0 1 -.7071-.7071l2.1366-2.1364h-6.316a.5.5 0 0 1 0-1h6.316l-2.1368-2.1367a.5.5 0 0 1 .7071-.7071l2.99 2.99a.5.5 0 0 1 .0002.7073z\"/></svg>"},{"name":"compact","assetInline":"<svg height=\"25\" viewBox=\"0 0 13 25\" width=\"13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m12.3577 13.4238-4.4444 4.4444a.6.6 0 0 1 -.8486-.8477l3.37-3.37h-9.3231a.65.65 0 0 1 0-1.3008h9.3232l-3.37-3.37a.6.6 0 0 1 .8486-.8477l4.4444 4.4444a.5989.5989 0 0 1 -.0001.8474z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-region","value":"defaultlinks search"}]},"defaultLinksApiUrl":"/search-services/suggestions/defaultlinks/","suggestedLinks":{"title":"链接建议","images":[{"name":"regular","assetInline":"<svg height=\"16\" viewBox=\"0 0 9 16\" width=\"9\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.6124 8.1035-2.99 2.99a.5.5 0 0 1 -.7071-.7071l2.1366-2.1364h-6.316a.5.5 0 0 1 0-1h6.316l-2.1368-2.1367a.5.5 0 0 1 .7071-.7071l2.99 2.99a.5.5 0 0 1 .0002.7073z\"/></svg>"},{"name":"compact","assetInline":"<svg height=\"25\" viewBox=\"0 0 13 25\" width=\"13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m12.3577 13.4238-4.4444 4.4444a.6.6 0 0 1 -.8486-.8477l3.37-3.37h-9.3231a.65.65 0 0 1 0-1.3008h9.3232l-3.37-3.37a.6.6 0 0 1 .8486-.8477l4.4444 4.4444a.5989.5989 0 0 1 -.0001.8474z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-region","value":"suggested links"}]},"suggestedSearches":{"title":"搜索结果建议","images":[{"name":"regular","assetInline":"<svg height=\"16\" viewBox=\"0 0 9 16\" width=\"9\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.6235 11.2266-2.2141-2.2142a3.43 3.43 0 0 0 .7381-2.1124 3.469 3.469 0 1 0 -1.5315 2.8737l2.23 2.23a.55.55 0 0 0 .7773-.7773zm-7.708-4.3266a2.7659 2.7659 0 1 1 2.7657 2.766 2.7694 2.7694 0 0 1 -2.7657-2.766z\"/></svg>"},{"name":"compact","assetInline":"<svg height=\"25\" viewBox=\"0 0 13 25\" width=\"13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m12.3936 17.7969-3.1231-3.1231a4.83 4.83 0 0 0 1.023-2.9541 4.89 4.89 0 1 0 -2.1806 4.059v.0006l3.1484 3.1484a.8.8 0 0 0 1.1319-1.1308zm-10.9536-6.0769a3.9768 3.9768 0 1 1 3.976 3.9773 3.981 3.981 0 0 1 -3.976-3.9773z\"/></svg>"}],"analyticsAttributes":[{"name":"data-analytics-region","value":"suggested search"}]},"suggestionsApiUrl":"/search-services/suggestions/"},"segmentbar":{"dataStrings":{"view":"{%STOREFRONT%} 商店首页","exit":"退出商店","segments":{"smb":"企业商店首页","eduInd":"教育商店首页","other":"商店首页"}}},"menu":{"open":{"ariaLabel":"目录"},"close":{"ariaLabel":"关闭"},"back":{"ariaLabel":"主菜单","images":[{"name":"compact","assetInline":"<svg height=\"48\" viewBox=\"0 0 9 48\" width=\"9\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m1.5618 24.0621 6.5581-6.4238c.2368-.2319.2407-.6118.0088-.8486-.2324-.2373-.6123-.2407-.8486-.0088l-7 6.8569c-.1157.1138-.1807.2695-.1802.4316.001.1621.0674.3174.1846.4297l7 6.7241c.1162.1118.2661.1675.4155.1675.1577 0 .3149-.062.4326-.1846.2295-.2388.2222-.6187-.0171-.8481z\"/></svg>"}]}},"submenu":{"open":{"images":[{"name":"regular","assetInline":"<svg height=\"10\" viewBox=\"0 0 10 10\" width=\"10\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m4.6725 6.635-2.655-2.667a.445.445 0 0 1 -.123-.304.4331.4331 0 0 1 .427-.439h.006a.447.447 0 0 1 .316.135l2.357 2.365 2.356-2.365a.458.458 0 0 1 .316-.135.433.433 0 0 1 .433.433v.006a.4189.4189 0 0 1 -.123.3l-2.655 2.671a.4451.4451 0 0 1 -.327.14.464.464 0 0 1 -.328-.14z\"/></svg>"},{"name":"compact","assetInline":"<svg height=\"48\" viewBox=\"0 0 9 48\" width=\"9\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m7.4382 24.0621-6.5581-6.4238c-.2368-.2319-.2407-.6118-.0088-.8486.2324-.2373.6123-.2407.8486-.0088l7 6.8569c.1157.1138.1807.2695.1802.4316-.001.1621-.0674.3174-.1846.4297l-7 6.7242c-.1162.1118-.2661.1675-.4155.1675-.1577 0-.3149-.062-.4326-.1846-.2295-.2388-.2222-.6187.0171-.8481l6.5537-6.2959z\"/></svg>"}]}},"hasAbsoluteUrls":false,"hasShopRedirectUrls":false,"analyticsType":"marcom","storeApiKey":"","wwwDomain":"www.apple.com.cn","textDirection":"ltr","searchUrlPath":"/search","storeRootPath":"/","storeUrlPath":"","submenuApiUrl":"/api-www/global-elements/global-header/v1/flyouts"},"config":{"version":"ac-globalheader-208-20250217-115458"}}}</script>
<script type="text/javascript" src="https://www.apple.com/api-www/global-elements/global-header/v1/assets/globalheader.umd.js"></script>
</div><div id="__next"><div class="page-wrapper" id="page-store-list"><span class="status-message" role="status" aria-live="polite"></span><main><div class="page-storelist"><div class="header"><div class="section-content"><div class="row"><h1 class="typography-eyebrow-reduced flex-align-left">Apple Store 零售店,中国大陆</h1><div class="form-dropdown"><select aria-describedby="false" aria-labelledby="region-dropdown-label" class="form-dropdown-select" id="region-dropdown"><option value="zh_CN" selected="">中国大陆</option><option value="en_AU">澳洲</option><option value="en_AT">奥地利</option><option value="en_BE">比利时</option><option value="en_BR">巴西</option><option value="en_CA">加拿大</option><option value="en_FR">法国</option><option value="en_DE">德国</option><option value="zh_HK">香港</option><option value="en_IN">印度</option><option value="en_IT">意大利</option><option value="en_JP">日本</option><option value="zh_MO">澳门</option><option value="en_MY">马来西亚</option><option value="en_MX">墨西哥</option><option value="en_NL">荷兰</option><option value="en_SG">新加坡</option><option value="en_KR">韩国</option><option value="en_ES">西班牙</option><option value="en_SE">瑞典</option><option value="en_CH">瑞士</option><option value="zh_TW">台湾</option><option value="en_TH">泰国</option><option value="en_TR">土耳其</option><option value="en_AE">阿联酋</option><option value="en_GB">英国</option><option value="en_US">美国</option></select><span class="form-dropdown-chevron" aria-hidden="true"></span><span class="form-dropdown-label" id="region-dropdown-label" aria-hidden="true">选择国家或地区</span></div></div></div></div><div class="store-list-content has-states" lang="zh-CN"><div class="section-content restrain-on-large"><div class="row align-top"><div class="states-list"><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-上海" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-上海" tabindex="-1" type="button"><span class="label">上海</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-上海" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-上海" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R683" data-store-number="R683" href="/retail/globalharbor/">环球港</a></span><address>上海市普陀区中山北路 3300 号<br/>400-617-1335</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R390" data-store-number="R390" href="/retail/hongkongplaza/">香港广场</a></span><address>上海市黄浦区淮海中路 282 号<br/>香港广场北座<br/>400-617-1312</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R581" data-store-number="R581" href="/retail/wujiaochang/">五角场</a></span><address>上海市杨浦区翔殷路 1099 号<br/>上海合生汇<br/>400-613-9771</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R401" data-store-number="R401" href="/retail/shanghaiiapm/">上海环贸 iapm </a></span><address>上海市徐汇区淮海中路 999 号<br/>环贸 iapm 商场<br/>400-617-1324</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R389" data-store-number="R389" href="/retail/pudong/">浦东</a></span><address>上海市浦东新区陆家嘴世纪大道 8 号<br/>上海国金中心 IFC 商场 LG2-27 号店铺<br/>400-617-1305</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R678" data-store-number="R678" href="/retail/jingan/">静安</a></span><address>上海市静安区南京西路 1699 号<br/>400-000-3235</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R359" data-store-number="R359" href="/retail/nanjingeast/">南京东路</a></span><address>上海市黄浦区南京东路 300 号<br/>400-663-9988</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>上海<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R705" data-store-number="R705" href="/retail/qibao/">七宝</a></span><address>上海市闵行区漕宝路 3366 号 <br/>七宝领展广场<br/>400-613-9773</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-云南" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-云南" tabindex="-1" type="button"><span class="label">云南</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-云南" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-云南" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>昆明<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R670" data-store-number="R670" href="/retail/kunming/">昆明</a></span><address>昆明市五华区东风西路 11 号 <br/>顺城购物中心<br/>400-639-3602</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-北京" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-北京" tabindex="-1" type="button"><span class="label">北京</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-北京" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-北京" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>北京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R388" data-store-number="R388" href="/retail/xidanjoycity/">西单大悦城</a></span><address>北京市西城区西单北大街 131 号大悦城<br/>400-617-1204</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>北京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R645" data-store-number="R645" href="/retail/chaoyangjoycity/">朝阳大悦城</a></span><address>北京市朝阳区朝阳北路 101 号<br/>400-617-1284</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>北京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R448" data-store-number="R448" href="/retail/wangfujing/">王府井</a></span><address>北京市东城区王府井大街 138 号北京 apm<br/>400-617-1205</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>北京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R479" data-store-number="R479" href="/retail/chinacentralmall/">华贸购物中心</a></span><address>北京市朝阳区建国路 81 号华贸购物中心<br/>400-617-1210</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>北京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R320" data-store-number="R320" href="/retail/sanlitun/">三里屯</a></span><address>北京市朝阳区三里屯路 19 号院<br/>三里屯太古里南区 7 号楼<br/>400-617-1363</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-四川" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-四川" tabindex="-1" type="button"><span class="label">四川</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-四川" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-四川" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>成都<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R502" data-store-number="R502" href="/retail/mixcchengdu/">成都万象城</a></span><address>成都市成华区双庆路 8 号万象城<br/>400-617-1214</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>成都<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R580" data-store-number="R580" href="/retail/taikoolichengdu/">成都太古里</a></span><address>成都市锦江区中纱帽街 8 号<br/>400-617-1275</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-天津" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-天津" tabindex="-1" type="button"><span class="label">天津</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-天津" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-天津" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>天津<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R637" data-store-number="R637" href="/retail/tianjinjoycity/">天津大悦城</a></span><address>天津市南开区南门外大街 2 号<br/>400-617-1262</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>天津<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R638" data-store-number="R638" href="/retail/mixctianjin/">天津万象城</a></span><address>天津市河西区乐园道 9 号<br/>400-613-9745</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>天津<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R579" data-store-number="R579" href="/retail/riverside66tianjin/">天津恒隆广场</a></span><address>天津市和平区兴安路 166 号<br/>400-613-9744</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-安徽" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-安徽" tabindex="-1" type="button"><span class="label">安徽</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-安徽" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-安徽" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>合肥<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R765" data-store-number="R765" href="/retail/mixchefei/">合肥万象城</a></span><address>合肥市蜀山区潜山路 111 号<br/>合肥万象城商场一层<br/>400-000-5292</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-山东" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-山东" tabindex="-1" type="button"><span class="label">山东</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-山东" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-山东" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>济南<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R648" data-store-number="R648" href="/retail/parc66jinan/">济南恒隆广场</a></span><address>济南市历下区泉城路 188 号<br/>400-613-9743</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>青岛<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R557" data-store-number="R557" href="/retail/mixcqingdao/">青岛万象城</a></span><address>青岛市市南区山东路 6A 号<br/>400-617-1285</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-广东" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-广东" tabindex="-1" type="button"><span class="label">广东</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-广东" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-广东" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>广州<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R639" data-store-number="R639" href="/retail/zhujiangnewtown/">珠江新城</a></span><address>广州珠江新城兴民路 222 号<br/>天汇广场 1 层<br/>400-639-3601</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>广州<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R577" data-store-number="R577" href="/retail/parccentral/">天环广场 </a></span><address>广州市天河区天河路 218 号<br/>400-613-9742</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>深圳<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R761" data-store-number="R761" href="/retail/mixcshenzhen/">深圳万象城</a></span><address>深圳市罗湖区宝安南路 1881 号<br/>深圳万象城(一期)B1 层<br/>400-050-1588</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>深圳<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R484" data-store-number="R484" href="/retail/holidayplazashenzhen/">深圳益田假日广场</a></span><address>深圳市南山区深南大道 9028 号益田假日广场<br/>400-617-1254</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>深圳<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R793" data-store-number="R793" href="/retail/uniwalkqianhai/">前海壹方城</a></span><address>深圳市宝安区新湖路 99 号<br/>前海壹方城 L1 层<br/>400-002-7805</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-广西壮族自治区" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-广西壮族自治区" tabindex="-1" type="button"><span class="label">广西壮族自治区</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-广西壮族自治区" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-广西壮族自治区" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>南宁<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R571" data-store-number="R571" href="/retail/mixcnanning/">南宁万象城</a></span><address>南宁市青秀区民族大道 136 号<br/>400-617-1265</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-江苏" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-江苏" tabindex="-1" type="button"><span class="label">江苏</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-江苏" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-江苏" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>南京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R643" data-store-number="R643" href="/retail/wondercity/">虹悦城</a></span><address>南京市雨花台区应天大街 619 号<br/>400-617-1332</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>南京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R493" data-store-number="R493" href="/retail/xinjiekou/">新街口</a></span><address>南京市玄武区中山路 100 号<br/>400-617-1334</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>南京<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R703" data-store-number="R703" href="/retail/xuanwulake/">玄武湖</a></span><address>南京市鼓楼区中央路 201 号<br/>400-613-9772</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>无锡<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R574" data-store-number="R574" href="/retail/center66wuxi/">无锡恒隆广场</a></span><address>无锡市梁溪区<br/>人民中路 139 号<br/>400-617-1325</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>苏州<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R688" data-store-number="R688" href="/retail/suzhou/">苏州</a></span><address>苏州市苏州工业园区<br/>苏州中心商场<br/>400-613-9775</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-河南" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-河南" tabindex="-1" type="button"><span class="label">河南</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-河南" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-河南" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>郑州<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R572" data-store-number="R572" href="/retail/mixczhengzhou/">郑州万象城</a></span><address>郑州市二七区民主路 10 号<br/>400-617-1264</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-浙江" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-浙江" tabindex="-1" type="button"><span class="label">浙江</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-浙江" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-浙江" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>宁波<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R531" data-store-number="R531" href="/retail/tianyisquare/">天一广场</a></span><address>宁波市海曙区碶闸街 155 号<br/>天一广场<br/>400-613-9774</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>杭州<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R471" data-store-number="R471" href="/retail/westlake/">西湖</a></span><address>杭州市上城区平海路 100 号<br/>400-617-1302</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>杭州<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R532" data-store-number="R532" href="/retail/mixchangzhou/">杭州万象城</a></span><address>杭州市上城区富春路 701 号<br/>400-617-1304</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>温州市<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R766" data-store-number="R766" href="/retail/mixcwenzhou/">温州万象城</a></span><address>浙江省温州市瓯海区瓯越大道1999号<br/>温州万象城 L1层<br/>400-000-2385</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-湖北" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-湖北" tabindex="-1" type="button"><span class="label">湖北</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-湖北" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-湖北" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>武汉<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R575" data-store-number="R575" href="/retail/wuhan/">武汉</a></span><address>武汉市江汉区解放大道 690 号<br/>武商 MALL B 座 2F<br/>400-638-3818</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-湖南" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-湖南" tabindex="-1" type="button"><span class="label">湖南</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-湖南" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-湖南" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>长沙<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R617" data-store-number="R617" href="/retail/changsha/">长沙</a></span><address>长沙市芙蓉区解放西路 188 号<br/>长沙国金中心一层<br/>400-604-3168</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-福建" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-福建" tabindex="-1" type="button"><span class="label">福建</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-福建" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-福建" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>厦门<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R644" data-store-number="R644" href="/retail/xiamenlifestylecenter/">厦门新生活广场</a></span><address>厦门市思明区嘉禾路 399 号<br/>SM 新生活广场<br/>400-617-1383</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>福州<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R646" data-store-number="R646" href="/retail/tahoeplaza/">泰禾广场</a></span><address>福州市晋安区竹屿路 6 号<br/>东二环泰禾广场<br/>400-617-1354</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-辽宁" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-辽宁" tabindex="-1" type="button"><span class="label">辽宁</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-辽宁" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-辽宁" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>大连<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R478" data-store-number="R478" href="/retail/parkland/">百年城</a></span><address>大连市中山区解放路 19 号<br/>400-056-0921</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>大连<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R609" data-store-number="R609" href="/retail/olympia66dalian/">大连恒隆广场</a></span><address>大连市西岗区五四路 66 号<br/>400-613-9741</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>沈阳<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R534" data-store-number="R534" href="/retail/zhongjiejoycity/">中街大悦城</a></span><address>沈阳市大东区小东路 5 号<br/>400-617-1252</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>沈阳<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R576" data-store-number="R576" href="/retail/mixcshenyang/">沈阳万象城</a></span><address>沈阳市和平区青年大街 288 号<br/>400-617-1274</address></div></div></div></div><div class="state"><h2 class="typography-eyebrow state-headline"><button aria-controls="accordion-region-重庆" aria-disabled="true" aria-expanded="true" class="accordion-button" dir="ltr" id="accordion-button-重庆" tabindex="-1" type="button"><span class="label">重庆</span><span class="indicator" aria-hidden="true" data-expanded="true"><span class="icon icon-chevrondown"></span></span></button></h2><div aria-hidden="false" aria-labelledby="accordion-button-重庆" class="typography-body-reduced stores-list stores-list-zh_CN stores-list-container" data-expanded="true" id="accordion-region-重庆" role="region"><div class="store-address" dir="ltr"><div class="address-lines"><span>重庆<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R480" data-store-number="R480" href="/retail/jiefangbei/">解放碑</a></span><address>重庆市渝中区邹容路 108 号<br/>400-617-1224</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>重庆<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R573" data-store-number="R573" href="/retail/mixcchongqing/">重庆万象城</a></span><address>重庆市九龙坡区谢家湾正街 55 号<br/>400-617-1215</address></div></div><div class="store-address" dir="ltr"><div class="address-lines"><span>重庆<!-- -->,<!-- --> <a class="link-inline" data-analytics-title="R476" data-store-number="R476" href="/retail/paradisewalkchongqing/">重庆北城天街</a></span><address>重庆市江北区北城天街 8 号<br/>400-617-1240</address></div></div></div></div></div></div></div></div></div></main></div></div><footer id="ac-globalfooter" class="no-js" lang="zh-CN" dir="ltr" data-analytics-region="global footer" role="contentinfo" aria-labelledby="ac-gf-label"><div class="ac-gf-content"><h2 class="ac-gf-label" id="ac-gf-label">Apple Footer</h2><div id="ac-gf-sosumi-portal"></div><nav class="ac-gf-breadcrumbs" aria-label="Breadcrumbs" role="navigation"><a href="/" class="home ac-gf-breadcrumbs-home"><span class="ac-gf-breadcrumbs-home-icon" aria-hidden="true"></span><span class="ac-gf-breadcrumbs-home-label">Apple</span><span class="ac-gf-breadcrumbs-home-chevron"></span><span class="ac-gf-breadcrumbs-home-mask"></span></a><div class="ac-gf-breadcrumbs-path"><ol id="ac-gf-breadcrumbs-list-portal" class="ac-gf-breadcrumbs-list" vocab="http://schema.org/" typeof="BreadcrumbList"></ol></div></nav><div class="ac-gf-directory-footer-wrapper"> <nav class="ac-gf-directory with-5-columns" aria-label="Apple 网站目录" role="navigation">
<div class="ac-gf-directory-column">
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">选购及了解</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">选购及了解</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-products" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/store" data-analytics-title="store">商店</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/mac/" data-analytics-title="mac">Mac</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/ipad/" data-analytics-title="ipad">iPad</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/iphone/" data-analytics-title="iphone">iPhone</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/watch/" data-analytics-title="watch">Watch</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/apple-vision-pro/" data-analytics-title="vision">Vision</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/airpods/" data-analytics-title="airpods">AirPods</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/apple-home/" data-analytics-title="home">家居</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/airtag/" data-analytics-title="airtag">AirTag</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/buy_accessories" data-analytics-title="accessories">配件</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/giftcards" data-analytics-title="gift cards">App Store 充值卡</a></li>
</ul>
</div>
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">Apple 钱包</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">Apple 钱包</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-applewallet" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/apple-pay/" data-analytics-title="apple pay">Apple Pay</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/apple-pay/transit/" data-analytics-title="apple pay transit">Apple Pay 公交</a></li>
</ul>
</div>
</div>
<div class="ac-gf-directory-column">
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">账户</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">账户</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-accounts" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="https://account.apple.com/cn/" data-analytics-title="apple account" data-analytics-exit-link>管理你的 Apple 账户</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/account" data-analytics-title="apple store account">Apple Store 账户</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="https://www.icloud.com" data-analytics-title="icloud.com" data-analytics-exit-link>iCloud.com</a></li>
</ul>
</div>
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">娱乐</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">娱乐</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-entertainment" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/apple-music/" data-analytics-title="apple music">Apple Music</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/apple-podcasts/" data-analytics-title="apple podcasts">Apple 播客</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/app-store/" data-analytics-title="app store">App Store</a></li>
</ul>
</div>
</div>
<div class="ac-gf-directory-column">
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">Apple Store 商店</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">Apple Store 商店</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-storeservices" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/retail/" data-analytics-title="find a store">查找零售店</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/retail/geniusbar/" data-analytics-title="genius bar">Genius Bar 天才吧</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/today/" data-analytics-title="today at apple">Today at Apple</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/today/groups/" data-analytics-title="group reservations">团体预约</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/today/camp/" data-analytics-title="apple camp">Apple 夏令营</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="https://apps.apple.com/cn/app/apple-store/id375380948" data-analytics-title="apple store app" data-analytics-exit-link>Apple Store App</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/special_deals" data-analytics-title="certified refurbished">认证的翻新产品</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/trade_in" data-analytics-title="apple trade in">Apple Trade In 换购计划</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/ww/financing" data-analytics-title="financing">分期付款</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/order/list" data-analytics-title="order status">订单状态</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/help" data-analytics-title="shopping help">选购帮助</a></li>
</ul>
</div>
</div>
<div class="ac-gf-directory-column">
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">商务应用</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">商务应用</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-business" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/business/" data-analytics-title="apple and business">Apple 与商务</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/retail/business/" data-analytics-title="shop for business">商务选购</a></li>
</ul>
</div>
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">教育应用</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">教育应用</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-education" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/education/" data-analytics-title="apple and education">Apple 与教育</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/cn/shop/goto/educationrouting" data-analytics-title="shop for university">高校师生选购</a></li>
</ul>
</div>
</div>
<div class="ac-gf-directory-column">
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">Apple 价值观</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">Apple 价值观</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-responsibility" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/accessibility/" data-analytics-title="accessibility">辅助功能</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/education-initiative/" data-analytics-title="education">教育</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/environment/" data-analytics-title="environment">环境责任</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/privacy/" data-analytics-title="privacy">隐私</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/supply-chain/" data-analytics-title="supply chain innovation">供应链创新</a></li>
</ul>
</div>
<div class="ac-gf-directory-column-section">
<h3 class="ac-gf-directory-column-section-title">
<span class="ac-gf-directory-column-section-title-text">关于 Apple</span>
<button class="ac-gf-directory-column-section-title-button" disabled>
<span class="ac-gf-directory-column-section-title-text">关于 Apple</span>
<span class="ac-gf-directory-column-section-title-icon" aria-hidden="true"></span>
</button>
</h3>
<ul id="footer-directory-column-section-about" class="ac-gf-directory-column-section-list" role="list">
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/newsroom/" data-analytics-title="newsroom">Newsroom</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/leadership/" data-analytics-title="apple leadership">Apple 管理层</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="https://www.apple.com/careers/cn/" data-analytics-title="career opportunities" data-analytics-exit-link>工作机会</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/job-creation/" data-analytics-title="job creation">创造就业</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="https://www.apple.com/compliance/" data-analytics-title="ethics and compliance" data-analytics-exit-link>商业道德与合规性</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/apple-events/" data-analytics-title="events">活动</a></li>
<li class="ac-gf-directory-column-section-item" role="listitem"><a class="ac-gf-directory-column-section-link" href="/contact/" data-analytics-title="contact apple">联系 Apple</a></li>
</ul>
</div>
</div>
</nav>
<section class="ac-gf-footer">
<div class="ac-gf-footer-shop" x-ms-format-detection="none">
更多选购方式:<a href="/retail/" data-analytics-title="find an apple store">查找你附近的 Apple Store 零售店</a>及<a href="https://locate.apple.com/cn/zh/" data-analytics-title="other retailers or resellers" data-analytics-exit-link>更多门店</a>,<span class="nowrap">或者致电 <a href="tel:400-666-8800">400-666-8800</a>。</span>
</div>
<div class="ac-gf-footer-legal">
<div class="ac-gf-footer-legal-copyright">Copyright ©
2025
Apple Inc. 保留所有权利。
</div>
<ul class="ac-gf-footer-legal-links" role="list">
<li class="ac-gf-footer-legal-links-item" role="listitem">
<a class="ac-gf-footer-legal-link" href="/legal/privacy/" data-analytics-title="privacy policy">隐私政策</a>
</li>
<li class="ac-gf-footer-legal-links-item" role="listitem">
<a class="ac-gf-footer-legal-link" href="/legal/internet-services/terms/site.html" data-analytics-title="terms of use">使用条款</a>
</li>
<li class="ac-gf-footer-legal-links-item" role="listitem">
<a class="ac-gf-footer-legal-link" href="/cn/shop/goto/help/sales_refunds" data-analytics-title="sales and refunds">销售政策</a>
</li>
<li class="ac-gf-footer-legal-links-item" role="listitem">
<a class="ac-gf-footer-legal-link" href="/legal/" data-analytics-title="legal">法律信息</a>
</li>
<li class="ac-gf-footer-legal-links-item" role="listitem">
<a class="ac-gf-footer-legal-link" href="/sitemap/" data-analytics-title="site map">网站地图</a>
</li>
</ul>
</div>
</section>
</div><script type="text/javascript" src="/retail/assets/global-elements/globalfooter/zh_CN/scripts/ac-globalfooter.built.js"></script><script type="text/javascript" src="/ac/localeswitcher/4/zh_CN/scripts/localeswitcher.built.js"></script></div></footer><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"id":"page-store-list","storeList":[{"locale":"en_IN","calledLocale":"en_IN","state":[{"__typename":"RgdsState","name":"Delhi","store":[{"id":"R756","name":"Saket","slug":"saket","telephone":"000800 040 4503","address":{"address1":"F-11, Select CITYWALK","address2":"District Centre, Saket","city":"New Delhi","postalCode":"110017","__typename":"PostalAddress","stateName":"Delhi","stateCode":"DEL"},"__typename":"RgdsStore"}]},{"__typename":"RgdsState","name":"Karnataka","store":[{"id":"R790","name":"Hebbal","slug":"hebbal","telephone":"000800 040 4932","address":{"address1":"F-39-F-43, Phoenix Mall of Asia","address2":"Bellary Road, Byatarayanapura","city":"Bengaluru","postalCode":"560092","__typename":"PostalAddress","stateName":"Karnataka","stateCode":"KAR"},"__typename":"RgdsStore"}]},{"__typename":"RgdsState","name":"Maharashtra","store":[{"id":"R788","name":"Koregaon Park","slug":"koregaonpark","telephone":"000800 040 4933","address":{"address1":"G8-G10, The KOPA","address2":"Koregaon Park","city":"Pune","postalCode":"411001","__typename":"PostalAddress","stateName":"Maharashtra","stateCode":"MAH"},"__typename":"RgdsStore"},{"id":"R744","name":"BKC","slug":"bkc","telephone":"000800 040 4504","address":{"address1":"G1-G2, Jio World Drive","address2":"Bandra Kurla Complex","city":"Mumbai","postalCode":"400051","__typename":"PostalAddress","stateName":"Maharashtra","stateCode":"MAH"},"__typename":"RgdsStore"}]}],"__typename":"RmdLocale","hasStates":true,"states":[{"__typename":"RgdsState","name":"Delhi","store":[{"id":"R756","name":"Saket","slug":"saket","telephone":"000800 040 4503","address":{"address1":"F-11, Select CITYWALK","address2":"District Centre, Saket","city":"New Delhi","postalCode":"110017","__typename":"PostalAddress","stateName":"Delhi","stateCode":"DEL"},"__typename":"RgdsStore"}]},{"__typename":"RgdsState","name":"Karnataka","store":[{"id":"R790","name":"Hebbal","slug":"hebbal","telephone":"000800 040 4932","address":{"address1":"F-39-F-43, Phoenix Mall of Asia","address2":"Bellary Road, Byatarayanapura","city":"Bengaluru","postalCode":"560092","__typename":"PostalAddress","stateName":"Karnataka","stateCode":"KAR"},"__typename":"RgdsStore"}]},{"__typename":"RgdsState","name":"Maharashtra","store":[{"id":"R788","name":"Koregaon Park","slug":"koregaonpark","telephone":"000800 040 4933","address":{"address1":"G8-G10, The KOPA","address2":"Koregaon Park","city":"Pune","postalCode":"411001","__typename":"PostalAddress","stateName":"Maharashtra","stateCode":"MAH"},"__typename":"RgdsStore"},{"id":"R744","name":"BKC","slug":"bkc","telephone":"000800 040 4504","address":{"address1":"G1-G2, Jio World Drive","address2":"Bandra Kurla Complex","city":"Mumbai","postalCode":"400051","__typename":"PostalAddress","stateName":"Maharashtra","stateCode":"MAH"},"__typename":"RgdsStore"}]}]},{"locale":"zh_MO","calledLocale":"zh_MO","__typename":"RmdLocale","hasStates":false,"states":[{"__typename":"RgdsStore","id":"R697","name":"路氹金光大道","slug":"cotaistrip","telephone":"87917000","address":{"address1":"路氹城","address2":"倫敦人購物中心","city":"澳門","postalCode":"","__typename":"PostalAddress"}},{"__typename":"RgdsStore","id":"R672","name":"澳門銀河","slug":"galaxymacau","telephone":"87919000","address":{"address1":"路氹城","address2":"澳門銀河™時尚匯","city":"澳門","postalCode":"","__typename":"PostalAddress"}}],"store":[{"__typename":"RgdsStore","id":"R697","name":"路氹金光大道","slug":"cotaistrip","telephone":"87917000","address":{"address1":"路氹城","address2":"倫敦人購物中心","city":"澳門","postalCode":"","__typename":"PostalAddress"}},{"__typename":"RgdsStore","id":"R672","name":"澳門銀河","slug":"galaxymacau","telephone":"87919000","address":{"address1":"路氹城","address2":"澳門銀河™時尚匯","city":"澳門","postalCode":"","__typename":"PostalAddress"}}]},{"locale":"zh_TW","calledLocale":"zh_TW","state":[{"__typename":"RgdsState","name":"台北市","store":[{"id":"R694","name":"信義 A13","slug":"xinyia13","telephone":"0800-020-010","address":{"address1":"信義區松壽路 13 號","address2":"","city":"台北市","postalCode":"11051","__typename":"PostalAddress","stateName":"台北市","stateCode":null},"__typename":"RgdsStore"},{"id":"R713","name":"台北 101","slug":"taipei101","telephone":"0800-020-005","address":{"address1":"信義區市府路 45 號","address2":"台北 101 購物中心 1F","city":"台北市","postalCode":"110","__typename":"PostalAddress","stateName":"台北市","stateCode":null},"__typename":"RgdsStore"}]}],"__typename":"RmdLocale","hasStates":true,"states":[{"__typename":"RgdsState","name":"台北市","store":[{"id":"R694","name":"信義 A13","slug":"xinyia13","telephone":"0800-020-010","address":{"address1":"信義區松壽路 13 號","address2":"","city":"台北市","postalCode":"11051","__typename":"PostalAddress","stateName":"台北市","stateCode":null},"__typename":"RgdsStore"},{"id":"R713","name":"台北 101","slug":"taipei101","telephone":"0800-020-005","address":{"address1":"信義區市府路 45 號","address2":"台北 101 購物中心 1F","city":"台北市","postalCode":"110","__typename":"PostalAddress","stateName":"台北市","stateCode":null},"__typename":"RgdsStore"}]}]},{"locale":"es_ES","calledLocale":"en_ES","state":[{"__typename":"RgdsState","name":"Barcelona","store":[{"id":"R368","name":"Passeig de Gràcia","slug":"passeigdegracia","telephone":"932 950 500","address":{"address1":"Passeig de Gràcia, 1","address2":"","city":"Barcelona","postalCode":"08007","__typename":"PostalAddress","stateName":"Barcelona","stateCode":null},"__typename":"RgdsStore"},{"id":"R406","name":"La Maquinista","slug":"lamaquinista","telephone":"934 669 000","address":{"address1":"Centro comercial La Maquinista","address2":"Passeig de Potosí, 2","city":"Barcelona","postalCode":"08030","__typename":"PostalAddress","stateName":"Barcelona","stateCode":null},"__typename":"RgdsStore"}]},{"__typename":"RgdsState","name":"Valladolid","store":[{"id":"R538","name":"Río Shopping","slug":"rioshopping","telephone":"983 368 900","address":{"address1":"Centro Comercial Río S
gitextract_y93ozk9n/
├── .github/
│ ├── build/
│ │ └── build_info.json
│ └── workflows/
│ └── go.yml
├── .gitignore
├── EMBEDDED_DATA_README.md
├── LICENSE
├── NEW_REGION_ADAPTATION.md
├── PROJECT_DOCUMENTATION.md
├── README.md
├── REGION_PRODUCT_ADAPTATION.md
├── cache/
│ ├── html/
│ │ ├── iphone-16_au.html
│ │ ├── iphone-16_cn.html
│ │ ├── iphone-16_hk.html
│ │ ├── iphone-16_jp.html
│ │ ├── iphone-16_sg.html
│ │ ├── iphone-16_uk.html
│ │ ├── iphone-16_us.html
│ │ ├── iphone-17-pro_au.html
│ │ ├── iphone-17-pro_cn.html
│ │ ├── iphone-17-pro_hk.html
│ │ ├── iphone-17-pro_jp.html
│ │ ├── iphone-17-pro_sg.html
│ │ ├── iphone-17-pro_uk.html
│ │ ├── iphone-17-pro_us.html
│ │ ├── iphone-17_au.html
│ │ ├── iphone-17_cn.html
│ │ ├── iphone-17_hk.html
│ │ ├── iphone-17_jp.html
│ │ ├── iphone-17_sg.html
│ │ ├── iphone-17_uk.html
│ │ ├── iphone-17_us.html
│ │ ├── iphone-air_au.html
│ │ ├── iphone-air_cn.html
│ │ ├── iphone-air_hk.html
│ │ ├── iphone-air_jp.html
│ │ ├── iphone-air_sg.html
│ │ ├── iphone-air_uk.html
│ │ ├── iphone-air_us.html
│ │ ├── iphone_17_pro_au.html
│ │ ├── iphone_17_pro_cn.html
│ │ ├── iphone_17_pro_hk.html
│ │ ├── iphone_17_pro_jp.html
│ │ ├── iphone_17_pro_sg.html
│ │ ├── iphone_17_pro_uk.html
│ │ └── iphone_17_pro_us.html
│ └── store_html/
│ └── apple_store_list.html
├── common/
│ └── const.go
├── data/
│ ├── config/
│ │ └── apple_urls.json
│ ├── product/
│ │ ├── product_data_au.json
│ │ ├── product_data_cn.json
│ │ ├── product_data_hk.json
│ │ ├── product_data_jp.json
│ │ ├── product_data_sg.json
│ │ ├── product_data_uk.json
│ │ └── product_data_us.json
│ ├── store/
│ │ ├── store_ae.json
│ │ ├── store_at.json
│ │ ├── store_au.json
│ │ ├── store_be.json
│ │ ├── store_br.json
│ │ ├── store_ca.json
│ │ ├── store_ch.json
│ │ ├── store_cn.json
│ │ ├── store_de.json
│ │ ├── store_es.json
│ │ ├── store_fr.json
│ │ ├── store_hk.json
│ │ ├── store_in.json
│ │ ├── store_it.json
│ │ ├── store_jp.json
│ │ ├── store_kr.json
│ │ ├── store_mx.json
│ │ ├── store_my.json
│ │ ├── store_nl.json
│ │ ├── store_se.json
│ │ ├── store_th.json
│ │ ├── store_tr.json
│ │ ├── store_tw.json
│ │ ├── store_uk.json
│ │ └── store_us.json
│ └── store_data.json
├── embedded/
│ ├── data/
│ │ ├── product/
│ │ │ ├── product_data_au.json
│ │ │ ├── product_data_cn.json
│ │ │ ├── product_data_hk.json
│ │ │ ├── product_data_jp.json
│ │ │ ├── product_data_sg.json
│ │ │ ├── product_data_uk.json
│ │ │ └── product_data_us.json
│ │ └── store/
│ │ ├── store_ae.json
│ │ ├── store_at.json
│ │ ├── store_au.json
│ │ ├── store_be.json
│ │ ├── store_br.json
│ │ ├── store_ca.json
│ │ ├── store_ch.json
│ │ ├── store_cn.json
│ │ ├── store_de.json
│ │ ├── store_es.json
│ │ ├── store_fr.json
│ │ ├── store_hk.json
│ │ ├── store_in.json
│ │ ├── store_it.json
│ │ ├── store_jp.json
│ │ ├── store_kr.json
│ │ ├── store_mx.json
│ │ ├── store_my.json
│ │ ├── store_nl.json
│ │ ├── store_se.json
│ │ ├── store_th.json
│ │ ├── store_tr.json
│ │ ├── store_tw.json
│ │ ├── store_uk.json
│ │ └── store_us.json
│ └── embedded_data.go
├── final_embedded_test.go
├── final_test.go
├── go.mod
├── go.sum
├── main.go
├── model/
│ ├── area.go
│ ├── area_iphone17.go
│ ├── area_iphone17.go.bak
│ ├── china_location.go
│ ├── china_stores.go
│ ├── global_stores.go
│ ├── product.go
│ ├── product_structure.go
│ └── store.go
├── services/
│ ├── area.go
│ ├── listen.go
│ ├── product.go
│ ├── product_fetcher.go
│ ├── setting.go
│ ├── store.go
│ └── store_fetcher.go
├── theme/
│ ├── bundle.go
│ └── theme.go
├── user_settings.json
└── view/
├── custom_select.go
└── view.go
SYMBOL INDEX (97 symbols across 19 files)
FILE: common/const.go
constant VERSION (line 3) | VERSION = "1.6.3"
FILE: embedded/embedded_data.go
function GetProductData (line 75) | func GetProductData(areaCode string) ([]byte, bool) {
function GetStoreData (line 81) | func GetStoreData(areaCode string) ([]byte, bool) {
function GetAppleURLs (line 87) | func GetAppleURLs() []byte {
FILE: final_embedded_test.go
function main (line 11) | func main() {
FILE: final_test.go
function main (line 9) | func main() {
FILE: main.go
function main (line 27) | func main() {
function parseURL (line 844) | func parseURL(urlStr string) *url.URL {
FILE: model/area.go
type Area (line 3) | type Area struct
FILE: model/china_location.go
type Location (line 4) | type Location struct
function GetProvinces (line 123) | func GetProvinces() []string {
function GetCitiesByProvince (line 132) | func GetCitiesByProvince(province string) []string {
function GetDistrictsByProvinceAndCity (line 146) | func GetDistrictsByProvinceAndCity(province, city string) []string {
FILE: model/product.go
type Product (line 3) | type Product struct
FILE: model/product_structure.go
type ProductInfo (line 4) | type ProductInfo struct
type ModelConfig (line 13) | type ModelConfig struct
function init (line 304) | func init() {
function GetModelNames (line 320) | func GetModelNames() []string {
function GetCapacitiesByModel (line 332) | func GetCapacitiesByModel(model string) []string {
function GetColorsByModelAndCapacity (line 340) | func GetColorsByModelAndCapacity(model, capacity string) []string {
function GetProductInfo (line 350) | func GetProductInfo(model, capacity, color string) *ProductInfo {
FILE: model/store.go
type Store (line 3) | type Store struct
FILE: services/area.go
type areaService (line 10) | type areaService struct
method ProductsByCode (line 13) | func (s *areaService) ProductsByCode(local string) []model.Product {
method ForOptions (line 18) | func (s *areaService) ForOptions() []string {
method Title2Code (line 22) | func (s *areaService) Title2Code(title string) string {
method GetArea (line 30) | func (s *areaService) GetArea(title string) model.Area {
FILE: services/listen.go
constant StatusOutStock (line 31) | StatusOutStock = "无货"
constant StatusInStock (line 32) | StatusInStock = "有货"
constant StatusWait (line 33) | StatusWait = "等待"
constant Pause (line 35) | Pause = "暂停"
constant Running (line 36) | Running = "监听中"
function min (line 39) | func min(a, b int) int {
type listenService (line 53) | type listenService struct
method Add (line 69) | func (s *listenService) Add(areaTitle string, storeTitle string, produ...
method AddWithProductInfo (line 87) | func (s *listenService) AddWithProductInfo(areaTitle string, storeTitl...
method AddWithStoreInfo (line 109) | func (s *listenService) AddWithStoreInfo(store model.Store, productTit...
method SetBarkUrl (line 138) | func (s *listenService) SetBarkUrl(barkUrl string) {
method SetListenItems (line 142) | func (s *listenService) SetListenItems(items map[string]ListenItem) {
method GetListenItems (line 147) | func (s *listenService) GetListenItems() map[string]ListenItem {
method Clean (line 151) | func (s *listenService) Clean() {
method UpdateLogStr (line 156) | func (s *listenService) UpdateLogStr() {
method UpdateStatus (line 174) | func (s *listenService) UpdateStatus(uniqKey string, status string) {
method Run (line 188) | func (s *listenService) Run() {
method groupByStore (line 282) | func (s *listenService) groupByStore() map[string]bool {
method getSkuByLink (line 404) | func (s *listenService) getSkuByLink(ch chan map[string]bool, skUrl st...
method model2Url (line 581) | func (s *listenService) model2Url(productType string, partNumber strin...
method openBrowser (line 623) | func (s *listenService) openBrowser(link string) {
method AlertMp3 (line 637) | func (s *listenService) AlertMp3() {
method SendPushNotificationByBark (line 652) | func (s *listenService) SendPushNotificationByBark(title string, conte...
type ListenItem (line 62) | type ListenItem struct
FILE: services/product.go
type productService (line 15) | type productService struct
method ByAreaTitleForOptions (line 21) | func (s *productService) ByAreaTitleForOptions(areaTitle string) []str...
method GetProduct (line 32) | func (s *productService) GetProduct(areaTitle string, productTitle str...
method UpdateFromDynamicData (line 47) | func (s *productService) UpdateFromDynamicData(data *ProductData) {
method GetDynamicProducts (line 78) | func (s *productService) GetDynamicProducts() map[string][]model.Produ...
method SetUseDynamic (line 83) | func (s *productService) SetUseDynamic(use bool) {
method GetCurrentAreaCode (line 88) | func (s *productService) GetCurrentAreaCode() string {
method LoadForArea (line 93) | func (s *productService) LoadForArea(areaCode string) error {
FILE: services/product_fetcher.go
type ProductData (line 21) | type ProductData struct
function FetchProductData (line 28) | func FetchProductData(areaCode string) (*ProductData, error) {
function fetchSeriesProducts (line 86) | func fetchSeriesProducts(url string, modelType string) ([]model.ProductI...
function normalizeSpaces (line 148) | func normalizeSpaces(s string) string {
function parseProductInfo (line 168) | func parseProductInfo(name string, partNumber string, modelType string) ...
function translateColor (line 222) | func translateColor(color string) string {
function SaveProductData (line 311) | func SaveProductData(data *ProductData) error {
function LoadProductData (line 343) | func LoadProductData(areaCode string) (*ProductData, error) {
function UpdateProductDatabase (line 383) | func UpdateProductDatabase(areaCode string) error {
FILE: services/setting.go
type UserSettings (line 10) | type UserSettings struct
function SaveSettings (line 19) | func SaveSettings(settings UserSettings) error {
function LoadSettings (line 42) | func LoadSettings() (UserSettings, error) {
function ClearSettings (line 67) | func ClearSettings() error {
FILE: services/store.go
type storeService (line 15) | type storeService struct
method ByArea (line 19) | func (s *storeService) ByArea(area model.Area) []model.Store {
method ByAreaTitleForOptions (line 44) | func (s *storeService) ByAreaTitleForOptions(areaTitle string) []string {
method ByAreaAndProvinceForOptions (line 52) | func (s *storeService) ByAreaAndProvinceForOptions(areaTitle string, p...
method isStoreInProvince (line 78) | func (s *storeService) isStoreInProvince(store model.Store, province s...
method GetStatesForArea (line 84) | func (s *storeService) GetStatesForArea(areaTitle string) []string {
method GetStore (line 106) | func (s *storeService) GetStore(areaTitle string, storeTitle string) m...
method LoadForArea (line 125) | func (s *storeService) LoadForArea(areaCode string) error {
FILE: services/store_fetcher.go
type StoreData (line 19) | type StoreData struct
function FetchStoresForArea (line 26) | func FetchStoresForArea(areaCode string, location string) ([]model.Store...
function LoadStoreData (line 154) | func LoadStoreData(areaCode string) (*StoreData, error) {
function SaveStoreData (line 200) | func SaveStoreData(areaCode string, stores []model.Store) error {
function UpdateStoresForAllAreas (line 244) | func UpdateStoresForAllAreas() error {
function getAcceptLanguage (line 301) | func getAcceptLanguage(areaCode string) string {
function getReferer (line 323) | func getReferer(areaCode string) string {
function getPostalCodeForLocation (line 345) | func getPostalCodeForLocation(location string) string {
FILE: theme/theme.go
type MyTheme (line 9) | type MyTheme struct
method Font (line 15) | func (m MyTheme) Font(s fyne.TextStyle) fyne.Resource {
method Color (line 18) | func (*MyTheme) Color(n fyne.ThemeColorName, v fyne.ThemeVariant) colo...
method Icon (line 22) | func (*MyTheme) Icon(n fyne.ThemeIconName) fyne.Resource {
method Size (line 26) | func (*MyTheme) Size(n fyne.ThemeSizeName) float32 {
function Mp3 (line 30) | func Mp3() fyne.Resource {
FILE: view/custom_select.go
type CustomSelect (line 9) | type CustomSelect struct
method MinSize (line 23) | func (s *CustomSelect) MinSize() fyne.Size {
function NewCustomSelect (line 14) | func NewCustomSelect(options []string, changed func(string)) *CustomSele...
Condensed preview — 139 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,846K chars).
[
{
"path": ".github/build/build_info.json",
"chars": 140,
"preview": "{\n \"darwin\": {\n \"amd64\": {\"arch\": \"o64\", \"name\": \"macos-64\"},\n \"arm64\": {\"arch\": \"oa64\", \"name\": \"macos"
},
{
"path": ".github/workflows/go.yml",
"chars": 3045,
"preview": "name: Build\n\non:\n push:\n branches:\n - '*'\n paths:\n - \"**/*.go\"\n - \"go.mod\"\n - \"go.sum\"\n "
},
{
"path": ".gitignore",
"chars": 47,
"preview": "fyne-cross\n.idea\ntmp/main\ntmp/build-errors.log\n"
},
{
"path": "EMBEDDED_DATA_README.md",
"chars": 3045,
"preview": "# 嵌入数据说明\n\n## 概述\n\n本项目已成功将 data 文件嵌入到 Go 程序中,使用 Go 1.16+ 的 `embed` 包实现。这样程序就不再依赖外部的 JSON 文件,可以独立运行。\n\n## 实现方式\n\n### 1. 嵌入包结构"
},
{
"path": "LICENSE",
"chars": 35149,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "NEW_REGION_ADAPTATION.md",
"chars": 3700,
"preview": "# 新地区适配指南\n\n## 概述\n本文档描述了如何为 Apple Store Helper 添加新地区支持的完整流程。\n\n## 适配步骤\n\n### 1. 添加地区定义\n\n在 `model/area.go` 中添加新地区:\n\n```go\nva"
},
{
"path": "PROJECT_DOCUMENTATION.md",
"chars": 14163,
"preview": "# Apple Store Helper 项目文档\n\n## 📋 目录\n\n- [项目概述](#项目概述)\n- [技术架构](#技术架构)\n- [项目结构](#项目结构)\n- [核心流程](#核心流程)\n- [数据管理](#数据管理)\n- [A"
},
{
"path": "README.md",
"chars": 2703,
"preview": "# 抢你妹 - Apple 产品库存监控工具\n\n<div align=\"center\">\n\n\n\n\n// 嵌入产品数据文件\n//\n//go:embed data/product/product_data_cn.json\nvar ProductDataCN ["
},
{
"path": "final_embedded_test.go",
"chars": 1940,
"preview": "package main\n\nimport (\n\t\"apple-store-helper/embedded\"\n\t\"apple-store-helper/model\"\n\t\"apple-store-helper/services\"\n\t\"encod"
},
{
"path": "final_test.go",
"chars": 1145,
"preview": "package main\n\nimport (\n\t\"apple-store-helper/embedded\"\n\t\"encoding/json\"\n\t\"fmt\"\n)\n\nfunc main() {\n\tfmt.Println(\"=== 最终数据嵌入测"
},
{
"path": "go.mod",
"chars": 2472,
"preview": "module apple-store-helper\n\ngo 1.17\n\nrequire (\n\tfyne.io/fyne/v2 v2.4.0\n\tgithub.com/faiface/beep v1.1.0\n\tgithub.com/golang"
},
{
"path": "go.sum",
"chars": 80408,
"preview": "cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=\ncloud.google.com/go v0.34.0/go.mod h1"
},
{
"path": "main.go",
"chars": 23871,
"preview": "package main\n\nimport (\n\t\"apple-store-helper/common\"\n\t\"apple-store-helper/model\"\n\t\"apple-store-helper/services\"\n\tappTheme"
},
{
"path": "model/area.go",
"chars": 794,
"preview": "package model\n\ntype Area struct {\n\tTitle string\n\tLocale string\n\tShortCode string\n\tProductsJson []string\n"
},
{
"path": "model/area_iphone17.go",
"chars": 4676,
"preview": "package model\n\n// iPhone 17 series products configuration\nvar iPhone17ProductsJson = []string{\n\t// iPhone Air\n\t`{\n\t\t\"pro"
},
{
"path": "model/area_iphone17.go.bak",
"chars": 4640,
"preview": "package model\n\n// iPhone 17 series products configuration\nvar iPhone17ProductsJson = []string{\n\t// iPhone Air\n\t`{\n\t\t\"pro"
},
{
"path": "model/china_location.go",
"chars": 3699,
"preview": "package model\n\n// 中国省市区数据结构\ntype Location struct {\n\tProvince string\n\tCities map[string][]string // city -> districts\n}"
},
{
"path": "model/china_stores.go",
"chars": 3657,
"preview": "package model\n\n// 中国苹果零售店列表 - 基于官网信息手工整理\nvar ChinaStores = map[string][]Store{\n\t\"zh_CN\": {\n\t\t// 北京\n\t\t{StoreNumber: \"R320"
},
{
"path": "model/global_stores.go",
"chars": 18022,
"preview": "package model\n\n// 全球所有苹果零售店完整列表\nvar GlobalStores = map[string][]Store{\n\t// 中国大陆 (42家店)\n\t\"zh_CN\": ChinaStores[\"zh_CN\"],\n\t"
},
{
"path": "model/product.go",
"chars": 214,
"preview": "package model\n\ntype Product struct {\n\tTitle string\n\tType string\n\tCode string\n}\n\nvar TypeCode = map[string]string{\n\t\"ip"
},
{
"path": "model/product_structure.go",
"chars": 19698,
"preview": "package model\n\n// ProductInfo 包含完整的产品信息\ntype ProductInfo struct {\n\tModel string // 型号: iPhone Air, iPhone 17, iPhone "
},
{
"path": "model/store.go",
"chars": 179,
"preview": "package model\n\ntype Store struct {\n StoreNumber string\n CityStoreName string\n Province string // 省份\n "
},
{
"path": "services/area.go",
"chars": 820,
"preview": "package services\n\nimport (\n\t\"apple-store-helper/model\"\n\t\"github.com/thoas/go-funk\"\n)\n\nvar Area = areaService{}\n\ntype are"
},
{
"path": "services/listen.go",
"chars": 19092,
"preview": "package services\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"math/rand\"\n\t\"net/http\"\n\t\"net/url\"\n\t\"strings\"\n\t\"time\"\n\n\t"
},
{
"path": "services/product.go",
"chars": 2433,
"preview": "package services\n\nimport (\n\t\"apple-store-helper/model\"\n\t\"fmt\"\n\t\"log\"\n)\n\nvar Product = &productService{\n\tdynamicProducts:"
},
{
"path": "services/product_fetcher.go",
"chars": 10225,
"preview": "package services\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"os\"\n\t\"path/filepath\"\n\t\"regexp\"\n\t\"strings\"\n\t\"tim"
},
{
"path": "services/setting.go",
"chars": 1890,
"preview": "package services\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"os\"\n\t\"path/filepath\"\n)\n\ntype UserSettings struct {\n\tSelectedArea "
},
{
"path": "services/store.go",
"chars": 3230,
"preview": "package services\n\nimport (\n\t\"apple-store-helper/model\"\n\t\"log\"\n\t\"sort\"\n\n\t\"github.com/thoas/go-funk\"\n)\n\nvar Store = storeS"
},
{
"path": "services/store_fetcher.go",
"chars": 11481,
"preview": "package services\n\nimport (\n\t\"apple-store-helper/embedded\"\n\t\"apple-store-helper/model\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io\"\n\t\"lo"
},
{
"path": "theme/theme.go",
"chars": 706,
"preview": "package theme\n\nimport (\n \"fyne.io/fyne/v2\"\n \"fyne.io/fyne/v2/theme\"\n \"image/color\"\n)\n\ntype MyTheme struct{}\n\nva"
},
{
"path": "user_settings.json",
"chars": 364,
"preview": "{\"selected_area\":\"香港\",\"selected_store\":\"Canton Road\",\"selected_product\":\"iPhone 16 128GB 深青色\",\"bark_notify_url\":\"\",\"list"
},
{
"path": "view/custom_select.go",
"chars": 836,
"preview": "package view\n\nimport (\n\t\"fyne.io/fyne/v2\"\n\t\"fyne.io/fyne/v2/widget\"\n)\n\n// CustomSelect 自定义选择框,支持更宽的下拉列表\ntype CustomSelec"
},
{
"path": "view/view.go",
"chars": 80,
"preview": "package view\n\nimport \"fyne.io/fyne/v2\"\n\nvar App fyne.App\nvar Window fyne.Window\n"
}
]
// ... and 36 more files (download for full content)
About this extraction
This page contains the full source code of the Sunbelife/apple-store-helper-15 GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 139 files (13.6 MB), approximately 510.8k tokens, and a symbol index with 97 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.