小程序
小游戏
企业微信
微信支付
扫描小程序码分享
不知道https域名在哪一步变成了http?
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
看下是否有网关层做了转发,更改了协议?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
看看 web-view 组件的 src 属性怎么写的
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>微信登录中11</title>
</head>
<body>
<div>
<img src="https://web.future.hkgie.net/img/one.gif" style="width: 100%;height: 100%;">
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script type="text/javascript" charset="utf-8">
new Vue({
el: "#app",
data() {
return {
}
},
created() {
// wx72ed9bc9deb25bdc
let code = this.GetQueryString("code");
let appId = this.GetQueryString('appId')
console.log(appId)
let state = this.GetQueryString('orgId')
if (code == null || code == "") {
location.href =
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=https%3A%2F%2Fweb.future.hkgie.net%2FgetOpenId%2FstudiousCRM&response_type=code&scope=snsapi_base&state=${state}&component_appid=wxbfd71f7eafbda938#wechat_redirect`
} else {
let orgId = this.GetQueryString('state')
wx.miniProgram.navigateTo({
url: "/pages/login?code=" + code
});
// this.getOpenid(code,appId)
methods: {
GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
将这个站点强制跳转https
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
看下是否有网关层做了转发,更改了协议?
看看 web-view 组件的 src 属性怎么写的
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>微信登录中11</title>
</head>
<body>
<div>
<img src="https://web.future.hkgie.net/img/one.gif" style="width: 100%;height: 100%;">
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script type="text/javascript" charset="utf-8">
new Vue({
el: "#app",
data() {
return {
}
},
created() {
// wx72ed9bc9deb25bdc
let code = this.GetQueryString("code");
let appId = this.GetQueryString('appId')
console.log(appId)
let state = this.GetQueryString('orgId')
if (code == null || code == "") {
location.href =
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=https%3A%2F%2Fweb.future.hkgie.net%2FgetOpenId%2FstudiousCRM&response_type=code&scope=snsapi_base&state=${state}&component_appid=wxbfd71f7eafbda938#wechat_redirect`
} else {
let orgId = this.GetQueryString('state')
wx.miniProgram.navigateTo({
url: "/pages/login?code=" + code
});
// this.getOpenid(code,appId)
}
},
methods: {
GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
将这个站点强制跳转https