Skip to content

结合业务学习 Shopify C 端商品选择器/地址选择器代码,使用 Vue2.x 重写

Notifications You must be signed in to change notification settings

i7eo/vue-shopify-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ShopifyPartials

🔵 Internationalization

English | 中文文档

ℹ️ Introductions

Learn and rewrite parts of Shopify code based on my own business logic

The original

  1. Shopify is powerful, but most of the themes are currently written in JQ, and some of the themes using React/Vue /ng are also compiled code that is hard to understand.
  2. Combined with its own business scenarios, this paper mainly rewrites Shopify product detail page multi-attribute combination switch and Shopify address select.

Technology

zepto & vue2.6

Shopify Address Component

Shopify address page, country data from Shopify

tips:

  1. With the country switch as the entry point, refresh the overall UI. The UI layout needs to be defined in advance, as described in the ADDRESS_FORMAT in /checkout/checkout-countries.new.js
  2. The float animation for the Label of the form item needs to be added transform: translateY(2px);

Shopify Product Options Select Component

This component is inspired by sku multi-dimensional attribute state judgment algorithm It is recommended to master all the Knowledge points, otherwise reading the code will be more difficult

😜 Authors

i7eo

©️ License

License MIT

About

结合业务学习 Shopify C 端商品选择器/地址选择器代码,使用 Vue2.x 重写

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published