Commit 6bb64987 authored by Z's avatar Z

Z: Dot: qrCode 页面地址拼接改正。开启首页created时候必须进入企业微信环境。

parent 9f2b12ed
...@@ -107,10 +107,10 @@ export default { ...@@ -107,10 +107,10 @@ export default {
); );
if (this.$route.query.code === undefined) { if (this.$route.query.code === undefined) {
// this.zTestPreAuthCode(); this.zTestPreAuthCode();
} else { } else {
this.zTestGetNowUrlInfo() this.zTestGetNowUrlInfo()
// this.zTestGetUserInfoByOldToken() this.zTestGetUserInfoByOldToken()
} }
// if(this.zcache.code === "") { // if(this.zcache.code === "") {
......
...@@ -25,9 +25,10 @@ export default { ...@@ -25,9 +25,10 @@ export default {
cleanUrl() { cleanUrl() {
const url = this.$route; const url = this.$route;
this.activeId = url.split("&")[1]; this.nowUrl = url.split("&")[0].slice(41);
this.voucherId = url.split("&")[2]; this.activeId = url.split("&")[1].split("=")[1];
this.unionId = url.split("&")[3]; this.voucherId = url.split("&")[2].split("=")[1];
this.unionId = url.split("&")[3].split("=")[1];
}, },
getAcessToken() { getAcessToken() {
let _this = this; let _this = this;
...@@ -40,12 +41,13 @@ export default { ...@@ -40,12 +41,13 @@ export default {
}); });
}, },
createCode() { createCode() {
let pageUrl = `/wxx/cgi-bin/wxaapp/createwxaqrcode?access_token=${this.accessToken}`; let _this = this;
let pageUrl = `/wxx/cgi-bin/wxaapp/createwxaqrcode?access_token=${_this.accessToken}`;
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: pageUrl, url: pageUrl,
data: JSON.stringify({ path: "pages/signIn/signIn" }), // data: JSON.stringify({ path: "pages/signIn/signIn" }),
data: JSON.stringify({ path: `pages/coupon/detail/detailid=${this.voucherId}&actionid=${this.activeId}&unionid=${this.unionId}` }), data: JSON.stringify({ path: `${_this.nowUrl}&detailid=${_this.voucherId}&actionid=${_this.activeId}&unionid=${_this.unionId}` }),
xhrFields: { responseType: "arraybuffer" }, xhrFields: { responseType: "arraybuffer" },
success: function(res) { success: function(res) {
let imgUrl = let imgUrl =
......
...@@ -61,7 +61,8 @@ ...@@ -61,7 +61,8 @@
<div class="zListActive"> <div class="zListActive">
<div class="lists"> <div class="lists">
<div v-if="zlist.voucherUrl !== ''" class="voucherUrl"> <div v-if="zlist.voucherUrl !== ''" class="voucherUrl">
<div @click="zpick">小程序Url:{{ String(zlist.voucherUrl).slice(-2) }}</div> <!-- <div @click="zpick">小程序Url:{{ String(zlist.voucherUrl).slice(-2) }}</div> -->
<div>小程序Url:{{ String(zlist.voucherUrl).slice(-2) }}</div>
<div <div
v-if="String(zlist.voucherUrl).slice(-2) === '97'" v-if="String(zlist.voucherUrl).slice(-2) === '97'"
@click="zpick('text', String(zlist.voucherUrl))" @click="zpick('text', String(zlist.voucherUrl))"
...@@ -282,7 +283,7 @@ export default { ...@@ -282,7 +283,7 @@ export default {
msgtype: "text", //消息类型,必填 msgtype: "text", //消息类型,必填
news: { news: {
// link: "http://qywx2.100smartdata.com/voucherInfo", //H5消息页面url 必填 // link: "http://qywx2.100smartdata.com/voucherInfo", //H5消息页面url 必填
link: `http://qywx2.100smartdata.com/qrCode?Url=${inur}&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 必填
title: "Z: h5消息标题", //H5消息标题 title: "Z: h5消息标题", //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
......
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