npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ux-frame/ux-weixin

v1.0.1

Published

UxFrame WeixinSDK是基于wechatsdk开发的uts原生插件

Downloads

7

Readme

非常感谢您购买UxFrame WeixinSDK!如果您有任何问题或需要最新的源码,请随时通过QQ群:450704209 与我联系。我会为您提供最专业的解答和帮助,并与您分享与UniAppX开发相关的经验。再次感谢您的信任和支持!

前言介绍

欢迎使用UxFrame WeixinSDK!此插件是基于wechatsdk开发,轻松实现微信授权支付、登录和微信分享等功能!

官方文档

https://www.uxframe.cn

交流反馈

欢迎加入我们的QQ群[450704209]交流反馈:点击跳转

使用方法

详细教程请加入我们的QQ群450704209获取


import * as wxsdk from "@/uni_modules/ux-weixin"

// 注册
wxsdk.register({
	appid: '您的微信appid',
	success: (res) => {
		console.log(res)
	}
} as RegisterOptions)

// 登录
wxsdk.login({
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as LoginOptions)

// 分享图文
wxsdk.share({
	type: 0,
	title: 'UxFrame低代码高性能UI框架',
	summary: 'UxFrame是基于UNI-APP-X开发的低代码高性能原生UI框架',
	href: 'https://www.uxframe.cn',
	imageUrl: 'https://www.uxframe.cn/logo/logo.png',
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as ShareOptions)

// 分享文本
wxsdk.share({
	type: 1,
	title: 'UxFrame低代码高性能UI框架',
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as ShareOptions)

// 分享图片
wxsdk.share({
	type: 2,
	// imageUrl: '/static/logo.png'
	imageUrl: 'https://www.uxframe.cn/logo/logo.png',
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as ShareOptions)

// 分享视频
wxsdk.share({
	type: 4,
	title: 'UxFrame低代码高性能UI框架',
	summary: 'UxFrame是基于UNI-APP-X开发的低代码高性能原生UI框架',
	// imageUrl: '/static/logo.png'
	imageUrl: 'https://www.uxframe.cn/logo/logo.png',
	mediaUrl: 'https://www.uxframe.cn/source/intro/demo.mp4',
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as ShareOptions)

// 分享小程序
wxsdk.share({
	type: 5,
	title: 'UxFrame低代码高性能UI框架',
	summary: 'UxFrame是基于UNI-APP-X开发的低代码高性能原生UI框架',
	// imageUrl: '/static/logo.png'
	imageUrl: 'https://www.uxframe.cn/logo/logo.png',
	miniProgram: {
		id: '小程序id',
		type: 0,
		path: '',
		webUrl: 'https://www.uxframe.cn'
	} as MiniProgram,
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as ShareOptions)

// 微信支付
wxsdk.requestPayment({
	mchid: '商户号',
	prepayId: '预付单',
	sign: '签名',
	signType: '签名类型',
	nonceStr: '随机字符串',
	timeStamp: '时间戳',
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as PayOptions)

// 联系微信企业客服
wxsdk.share({
	openCustomerServiceChat: true,
	corpid: '企业id',
	customerUrl: 'https://work.weixin.qq.com/kfid/kfc********',
	success: (res) => {
		console.log(res);
	},
	fail: (err) => {
		console.log(err);
	}
} as ShareOptions)

// 打开微信
wxsdk.openApp()

// 检测是否安装微信
wxsdk.isInstalled()