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
b6b9ada5
Commit
b6b9ada5
authored
Nov 15, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
share
parent
9d70cb66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
ShareService.php
application/models/Business/User/ShareService.php
+4
-4
goods.phtml
application/views/index/goods.phtml
+6
-5
store.phtml
application/views/index/store.phtml
+6
-5
No files found.
application/models/Business/User/ShareService.php
View file @
b6b9ada5
...
...
@@ -85,8 +85,8 @@ class ShareServiceModel extends \Business\AbstractModel
$this
->
memberDb0Redis
->
tableCacheSet
(
$fileName
,
$url
,
ApiConst
::
zero
);
return
$url
;
}
else
{
return
$this
->
getQrUrl
(
$data
[
'id'
]);
//
return PathConst::wxDefaultPath;
//
return $this->getQrUrl($data['id']);
return
PathConst
::
wxDefaultPath
;
}
}
else
{
return
$this
->
getQrUrl
(
$data
[
'id'
]);
...
...
@@ -112,8 +112,8 @@ class ShareServiceModel extends \Business\AbstractModel
}
}
else
{
//不是微信分享就是普通下载的二维码图片
//
return $this->getQrUrl($data['id']);
return
PathConst
::
downLoadQrcode
;
return
$this
->
getQrUrl
(
$data
[
'id'
]);
//
return PathConst::downLoadQrcode;
}
}
if
(
$data
[
'type'
]
==
\Our\ApiConst
::
sharePlat
){
...
...
application/views/index/goods.phtml
View file @
b6b9ada5
...
...
@@ -64,11 +64,12 @@
if
(
pageObj
.
price
!=
pageObj
.
discount
)
document
.
getElementById
(
"price"
).
innerHTML
=
"<span style='font-size:30px;'>¥</span>"
+
(
pageObj
.
price
/
100
).
toFixed
(
2
);
if
(
pageObj
.
type
<=
2
){
document
.
getElementById
(
"qrImg"
).
src
=
pageObj
.
qrImg
;}
else
{
new
QRCode
(
document
.
getElementById
(
'qrcodeImg'
),
pageObj
.
url
);
}
new
QRCode
(
document
.
getElementById
(
'qrcodeImg'
),
pageObj
.
url
);
// if(pageObj.type
<=
2
){
// document.getElementById("qrImg").src = pageObj.qrImg;}
// else{
// new QRCode(document.getElementById('qrcodeImg'), pageObj.url);
// }
...
...
application/views/index/store.phtml
View file @
b6b9ada5
...
...
@@ -64,11 +64,12 @@
document
.
getElementById
(
v
).
innerHTML
=
pageObj
[
v
];
});
document
.
getElementById
(
"headerBg"
).
src
=
pageObj
.
headerBg
;
if
(
pageObj
.
type
==
1
||
pageObj
.
type
==
4
){
document
.
getElementById
(
"qrImg"
).
src
=
pageObj
.
qrImg
;}
else
{
new
QRCode
(
document
.
getElementById
(
'qrcodeImg'
),
pageObj
.
url
);
}
new
QRCode
(
document
.
getElementById
(
'qrcodeImg'
),
pageObj
.
url
);
// if(pageObj.type
<=
2
){
// document.getElementById("qrImg").src = pageObj.qrImg;}
// else{
// new QRCode(document.getElementById('qrcodeImg'), pageObj.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