@@ -17,3 +17,18 @@ export function hiddenBottomBar (params = 0) {
}
+
+// 分享封装
+export function shareToOthers (options: any = {}) {
+ if (inWeiXinBrowser) {
+ // 微信分享
+ } else {
+ // app分享
+ try {
+ // options.type--1微信分享,2qq分享,3朋友圈分享
+ JyObj.share(options.type, options.title, options.link)
+ } catch (error) {
+ console.log(error)
+ }
+}