Skip to content

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) {
    
});