Commit 5aea844f authored by Z's avatar Z

Z: Dot: 注释掉相关开发调试用alert与界面元素。

parent 6ef23f42
...@@ -82,7 +82,7 @@ Vue.prototype.getAgentAuth = function () { ...@@ -82,7 +82,7 @@ Vue.prototype.getAgentAuth = function () {
let config = res.data let config = res.data
wx.config({ wx.config({
beta: true, beta: true,
debug: true, //调试的时候可以开启 debug: false, //调试的时候可以开启
appId: config.jsApiSignature.appId, // 必填,公众号的唯一标识 appId: config.jsApiSignature.appId, // 必填,公众号的唯一标识
timestamp: config.jsApiSignature.timestamp, // 必填,生成签名的时间戳 timestamp: config.jsApiSignature.timestamp, // 必填,生成签名的时间戳
nonceStr: config.jsApiSignature.nonceStr, // 必填,生成签名的随机串 nonceStr: config.jsApiSignature.nonceStr, // 必填,生成签名的随机串
...@@ -187,7 +187,7 @@ function configWx(to) { ...@@ -187,7 +187,7 @@ function configWx(to) {
let config = res.data let config = res.data
wx.config({ wx.config({
beta: true, beta: true,
debug: true, //调试的时候可以开启 debug: false, //调试的时候可以开启
appId: config.jsApiSignature.appId, // 必填,公众号的唯一标识 appId: config.jsApiSignature.appId, // 必填,公众号的唯一标识
timestamp: config.jsApiSignature.timestamp, // 必填,生成签名的时间戳 timestamp: config.jsApiSignature.timestamp, // 必填,生成签名的时间戳
nonceStr: config.jsApiSignature.nonceStr, // 必填,生成签名的随机串 nonceStr: config.jsApiSignature.nonceStr, // 必填,生成签名的随机串
......
...@@ -117,7 +117,7 @@ service.interceptors.request.use( ...@@ -117,7 +117,7 @@ service.interceptors.request.use(
return req return req
}, },
error => { error => {
alert(`--->PostToEA: bRequestEa.js: err = ${JSON.stringify(error)}`) // alert(`--->PostToEA: bRequestEa.js: err = ${JSON.stringify(error)}`)
Promise.reject(error) Promise.reject(error)
} }
) )
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="main"> <div class="main">
<!-- <div class="tops"></div> --> <!-- <div class="tops"></div> -->
<div class="lists"> <div class="lists">
<div v-if="this.$route.query.code !== undefined" style="font-size: 14px;">Code: {{this.$route.query.code}}</div> <!-- <div v-if="this.$route.query.code !== undefined" style="font-size: 14px;">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>
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
this.zcache.nowUrl = JSON.stringify(this.$route.query); this.zcache.nowUrl = JSON.stringify(this.$route.query);
this.zcache.code = String(this.$route.query.code); this.zcache.code = String(this.$route.query.code);
alert(`--->nowUrl and code =${this.zcache.nowUrl}`) // alert(`--->nowUrl and code =${this.zcache.nowUrl}`)
zlog("%c--->zTestGetNowUrlInfo: ", "color: orange;", this.zcache.nowUrl); zlog("%c--->zTestGetNowUrlInfo: ", "color: orange;", this.zcache.nowUrl);
}, },
......
...@@ -24,8 +24,13 @@ export default { ...@@ -24,8 +24,13 @@ export default {
}, },
methods: { methods: {
cleanUrl() { cleanUrl() {
// alert(`!-->cleanUrl: IN.`)
// alert(`!-->cleanUrl: url =${JSON.stringify(this.$route)}`)
// alert(`!-->cleanUrl: url =${JSON.stringify(this.$route.params)}`)
const url = this.$route; const url = this.$route;
this.nowUrl = url.split("&")[0].slice(41); this.nowUrl = url.split("&")[0].slice(41);
this.activeId = url.split("&")[1].split("=")[1]; this.activeId = url.split("&")[1].split("=")[1];
this.voucherId = url.split("&")[2].split("=")[1]; this.voucherId = url.split("&")[2].split("=")[1];
...@@ -44,7 +49,7 @@ export default { ...@@ -44,7 +49,7 @@ export default {
createCode() { createCode() {
let _this = this; let _this = this;
let pageUrl = `/wxx/cgi-bin/wxaapp/createwxaqrcode?access_token=${_this.accessToken}`; let pageUrl = `/wxx/cgi-bin/wxaapp/createwxaqrcode?access_token=${_this.accessToken}`;
alert(`!-->ajax: data: path: ${_this.nowUrl}&detailid=${_this.voucherId}&actionid=${_this.activeId}&unionid=${_this.unionId}`) // alert(`!-->createCode: data: path: ${_this.nowUrl}&detailid=${_this.voucherId}&actionid=${_this.activeId}&unionid=${_this.unionId}`)
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: pageUrl, url: pageUrl,
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="main"> <div class="main">
<!-- <div class="tops"></div> --> <!-- <div class="tops"></div> -->
<div class="contents"> <div class="contents">
<div style="font-size: 12px;">userId={{zcache.userId}}</div> <!-- <div style="font-size: 12px;">userId={{zcache.userId}}</div> -->
<div style="font-size: 12px;">storeId={{zcache.userInfo}}</div> <!-- <div style="font-size: 12px;">storeId={{zcache.userInfo}}</div> -->
<div class="zListActive"> <div class="zListActive">
<div class="inputs"> <div class="inputs">
<!-- <div class="button" @click="zTest">Redirect</div> <!-- <div class="button" @click="zTest">Redirect</div>
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
}, },
zpick(inMsgType, inUrl) { zpick(inMsgType, inUrl) {
alert(`--->discount.vue: zpick: IN.`); // alert(`--->discount.vue: zpick: IN.`);
switch (inMsgType) { switch (inMsgType) {
case "text": case "text":
...@@ -267,11 +267,11 @@ export default { ...@@ -267,11 +267,11 @@ export default {
}, },
function(res) { function(res) {
if (res.err_msg == "sendChatMessage:ok") { if (res.err_msg == "sendChatMessage:ok") {
alert("--->discount.vue: zpick: text 分享成功!"); // alert("--->discount.vue: zpick: text 分享成功!");
} else if (res.err_msg != "sendChatMessage:ok") { } else if (res.err_msg != "sendChatMessage:ok") {
alert( // alert(
`--->discount.vue: zpick: text 分享失败: res =${res.err_msg}` // `--->discount.vue: zpick: text 分享失败: res =${res.err_msg}`
); // );
} }
} }
); );
...@@ -292,12 +292,12 @@ export default { ...@@ -292,12 +292,12 @@ export default {
}, },
function(res) { function(res) {
if (res.err_msg == "sendChatMessage:ok") { if (res.err_msg == "sendChatMessage:ok") {
alert("--->discount.vue: zpick: h5 分享成功!"); // alert("--->discount.vue: zpick: h5 分享成功!");
} else if (res.err_msg != "sendChatMessage:ok") { } else if (res.err_msg != "sendChatMessage:ok") {
alert(`--->discount.vue: zpick: h5 分享失败: res =${res}`); // alert(`--->discount.vue: zpick: h5 分享失败: res =${res}`);
alert( // alert(
`--->discount.vue: zpick: h5 分享失败: res =${res.err_msg}` // `--->discount.vue: zpick: h5 分享失败: res =${res.err_msg}`
); // );
} }
} }
); );
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
methods: { methods: {
redirect() { redirect() {
// wx.miniProgram.navigateTo({url: '/pages/coupon/detail/detailid=100000338&actionid=97'}) // wx.miniProgram.navigateTo({url: '/pages/coupon/detail/detailid=100000338&actionid=97'})
alert('--->voucherInfo: redirect: IN.') // alert('--->voucherInfo: redirect: IN.')
window.location.href = 'https://mp.weixin.qq.com/a/~PLEzZIqxoasdl5QDu_HZEw~~'; window.location.href = 'https://mp.weixin.qq.com/a/~PLEzZIqxoasdl5QDu_HZEw~~';
......
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