Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
琼
琼台博物馆小程序Web端
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
琼台博物馆小程序Web端
提交
6115ae74
提交
6115ae74
编写于
12月 07, 2023
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
初版
上级
b112eccc
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
10 行删除
+10
-10
index.vue
pages/getWechatCallbackCode/index.vue
+1
-1
InitInfo.vue
pages/getWxCode/InitInfo.vue
+3
-3
index.vue
pages/index/index.vue
+6
-6
未找到文件。
pages/getWechatCallbackCode/index.vue
浏览文件 @
6115ae74
...
@@ -38,7 +38,7 @@ import * as api from '../../network/utils'
...
@@ -38,7 +38,7 @@ import * as api from '../../network/utils'
},
},
async
WxGzhVerify
()
{
async
WxGzhVerify
()
{
const
res
=
await
api
.
WxGzhVerify
({
code
:
this
.
code
})
const
res
=
await
api
.
WxGzhVerify
({
code
:
this
.
code
})
console
.
log
(
"
🚀🚀通过code获取到token🚀,
"
,
res
)
//
console.log("🚀🚀通过code获取到token🚀,",res)
this
.
strategicObject
(
res
.
response
.
login
,
res
.
response
)
this
.
strategicObject
(
res
.
response
.
login
,
res
.
response
)
},
},
// 截取url中的token
// 截取url中的token
...
...
pages/getWxCode/InitInfo.vue
浏览文件 @
6115ae74
...
@@ -18,7 +18,7 @@ export default {
...
@@ -18,7 +18,7 @@ export default {
// let testurl = 'http://testdemo.frp.mdxxkj.com/#/ValidateOpenId'
// let testurl = 'http://testdemo.frp.mdxxkj.com/#/ValidateOpenId'
let
url
=
`
${
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
host
}
/museumAppointment/qth5/#/pages/getWechatCallbackCode/index`
let
url
=
`
${
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
host
}
/museumAppointment/qth5/#/pages/getWechatCallbackCode/index`
api
.
GetAppid
().
then
((
resp
)
=>
{
api
.
GetAppid
().
then
((
resp
)
=>
{
console
.
log
(
"
🚀🚀我请求Appid成功了🚀,
"
,
resp
)
//
console.log("🚀🚀我请求Appid成功了🚀,",resp)
let
redirectPath
=
encodeURIComponent
(
url
)
let
redirectPath
=
encodeURIComponent
(
url
)
let
path
=
let
path
=
"
https://open.weixin.qq.com/connect/oauth2/authorize?
"
+
"
https://open.weixin.qq.com/connect/oauth2/authorize?
"
+
...
@@ -31,8 +31,8 @@ export default {
...
@@ -31,8 +31,8 @@ export default {
"
&state=
"
+
"
&state=
"
+
1
+
1
+
"
#wechat_redirect
"
;
"
#wechat_redirect
"
;
console
.
log
(
"
🚀拼接完成的url🚀🚀,完成微信链接
"
,
path
)
//
console.log("🚀拼接完成的url🚀🚀,完成微信链接",path)
console
.
log
(
"
🚀拼接完成的url🚀🚀,微信给code 回调系统链接
"
,
redirectPath
)
//
console.log("🚀拼接完成的url🚀🚀,微信给code 回调系统链接",redirectPath)
this
.
path
=
path
this
.
path
=
path
// let newPath = encodeURI(path)
// let newPath = encodeURI(path)
location
.
replace
(
path
);
location
.
replace
(
path
);
...
...
pages/index/index.vue
浏览文件 @
6115ae74
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"header"
>
<view
class=
"header"
>
<swiper
style=
"width: 100%;height: 110%;"
>
<swiper
style=
"width: 100%;height: 110%;"
>
<!--
<swiper-item
v-for=
"(item,index) in imageList"
:key=
"index"
>
-->
<swiper-item
v-for=
"(item,index) in imageList"
:key=
"index"
>
<!--
<image
:src=
"item.path"
style=
"width: 100%;height: 100%;"
></image>
-->
<image
:src=
"item.path"
style=
"width: 100%;height: 100%;"
></image>
<!--
</swiper-item>
-->
<swiper-item
>
<image
src=
"../../static/images/home.png"
style=
"width: 100%;height: 100%;"
></image>
</swiper-item>
</swiper-item>
<!--
<swiper-item
>
-->
<!--
<image
src=
"../../static/images/home.png"
style=
"width: 100%;height: 100%;"
></image>
-->
<!--
</swiper-item>
-->
</swiper>
</swiper>
<!--
<image
src=
"../../static/images/logo.png"
style=
" width: 50vw;height: 4.3vh; position: absolute;top: 3vh;left: 3vw;"
></image>
-->
<!--
<image
src=
"../../static/images/logo.png"
style=
" width: 50vw;height: 4.3vh; position: absolute;top: 3vh;left: 3vw;"
></image>
-->
<image
src=
"../../static/images/logo.png"
style=
" max-width: 197px;max-height: 36px; width: 50vw;height: 4.3vh; position: absolute;top: 3vh;left: 10px;"
></image>
<image
src=
"../../static/images/logo.png"
style=
" max-width: 197px;max-height: 36px; width: 50vw;height: 4.3vh; position: absolute;top: 3vh;left: 10px;"
></image>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录