GithubHelp home page GithubHelp logo

wangyuan389 / mall-cook Goto Github PK

View Code? Open in Web Editor NEW
4.8K 70.0 1.1K 11.9 MB

商城低代码平台,可视化搭建H5、小程序多端商城

Home Page: http://www.sunmao-design.top

License: MIT License

JavaScript 20.33% Vue 66.72% HTML 0.86% SCSS 6.18% CSS 5.57% Pug 0.03% Stylus 0.04% Shell 0.08% TypeScript 0.18%

mall-cook's Issues

个人建议

  1. 能够实现动态接口配置就好了,目前只有静态数据

zyIcon 请问是什么图标框架,为什么我拷贝到vue-element-admin不能用

ERROR Failed to compile with 1 error 09:32:34

This dependency was not found:

  • -!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!./yzIcon/icon.css in ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/StoreBuild/components/Control/index.vue?vue&type=style&index=0&lang=scss&

To install it, you can run: npm install --save -!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!./yzIcon/icon.css

总是报跟@dcloudio库相关的错误

Error: Cannot find module '@dcloudio/uni-cli-shared/lib/util'

$ cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin vue-cli-service uni-build --watch
node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module '@dcloudio/uni-cli-shared/lib/util'
Require stack:

  • E:\nvm\v16.14.0\node_modules@dcloudio\vue-cli-plugin-hbuilderx\index.js
  • E:\nvm\v16.14.0\node_modules@vue\cli-service\lib\Service.js
  • E:\nvm\v16.14.0\node_modules@vue\cli-service\bin\vue-cli-service.js

本地开发启动后mall-cook h5无法进入首页

按照官网文档配置数据库后, 设置本地开发环境,启动后选择mall-cook h5无法进入首页?

本地开发环境:

export default {
  baseApi: 'http://127.0.0.1:3000/', // 'https://www.lanshan-h5.cn:1443/node/',  // 后端接口地址
  viewUrl: 'http://192.168.0.123:8081/#/' // 'http://110.42.184.128:9000/#/'          // iframe嵌套的H5地址,本地开发可改为本地启动的H5地址
}

yarn run dev后是这样的:
1649820522(1)
1649820594(1)

是哪里没配置对吗?

魔方跳转链接

例如第一张图选择了一个跳转链接,后面的图在选择的时候,会出现把第一张图的跳转链接修改了,后面的图片没有加上跳转链接

image

拖拽组件,释放后的视觉优化

提一个小小的优化项,拖拽组件、释放后的回弹可以优化一下不?看着有点怪。

页面设计和功能层面感觉都挺棒的,作者加油!

独立配置数据源

对于这种低代码平台,是否具有或者可以增加对于数据源的配置(接口标准,mysql数据库等),类似于datav,毕竟在运行一套项目的时候,都应该有自身对应的业务逻辑

这是一个伟大的项目!

我有预感!
这是一个很有潜力的项目!
希望wangyuan389 能坚持做下去!
不要问我为啥有这种预感!因为这玩意能节约生产力!
坚持更新 迭代呀!

个人对项目升级的一点新想法

作者你好:

最近在学习低代码平台知识,看了你的作品让我深受启发。mall-cook 是个非常棒的项目,由衷希望它能越来越好!

下面是我个人在看了代码后,产生的一些新想法(注意这不是建议,因为我并没有深入研究代码,对项目也不够了解,是否采纳需要作者你自己判断):

  1. 使用 v-bind : is 代替 v-if 实现动态组件,使代码更简洁,Vue文档:https://v2.cn.vuejs.org/v2/api/#is

  2. 使用 h 函数渲染代替常规组件,个人感觉使用 createElement 创建 DOM 更有利于数据传递,Vue文档:https://v2.cn.vuejs.org/v2/guide/render-function.html#JSX

  3. 使用 grid 布局实现魔方组件,这里需要注意兼容性问题,但随着低版本浏览器淘汰,个人觉得 grid 布局会越来越流行。文档: CSS Grid 网格布局教程 - 阮一峰的网络日志

  4. 考虑使用 em、rem、vw、vh 代替部分 px ,这里我是想低代码平台对自适应要求比较高,如果组件布局实现了自适应,那么组件本身样式可能出现问题(比如字体大小)

希望我的想法能给你带来灵感!

Can't import the named export 'watch' from non EcmaScript module (only default export is available)

当我使用 npm run dev 启动 mall-cook-platform, 我这里报了很多关于 'h', 'ref', 'watch' 之类的类似于标题的错误, 这些都是关于Vue3的东西, 但是我看大佬用的是 Vue2, 是不是这块的某个导入错误的原因, 但是我看大佬的项目里面也没有使用 'ref' 或者 ‘reactive' 这些 Vue3 的东西, 为啥还会报这个错呢? 请问大佬有遇到过吗?

image

admin和h5部署到nginx遇到问题

已启动service后
执行 yarn build , 把生成的dist 丢到 nginx 后。直接访问admin和h5都出现报错。

h5报错


GET http://host/static/index.a5c69d49.css net::ERR_ABORTED 404 (Not Found)

因为放到二级目录,正确路径应该为

http://host/h5/static/index.a5c69d49.css

admin 报错

Uncaught TypeError: Object(...) is not a function
    at Object.<anonymous> (minimce.es.js:1765:12)
    at 2acf (chunk-vendors.d0ceefab.js:15:973423)
    at c (bootstrap:89:22)
    at 56d7 (index.a9aec1e8.js:1:28804)
    at c (bootstrap:89:22)
    at 0 (index.a9aec1e8.js:1:4404)
    at c (bootstrap:89:22)
    at n (bootstrap:45:15)
    at bootstrap:267:10
    at index.a9aec1e8.js:1:4374

image

非常非常的棒!!!

请问这个如何配合后台的支付和运营统计呢?

支付配置\物流配置\运营统计;

订单的优惠改价\优惠券的使用规则等.这些有计划吗/

Use of Hard-coded Cryptographic Key vulnerability.

Hi mall-cook/packages/mall-cook-service uses hardcoded jwt secret to sign and decode jwt tokens, which makes it vulnerable to forging token and impersonate as a valid user and it also uses jwt.decode() instead of jwt.verify() function to decode tokens, which does not validate token signature while decoding token, which also may result in token forging by attackers.

pull request with fix for above mentioned vulnerabilities #59

see https://r2c.dev/blog/2020/hardcoded-secrets-unverified-tokens-and-other-common-jwt-mistakes/ for more details

jwt-hardcoded-key

魔方跳转链接

魔方 方便在每一个图片的下面 增加一个跳转链接吗,我们在添加跳转链接的时候,设置一个发现会将魔方里面的都设置为相同的,不知道是什么原因

Mac mall-cook-platform 启动后 页面出不来

mall-cook-platform : npm run dev
App running at:

Note that the development build is not optimized.
To create a production build, run yarn build.

  1. 配置了mall-cook-platform config/. default {
    baseApi: 'https://www.lanshan-h5.cn:1443/node/', // 后端接口地址
    viewUrl: 'http://localhost:8080' // iframe嵌套的H5地址,本地开发可改为本地启动的H5地址
    }

  2. 浏览器打开后 一直处于加载状态

关于微信二维码预览的疑问

我看二维码都是指向mall-cook小程序的,是保存了json数据,然后做了个渲染吗?

有做什么用户层面的数据保存吗?

如果我保存了一个,然后另一个也保存了。我会看到另一个做出保存,生成的小程序ui吗?

请问各子项目用途

image
作者大大你好,请问这两个子项目,哪个是用于后台编辑页面,哪个是用于移动端的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.