@@ -19,6 +19,7 @@ interface ToastType {
interface showConfirmType {
title?:string;
text?:string;
+ type?:string;
callback?:Function;
}
type union = title | ToastType;
@@ -92,7 +92,7 @@ export const withInstall = <T>(component: T, alias?: string) => {
return component as T & Plugin;
};
//请求微信接口,用来获取code
-export async function getWeChatCode(appid) {
+export async function getWeChatCode(appid:string) {
const local = encodeURIComponent(window.location.href) //一定要用encodeURIComponent方法获取当前页面地址作为回调地址
//通过微信官方接口获取code之后,会重新刷新设置的回调地址【redirect_uri】
window.location.href =
@@ -8,7 +8,7 @@ import { GetRequest, getWeChatCode } from '@/utils/index'
const payType = ref('0')
const route = useRoute()
const orderDetal = ref({})
-const orderSn = ref(route.query.id || GetRequest('orderSn'))
+const orderSn = ref(route.query.id || GetRequest('id'))
const { getToken, openId, isEur, info, setUserData } = useUserStore()
const is_weixn = computed(() => {
if (typeof WeixinJSBridge == 'undefined') {