Commit b3f456e4 authored by Z's avatar Z

Z: Dot: 欧亚部署版本存档。部署到欧亚环境,能走通流程,发送优惠券并长按二维码进入欧亚小程序。

parent 86510ef2
ovlGwUtiSAgGUQLs
\ No newline at end of file
......@@ -20,7 +20,7 @@
</head>
<body>
<div id="uri">Uri:</div>
<!-- <div id="uri">Uri:</div> -->
<div class="qr-code">
<img id="image" src="" alt />
</div>
......@@ -51,7 +51,7 @@
let pageUri = `${nowUrl}`;
pageUri = pageUri.split('&').slice(0, 5).join('&')
let pageUrl = `http://139.155.48.151:8085/workWx/auth/oauth2/wxMiniQrCode?pageUri=${pageUri}`;
document.getElementById('uri').innerHTML = 'Uri=' + String(pageUri)
// document.getElementById('uri').innerHTML = 'Uri=' + String(pageUri)
// alert(`--->qrCode: Ajax: POST: pageUrl = ${pageUrl}`)
......
.main {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
overflow: unset;
}
.title {
}
\ No newline at end of file
......@@ -6,10 +6,10 @@
<div class="main">
<!-- <div class="tops"></div> -->
<div class="lists">
<div
<!-- <div
v-if="this.$route.query.code !== undefined"
style="font-size: 14px;"
>Code: {{this.$route.query.code}}</div>
>Code: {{this.$route.query.code}}</div> -->
<div v-for="(item, index) of list.main" :key="index">
<div class="list" @click="listClick(item.redirect)">
<div>
......@@ -168,7 +168,7 @@ export default {
// 测试-获取用户信息
zTestGetUserInfoByOldToken() {
let postData = {
code: this.zcache.code
code: this.zcache.code,
};
let headerData = {
// agentId: "1000015",
......@@ -180,46 +180,45 @@ export default {
// url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo",
// headers: header,
alert(
`--->home.vue: zTestGetUserInfoByOldToken: postData =${JSON.stringify(
postData
)}`
);
alert(
`--->home.vue: zTestGetUserInfoByOldToken: headerData =${JSON.stringify(
headerData
)}`
);
// alert(
// `--->home.vue: zTestGetUserInfoByOldToken: postData =${JSON.stringify(
// postData
// )}`
// );
// alert(
// `--->home.vue: zTestGetUserInfoByOldToken: headerData =${JSON.stringify(
// headerData
// )}`
// );
this.zcache.userInfoResOld = "PostData:" + JSON.stringify(postData);
axios({
url:
"http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo?code=" +
this.zcache.code,
url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo?code=" + this.zcache.code,
method: "post",
headers: headerData,
data: postData
// data: postData
})
.then(res => {
alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: res.`);
alert(
`--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify(
res
)}`
);
// alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: res.`);
// alert(
// `--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify(
// res
// )}`
// );
// this.zcache.userInfoResNew = "RESOK:" + JSON.stringify(res.data);
this.zcache.userInfoResNew = "RESOK:" + res.data.data.userId;
sessionStorage.setItem("userId", String(res.data.data.userId));
this.zcache.userId = String(res.data.data.userId);
})
.catch(err => {
alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: err.`);
alert(
`--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify(
err
)}`
);
// alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: err.`);
// alert(
// `--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify(
// err
// )}`
// );
this.zcache.userInfoResNew = "RESERR.";
});
},
......
......@@ -297,7 +297,7 @@ export default {
// link: "http://qywx2.100smartdata.com/voucherInfo", //H5消息页面url 必填
// link: `http://qywx2.100smartdata.com/qrCode?Url=${inUrl}&activeId=${this.zcache.now.activeId}&voucherId=${this.zcache.now.voucherId}&unionId=${this.zcache.unionId}`, //H5消息页面url 必填
link: `http://qywx2.100smartdata.com/qrCode?Url=${inUrl}&activeId=${this.zcache.now.activeId}&voucherId=${this.zcache.now.voucherId}&unionId=1234`, //H5消息页面url 必填
title: "Z: h5消息标题", //H5消息标题
title: "领取优惠券", //H5消息标题
desc: inUrl, //H5消息摘要
// imgUrl: "http://qywx2.100smartdata.com/hi.jpg" //H5消息封面图片URL
imgUrl: inUrl //H5消息封面图片URL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment