Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
8a029836
Commit
8a029836
authored
Nov 05, 2020
by
Mac
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
parents
7c179a86
eda2dc52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
share_qrcode.vue
pages/reserve/share_qrcode.vue
+2
-9
No files found.
pages/reserve/share_qrcode.vue
View file @
8a029836
...
@@ -97,17 +97,14 @@
...
@@ -97,17 +97,14 @@
uni
.
getImageInfo
({
uni
.
getImageInfo
({
src
:
that
.
qrcode
.
PosterBgImg
,
src
:
that
.
qrcode
.
PosterBgImg
,
success
:
function
(
image
)
{
success
:
function
(
image
)
{
console
.
log
(
'绘制'
)
ctx
.
drawImage
(
image
.
path
,
0
,
0
,
750
,
1344
);
//绘制图
ctx
.
drawImage
(
image
.
path
,
0
,
0
,
750
,
1344
);
//绘制图
if
(
that
.
qrcode
.
IsShowNick
==
0
)
{
if
(
that
.
qrcode
.
IsShowNick
==
0
)
{
console
.
log
(
'绘制文字'
)
that
.
drawTitle
(
ctx
);
//绘制文字
that
.
drawTitle
(
ctx
);
//绘制文字
}
}
if
(
that
.
qrcode
.
IsShowHead
==
0
)
{
if
(
that
.
qrcode
.
IsShowHead
==
0
)
{
uni
.
getImageInfo
({
//头像
uni
.
getImageInfo
({
//头像
src
:
that
.
fenxqrcode
,
src
:
that
.
ServiceLogo
,
success
:
function
(
image
)
{
success
:
function
(
image
)
{
console
.
log
(
image
,
'imagesssssssss'
);
ctx
.
save
();
// 先保存状态 已便于画完圆再用
ctx
.
save
();
// 先保存状态 已便于画完圆再用
ctx
.
beginPath
();
//开始绘制
ctx
.
beginPath
();
//开始绘制
//先画个圆
//先画个圆
...
@@ -118,10 +115,9 @@
...
@@ -118,10 +115,9 @@
that
.
qrcode
.
HeadSize
);
//绘制头像
that
.
qrcode
.
HeadSize
);
//绘制头像
ctx
.
restore
();
//恢复之前保存的绘图上下文 恢复之前保存的绘图上下午即状态 可以继续绘制
ctx
.
restore
();
//恢复之前保存的绘图上下文 恢复之前保存的绘图上下午即状态 可以继续绘制
if
(
that
.
qrcode
.
IsShowQrCode
==
0
)
{
//二维码
if
(
that
.
qrcode
.
IsShowQrCode
==
0
)
{
//二维码
console
.
log
(
'绘制二维码'
)
uni
.
getImageInfo
({
uni
.
getImageInfo
({
// src: that.UserInfo.Photo,
// src: that.UserInfo.Photo,
src
:
that
.
ServiceLogo
,
src
:
that
.
fenxqrcode
,
success
:
function
(
image
)
{
success
:
function
(
image
)
{
if
(
that
.
qrcode
.
QrCodeType
==
0
)
{
if
(
that
.
qrcode
.
QrCodeType
==
0
)
{
ctx
.
arc
(
that
.
qrcode
.
QrCodeSize
/
2
+
that
.
qrcode
.
QrCodePaddingLeft
,
that
.
qrcode
.
QrCodeSize
/
2
+
ctx
.
arc
(
that
.
qrcode
.
QrCodeSize
/
2
+
that
.
qrcode
.
QrCodePaddingLeft
,
that
.
qrcode
.
QrCodeSize
/
2
+
...
@@ -140,9 +136,6 @@
...
@@ -140,9 +136,6 @@
});
});
}
else
{
}
else
{
if
(
that
.
qrcode
.
IsShowQrCode
==
0
)
{
if
(
that
.
qrcode
.
IsShowQrCode
==
0
)
{
console
.
log
(
'进入与'
);
console
.
log
(
that
.
fenxqrcode
,
'that.fenxqrcode2'
);
console
.
log
(
'绘制二维码11111'
)
uni
.
getImageInfo
({
//头像
uni
.
getImageInfo
({
//头像
src
:
that
.
fenxqrcode
,
src
:
that
.
fenxqrcode
,
success
:
function
(
image
)
{
success
:
function
(
image
)
{
...
...
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