V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
sudoy
V2EX  ›  问与答

发现一个不错的 PWA 电商前端仓库,但是在哪儿对接后端呢?

  •  
  •   sudoy · May 4, 2022 · 913 views
    This topic created in 1456 days ago, the information mentioned may be changed or developed.

    在 GitHub 上发现了一个不错的电商前端仓库,貌似是 Google 团队前些年写的 PWA 网页程序。在本地测试了一下,别的都没问题,就是找不到如何对接后端。

    仓库地址: https://github.com/Polymer/shop

    src/shop-checkout.js 第 489 行有个 _submit(e) 入口,但是找不到如何设置后端 URL ,以及根据后端反馈结果显示不同的页面信息。

    对了,后端是自己建的 rest api

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3131 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 14:17 · PVG 22:17 · LAX 07:17 · JFK 10:17
    ♥ Do have faith in what you're doing.