提交测试版
This commit is contained in:
+4
-2
@@ -28,11 +28,13 @@ import {
|
||||
Cascader,
|
||||
ActionSheet,
|
||||
ShareSheet,
|
||||
Dialog
|
||||
Dialog,
|
||||
Icon
|
||||
} from "vant";
|
||||
|
||||
Vue.use(Button);
|
||||
Vue.use(NavBar);
|
||||
Vue.use(Icon);
|
||||
Vue.use(Search);
|
||||
Vue.use(Swipe);
|
||||
Vue.use(SwipeItem);
|
||||
@@ -61,4 +63,4 @@ Vue.use(RadioGroup)
|
||||
Vue.use(Switch)
|
||||
Vue.use(ActionSheet)
|
||||
Vue.use(Cascader)
|
||||
Vue.use(Dialog)
|
||||
Vue.use(Dialog)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
let wechatInstance;
|
||||
|
||||
function signToWechat(config) {
|
||||
function signToWechat(config, readFunction) {
|
||||
if (!wx) {
|
||||
console.warn('请安装微信网页JS-SDK, url: https://res2.wx.qq.com/open/js/jweixin-1.6.0.js');
|
||||
}
|
||||
@@ -23,6 +23,7 @@ function signToWechat(config) {
|
||||
console.warn('wechat sdk config success');
|
||||
wechatInstance = wx;
|
||||
resolve(wx);
|
||||
readFunction && readFunction(wx)
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -92,11 +93,10 @@ function updateTimelineShareData(title = '', desc = '', link = '', imgUrl = '')
|
||||
}
|
||||
|
||||
function previewImage(current, urls){
|
||||
console.log(current, urls)
|
||||
wechatInstance.previewImage({
|
||||
current, urls
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export { signToWechat, getLocation, requestPayment, openLocation, updateAppMessageShareData, updateTimelineShareData, previewImage };
|
||||
export { signToWechat, getLocation, requestPayment, openLocation, updateAppMessageShareData, updateTimelineShareData, previewImage };
|
||||
|
||||
Reference in New Issue
Block a user