Giter Site home page Giter Site logo

jayliwanag / vue-wechat-login Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wkl007/vue-wechat-login

0.0 0.0 0.0 523 KB

Vue 3.0+TypeScript 微信网页授权登录示例

Home Page: https://blog.csdn.net/qq_35844177/article/details/79743812

License: MIT License

JavaScript 40.93% HTML 3.46% Vue 4.66% TypeScript 38.86% Less 12.10%

vue-wechat-login's Introduction

vue-wechat-login

介绍

项目基于vue 3.0 ,vant,typescript开发的微信授权登录示例。点击查看 vue 2.0 版本代码。

使用前请阅读 CSDN博客 及微信网页授权 相关文档

运行调试

  1. 克隆项目,终端进入项目根目录
git clone https://github.com/wkl007/vue-wechat-login.git
  1. 安装项目依赖
yarn install || npm install
  1. 修改项目环境变量中APP_URL与APP_ID
VUE_APP_API_URL=YOUR API URL
VUE_APP_WECHAT_APP_ID=YOUR APP ID
  1. 修改登录接口请求地址
static login (data) {
    return request({
      url: '/auth/wechat',// YOUR URL
      method: 'post',
      data
    })
}
  1. 本地运行
yarn serve || npm run serve
  1. 打包
yarn build || npm run build

运行效果图

在这里插入图片描述

vue-wechat-login's People

Contributors

wkl007 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.