Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-new-compaign
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-new-compaign
提交
ffa90354
提交
ffa90354
编写于
3月 12, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
页面添加埋点
上级
0a72bc63
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
74 行增加
和
13 行删除
+74
-13
detail-list.vue
components/bussiness/detail-list.vue
+1
-0
index.vue
components/header/index.vue
+5
-1
task-activity.vue
components/task-activity.vue
+26
-0
index.vue
pages/index.vue
+10
-6
index.vue
pages/login-point/index.vue
+1
-1
point-result.vue
pages/login-point/point-result.vue
+1
-1
index.vue
pages/perdetails/index.vue
+6
-0
index.vue
pages/ranks/index.vue
+10
-0
index.js
service/index.js
+14
-4
未找到文件。
components/bussiness/detail-list.vue
浏览文件 @
ffa90354
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
:isFixed=
"!isFixed"
:isFixed=
"!isFixed"
:needBT=
"needBT"
:needBT=
"needBT"
btnWidth=
"100%"
btnWidth=
"100%"
v-bp=
"
{ component_tag: '364#360018' }"
@btnClick="btnClick"/>
@btnClick="btnClick"/>
</div>
</div>
<div
v-if=
"!dataList.length"
class=
"no-content"
>
<div
v-if=
"!dataList.length"
class=
"no-content"
>
...
...
components/header/index.vue
浏览文件 @
ffa90354
...
@@ -7,7 +7,11 @@
...
@@ -7,7 +7,11 @@
<div
:class=
"
{ active: isScroll }" class="content title">
<div
:class=
"
{ active: isScroll }" class="content title">
<span>
{{
shareTitle1
}}
</span>
<span>
{{
shareTitle1
}}
</span>
</div>
</div>
<div
v-show=
"isShowRightIcon"
class=
"content right-icon"
@
click=
"share"
>
<div
v-show=
"isShowRightIcon"
class=
"content right-icon"
@
click=
"share"
v-bp=
"
{ component_tag: '360#360001'}">
<img
:src=
"headerRightIcon"
/>
<img
:src=
"headerRightIcon"
/>
</div>
</div>
</div>
</div>
...
...
components/task-activity.vue
浏览文件 @
ffa90354
...
@@ -111,6 +111,32 @@ export default {
...
@@ -111,6 +111,32 @@ export default {
};
};
this
.
$emit
(
'activityTaskJump'
,
data
);
this
.
$emit
(
'activityTaskJump'
,
data
);
// }
// }
if
(
item
.
resourceType
==
11
)
{
this
.
$sendBuriedData
({
action
:
'分享任务'
,
component_tag
:
'360#360004'
});
}
else
if
(
item
.
resourceType
==
1
)
{
this
.
$sendBuriedData
({
action
:
'课程学习任务'
,
component_tag
:
'360#360005'
});
}
else
if
(
item
.
resourceType
==
8
)
{
this
.
$sendBuriedData
({
action
:
'排查任务'
,
component_tag
:
'360#360006'
});
}
else
if
(
item
.
resourceType
==
9
)
{
this
.
$sendBuriedData
({
action
:
'居民绑定任务'
,
component_tag
:
'360#360007'
});
}
else
if
(
item
.
resourceType
==
3
)
{
this
.
$sendBuriedData
({
action
:
'SMO任务'
,
component_tag
:
'360#360008'
});
}
}
}
},
},
// 活动详情
// 活动详情
...
...
pages/index.vue
浏览文件 @
ffa90354
...
@@ -17,14 +17,14 @@
...
@@ -17,14 +17,14 @@
<!-- 顶部 -->
<!-- 顶部 -->
<div
class=
"top-container"
>
<div
class=
"top-container"
>
<img
class=
"rule"
@
click=
"ruleDetail"
src=
"../static/images/rule.png"
/>
<img
class=
"rule"
@
click=
"ruleDetail"
src=
"../static/images/rule.png"
/>
<img
class=
"rank"
@
click=
"gotoRank"
src=
"../static/images/rank.png"
/>
<img
class=
"rank"
@
click=
"gotoRank"
v-bp=
"
{ component_tag: '360#360003'}"
src="../static/images/rank.png" />
<!-- 勤奋分进度 -->
<!-- 勤奋分进度 -->
<div
class=
"progress-container"
>
<div
class=
"progress-container"
>
<div
class=
"score-info"
>
<div
class=
"score-info"
>
<div
v-if=
"userMobile"
class=
"text"
>
<div
v-if=
"userMobile"
class=
"text"
>
<img
:src=
"myAvatarl"
/>
<img
:src=
"myAvatarl"
/>
<span
class=
"tc"
>
我的勤奋分
<span>
{{
myScore
}}
</span></span>
<span
class=
"tc"
>
我的勤奋分
<span>
{{
myScore
}}
</span></span>
<span
class=
"bt"
@
click=
"selfInfo"
>
个人明细 >
</span>
<span
class=
"bt"
@
click=
"selfInfo"
v-bp=
"
{ component_tag: '360#360002'}"
>个人明细 >
</span>
</div>
</div>
<div
v-if=
"!userMobile"
class=
"text"
>
<div
v-if=
"!userMobile"
class=
"text"
>
<span
class=
"tc"
>
登录可参加活动
</span>
<span
class=
"tc"
>
登录可参加活动
</span>
...
@@ -184,13 +184,17 @@ export default {
...
@@ -184,13 +184,17 @@ export default {
};
};
_this
.
getActivityTime
();
_this
.
getActivityTime
();
_this
.
inviteFirstEnter
();
_this
.
inviteFirstEnter
();
_this
.
$sendBuriedData
({
action
:
'查看量'
,
component_tag
:
'360#360000'
});
},
},
methods
:
{
methods
:
{
//
首次邀请进入
//
点赞后进入活动主页
inviteFirstEnter
()
{
inviteFirstEnter
()
{
//
inviteFirstEnter({taskId: this.taskId,activityId: this.activityId}).then(res => {
inviteFirstEnter
({
taskId
:
this
.
taskId
,
activityId
:
this
.
activityId
}).
then
(
res
=>
{
//
})
})
},
},
// 获取服务器当前时间
// 获取服务器当前时间
getActivityTime
()
{
getActivityTime
()
{
...
...
pages/login-point/index.vue
浏览文件 @
ffa90354
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<button
v-if=
"notSend"
@
click=
"sendSms"
>
{{
btnMsg
}}
</button>
<button
v-if=
"notSend"
@
click=
"sendSms"
>
{{
btnMsg
}}
</button>
<van-count-down
v-if=
"!notSend"
:time=
"time"
@
finish=
"finishCount"
:format=
"'ss' + 's'"
/>
<van-count-down
v-if=
"!notSend"
:time=
"time"
@
finish=
"finishCount"
:format=
"'ss' + 's'"
/>
</div>
</div>
<button
class=
"btn-post"
@
click=
"gotoPoint"
>
登录点赞 助力好友
</button>
<button
class=
"btn-post"
@
click=
"gotoPoint"
v-bp=
"
{ component_tag: '361#360009'}"
>登录点赞 助力好友
</button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
pages/login-point/point-result.vue
浏览文件 @
ffa90354
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</div>
</div>
</div>
</div>
<div
class=
"btn"
>
<div
class=
"btn"
>
<button
@
click=
"openApp"
>
{{
btnText
}}
</button>
<button
@
click=
"openApp"
v-bp=
"
{ component_tag: '361#3600010'}"
>
{{
btnText
}}
</button>
<button
@
click=
"downloadApp"
>
下载APP
</button>
<button
@
click=
"downloadApp"
>
下载APP
</button>
</div>
</div>
</div>
</div>
...
...
pages/perdetails/index.vue
浏览文件 @
ffa90354
...
@@ -55,6 +55,12 @@ export default {
...
@@ -55,6 +55,12 @@ export default {
this
.
token
=
this
.
$route
.
query
.
token
;
this
.
token
=
this
.
$route
.
query
.
token
;
this
.
getSelfActivity
();
this
.
getSelfActivity
();
},
},
mounted
()
{
this
.
$sendBuriedData
({
action
:
'查看量 '
,
component_tag
:
'364#360017'
});
},
methods
:
{
methods
:
{
goBack
()
{
goBack
()
{
if
(
this
.
$rocNative
.
isWeb
)
{
if
(
this
.
$rocNative
.
isWeb
)
{
...
...
pages/ranks/index.vue
浏览文件 @
ffa90354
...
@@ -97,6 +97,12 @@ export default {
...
@@ -97,6 +97,12 @@ export default {
this
.
getRankData
();
this
.
getRankData
();
this
.
getSelfAllScore
();
this
.
getSelfAllScore
();
},
},
mounted
()
{
this
.
$sendBuriedData
({
action
:
'查看量'
,
component_tag
:
'362#360011'
});
},
methods
:
{
methods
:
{
// 获取个人信息
// 获取个人信息
getSelfAllScore
()
{
getSelfAllScore
()
{
...
@@ -132,6 +138,10 @@ export default {
...
@@ -132,6 +138,10 @@ export default {
},
},
goBack
()
{
goBack
()
{
this
.
$sendBuriedData
({
action
:
'更多勤奋分按钮'
,
component_tag
:
'362#360012'
});
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
// if(this.$rocNative.isWeb) {
// if(this.$rocNative.isWeb) {
// this.$router.go(-1);
// this.$router.go(-1);
...
...
service/index.js
浏览文件 @
ffa90354
...
@@ -123,10 +123,20 @@ export const getCarveStatus = ( data ) => {
...
@@ -123,10 +123,20 @@ export const getCarveStatus = ( data ) => {
// 登录点赞
// 登录点赞
export
const
pointResult
=
(
data
)
=>
{
export
const
pointResult
=
(
data
)
=>
{
return
request
({
url
:
`/campaign/like/like`
,
method
:
'post'
,
data
:
data
,
withCredentials
:
true
})
}
}
// 第一次邀请进入
// 点赞后进入活动主页
export
const
inviteFirstEnter
=
()
=>
{
export
const
inviteFirstEnter
=
(
data
)
=>
{
return
request
({
url
:
`/campaign/like/activePage `
,
method
:
'post'
,
data
:
data
,
withCredentials
:
true
})
}
}
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录