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
6bb64987
Commit
6bb64987
authored
Mar 17, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: qrCode 页面地址拼接改正。开启首页created时候必须进入企业微信环境。
parent
9f2b12ed
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
home.vue
ybf_wx/src/views/home.vue
+2
-2
index.vue
ybf_wx/src/views/qrCode/index.vue
+8
-6
index.vue
ybf_wx/src/views/sideNav/discount/index.vue
+3
-2
No files found.
ybf_wx/src/views/home.vue
View file @
6bb64987
...
...
@@ -107,10 +107,10 @@ export default {
);
if
(
this
.
$route
.
query
.
code
===
undefined
)
{
//
this.zTestPreAuthCode();
this
.
zTestPreAuthCode
();
}
else
{
this
.
zTestGetNowUrlInfo
()
//
this.zTestGetUserInfoByOldToken()
this
.
zTestGetUserInfoByOldToken
()
}
// if(this.zcache.code === "") {
...
...
ybf_wx/src/views/qrCode/index.vue
View file @
6bb64987
...
...
@@ -25,9 +25,10 @@ export default {
cleanUrl
()
{
const
url
=
this
.
$route
;
this
.
activeId
=
url
.
split
(
"&"
)[
1
];
this
.
voucherId
=
url
.
split
(
"&"
)[
2
];
this
.
unionId
=
url
.
split
(
"&"
)[
3
];
this
.
nowUrl
=
url
.
split
(
"&"
)[
0
].
slice
(
41
);
this
.
activeId
=
url
.
split
(
"&"
)[
1
].
split
(
"="
)[
1
];
this
.
voucherId
=
url
.
split
(
"&"
)[
2
].
split
(
"="
)[
1
];
this
.
unionId
=
url
.
split
(
"&"
)[
3
].
split
(
"="
)[
1
];
},
getAcessToken
()
{
let
_this
=
this
;
...
...
@@ -40,12 +41,13 @@ export default {
});
},
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
({
type
:
"POST"
,
url
:
pageUrl
,
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: "pages/signIn/signIn" }),
data
:
JSON
.
stringify
({
path
:
`
${
_this
.
nowUrl
}
&detailid=
${
_this
.
voucherId
}
&actionid=
${
_this
.
activeId
}
&unionid=
${
_
this
.
unionId
}
`
}),
xhrFields
:
{
responseType
:
"arraybuffer"
},
success
:
function
(
res
)
{
let
imgUrl
=
...
...
ybf_wx/src/views/sideNav/discount/index.vue
View file @
6bb64987
...
...
@@ -61,7 +61,8 @@
<div
class=
"zListActive"
>
<div
class=
"lists"
>
<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
v-if=
"String(zlist.voucherUrl).slice(-2) === '97'"
@
click=
"zpick('text', String(zlist.voucherUrl))"
...
...
@@ -282,7 +283,7 @@ export default {
msgtype
:
"text"
,
//消息类型,必填
news
:
{
// link: "http://qywx2.100smartdata.com/voucherInfo", //H5消息页面url 必填
link
:
`http://qywx2.100smartdata.com/qrCode?Url=
${
in
ur
}
&activeId=
${
this
.
zcache
.
now
.
activeId
}
&voucherId=
${
this
.
zcache
.
now
.
voucherId
}
&unionId=
${
this
.
zcache
.
unionId
}
`
,
//H5消息页面url 必填
link
:
`http://qywx2.100smartdata.com/qrCode?Url=
${
in
Url
}
&activeId=
${
this
.
zcache
.
now
.
activeId
}
&voucherId=
${
this
.
zcache
.
now
.
voucherId
}
&unionId=
${
this
.
zcache
.
unionId
}
`
,
//H5消息页面url 必填
title
:
"Z: h5消息标题"
,
//H5消息标题
desc
:
inUrl
,
//H5消息摘要
// imgUrl: "http://qywx2.100smartdata.com/hi.jpg" //H5消息封面图片URL
...
...
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