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

上传者: 39840387 | 上传时间: 2022-05-30 23:19:58 | 文件大小: 21KB | 文件类型: ZIP
wxapp > 最近跟小伙伴一起开发微信小程序, 发现在内容显示这块没法很好的解析。所以记录了下 查看效果 下载项目,在小程序工具新建项目选择开发文件夹。 注意:新建项目不使用appId, 在项目配置中勾选:开发环境不校验请求域名。 因为测试数据使用的是rap的模拟数据。 循环连接轮播图 小程序的swiper轮播最后一页是不连接的 图片高宽适配 小程序图片高宽没法自动适配,只能指定高宽进行裁剪。在详情页显示体验很差,用image组件的bindload解决 富文本解析 小程序没有提供富文本解析, 服务端可以转换为json(当然前端也可以有个js库解决html2json)在小程序里面用对应的组件适配 效果图

文件下载

资源详情

[{"title":"( 31 个子文件 21KB ) 微信小程序-微信小程序图片自适应,微信小程序富文本解析","children":[{"title":"wxapp-master","children":[{"title":"app.js <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"resources","children":[{"title":"arrow.png <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"services","children":[{"title":"index.js <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"api_urls.js <span style='color:#111;'> 252B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"pages","children":[{"title":"components","children":[{"title":"swiper","children":[{"title":"index.wxml <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"html-parse","children":[{"title":"html2json","children":[{"title":"htmlparser.js <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"html2json.js <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.wxml <span style='color:#111;'> 15.07KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"index.wxss <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"html","children":[{"title":"index.wxml <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"index.wxss <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"index.json <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":true},{"title":"swiper","children":[{"title":"index.wxml <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 939B </span>","children":null,"spread":false},{"title":"index.wxss <span style='color:#111;'> 308B </span>","children":null,"spread":false},{"title":"index.json <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":true},{"title":"image","children":[{"title":"index.wxml <span style='color:#111;'> 536B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"index.wxss <span style='color:#111;'> 305B </span>","children":null,"spread":false},{"title":"index.json <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":true},{"title":"index","children":[{"title":"index.wxml <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 12B </span>","children":null,"spread":false},{"title":"index.wxss <span style='color:#111;'> 605B </span>","children":null,"spread":false},{"title":"index.json <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"app.json <span style='color:#111;'> 352B </span>","children":null,"spread":false},{"title":"app.wxss <span style='color:#111;'> 53B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明