书架小程序,基于微信小程序云开发-源码

上传者: 38542223 | 上传时间: 2021-03-04 20:48:46 | 文件大小: 44KB | 文件类型: ZIP
书架小程序 预览 注册微信小程序 在 注册一个小程序,得到小程序的appid。 下载 参考文档: 打开微信开发者工具,创建小程序,输入appid,选择使用云开发,创建小程序。 删除demo中的代码,创建一个云环境并使用。 我的页面 登录 使用<button open-type="getUserInfo" bindgetuserinfo="onGetUserInfo">登录</button>获取个人信息, 使用ogin云函数获取openid. 使用wx.setStorage()把信息存在本地 使用wx:if/else做登录判断 添加图书 使用wx.scanCode扫码功能,扫描图书背后的条形,获取isbn号。 调用getBookInfo云函数,爬取这本书在豆瓣的简介和评论。 获得简介和评论后存添加到云数据库,添加成功后再把数据返回给前端。 书架页 书架列表 获取云函数的书架列表,使用fie

文件下载

资源详情

[{"title":"( 48 个子文件 44KB ) 书架小程序,基于微信小程序云开发-源码","children":[{"title":"bookshelf-master","children":[{"title":"cloudfunctions","children":[{"title":"getAccountBooks","children":[{"title":"index.js <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 266B </span>","children":null,"spread":false},{"title":"config.json <span style='color:#111;'> 49B </span>","children":null,"spread":false}],"spread":true},{"title":"echo","children":[{"title":"index.js <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"config.json <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true},{"title":"sum","children":[{"title":"index.js <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 253B </span>","children":null,"spread":false}],"spread":true},{"title":"openapi","children":[{"title":"index.js <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 258B </span>","children":null,"spread":false},{"title":"config.json <span style='color:#111;'> 313B </span>","children":null,"spread":false}],"spread":true},{"title":"callback","children":[{"title":"index.js <span style='color:#111;'> 502B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 258B </span>","children":null,"spread":false},{"title":"config.json <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":true},{"title":"getBookInfo","children":[{"title":"index.js <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 344B </span>","children":null,"spread":false}],"spread":true},{"title":"login","children":[{"title":"index.js <span style='color:#111;'> 932B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 256B </span>","children":null,"spread":false},{"title":"config.json <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 31B </span>","children":null,"spread":false},{"title":"miniprogram","children":[{"title":"app.json <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"pages","children":[{"title":"index","children":[{"title":"index.js <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"index.json <span style='color:#111;'> 60B </span>","children":null,"spread":false},{"title":"index.wxss <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"index.wxml <span style='color:#111;'> 457B </span>","children":null,"spread":false}],"spread":true},{"title":"me","children":[{"title":"me.wxml <span style='color:#111;'> 503B </span>","children":null,"spread":false},{"title":"me.js <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"me.json <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"me.wxss <span style='color:#111;'> 171B </span>","children":null,"spread":false}],"spread":true},{"title":"detailed","children":[{"title":"detailed.wxml <span style='color:#111;'> 879B </span>","children":null,"spread":false},{"title":"detailed.js <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"detailed.json <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"detailed.wxss <span style='color:#111;'> 539B </span>","children":null,"spread":false}],"spread":true},{"title":"account-books","children":[{"title":"account-books.js <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"account-books.wxml <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"account-books.json <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"account-books.wxss <span style='color:#111;'> 753B </span>","children":null,"spread":false}],"spread":true},{"title":"bookdetail","children":[{"title":"bookdetail.wxss <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"bookdetail.json <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"bookdetail.js <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"bookdetail.wxml <span style='color:#111;'> 972B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"sitemap.json <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"app.wxss <span style='color:#111;'> 83B </span>","children":null,"spread":false},{"title":"app.js <span style='color:#111;'> 597B </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"util.js <span style='color:#111;'> 6.27KB </span>","children":null,"spread":false},{"title":"wxchart.js <span style='color:#111;'> 70.03KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"project.config.json <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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