提交测试版

This commit is contained in:
2021-12-06 18:29:39 +08:00
parent bb9f67d3f8
commit e4173eeb2c
21 changed files with 615 additions and 184 deletions
+4 -2
View File
@@ -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)
+3 -3
View File
@@ -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 };