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
62d3c5f4
Commit
62d3c5f4
authored
Nov 24, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
share
parent
84dea2d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
1 deletion
+80
-1
Shopkeeper.php
application/modules/Client/controllers/Shopkeeper.php
+1
-0
saleShare.html
application/views/index/saleShare.html
+78
-0
url.ini
conf/url.ini
+1
-1
No files found.
application/modules/Client/controllers/Shopkeeper.php
View file @
62d3c5f4
...
@@ -338,6 +338,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -338,6 +338,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
public
function
modifyOrderAmountAction
(){
public
function
modifyOrderAmountAction
(){
$orderId
=
intval
(
$this
->
req
[
'data'
][
'orderId'
]);
$orderId
=
intval
(
$this
->
req
[
'data'
][
'orderId'
]);
$orderAmount
=
intval
(
$this
->
req
[
'data'
][
'orderAmount'
]);
$orderAmount
=
intval
(
$this
->
req
[
'data'
][
'orderAmount'
]);
error_reporting
(
E_ALL
);
if
(
empty
(
$orderId
)
&&
empty
(
$orderAmount
))
{
if
(
empty
(
$orderId
)
&&
empty
(
$orderAmount
))
{
ErrorModel
::
throwException
(
CodeConfigModel
::
paramsError
);
ErrorModel
::
throwException
(
CodeConfigModel
::
paramsError
);
}
}
...
...
application/views/index/saleShare.html
0 → 100644
View file @
62d3c5f4
<!DOCTYPE html>
<html
lang=
"en"
>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0,user-scalable=no"
>
<title></title>
<style
type=
"text/css"
>
html
,
body
,
p
,
span
,
div
,
img
{
margin
:
0
;
padding
:
0
;}
body
{
width
:
750px
;}
.shareC
{
width
:
750px
;
padding
:
0
;
text-align
:
center
;
font-family
:
"黑体"
;
color
:
#212121
;}
.avatar
{
padding
:
55px
55px
20px
55px
;}
#headerBg
{
width
:
600px
;
height
:
500px
;}
#title
{
font-size
:
34px
;
}
#title
{
font-size
:
28px
;
line-height
:
36px
;
padding
:
0
110px
0
110px
;
height
:
72px
;
display
:
block
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;}
.price
{
color
:
#ff8519
;
font-size
:
46px
;}
.price
#price
{
font-size
:
34px
;
text-decoration
:
line-through
;}
.qrcode
{
background
:
url(/data/img/flower.png)
;
height
:
488px
;
margin
:
6px
auto
0
auto
;}
#qrImg
{
margin-top
:
80px
;}
#qrcodeImg
img
{
margin
:
0
auto
;}
.footer
{
font-size
:
30px
;
height
:
66px
;
line-height
:
66px
;
padding
:
0
0
55px
0
;}
.footer
img
{
vertical-align
:
bottom
;
display
:
inline-block
;}
</style>
</head>
<body>
<div
class=
"shareC"
>
<div
class=
"avatar"
>
<img
id=
"headerBg"
src=
""
/>
</div>
<div
id=
"title"
></div>
<div
class=
"price"
>
<img
src=
"/data/img/sale.png"
/>
<span
id=
"discount"
></span>
<span
id=
"price"
></span>
</div>
<div
class=
"qrcode"
id=
"qrcode"
>
<img
id=
"qrImg"
src=
""
/>
<div
id=
"qrcodeImg"
></div>
<p
id=
"tip"
></p>
</div>
<div
class=
"footer"
>
<img
src=
"/data/img/logo.png"
/>
我的身边店
</div>
</div>
<script
type=
"text/javascript"
src=
"/data/js/qrcode.min.js"
></script>
<script
type=
"text/javascript"
>
var
pageObj
=
{
type
:
"<?php echo $params['shareType'];?>"
,
//1或2是小程序码,其它是二维码
id
:
"<?php echo $params['id'];?>"
,
//1是小程序码,2是二维码,
headerBg
:
"<?php echo $params['imgUrl'];?>"
,
url
:
"<?php echo $params['qrCode'];?>"
,
qrImg
:
"<?php echo $params['qrCode'];?>"
,
title
:
"<?php echo $params['desc'];?>"
,
price
:
"<?php echo $params['price'];?>"
,
discount
:
"<?php echo $params['dicountPrice'];?>"
,
};
if
(
pageObj
.
notice
==
null
||
pageObj
.
notice
==
""
)
pageObj
.
notice
=
"暂无公告"
;
var
excute
=
[
"title"
];
excute
.
forEach
(
function
(
v
,
i
){
document
.
getElementById
(
v
).
innerHTML
=
pageObj
[
v
];
});
document
.
getElementById
(
"headerBg"
).
src
=
pageObj
.
headerBg
;
document
.
getElementById
(
"discount"
).
innerHTML
=
"<span style='font-size:30px;'>¥</span>"
+
(
pageObj
.
discount
/
100
).
toFixed
(
2
);
if
(
pageObj
.
price
!=
pageObj
.
discount
)
document
.
getElementById
(
"price"
).
innerHTML
=
"<span style='font-size:30px;'>¥</span>"
+
(
pageObj
.
price
/
100
).
toFixed
(
2
);
document
.
getElementById
(
"qrImg"
).
src
=
pageObj
.
qrImg
;
// if(pageObj.type
<=
2
){
// document.getElementById("qrImg").src = pageObj.qrImg;}
// else{
// new QRCode(document.getElementById('qrcodeImg'), pageObj.url);
// }
</script>
</body>
</html>
\ No newline at end of file
conf/url.ini
View file @
62d3c5f4
...
@@ -125,7 +125,7 @@ config.url.userHost = ""
...
@@ -125,7 +125,7 @@ config.url.userHost = ""
config.url.ossHost
=
"http://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
config.url.ossHost
=
"http://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名
;推送域名
config.url.pushHost
=
"1
27.0.0.
1:9503"
;
config.url.pushHost
=
"1
92.168.1.20
1:9503"
;
config.url.convert
=
"/usr/local/bin/wkhtmltoimage"
;
config.url.convert
=
"/usr/local/bin/wkhtmltoimage"
;
...
...
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