Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xulili
ybf
Commits
5aea844f
Commit
5aea844f
authored
Mar 17, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: 注释掉相关开发调试用alert与界面元素。
parent
6ef23f42
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
19 deletions
+24
-19
aCommon.js
ybf_wx/src/utils/aCommon.js
+2
-2
bRequestEa.js
ybf_wx/src/utils/bRequestEa.js
+1
-1
home.vue
ybf_wx/src/views/home.vue
+2
-2
index.vue
ybf_wx/src/views/qrCode/index.vue
+6
-1
index.vue
ybf_wx/src/views/sideNav/discount/index.vue
+12
-12
index.vue
ybf_wx/src/views/voucherInfo/index.vue
+1
-1
No files found.
ybf_wx/src/utils/aCommon.js
View file @
5aea844f
...
...
@@ -82,7 +82,7 @@ Vue.prototype.getAgentAuth = function () {
let
config
=
res
.
data
wx
.
config
({
beta
:
true
,
debug
:
tru
e
,
//调试的时候可以开启
debug
:
fals
e
,
//调试的时候可以开启
appId
:
config
.
jsApiSignature
.
appId
,
// 必填,公众号的唯一标识
timestamp
:
config
.
jsApiSignature
.
timestamp
,
// 必填,生成签名的时间戳
nonceStr
:
config
.
jsApiSignature
.
nonceStr
,
// 必填,生成签名的随机串
...
...
@@ -187,7 +187,7 @@ function configWx(to) {
let
config
=
res
.
data
wx
.
config
({
beta
:
true
,
debug
:
tru
e
,
//调试的时候可以开启
debug
:
fals
e
,
//调试的时候可以开启
appId
:
config
.
jsApiSignature
.
appId
,
// 必填,公众号的唯一标识
timestamp
:
config
.
jsApiSignature
.
timestamp
,
// 必填,生成签名的时间戳
nonceStr
:
config
.
jsApiSignature
.
nonceStr
,
// 必填,生成签名的随机串
...
...
ybf_wx/src/utils/bRequestEa.js
View file @
5aea844f
...
...
@@ -117,7 +117,7 @@ service.interceptors.request.use(
return
req
},
error
=>
{
alert
(
`--->PostToEA: bRequestEa.js: err =
${
JSON
.
stringify
(
error
)}
`
)
//
alert(`--->PostToEA: bRequestEa.js: err = ${JSON.stringify(error)}`)
Promise
.
reject
(
error
)
}
)
...
...
ybf_wx/src/views/home.vue
View file @
5aea844f
...
...
@@ -6,7 +6,7 @@
<div
class=
"main"
>
<!--
<div
class=
"tops"
></div>
-->
<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
class=
"list"
@
click=
"listClick(item.redirect)"
>
<div>
...
...
@@ -124,7 +124,7 @@ export default {
this
.
zcache
.
nowUrl
=
JSON
.
stringify
(
this
.
$route
.
query
);
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
);
},
...
...
ybf_wx/src/views/qrCode/index.vue
View file @
5aea844f
...
...
@@ -24,8 +24,13 @@ export default {
},
methods
:
{
cleanUrl
()
{
// alert(`!-->cleanUrl: IN.`)
// alert(`!-->cleanUrl: url =${JSON.stringify(this.$route)}`)
// alert(`!-->cleanUrl: url =${JSON.stringify(this.$route.params)}`)
const
url
=
this
.
$route
;
this
.
nowUrl
=
url
.
split
(
"&"
)[
0
].
slice
(
41
);
this
.
activeId
=
url
.
split
(
"&"
)[
1
].
split
(
"="
)[
1
];
this
.
voucherId
=
url
.
split
(
"&"
)[
2
].
split
(
"="
)[
1
];
...
...
@@ -44,7 +49,7 @@ export default {
createCode
()
{
let
_this
=
this
;
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
({
type
:
"POST"
,
url
:
pageUrl
,
...
...
ybf_wx/src/views/sideNav/discount/index.vue
View file @
5aea844f
...
...
@@ -2,8 +2,8 @@
<div
class=
"main"
>
<!--
<div
class=
"tops"
></div>
-->
<div
class=
"contents"
>
<
div
style=
"font-size: 12px;"
>
userId=
{{
zcache
.
userId
}}
</div
>
<
div
style=
"font-size: 12px;"
>
storeId=
{{
zcache
.
userInfo
}}
</div
>
<
!--
<div
style=
"font-size: 12px;"
>
userId=
{{
zcache
.
userId
}}
</div>
--
>
<
!--
<div
style=
"font-size: 12px;"
>
storeId=
{{
zcache
.
userInfo
}}
</div>
--
>
<div
class=
"zListActive"
>
<div
class=
"inputs"
>
<!--
<div
class=
"button"
@
click=
"zTest"
>
Redirect
</div>
...
...
@@ -253,7 +253,7 @@ export default {
},
zpick
(
inMsgType
,
inUrl
)
{
alert
(
`--->discount.vue: zpick: IN.`
);
//
alert(`--->discount.vue: zpick: IN.`);
switch
(
inMsgType
)
{
case
"text"
:
...
...
@@ -267,11 +267,11 @@ export default {
},
function
(
res
)
{
if
(
res
.
err_msg
==
"sendChatMessage:ok"
)
{
alert
(
"--->discount.vue: zpick: text 分享成功!"
);
//
alert("--->discount.vue: zpick: text 分享成功!");
}
else
if
(
res
.
err_msg
!=
"sendChatMessage:ok"
)
{
alert
(
`--->discount.vue: zpick: text 分享失败: res =
${
res
.
err_msg
}
`
);
//
alert(
//
`--->discount.vue: zpick: text 分享失败: res =${res.err_msg}`
//
);
}
}
);
...
...
@@ -292,12 +292,12 @@ export default {
},
function
(
res
)
{
if
(
res
.
err_msg
==
"sendChatMessage:ok"
)
{
alert
(
"--->discount.vue: zpick: h5 分享成功!"
);
//
alert("--->discount.vue: zpick: h5 分享成功!");
}
else
if
(
res
.
err_msg
!=
"sendChatMessage:ok"
)
{
alert
(
`--->discount.vue: zpick: h5 分享失败: res =
${
res
}
`
);
alert
(
`--->discount.vue: zpick: h5 分享失败: res =
${
res
.
err_msg
}
`
);
//
alert(`--->discount.vue: zpick: h5 分享失败: res =${res}`);
//
alert(
//
`--->discount.vue: zpick: h5 分享失败: res =${res.err_msg}`
//
);
}
}
);
...
...
ybf_wx/src/views/voucherInfo/index.vue
View file @
5aea844f
...
...
@@ -25,7 +25,7 @@ export default {
methods
:
{
redirect
()
{
// 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~~'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment