All Projects → leiyun1993 → Wanandroid Mini

leiyun1993 / Wanandroid Mini

Licence: apache-2.0
基于玩安卓开放api的微信小程序

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wanandroid Mini

Weixin Sdk
微信公众平台(订阅号、服务号、企业号、小程序)、微信开放平台和微信支付 Java SDK
Stars: ✭ 933 (+2175.61%)
Mutual labels:  weixin
Taro
开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
Stars: ✭ 30,230 (+73631.71%)
Mutual labels:  weixin
Wanandroidclient
http://wanandroid.com/ 个人定制客户端
Stars: ✭ 36 (-12.2%)
Mutual labels:  wanandroid
Weixinmpsdk
微信全平台 SDK Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 6.0。已支持微信公众号、小程序、小游戏、企业号、企业微信、开放平台、微信支付、JSSDK、微信周边等全平台。 WeChat SDK for C#.
Stars: ✭ 7,098 (+17212.2%)
Mutual labels:  weixin
Pro
ECStore Pro - Laravel 微信网店微服务框架
Stars: ✭ 14 (-65.85%)
Mutual labels:  weixin
Node Tenpay
微信支付 for nodejs
Stars: ✭ 947 (+2209.76%)
Mutual labels:  weixin
Weapp Bmscore
a weapp to count badminton game score
Stars: ✭ 17 (-58.54%)
Mutual labels:  weixin
Wanandroid
Jetpack MVVM For Wanandroid 最佳实践 !
Stars: ✭ 1,004 (+2348.78%)
Mutual labels:  wanandroid
Weixin Sdk
微信公众平台和微信支付Python-SDK
Stars: ✭ 20 (-51.22%)
Mutual labels:  weixin
Wxparse
wxParse-微信小程序富文本解析自定义组件,支持HTML及markdown解析
Stars: ✭ 7,618 (+18480.49%)
Mutual labels:  weixin
Xiaochengxu demos
小程序优秀项目源码汇总,每个项目都有图有源码,零基础学微信小程序,小程序表格,小程序视频,小程序视频弹幕,小程序仿天猫大转盘抽奖等源码,小程序云开发,小程序发邮件,小程序支付,微信支付,持续更新。。。
Stars: ✭ 855 (+1985.37%)
Mutual labels:  weixin
Ios Chat
开源的即时通讯(野火IM)系统
Stars: ✭ 867 (+2014.63%)
Mutual labels:  weixin
Interaction
交互开发教程,包括h5开发、微信开发等。
Stars: ✭ 31 (-24.39%)
Mutual labels:  weixin
Weixin Platform History Article Api
微信公众号历史文章爬取api
Stars: ✭ 27 (-34.15%)
Mutual labels:  weixin
Weixin Login
完美版本的开放平台无跳转微信登录,将frame数据处理为图片或Base64图片数据返回客户端进行扫码。解决Chrome70中open.weixin.qq.com腾讯SSL证书不被信任的问题,解决Chrome68中frame跨域被拦截的问题。
Stars: ✭ 38 (-7.32%)
Mutual labels:  weixin
Taro scaffold
基于 Taro / dva / redux-saga / react 的微信小程序脚手架,同时集成了 sprite 。
Stars: ✭ 24 (-41.46%)
Mutual labels:  weixin
Paylink
Paylink 是基于 .NET Core 、 ASP.NET Core 开发的支付SDK集,它极大简化了API调用及通知的处理流程。
Stars: ✭ 947 (+2209.76%)
Mutual labels:  weixin
Wanandroid mini
💥玩安卓 小程序版
Stars: ✭ 41 (+0%)
Mutual labels:  wanandroid
Php Educational Administration
大学微信查教务成绩 数据抓取 数据分析 微信查成绩 验证码识别 redis缓存
Stars: ✭ 38 (-7.32%)
Mutual labels:  weixin
Wanandroid jetpack
玩安卓的Jetpack版本
Stars: ✭ 33 (-19.51%)
Mutual labels:  wanandroid

玩Android-小程序版

关注wanandroid有些时日了,一直以来也是鸿洋大神的粉丝,一直都有用他开放的api此前是使用kotlin完成了一个版本【wanandroid】,这次我们使用微信小程序完成一个版本。

没有申请公众号并且小程序只支持https所以不能发体验,仅作为交流之用,希望大家看的开心、玩的愉快~

简介

开发工具:小程序开发工具1.02.1811290---下载地址

调试基础版本:2.4.1

项目截图

image image image image image image image image image image image image image

部分功能解析

1、网络请求

加入ES6 Promise 封装网络请求,同时处理登录时候的cookie保存,并持久化

let request = (url, data, type) => new Promise((resolve, reject) => {
  wx.request({
    url: 'http://www.wanandroid.com' + url,
    data: data,
    method: type, // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
    header: {
      'content-type': 'application/x-www-form-urlencoded', // 默认值
      "cookie": wx.getStorageSync("cookie")
    },
    success: function(res) {
      // success
      if (res.data.errorCode === 0) {
        if (url == interfaces.INTERFACE_USER_LOGIN){
          wx.setStorageSync("cookie", res.header['Set-Cookie'])
        }
        resolve(res.data);
      } else {
        reject(res.data)
      }
    },
    fail: function(err) {
      // fail
      reject(err)
    },
    complete: function() {
      // complete
    }
  })
})

这样处理回调的时候就可以很简单的如下处理:

import api from "../../api/api.js";
api.IPostCollect(id)
  .then(res => {
    //success
  })
  .catch(e => {
    //fail
  })

版本信息

v1.0.0

  • [x] 首页文章与Banner
  • [x] 微信文章
  • [x] 项目
  • [x] 登录
  • [x] 注册
  • [x] 我的收藏
  • [x] 知识体系
  • [x] TODO工具
  • [x] 搜索功能
  • [x] 优化项目页瀑布流显示

TKS

  • 感谢鸿洋大神创建了这么好的学习网站WanAndroid

License

Copyright 2018 YunLei

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].