Giter VIP home page Giter VIP logo

dva-wxapp's Issues

有没有计划支持wepy

如题, 尝试集成到dva到wepy,失败了,好像connector有问题,又没有计划尝试使用wepy?

体验之后发现的一些问题和建议

问题

  • 页面在初始化获取 connect 来的 state 之前没有初始化 Page.data。在 wxml 中有用到 image 组件,而这个组件的图片地址是由未初始化的 Page.data 中引用的时候会触发渲染层错误:

Thu Aug 31 2017 16:29:45 GMT+0800 (**标准时间) 渲染层网络层错误
VM119:2 Failed to load image http://950855194.debug.open.weixin.qq.com/pages/index/index : the server responded with a status of 404 (HTTP/1.1 404 Not Found)
From server 127.0.0.1

Page.data 的初始化和 model 的 data 的内容未必相同,可能要考虑下比较好的解决方案。

建议

小弟我也在寻找比较好的以 redux 为框架的小程序解决方案,好奇心日报Demo 是我现在遇到的比较好的解决方案,特点是对小程序本身的 templete 的文件维度的单独封装和相应方法隔离和引用提供了解决示例,less转wxss、xml转wxml等比较实用的解决方案,不过可惜作者最近没有更新。我在 loading 态的处理上遇到了需求,所以就找到了这里 0.0

各路大神也多多指教哈

想要把wxss中的图片转为base64,如何处理?

想要把wxss中的图片转为base64,如何处理?把这个打开不起作用
// {
// test: /.(png|jpg|gif)$/,
// include: /src/,
// loader: 'url-loader?limit=8192',
// options: {
// name: '/[name]_[hash:7].[ext]',
// outputPath: 'images',
// }
// },

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.