Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
2226e0f5
Commit
2226e0f5
authored
Jan 28, 2019
by
chenchuanwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
growcard
parent
fa331d91
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
141 additions
and
0 deletions
+141
-0
Index.php
application/controllers/Index.php
+23
-0
getOpenHtml.html
application/views/index/getOpenHtml.html
+56
-0
getsendhtml.phtml
application/views/index/getsendhtml.phtml
+62
-0
No files found.
application/controllers/Index.php
View file @
2226e0f5
...
...
@@ -114,6 +114,29 @@ class IndexController extends \Our\Controller_Abstract {
$params
=
\Our\Common
::
paramToJson
(
$params
);
$this
->
_view
->
assign
(
"params"
,
$params
);
}
public
function
getSendHtmlAction
(){
$req
=
$this
->
getRequest
()
->
getQuery
();
if
(
empty
(
$req
[
'params'
]
)){
echo
'error'
;
exit
;
}
$params
=
base64_decode
(
$req
[
'params'
]);
$params
=
\Our\Common
::
paramToJson
(
$params
);
$shareService
=
\Business\User\ShareServiceModel
::
getInstance
();
$params
[
'id'
]
=
$params
[
'storeId'
];
$params
[
'qrCode'
]
=
$shareService
->
getQrUrl
(
$params
);
$this
->
_view
->
assign
(
"params"
,
$params
);
}
public
function
getOpenHtmlAction
(){
$req
=
$this
->
getRequest
()
->
getQuery
();
if
(
empty
(
$req
[
'params'
]
)){
echo
'error'
;
exit
;
}
$params
=
base64_decode
(
$req
[
'params'
]);
$params
=
\Our\Common
::
paramToJson
(
$params
);
$this
->
_view
->
assign
(
"params"
,
$params
);
}
public
function
testPushAction
(){
$clientPush
=
\JPush\ClientPush
::
getInstance
();
...
...
application/views/index/getOpenHtml.html
0 → 100644
View file @
2226e0f5
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
<title>
我的身边店 - 您身边的品牌 服务品牌的你
</title>
<meta
name=
"description"
content=
"【我的身边店】互联网平台助力实体店升级,为实体店逐渐优化成“实体+智能”于一体的“数字店铺”提供技术支持,助力服务创新,适应用户购买方式的改变,助力实体,让商业回归本源!"
>
<meta
name=
"keywords"
content=
"我的身边店,我的,身边,店,身边店,的身边店,品牌,诚信,配送,近距离,线下支付,到店自提,货到付款,区域,独家,周边,坐等,在身边,可信赖,易追溯,异业,导流,推广,代理商,配送员,推广者,商家提供各类服饰,美容,家居,数码,销售家电,数码通讯,电脑,家居百货,服装服饰,母婴,图书,食品"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
type=
"image/x-icon"
rel=
"icon"
href=
"//static.shenbd.com/lib/img/favicon-hd.ico"
/>
<link
type=
"image/x-icon"
rel=
"shortcut icon"
href=
"//static.shenbd.com/lib/img/favicon.ico"
/>
<style>
body
,
blockquote
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
pre
,
dd
,
form
,
figure
{
margin
:
0
}
legend
{
padding
:
0
}
menu
,
ol
,
ul
,
dl
,
fieldset
,
input
,
textarea
{
margin
:
0
;
padding
:
0
}
audio
,
video
,
canvas
{
*
display
:
inline
;
*
zoom
:
1
}
:link
,
:visited
{
text-decoration
:
none
}
[
hidden
],
template
{
display
:
none
}
a
{
text-decoration
:
none
;
background-color
:
transparent
;
-webkit-text-decoration-skip
:
objects
}
img
{
border-style
:
none
;
vertical-align
:
middle
}
.wrap
{
max-width
:
1772px
;
margin
:
0
auto
;
}
body
{
background
:
#fff
;
font-size
:
14px
;
line-height
:
1.5
;
font-family
:
"Microsoft Yahei"
;}
.mod-card
{
height
:
1181px
;
position
:
relative
;
background
:
url("//static.shenbd.com/www/index/2018/img/card/bg-card2.jpg")
no-repeat
;}
.mod-card
.info
{
position
:
absolute
;
left
:
126px
;
top
:
118px
;}
.mod-card
.name
{
color
:
#fff
;
font-size
:
72px
;
font-weight
:
bold
}
.mod-card
.img-box
{
margin-top
:
85px
;}
.mod-card
.code
{
display
:
inline-block
;
vertical-align
:
middle
;
padding
:
25px
;
background
:
rgba
(
229
,
106
,
39
,
.5
);}
.mod-card
.t2
{
display
:
inline-block
;
vertical-align
:
middle
;
margin-left
:
55px
;}
.mod-card
.t2
img
{
display
:
block
;}
.mod-card
.logo-l
{
margin-left
:
25px
;
margin-bottom
:
40px
;}
.mod-card
.logo
{
position
:
absolute
;
left
:
75px
;
bottom
:
50px
;}
.mod-card
.slogan
{
position
:
absolute
;
right
:
85px
;
bottom
:
65px
;}
</style>
</head>
<body>
<div
class=
"wrap"
>
<div
class=
"mod-card"
>
<div
class=
"info"
>
<div
class=
"img-box"
>
<p
class=
"code"
>
<img
src=
"<?php echo $params['qrcodeUrl']; ?>"
alt=
"我的身边店"
width=
"600"
>
</p>
<p
class=
"t2"
>
<img
src=
"//static.shenbd.com/www/index/2018/img/card/logo.png"
alt=
"我的身边店"
class=
"logo-l"
>
<img
src=
"//static.shenbd.com/www/index/2018/img/card/table-t2.png"
alt=
"我要开店"
>
</p>
</div>
</div>
<div
class=
"logo"
><img
src=
"//static.shenbd.com/www/index/2018/img/card/logo-s.png"
alt=
"我的身边店"
></div>
<div
class=
"slogan"
><img
src=
"//static.shenbd.com/www/index/2018/img/card/slogan.png"
alt=
"您身边的品牌,服务品牌的你!"
></div>
</div>
</div>
</body>
</html>
\ No newline at end of file
application/views/index/getsendhtml.phtml
0 → 100644
View file @
2226e0f5
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
<title>
我的身边店 - 您身边的品牌 服务品牌的你
</title>
<meta
name=
"description"
content=
"【我的身边店】互联网平台助力实体店升级,为实体店逐渐优化成“实体+智能”于一体的“数字店铺”提供技术支持,助力服务创新,适应用户购买方式的改变,助力实体,让商业回归本源!"
>
<meta
name=
"keywords"
content=
"我的身边店,我的,身边,店,身边店,的身边店,品牌,诚信,配送,近距离,线下支付,到店自提,货到付款,区域,独家,周边,坐等,在身边,可信赖,易追溯,异业,导流,推广,代理商,配送员,推广者,商家提供各类服饰,美容,家居,数码,销售家电,数码通讯,电脑,家居百货,服装服饰,母婴,图书,食品"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
type=
"image/x-icon"
rel=
"icon"
href=
"//static.shenbd.com/lib/img/favicon-hd.ico"
/>
<link
type=
"image/x-icon"
rel=
"shortcut icon"
href=
"//static.shenbd.com/lib/img/favicon.ico"
/>
<style>
body
,
blockquote
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
pre
,
dd
,
form
,
figure
{
margin
:
0
}
legend
{
padding
:
0
}
menu
,
ol
,
ul
,
dl
,
fieldset
,
input
,
textarea
{
margin
:
0
;
padding
:
0
}
audio
,
video
,
canvas
{
*
display
:
inline
;
*
zoom
:
1
}
:link
,
:visited
{
text-decoration
:
none
}
[
hidden
],
template
{
display
:
none
}
a
{
text-decoration
:
none
;
background-color
:
transparent
;
-webkit-text-decoration-skip
:
objects
}
img
{
border-style
:
none
;
vertical-align
:
middle
}
.wrap
{
max-width
:
1772px
;
margin
:
0
auto
;
}
body
{
background
:
#fff
;
font-size
:
14px
;
line-height
:
1.5
;
font-family
:
"Microsoft Yahei"
;}
.mod-card
{
height
:
1181px
;
position
:
relative
;
background
:
url("//static.shenbd.com/www/index/2018/img/card/bg-card2.jpg")
no-repeat
;}
.mod-card
.info
{
position
:
absolute
;
left
:
126px
;
top
:
118px
;
width
:
86%
;}
.mod-card
.name
{
color
:
#fff
;
font-size
:
72px
;
font-weight
:
bold
}
.mod-card
.img-box
{
margin-top
:
85px
;}
.mod-card
.code
{
display
:
inline-block
;
vertical-align
:
middle
;
padding
:
28px
;
background
:
rgba
(
229
,
106
,
39
,
.5
);}
.mod-card
.t1
{
display
:
inline-block
;
vertical-align
:
middle
;
margin-left
:
105px
;}
.mod-card
.logo
{
position
:
absolute
;
left
:
75px
;
bottom
:
50px
;}
.mod-card
.slogan
{
position
:
absolute
;
right
:
85px
;
bottom
:
65px
;}
</style>
</head>
<script
type=
"text/javascript"
src=
"/data/js/qrcode.min.js"
></script>
<body>
<div
class=
"wrap"
>
<div
class=
"mod-card"
>
<div
class=
"info"
>
<div
class=
"name"
>
一凡书城德化县分店
</div>
<div
class=
"img-box"
>
<p
class=
"code"
id=
"qrcodeImg"
>
<img
src=
"//static.shenbd.com/www/index/2018/img/card/img508x508.jpg"
alt=
"我的身边店"
width=
"508"
>
</p>
<p
class=
"t1"
><img
src=
"//static.shenbd.com/www/index/2018/img/card/table-t1.png"
alt=
"送货平台"
></p>
</div>
</div>
<div
class=
"logo"
><img
src=
"//static.shenbd.com/www/index/2018/img/card/logo-s.png"
alt=
"我的身边店"
></div>
<div
class=
"slogan"
><img
src=
"//static.shenbd.com/www/index/2018/img/card/slogan.png"
alt=
"您身边的品牌,服务品牌的你!"
></div>
</div>
</div>
</body>
<script>
new
QRCode
(
document
.
getElementById
(
'qrcodeImg'
),
{
text
:
'
<?php
echo
$params
[
'qrCode'
];
?>
'
,
width
:
508
,
height
:
508
});
</script>
</html>
\ No newline at end of file
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