Commit f2a7ce5c by xuyl

注册任务类型做处理 以及更改样式

1 parent 9034d007
<template> <template>
<div> <div>
<div class='taskDetails' v-for='(item,index) in taskDetails' :key='index'> <div class='taskDetails' v-for='(item,index) in taskDetails' :key='index'>
<div> <div class='leftContent'>
<p>{{ item.missonTypeName }}</p> <p>{{ item.missonTypeName }}</p>
<p>{{ item.missionName }}</p> <p>{{ item.missionName }}</p>
<p>{{ item.missonDesc }}</p> <p>{{ item.missonDesc }}</p>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<video class='displayImg' :src='sub.materialContent' /> <video class='displayImg' :src='sub.materialContent' />
</template> </template>
<template v-if="sub.materialType == '4'"> <template v-if="sub.materialType == '4'">
<p>{{sub.materialContent}}</p> <p class='content'>{{sub.materialContent}}</p>
</template> </template>
</div> </div>
</template> </template>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class='copyLine' id='copy' v-on:click='copy(item.id)'> <div v-if="item.missonType != '1'" class='copyLine' id='copy' v-on:click='copy(item.id)'>
复制任务提醒链接 复制任务提醒链接
</div> </div>
</div> </div>
...@@ -83,7 +83,14 @@ export default { ...@@ -83,7 +83,14 @@ export default {
padding: 20px; padding: 20px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.leftContent{
width: 70%;
}
.content{
height: auto;
word-wrap: break-word;
word-break: break-all;
}
.taskAward { .taskAward {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -108,4 +115,8 @@ export default { ...@@ -108,4 +115,8 @@ export default {
width: 500px; width: 500px;
height: 300px; height: 300px;
} }
.displayContent{
display: inline-block;
width: 800px;
}
</style> </style>
...@@ -51,11 +51,10 @@ export default { ...@@ -51,11 +51,10 @@ export default {
taskInfo:{ taskInfo:{
handler(newVal,oldVal){ handler(newVal,oldVal){
if (!oldVal || newVal !== oldVal) { if (!oldVal || newVal !== oldVal) {
this.taskInfoList.map((item,index) => { this.taskInfoList.map(item => {
Object.keys(newVal).forEach(key => { Object.keys(newVal).forEach(key => {
if (item.id == key) { if (item.id == key) {
item.value = newVal[key] item.value = newVal[key]
this.$set(this.taskInfoList,index,item)
} }
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!