买吧 - 花光马云的3021亿 一个可以模拟首富花💰的游戏
演示站点: https://maiba.fun
Install using NPM (npm install) or Yarn (yarn install)
打包时依赖了puppeteer模块,下载这个模块可能会出现上述错误,原因是国内的网络限制,解决方案是切换下载镜像源,如:
npm config set PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
相关Issue: puppeteer/puppeteer#1597 (comment)
npm run serve or yarn serve
npm run build or yarn build
Local use: run yarn serve command, browser visit http://localhost:8000/ to enter consumption
Deploy the application: run the yarn build command to deploy the packaged static html to your application server, access it through the domain name, and enter the consumption
本地使用:运行 yarn serve 命令,浏览器访问http://localhost:8000/ 进入网页消费
部署应用:运行yarn build命令,将打包在dist目录下的静态文件部署到你的应用服务器上,访问网站域名进入消费
点击仓库可查看已购买的商品,还可以卖出和打印消费小票。 修改价格,可在 public/store/ 目录下修改商品价格。