浏览代码

其他地方的登录功能

任一存 1 年之前
父节点
当前提交
22f8b6b9ba
共有 1 个文件被更改,包括 2 次插入26 次删除
  1. 2 26
      src/App.vue

+ 2 - 26
src/App.vue

@@ -141,18 +141,7 @@ function onClickFeedBack() {
   if (store.state.loginStatus === store.getters.loginStatusEnum.wxUser) {
     isShowFeedBack.value = true
   } else {
-    ElMessageBox.confirm(
-      '需登录后才能体验',
-      '提示',
-      {
-        confirmButtonText: '去登录',
-        cancelButtonText: '取消',
-        type: 'message',
-      }
-    ).then(() => {
-      isShowFeedBack.value = true
-    }).catch(() => {
-    })
+    location.href = `https://open.weixin.qq.com/connect/qrconnect?appid=wx3d4f2e0cfc3b8e54&redirect_uri=https%3A%2F%2Fsit-wuxicishan.4dage.com%2F%23%2Flogin-temp&response_type=code&scope=snsapi_login&state=${encodeURIComponent(route.name)}#wechat_redirect`
   }
 }
 
@@ -162,20 +151,7 @@ function onClickShop() {
       name: 'ShopView'
     })
   } else {
-    ElMessageBox.confirm(
-      '需登录后才能体验',
-      '提示',
-      {
-        confirmButtonText: '去登录',
-        cancelButtonText: '取消',
-        type: 'message',
-      }
-    ).then(() => {
-      router.push({
-        name: 'ShopView'
-      })
-    }).catch(() => {
-    })
+    location.href = `https://open.weixin.qq.com/connect/qrconnect?appid=wx3d4f2e0cfc3b8e54&redirect_uri=https%3A%2F%2Fsit-wuxicishan.4dage.com%2F%23%2Flogin-temp&response_type=code&scope=snsapi_login&state=${encodeURIComponent('ShopView')}#wechat_redirect`
   }
 }