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
提交
0f9a2cf6
提交
0f9a2cf6
编写于
3月 13, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
绑定居民微信分享文案
上级
2632e0c7
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
70 行增加
和
20 行删除
+70
-20
detail-list.vue
components/bussiness/detail-list.vue
+16
-14
index.vue
pages/index.vue
+26
-2
index.vue
pages/ranks/index.vue
+28
-4
未找到文件。
components/bussiness/detail-list.vue
浏览文件 @
0f9a2cf6
...
...
@@ -2,20 +2,22 @@
<div
class=
"detail-list br"
>
<div
v-if=
"dataList.length"
>
<ul>
<li
class=
"list"
v-for=
"(item, index) in dataList"
:key=
"index"
>
<!-- 1.课程 2.考试 3.调查问卷 4.患者招募 5.宣教漫画 6.打卡 7.邀请 8.任务排查 9.绑定居民到微信-->
<img
v-if=
"item.resourceType == 1"
src=
"../../static/images/task-two.png"
/>
<img
v-if=
"item.resourceType == 3"
src=
"../../static/images/task-five.png"
/>
<img
v-if=
"item.resourceType == 7"
src=
"../../static/images/task-one.png"
/>
<img
v-if=
"item.resourceType == 8"
src=
"../../static/images/task-three.png"
/>
<img
v-if=
"item.resourceType == 9"
src=
"../../static/images/task-four.png"
/>
<img
v-if=
"item.resourceType == 10"
src=
"../../static/images/task-six.png"
/>
<ul
class=
"desc"
>
<li
class=
"text"
>
{{
item
.
taskName
}}
</li>
<li
class=
"time"
>
{{
item
.
sortFinishTime
}}
</li>
</ul>
<span
class=
"score"
><span>
+
{{
getRewardType
(
item
.
timsRewardResp
)
}}
</span>
勤奋分
</span>
</li>
<div
v-for=
"(item, index) in dataList"
:key=
"index"
>
<li
class=
"list"
v-if=
"item.timsRewardResp[0].rewardType == 3"
>
<!-- 1.课程 2.考试 3.调查问卷 4.患者招募 5.宣教漫画 6.打卡 7.邀请 8.任务排查 9.绑定居民到微信 10.首次进入 11.邀请点赞-->
<img
v-if=
"item.resourceType == 1"
src=
"../../static/images/task-two.png"
/>
<img
v-if=
"item.resourceType == 3"
src=
"../../static/images/task-five.png"
/>
<img
v-if=
"item.resourceType == 11"
src=
"../../static/images/task-one.png"
/>
<img
v-if=
"item.resourceType == 8"
src=
"../../static/images/task-three.png"
/>
<img
v-if=
"item.resourceType == 9"
src=
"../../static/images/task-four.png"
/>
<img
v-if=
"item.resourceType == 10"
src=
"../../static/images/task-six.png"
/>
<ul
class=
"desc"
>
<li
class=
"text"
>
{{
item
.
taskName
}}
</li>
<li
class=
"time"
>
{{
item
.
sortFinishTime
}}
</li>
</ul>
<span
class=
"score"
><span>
+
{{
getRewardType
(
item
.
timsRewardResp
)
}}
</span>
勤奋分
</span>
</li>
</div>
</ul>
<DetailBtn
style=
"margin-top: 30px;"
...
...
pages/index.vue
浏览文件 @
0f9a2cf6
...
...
@@ -141,7 +141,7 @@ export default {
shareTitle1
:
''
,
shareTitle2
:
'做任务瓜分500W云鹊豆,点一下你也能获得75分哦'
,
shareTitle3
:
''
,
shareTitle4
:
''
,
shareTitle4
:
'
绑定专属医生,随时接收医生的信息和问诊资讯。
'
,
shareIconUrl
:
'https://file.yunqueyi.com/h5/images/commons/share_hd1.png'
,
isScroll
:
false
,
imgSrc1
:
require
(
'@/static/images/score.png'
),
...
...
@@ -268,12 +268,36 @@ export default {
_this
.
userId
=
res
.
data
.
id
;
_this
.
userName
=
res
.
data
.
name
;
_this
.
shareTitle1
=
`
${
_this
.
userName
}
医生邀请您为他助力`
;
_this
.
shareTitle3
=
`
${
_this
.
userName
}
医生邀请您绑定`
;
}
})
},
// 查看活动规则
ruleDetail
()
{
// this.$router.push({path: "/login-point/point-result",query: {}});
const
{
NUXT_ENV_APP
}
=
process
.
env
;
let
url
=
ENV_CONFIG
[
NUXT_ENV_APP
][
'shareUrl'
]
+
'/template_v2/?id=701'
;
let
itemData
=
{
"title"
:
""
,
"imageUrl"
:
""
,
"appModuleInfo"
:{
"code"
:
"M300"
,
"type"
:
4
,
"name"
:
"wwww"
,
"paramFlag"
:
1
,
"paramList"
:[
{
"key"
:
"pageUrl"
,
"value"
:
url
,
"type"
:
4
,
"seqNo"
:
1
}
]
}
};
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
itemData
.
appModuleInfo
.
paramList
})
},
// 查看排名
gotoRank
()
{
...
...
pages/ranks/index.vue
浏览文件 @
0f9a2cf6
...
...
@@ -22,12 +22,12 @@
</div>
</div>
<div
class=
"rank-detail"
>
<div
class=
"rank-num"
v-if=
"
rank != 1
"
>
<div
class=
"rank-num"
v-if=
"
firstScore
"
>
<span
class=
"dlot"
></span>
<span
class=
"num"
>
前一名:
<span
class=
"score"
>
{{
firstScore
}}
</span>
勤奋分
</span>
</div>
<div
class=
"line"
v-if=
"
rank != 1
"
></div>
<div
class=
"rank-num"
>
<div
class=
"line"
v-if=
"
firstScore && lastScore
"
></div>
<div
class=
"rank-num"
v-if=
"lastScore"
>
<span
class=
"dlot"
></span>
<span
class=
"num"
>
后一名:
<span
class=
"score"
>
{{
lastScore
}}
</span>
勤奋分
</span>
</div>
...
...
@@ -67,6 +67,7 @@
<
script
>
import
Header
from
'../../components/header'
;
import
DetailBtn
from
'../../components/bussiness/detail-btn'
;
import
{
ENV_CONFIG
}
from
'@/utils/enumerate'
;
import
{
getRankData
,
getSelfAllScore
}
from
'@/service'
;
export
default
{
components
:
{
...
...
@@ -135,7 +136,30 @@ export default {
},
// 全部奖品
allAward
(){
const
{
NUXT_ENV_APP
}
=
process
.
env
;
let
url
=
ENV_CONFIG
[
NUXT_ENV_APP
][
'shareUrl'
]
+
'/template_v2/?id=701'
;
let
itemData
=
{
"title"
:
""
,
"imageUrl"
:
""
,
"appModuleInfo"
:{
"code"
:
"M300"
,
"type"
:
4
,
"name"
:
"wwww"
,
"paramFlag"
:
1
,
"paramList"
:[
{
"key"
:
"pageUrl"
,
"value"
:
url
,
"type"
:
4
,
"seqNo"
:
1
}
]
}
};
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
itemData
.
appModuleInfo
.
paramList
})
},
goBack
()
{
this
.
$sendBuriedData
({
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录