Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
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
new-sing
h5-base
Commits
b12b7af0
Commit
b12b7af0
authored
Jan 09, 2019
by
wangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev2' into star
# Conflicts: # src/components/buy/activityInvite.vue
parents
242b83fb
2a8a4568
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
+18
-14
activity.vue
src/components/buy/activity.vue
+4
-4
activityInvite.vue
src/components/buy/activityInvite.vue
+9
-6
index.vue
src/components/buy/index.vue
+1
-0
api.js
src/service/api.js
+4
-4
No files found.
src/components/buy/activity.vue
View file @
b12b7af0
...
...
@@ -362,10 +362,10 @@
}
})
}
},
getInviteResult
(){
getInviteResultApi
().
then
(
res
=>
{
let
id
=
this
.
$route
.
query
.
shopId
;
getInviteResultApi
({},
id
).
then
(
res
=>
{
this
.
earnings
=
res
.
earnings
;
this
.
userNum
=
res
.
user_num
;
});
...
...
@@ -375,8 +375,8 @@
page
:
1
,
limit
:
4
}
getInviteListApi
(
json
).
then
(
res
=>
{
console
.
log
(
res
)
let
id
=
this
.
$route
.
query
.
shopId
;
getInviteListApi
(
json
,
id
).
then
(
res
=>
{
this
.
inviteList
=
res
.
list
});
}
...
...
src/components/buy/activityInvite.vue
View file @
b12b7af0
<
template
xmlns:v-clipboard=
"http://www.w3.org/1999/xhtml"
>
<div
class=
"group-index"
ref=
"index"
v-if=
"groupDetail"
style=
"background-color: #
fda813
;"
>
<
template
>
<div
class=
"group-index"
ref=
"index"
v-if=
"groupDetail"
style=
"background-color: #
59c1f1
;"
>
<div>
<div
class=
"img-cvs"
id=
"capture"
ref=
"imageWrapper"
v-if=
"groupDetail.share_desc.refImg && groupDetail.share_desc.refImg.length > 0"
>
<div
v-if=
"avatar && QRCodeB"
id=
"avatarImg"
>
...
...
@@ -10,7 +10,7 @@
</div>
</div>
<img
:src=
"dataURL"
class=
"cvs-img"
id=
"cvs-img"
/>
<div
class=
"inviteBtn"
id=
"inviteBtn"
>
<div
class=
"content-text"
>
<h3>
长按保存海报 或发送给好友
</h3>
...
...
@@ -163,7 +163,7 @@
}
let
code
=
`
${
invite_code
[
0
]}
-
${
invite_code
[
1
]}
`
;
let
URL
=
`
${
process
.
env
.
BUY_URL
}
shopId=
${
this
.
shopId
}
&invite_code=
${
code
}
-
${
this
.
user_id
}
`
;
if
(
this
.
groupId
&&
this
.
groupId
!==
'null'
){
URL
+=
`&groupId=
${
this
.
groupId
}
`
}
...
...
@@ -204,7 +204,7 @@
}).
catch
(
res
=>
{
alert
(
res
);
console
.
log
()});
}
})
},
500
)
}
else
{
...
...
@@ -478,7 +478,10 @@
text-align: left;
font-size: 14 * @toVw;
color: #fff;
background: url('../../assets/activity/red-bg.png') no-repeat center;
// background: url('../../assets/activity/red-bg.png') no-repeat center;
background: #f5c10c;
border-radius: 25 * @toVw;
box-shadow: 2px 2px 2px #888888;
background-size: cover;
box-sizing: border-box;
padding: 2px 58/2*@toVw;
...
...
src/components/buy/index.vue
View file @
b12b7af0
...
...
@@ -219,6 +219,7 @@
height1
,
width1
}
=
document
.
getElementById
(
'capture'
).
getClientRects
()[
0
];
console
.
log
(
height1
)
html2canvas
(
document
.
getElementById
(
'capture'
),{
async
:
true
,
timeout
:
500
,
...
...
src/service/api.js
View file @
b12b7af0
...
...
@@ -124,13 +124,13 @@ export const getGoodsListApi = function (json) {
};
//获取邀请战绩收益
const
getInviteResultUrl
=
`
${
_baseUrl
}
api/client/user/invite/earnings`
;
export
const
getInviteResultApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getInviteResultUrl
,
json
)
export
const
getInviteResultApi
=
function
(
json
,
id
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
getInviteResultUrl
}
/
${
id
}
`
,
json
)
};
//获取邀请战绩用户列表
const
getInviteListUrl
=
`
${
_baseUrl
}
api/client/user/invite/list`
;
export
const
getInviteListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getInviteListUrl
,
json
)
export
const
getInviteListApi
=
function
(
json
,
id
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
getInviteListUrl
}
/
${
id
}
`
,
json
)
};
// 发送验证码
const
sendMobileCodeUrl
=
`
${
_baseUrl
}
api/client/mobile/code`
;
...
...
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