tangning 2 vuotta sitten
vanhempi
commit
9fab1b6f0c
3 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 0
      src/components/Toast/index.ts
  2. 1 1
      src/utils/index.ts
  3. 1 1
      src/views/mobile/index.vue

+ 1 - 0
src/components/Toast/index.ts

@@ -19,6 +19,7 @@ interface ToastType {
 interface showConfirmType {
     title?:string;
     text?:string;
+    type?:string;
     callback?:Function;
 }
 type union = title | ToastType;

+ 1 - 1
src/utils/index.ts

@@ -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 =

+ 1 - 1
src/views/mobile/index.vue

@@ -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') {