GithubHelp home page GithubHelp logo

vqishi / wxapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from suinia/wxapp

0.0 2.0 0.0 46 KB

微信小程序图片自适应,微信小程序富文本解析。

License: MIT License

JavaScript 100.00%

wxapp's Introduction

wxapp

最近跟小伙伴一起开发微信小程序, 发现在内容显示这块没法很好的解析。所以记录了下

查看效果

  • 下载项目,在小程序工具新建项目选择开发文件夹。
  • 注意:新建项目不使用appId, 在项目配置中勾选:开发环境不校验请求域名。 因为测试数据使用的是rap的模拟数据。

循环连接轮播图

小程序的swiper轮播最后一页是不连接的

图片高宽适配

小程序图片高宽没法自动适配,只能指定高宽进行裁剪。在详情页显示体验很差,用image组件的bindload解决

富文本解析

小程序没有提供富文本解析, 服务端可以转换为json(当然前端也可以有个js库解决html2json)在小程序里面用对应的组件适配

效果图

demo demo demo

wxapp's People

Contributors

suinia avatar

Watchers

James Cloos avatar  avatar

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.