Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

dxcweb/wxjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits

Repository files navigation

wxjs

react版本的微信js基础服务

install

npm install wxjs --save

Development

npm install
npm start

Example

http://github.dxcweb.com/wxjs/

Usage

WopLogin and WopSign

import {WopLogin,WopSign} from 'wxjs';
...
<WopLogin 
	url="http://wop.dxcweb.com/service/"
 wx_app_id=""
 is_get_user_info={false}
 userInfo={(user)=> (console.log(user))}
>
	<WopSign 
		url="http://wop.dxcweb.com/service/"
 wx_app_id=""
	>
	 <Router history={history}>
			<Route path="/" component={IndexPage}/>
	 </Router>
	</WopSign>
</WopLogin>

WopUploadImgToOss

WopUploadImgToOss(me.wop_url, me.wx_app_id, serverId).then(function (img) {
 
});

About

react版本的微信js基础服务

Resources

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /