Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
581a9b8a
Commit
581a9b8a
authored
5 years ago
by
xulili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员注册
parent
df550118
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
409 additions
and
392 deletions
+409
-392
4.png
ybf_wx/public/mainSale/4.png
+0
-0
index.html
ybf_wx/public/register/index.html
+78
-0
index.js
ybf_wx/src/router/index.js
+5
-0
home.vue
ybf_wx/src/views/home.vue
+222
-392
index.vue
ybf_wx/src/views/sideNav/register/index.vue
+104
-0
No files found.
ybf_wx/public/mainSale/4.png
0 → 100644
View file @
581a9b8a
14.4 KB
This diff is collapsed.
Click to expand it.
ybf_wx/public/register/index.html
0 → 100644
View file @
581a9b8a
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
会员拉新
</title>
<script
src=
"../js/jquery-3.4.1.min.js"
></script>
<style>
html
,
body
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
padding
:
0
;
font-size
:
16px
;
color
:
#ffffff
;
}
.register_container
{
height
:
100%
;
background-color
:
rgba
(
15
,
106
,
184
,
0.99
);
margin
:
0
;
padding
:
2.5rem
2rem
;
box-sizing
:
border-box
;
text-align
:
center
;
}
.register_titles
.title
{
font-size
:
3rem
;
line-height
:
5rem
;
}
.register_qrcode
#image
{
display
:
inline-block
;
width
:
60%
;
height
:
auto
;
margin
:
3rem
0
;
}
.register_qrcode
.qrcodeTip
{
font-size
:
2rem
;
}
</style>
</head>
<body>
<div
class=
"register_container"
>
<div
class=
"register_titles"
>
<div
class=
"title"
>
扫码注册成为会员
</div>
</div>
<div
class=
"register_qrcode"
>
<img
class=
"qrcode"
id=
"image"
src=
""
alt
/>
<div
class=
"qrcodeTip"
>
长按识别二维码
</div>
</div>
</div>
<script>
$
(
function
()
{
showQRInfo
()
});
const
showQRInfo
=
()
=>
{
// let pageUri = `${nowUrl}&detailid=${voucherId}&actionid=${activeId}&unionid=${unionId}`;
let
storecode
=
"181"
let
pageUri
=
`pages/user/register/register?storeCode=
${
storecode
}
`
;
let
pageUrl
=
`http://139.155.48.151:8085/workWx/auth/oauth2/wxMiniQrCode?pageUri=
${
pageUri
}
`
;
$
.
ajax
({
type
:
"POST"
,
url
:
pageUrl
,
data
:
{},
success
:
function
(
res
)
{
$
(
'#image'
).
attr
(
'src'
,
res
.
data
)
},
error
:
function
(
data
)
{
alert
(
`--->qrCode: ajax: err.`
)
alert
(
`--->qrCode: ajax: err: err =
${
JSON
.
stringify
(
err
)}
`
)
alert
(
'error'
+
JSON
.
stringify
(
data
))
console
.
log
(
data
);
}
});
}
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
ybf_wx/src/router/index.js
View file @
581a9b8a
...
...
@@ -42,6 +42,11 @@ const routes = [
name
:
'Discount'
,
component
:
()
=>
import
(
'@/views/sideNav/discount/index'
)
},
{
path
:
'/register'
,
name
:
'register'
,
component
:
()
=>
import
(
'@/views/sideNav/register/index'
)
},
{
path
:
'/mainSale'
,
name
:
'MainSale'
,
...
...
This diff is collapsed.
Click to expand it.
ybf_wx/src/views/home.vue
View file @
581a9b8a
This diff is collapsed.
Click to expand it.
ybf_wx/src/views/sideNav/register/index.vue
0 → 100644
View file @
581a9b8a
<
template
>
<div
class=
"register_container"
>
<div
v-for=
"(item, index) of list"
:key=
"index"
@
click=
"sendMessage"
>
<div
class=
"list"
>
<div>
<img
class=
"list-logo"
:src=
"item.logoUrl"
alt
/>
</div>
<div
class=
"list-infos"
>
<div
class=
"list-info-title"
>
{{
item
.
name
}}
</div>
<div
class=
"list-info-dsc"
>
{{
item
.
dsc
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'register'
,
data
()
{
return
{
list
:[
{
name
:
"会员拉新"
,
dsc
:
"推送给顾客成为欧亚会员,完成拉新任务"
,
logoUrl
:
"/mainSale/4.png"
}
]
}
},
mounted
(){
},
methods
:{
sendMessage
(){
wx
.
invoke
(
"sendChatMessage"
,
{
msgtype
:
"text"
,
//消息类型,必填
news
:
{
link
:
`http://qywx2.100smartdata.com/register`
,
//H5消息页面url 必填
title
:
"会员拉新"
,
//H5消息标题
desc
:
'注册成为欧亚会员'
,
//H5消息摘要
imgUrl
:
""
//H5消息封面图片URL
}
},
function
(
res
)
{
if
(
res
.
err_msg
==
"sendChatMessage:ok"
)
{
alert
(
"--->register.vue: zpick: h5 分享成功!"
);
}
else
if
(
res
.
err_msg
!=
"sendChatMessage:ok"
)
{
alert
(
`--->register.vue: zpick: h5 分享失败.`
);
}
}
);
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.register_container
{
padding
:
4px
12px
40px
12px
;
.list
{
height
:
140px
;
box-shadow
:
0px
2px
4px
0px
rgb
(
187
,
187
,
187
);
margin
:
6px
0px
;
padding
:
0px
12px
;
border-radius
:
6px
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
flex-start
;
align-items
:
center
;
.list-logo
{
width
:
100px
;
height
:
100px
;
border-radius
:
6px
;
}
.list-infos
{
height
:
100px
;
padding-left
:
12px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-start
;
align-items
:
flex-start
;
}
.list-info-title
{
width
:
100%
;
height
:
18px
;
font-size
:
16px
;
font-weight
:
bold
;
line-height
:
18px
;
}
.list-info-dsc
{
margin-top
:
6px
;
width
:
100%
;
height
:
16px
;
font-size
:
12px
;
font-weight
:
normal
;
line-height
:
18px
;
}
}
}
</
style
>
This diff is collapsed.
Click to expand it.
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