Commit b3f456e4 authored by Z's avatar Z

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

parent 86510ef2
ovlGwUtiSAgGUQLs
\ No newline at end of file
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</head> </head>
<body> <body>
<div id="uri">Uri:</div> <!-- <div id="uri">Uri:</div> -->
<div class="qr-code"> <div class="qr-code">
<img id="image" src="" alt /> <img id="image" src="" alt />
</div> </div>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
let pageUri = `${nowUrl}`; let pageUri = `${nowUrl}`;
pageUri = pageUri.split('&').slice(0, 5).join('&') pageUri = pageUri.split('&').slice(0, 5).join('&')
let pageUrl = `http://139.155.48.151:8085/workWx/auth/oauth2/wxMiniQrCode?pageUri=${pageUri}`; 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}`) // 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 @@ ...@@ -6,10 +6,10 @@
<div class="main"> <div class="main">
<!-- <div class="tops"></div> --> <!-- <div class="tops"></div> -->
<div class="lists"> <div class="lists">
<div <!-- <div
v-if="this.$route.query.code !== undefined" v-if="this.$route.query.code !== undefined"
style="font-size: 14px;" 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 v-for="(item, index) of list.main" :key="index">
<div class="list" @click="listClick(item.redirect)"> <div class="list" @click="listClick(item.redirect)">
<div> <div>
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
// 测试-获取用户信息 // 测试-获取用户信息
zTestGetUserInfoByOldToken() { zTestGetUserInfoByOldToken() {
let postData = { let postData = {
code: this.zcache.code code: this.zcache.code,
}; };
let headerData = { let headerData = {
// agentId: "1000015", // agentId: "1000015",
...@@ -180,46 +180,45 @@ export default { ...@@ -180,46 +180,45 @@ export default {
// url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo", // url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo",
// headers: header, // headers: header,
alert( // alert(
`--->home.vue: zTestGetUserInfoByOldToken: postData =${JSON.stringify( // `--->home.vue: zTestGetUserInfoByOldToken: postData =${JSON.stringify(
postData // postData
)}` // )}`
); // );
alert( // alert(
`--->home.vue: zTestGetUserInfoByOldToken: headerData =${JSON.stringify( // `--->home.vue: zTestGetUserInfoByOldToken: headerData =${JSON.stringify(
headerData // headerData
)}` // )}`
); // );
this.zcache.userInfoResOld = "PostData:" + JSON.stringify(postData); this.zcache.userInfoResOld = "PostData:" + JSON.stringify(postData);
axios({ axios({
url: url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo?code=" + this.zcache.code,
"http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo?code=" +
this.zcache.code,
method: "post", method: "post",
headers: headerData, headers: headerData,
data: postData // data: postData
}) })
.then(res => { .then(res => {
alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: res.`); // alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: res.`);
alert( // alert(
`--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify( // `--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify(
res // res
)}` // )}`
); // );
// this.zcache.userInfoResNew = "RESOK:" + JSON.stringify(res.data); // this.zcache.userInfoResNew = "RESOK:" + JSON.stringify(res.data);
this.zcache.userInfoResNew = "RESOK:" + res.data.data.userId; this.zcache.userInfoResNew = "RESOK:" + res.data.data.userId;
sessionStorage.setItem("userId", String(res.data.data.userId)); sessionStorage.setItem("userId", String(res.data.data.userId));
this.zcache.userId = String(res.data.data.userId); this.zcache.userId = String(res.data.data.userId);
}) })
.catch(err => { .catch(err => {
alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: err.`); // alert(`--->home.vue: zTestGetUserInfoByOldToken: axios: err.`);
alert( // alert(
`--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify( // `--->home.vue: zTestGetUserInfoByOldToken: axios: res =${JSON.stringify(
err // err
)}` // )}`
); // );
this.zcache.userInfoResNew = "RESERR."; this.zcache.userInfoResNew = "RESERR.";
}); });
}, },
......
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
// link: "http://qywx2.100smartdata.com/voucherInfo", //H5消息页面url 必填 // 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=${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 必填 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消息摘要 desc: inUrl, //H5消息摘要
// imgUrl: "http://qywx2.100smartdata.com/hi.jpg" //H5消息封面图片URL // imgUrl: "http://qywx2.100smartdata.com/hi.jpg" //H5消息封面图片URL
imgUrl: inUrl //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