shop-wx/doc/迁移指令.md

10 lines
899 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@doc\thirdParty\ 文件夹下是旧H5项目的代码现在已经将其api部分的代码移植到了本微信小程序项目。现在需要移植页面改为
微信小程序uni-app的写法第一步先移植首页 @doc\thirdParty\src\pages\product\ 内的页面和全部组件,小程序写法参考
@src\pages\index\index.vue
。仅参考语法api需要使用原ProductList.vue中已经移植到本项目的相应apistores也需要使用移植后的pinia。生成的代码写到
@src\pages\home\ 文件夹下
参考已迁移至本项目的代码 @src\pages\index\ 。将 @doc\thirdParty\src\pages\product\components\
下的另外两个component也迁移到本项目。注意thirdParty下的是H5项目现在需要改为微信小程序uni-app。api需要使用原Product
List.vue中已经移植到本项目的相应apistores也需要使用移植后的pinia。