GithubHelp home page GithubHelp logo

xuiwife / vue-wechat-login Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wkl007/vue-wechat-login

1.0 1.0 0.0 258 KB

微信公众号移动端授权登录示例

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

License: MIT License

JavaScript 83.74% HTML 2.65% Vue 5.02% CSS 7.62% Shell 0.97%

vue-wechat-login's Introduction

vue-wechat-login

移动端微信公众号授权登录示例,CSDN博客

请提前阅读有关微信公众平台相关文档

目录

运行调试

1. 克隆项目,终端进入项目根目录

git clone https://github.com/wkl007/vue-wechat-login.git

2. 安装项目依赖

yarn install || npm install

3. 修改项目环境变量中APP_URL与APP_ID

VUE_APP_API_URL=YOUR API URL
VUE_APP_WECHAT_APP_ID=YOUR APP ID

4. 修改登录接口请求地址

static login (data) {
    return request({
      url: '/auth/wechat',// YOUR URL
      method: 'post',
      data
    })
}

5. 本地运行

yarn serve || npm run serve

6. 打包

yarn build:dev || npm run build:dev
yarn build:pro || npm run build:pro

运行效果图

在这里插入图片描述

vue-wechat-login's People

Contributors

wkl007 avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.