提交 6115ae74 编写于 作者: 刘英杰's avatar 刘英杰

初版

上级 b112eccc
...@@ -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
......
...@@ -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);
......
...@@ -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>
<swiper-item > <!-- <swiper-item >-->
<image src="../../static/images/home.png" style="width: 100%;height: 100%;" ></image> <!-- <image src="../../static/images/home.png" style="width: 100%;height: 100%;" ></image>-->
</swiper-item> <!-- </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 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或