{"id":108916,"date":"2025-05-14T06:57:24","date_gmt":"2025-05-14T03:27:24","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/practical-tutorial-on-developing-harmonyos-shopping-projects-with-uniapp-implementing-home-page-1mg7\/"},"modified":"2025-05-14T06:57:24","modified_gmt":"2025-05-14T03:27:24","slug":"practical-tutorial-on-developing-harmonyos-shopping-projects-with-uniapp-implementing-home-page-1mg7","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/practical-tutorial-on-developing-harmonyos-shopping-projects-with-uniapp-implementing-home-page-1mg7\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0639\u0645\u0644\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f \u062a\u0648\u0633\u0639\u0647 \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u062e\u0631\u06cc\u062f Harmonyos \u0628\u0627 UniAPP: \u0627\u062c\u0631\u0627\u06cc \u062a\u0635\u0627\u0648\u06cc\u0631 \u0686\u0631\u062e \u0641\u0644\u06a9 \u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"},"content":{"rendered":"<div data-article-id=\"2486098\" id=\"article-body\">\n<p>\u062f\u0631 \u0645\u0642\u0627\u0644\u0627\u062a \u0686\u0646\u062f \u0631\u0648\u0632 \u06af\u0630\u0634\u062a\u0647 \u060c \u0645\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u0645\u062a\u0642\u0627\u0628\u0644 \u067e\u0644\u062a\u0641\u0631\u0645 \u060c \u0646\u062d\u0648\u0647 \u0627\u0646\u062c\u0627\u0645 \u0637\u0631\u062d \u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u0627\u0633\u0627\u0633\u06cc \u060c \u0646\u062d\u0648\u0647 \u0627\u062c\u0631\u0627\u06cc \u0645\u06cc\u0644\u0647 \u0647\u0627\u06cc \u0646\u0627\u0648\u0628\u0631\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0648 \u063a\u06cc\u0631\u0647 \u0635\u062d\u0628\u062a \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645. \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u06cc\u0646 \u0633\u0631\u06cc \u0627\u0632 \u0622\u0645\u0648\u0632\u0634 \u0647\u0627\u06cc \u0645\u0642\u0627\u0644\u0647 \u060c \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0647\u062f\u0641 \u0645\u0627 \u062f\u0633\u062a\u06cc\u0627\u0628\u06cc \u0628\u0647 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0631\u06cc\u062f \u0647\u0633\u062a\u06cc\u0645. \u0627\u0645\u0631\u0648\u0632 \u060c \u0645\u0627 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u062f\u0631 \u0628\u062e\u0634 Carousel \u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0631\u06cc\u062f \u06a9\u0627\u0631 \u06a9\u0646\u06cc\u0645.<br \/>UNIAPP \u0627\u062c\u0632\u0627\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0686\u0631\u062e \u0641\u0644\u06a9 \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc Harmonyos \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc \u06a9\u0646\u062f \u060c \u06a9\u0647 \u0628\u0633\u06cc\u0627\u0631 \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a. \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u06cc\u06a9 \u0686\u0631\u062e \u0641\u0644\u06a9 \u0628\u0627 \u0633\u0647 \u0635\u0641\u062d\u0647 \u0645\u062d\u062a\u0648\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u0645. \u0627\u0628\u062a\u062f\u0627 \u0686\u0631\u062e \u0641\u0644\u06a9 \u0648 \u0633\u0628\u06a9 \u0647\u0631 \u0639\u0646\u0635\u0631 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f:<br \/><code><br \/>.swiper{<br \/>width: 100%;<br \/>height: 140px;<br \/>}<br \/>.swiper-item{<br \/>width: 100%;<br \/>height: 100%;<br \/>display: block;<br \/>}<br \/><\/code><br \/>\u0627\u06a9\u0646\u0648\u0646 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0686\u0631\u062e \u0641\u0644\u06a9 \u0631\u0627 \u062f\u0631 \u0635\u0641\u062d\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<br \/><code><br \/><swiper class=\"swiper\"><br \/><swiper-item><br \/><view class=\"swiper-item\" style=\"background-color: red;\">1<\/view><br \/><\/swiper-item><br \/><swiper-item> <br \/><view class=\"swiper-item\" style=\"background-color: yellow;\">2<\/view><br \/><\/swiper-item><br \/><swiper-item><br \/><view class=\"swiper-item\" style=\"background-color: green;\">3<\/view><br \/><\/swiper-item><br \/><\/swiper><br \/><\/code><br \/>\u0646\u06af\u0627\u0647\u06cc \u0628\u0647 \u0627\u062b\u0631:<\/p>\n<p><\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0633\u0639\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0647\u0631 \u0645\u062d\u062a\u0648\u0627\u06cc \u0635\u0641\u062d\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u060c \u0645\u0627 \u06cc\u06a9 \u0645\u0627\u062f\u0647 Swiper \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0646\u0645\u0648\u0646\u0647 \u0645\u06cc \u06af\u06cc\u0631\u06cc\u0645:<br \/><code><br \/><swiper-item><br \/><view class=\"swiper-item\"><br \/><image src=\"https:\/\/dev.to\/static\/banner1.jpg\" style=\"width: 100%;height: 100%;\"\/><br \/><\/view><br \/><\/swiper-item><br \/><\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9h2e396uq9svw1vg0czd.png\" alt=\"\u0634\u0631\u062d \u062a\u0635\u0648\u06cc\u0631\" loading=\"lazy\" width=\"560\" height=\"392\" title=\"\"><\/p>\n<p>\u0686\u0646\u06cc\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0627\u0635\u0644\u06cc \u0686\u0631\u062e \u0641\u0644\u06a9 \u0634\u06a9\u0644 \u06af\u0631\u0641\u062a\u0647 \u0627\u0633\u062a. \u0633\u067e\u0633 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0645\u062d\u062a\u0648\u0627\u06cc \u0622\u0646 \u0631\u0627 \u0628\u06cc\u0634\u062a\u0631 \u063a\u0646\u06cc \u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0631\u062e\u06cc \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0645\u062a\u062f\u0627\u0648\u0644 \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0630\u06a9\u0631 \u0634\u062f\u0647 \u0627\u0633\u062a:<br \/><code><br \/>indicator-dots\uff1aWhether to display the panel indicator points<br \/>indicator-color\uff1a Indicator point color<br \/>indicator-active-color\uff1a The color of the currently selected indicator point<br \/>autoplay\uff1aWhether to switch automatically<br \/>interval\uff1aAutomatically switch the time interval<br \/><\/code><br \/>\u062f\u0631 \u0632\u06cc\u0631 \u0631\u0648\u0634\u0647\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0635\u062d\u06cc\u062d \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0641\u0648\u0642 \u0648 \u06a9\u062f \u06a9\u0627\u0645\u0644 \u0686\u0631\u062e \u0641\u0644\u06a9 \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<br \/><code><br \/><swiper class=\"swiper\" indicator-dots=\"true\" indicator-color=\"#f8f8f8\" indicator-active-color=\"#007aff\" duration=\"3000\" autoplay=\"true\"><br \/><swiper-item><br \/><view class=\"swiper-item\"><br \/><image src=\"https:\/\/dev.to\/static\/banner1.jpg\" style=\"width: 100%;height: 100%;\"\/><br \/><\/view><br \/><\/swiper-item><br \/><swiper-item><br \/><view class=\"swiper-item\"><br \/><image src=\"https:\/\/dev.to\/static\/banner2.jpg\" style=\"width: 100%;height: 100%;\"\/><br \/><\/view><br \/><\/swiper-item><br \/><swiper-item><br \/><view class=\"swiper-item\"><br \/><image src=\"https:\/\/dev.to\/static\/banner3.jpg\" style=\"width: 100%;height: 100%;\"\/><br \/><\/view><br \/><\/swiper-item><br \/><\/swiper><br \/><\/code><br \/>\u0645\u0648\u0627\u0631\u062f \u0641\u0648\u0642 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc \u0622\u0645\u0648\u0632\u0634 \u062f\u0631 \u0645\u0648\u0631\u062f \u062a\u0635\u0627\u0648\u06cc\u0631 \u0686\u0631\u062e \u0641\u0644\u06a9 \u0627\u0633\u062a. \u0627\u0632 \u062e\u0648\u0627\u0646\u062f\u0646 \u0634\u0645\u0627 \u0645\u062a\u0634\u06a9\u0631\u0645<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0645\u0642\u0627\u0644\u0627\u062a \u0686\u0646\u062f \u0631\u0648\u0632 \u06af\u0630\u0634\u062a\u0647 \u060c \u0645\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u0645\u062a\u0642\u0627\u0628\u0644 \u067e\u0644\u062a\u0641\u0631\u0645 \u060c \u0646\u062d\u0648\u0647 \u0627\u0646\u062c\u0627\u0645 \u0637\u0631\u062d \u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u0627\u0633\u0627\u0633\u06cc \u060c \u0646\u062d\u0648\u0647 \u0627\u062c\u0631\u0627\u06cc \u0645\u06cc\u0644\u0647 \u0647\u0627\u06cc \u0646\u0627\u0648\u0628\u0631\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0648 \u063a\u06cc\u0631\u0647 \u0635\u062d\u0628\u062a \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645. \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u06cc\u0646 \u0633\u0631\u06cc \u0627\u0632 \u0622\u0645\u0648\u0632\u0634 \u0647\u0627\u06cc \u0645\u0642\u0627\u0644\u0647 \u060c \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0647\u062f\u0641 \u0645\u0627 \u062f\u0633\u062a\u06cc\u0627\u0628\u06cc \u0628\u0647 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0631\u06cc\u062f \u0647\u0633\u062a\u06cc\u0645. \u0627\u0645\u0631\u0648\u0632 \u060c &hellip;<\/p>\n","protected":false},"author":2,"featured_media":108917,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-108916","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/108916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=108916"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/108916\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/108917"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=108916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=108916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=108916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}