| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <!--
- * @Author: zhanghaifeng
- * @Date: 2025-07-08 13:31:49
- * @LastEditors: zhanghaifeng
- * @LastEditTime: 2025-10-14 17:01:04
- * @Description:
- * @FilePath: /jiangbei-mini-h5/src/pages/index/index.vue
- -->
- <script setup lang="ts">
- import globalConfig from '@/config/global'
- import { onMounted } from 'vue';
- onMounted(() => {
- const redirect = encodeURIComponent(
- `${window.location.origin}/#/pages/home/index`
- );
- const corpId = globalConfig.corpid;
- const url =
- `https://open.weixin.qq.com/connect/oauth2/authorize` +
- `?appid=${corpId}&redirect_uri=${redirect}&response_type=code&agentid=1000003` +
- `&scope=snsapi_privateinfo&state=1#wechat_redirect`;
- window.location.replace(url);
- })
- </script>
- <template>
- <view class="box">
- </view>
- </template>
- <style lang="scss" scoped>
- .box{
- position: relative;
- width: 100%;
- height: 100vh;
- background: #f6f6f6;
- }
- </style>
|