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
a95d33b5
Commit
a95d33b5
authored
Nov 24, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
share
parent
9c0aaf04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
store.phtml
application/views/index/store.phtml
+6
-6
chat.js
public/data/js/chat.js
+1
-1
No files found.
application/views/index/store.phtml
View file @
a95d33b5
...
@@ -64,12 +64,12 @@
...
@@ -64,12 +64,12 @@
document
.
getElementById
(
v
).
innerHTML
=
pageObj
[
v
];
document
.
getElementById
(
v
).
innerHTML
=
pageObj
[
v
];
});
});
document
.
getElementById
(
"headerBg"
).
src
=
pageObj
.
headerBg
;
document
.
getElementById
(
"headerBg"
).
src
=
pageObj
.
headerBg
;
new
QRCode
(
document
.
getElementById
(
'qrcodeImg'
),
pageObj
.
url
);
//
new QRCode(document.getElementById('qrcodeImg'), pageObj.url);
//
if(pageObj.type
<=
2
){
if
(
pageObj
.
type
<=
2
){
//
document.getElementById("qrImg").src = pageObj.qrImg;}
document
.
getElementById
(
"qrImg"
).
src
=
pageObj
.
qrImg
;}
//
else{
else
{
//
new QRCode(document.getElementById('qrcodeImg'), pageObj.url);
new
QRCode
(
document
.
getElementById
(
'qrcodeImg'
),
pageObj
.
url
);
//
}
}
...
...
public/data/js/chat.js
View file @
a95d33b5
...
@@ -37,7 +37,7 @@ function listenEvent() {
...
@@ -37,7 +37,7 @@ function listenEvent() {
/**
/**
* 连接建立时触发
* 连接建立时触发
*/
*/
ws
.
onopen
=
function
(
e
)
{
ws
.
onopen
=
function
(
e
)
{
a
console
.
log
(
e
.
data
);
console
.
log
(
e
.
data
);
var
msg
=
{
"method"
:
"join"
,
"key"
:
key
};
var
msg
=
{
"method"
:
"join"
,
"key"
:
key
};
ws
.
send
(
$
.
toJSON
(
msg
));
ws
.
send
(
$
.
toJSON
(
msg
));
...
...
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