Commit 51c6376a by xinla

#1d2129 var(--font-black)

1 parent c3fe5707
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
& > .el-menu-item { & > .el-menu-item {
height: 38px !important; height: 38px !important;
line-height: 38px !important; line-height: 38px !important;
color: #1d2129; color: var(--font-black);
border-radius: 8px; border-radius: 8px;
font-weight: bold; font-weight: bold;
margin: 0 4px !important; margin: 0 4px !important;
......
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
color: #1d2129; color: var(--font-black);
.errLog-container { .errLog-container {
display: inline-block; display: inline-block;
......
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -351,7 +351,7 @@ export default { ...@@ -351,7 +351,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -2,16 +2,15 @@ ...@@ -2,16 +2,15 @@
<div> <div>
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<el-tab-pane label="任务信息" name="first"> <el-tab-pane label="任务信息" name="first">
<el-row :gutter="20" type="flex" style="margin-top: 20px;"> <el-row :gutter="20" type="flex" style="margin-top: 20px">
<el-col> <el-col>
<div class="g-card"> <div class="g-card">
<div style="display: flex; justify-content: space-between;"> <div style="display: flex; justify-content: space-between">
<div class="info_title">基本信息</div> <div class="info_title">基本信息</div>
<el-button <el-button
v-if="form.taskStatus == 0" v-if="form.taskStatus == 0"
type="primary" type="primary"
@click="$router.push({ path: './add', query: { id: id } })" @click="$router.push({ path: './add', query: { id: id } })">
>
编辑 编辑
</el-button> </el-button>
</div> </div>
...@@ -23,8 +22,7 @@ ...@@ -23,8 +22,7 @@
v-model="form.taskName" v-model="form.taskName"
show-word-limit show-word-limit
disabled disabled
clearable clearable></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="任务状态:"> <el-form-item label="任务状态:">
<el-tag :type="form.taskStatus == 0 ? 'info' : form.taskStatus == 2 ? 'danger' : ''"> <el-tag :type="form.taskStatus == 0 ? 'info' : form.taskStatus == 2 ? 'danger' : ''">
...@@ -32,7 +30,7 @@ ...@@ -32,7 +30,7 @@
</el-tag> </el-tag>
</el-form-item> </el-form-item>
<el-form-item label="推广短链:"> <el-form-item label="推广短链:">
<div style="margin-top: 10px;"> <div style="margin-top: 10px">
<ShowShortLinkVue :data="shortLinkObj"></ShowShortLinkVue> <ShowShortLinkVue :data="shortLinkObj"></ShowShortLinkVue>
</div> </div>
</el-form-item> </el-form-item>
...@@ -43,10 +41,10 @@ ...@@ -43,10 +41,10 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item v-if="form.style == 1" label="推广海报:" prop="materialId"> <el-form-item v-if="form.style == 1" label="推广海报:" prop="materialId">
<div style="margin-top: 10px;" v-if="posterUrl"> <div style="margin-top: 10px" v-if="posterUrl">
<ul class="el-upload-list el-upload-list--picture-card"> <ul class="el-upload-list el-upload-list--picture-card">
<li class="el-upload-list__item is-success"> <li class="el-upload-list__item is-success">
<img style="width: 100%; height: 100%;" :src="posterUrl" /> <img style="width: 100%; height: 100%" :src="posterUrl" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -54,8 +52,8 @@ ...@@ -54,8 +52,8 @@
</el-form> </el-form>
</div> </div>
</el-col> </el-col>
<el-col style="flex-basis: 370px;"> <el-col style="flex-basis: 370px">
<div class="g-card" style="height: 100%;"> <div class="g-card" style="height: 100%">
<div class="info_title">消息预览</div> <div class="info_title">消息预览</div>
<Preview :value="posterUrl"></Preview> <Preview :value="posterUrl"></Preview>
</div> </div>
...@@ -118,128 +116,128 @@ ...@@ -118,128 +116,128 @@
</template> </template>
<script> <script>
import Statistics from './statistics' import Statistics from './statistics'
import Preview from './components/PreviewInPhone.vue' import Preview from './components/PreviewInPhone.vue'
import ShowShortLinkVue from './components/ShowShortLink.vue' import ShowShortLinkVue from './components/ShowShortLink.vue'
import Step3 from './components/Step3.vue' import Step3 from './components/Step3.vue'
import { getDetail } from './api' import { getDetail } from './api'
export default { export default {
name: 'short-link-popularize-detail', name: 'short-link-popularize-detail',
components: { components: {
Statistics, Statistics,
ShowShortLinkVue, ShowShortLinkVue,
Preview, Preview,
Step3 Step3,
}, },
data() { data() {
return { return {
activeName: 'first', activeName: 'first',
form: { form: {
taskName: '', taskName: '',
shortLinkId: '', shortLinkId: '',
style: 0, style: 0,
materialId: '', materialId: '',
type: null, type: null,
attachments: [] attachments: [],
},
choseDialog: false,
showShortLink: false,
shortLinkObj: [],
posterUrl: '',
posterObj: {},
statusType: [
{ name: '待推广', key: 0 },
{ name: '推广中', key: 1 },
{ name: '已结束', key: 2 }
]
}
},
methods: {
setStatus(data) {
let str = ''
this.statusType.forEach((dd) => {
if (dd.key == data.taskStatus) {
str = dd.name
}
})
return str
}, },
getDetailFn() { choseDialog: false,
getDetail(this.id).then((res) => { showShortLink: false,
this.form = res.data shortLinkObj: [],
if (this.form.shortLinkId) { posterUrl: '',
this.shortLinkObj = [this.form.shortLink] posterObj: {},
} statusType: [
if (this.form.style == 1) { { name: '待推广', key: 0 },
this.posterObj = this.form.weMaterial { name: '推广中', key: 1 },
this.posterUrl = this.posterObj.materialUrl { name: '已结束', key: 2 },
} ],
}) }
} },
methods: {
setStatus(data) {
let str = ''
this.statusType.forEach((dd) => {
if (dd.key == data.taskStatus) {
str = dd.name
}
})
return str
},
getDetailFn() {
getDetail(this.id).then((res) => {
this.form = res.data
if (this.form.shortLinkId) {
this.shortLinkObj = [this.form.shortLink]
}
if (this.form.style == 1) {
this.posterObj = this.form.weMaterial
this.posterUrl = this.posterObj.materialUrl
}
})
}, },
created() { },
this.id = this.$route.query.id created() {
if (this.id) { this.id = this.$route.query.id
this.getDetailFn() if (this.id) {
} this.getDetailFn()
} }
} },
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.unit { .unit {
// margin: 0 auto; // margin: 0 auto;
display: flex;
flex-wrap: wrap;
// width: 580px;
justify-content: space-between;
.unit-item {
width: 280px;
// height: 80px;
border-width: 1px;
border-style: solid;
border-color: rgba(242, 242, 242, 1);
border-radius: 5px;
display: flex; display: flex;
flex-wrap: wrap; padding: 17px;
// width: 580px; margin-bottom: 20px;
justify-content: space-between; // cursor: pointer;
.unit-item { .icon-style {
width: 280px; margin-right: 10px;
// height: 80px; margin-top: 7px;
border-width: 1px; font-size: 22px;
border-style: solid; width: 24px;
border-color: rgba(242, 242, 242, 1); // height: 20px;
border-radius: 5px; }
display: flex; .item-title {
padding: 17px; margin-top: 4px;
margin-bottom: 20px; font-size: 16px;
// cursor: pointer; font-family: Source Han Sans CN-Regular, Source Han Sans CN;
.icon-style { font-weight: 400;
margin-right: 10px; color: var(--font-black);
margin-top: 7px; }
font-size: 22px; .item-text {
width: 24px; margin-top: 6px;
// height: 20px; font-size: 12px;
} color: #aaaaaa;
.item-title { line-height: 24px;
margin-top: 4px;
font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #1d2129;
}
.item-text {
margin-top: 6px;
font-size: 12px;
color: #aaaaaa;
line-height: 24px;
}
&:hover {
border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255);
}
} }
.active_item { &:hover {
border: 1px solid rgba(7, 193, 96, 1); border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255); background-color: rgba(7, 193, 96, 0.09019607843137255);
} }
} }
.info_title { .active_item {
font-size: 16px; border: 1px solid rgba(7, 193, 96, 1);
font-weight: 600; background-color: rgba(7, 193, 96, 0.09019607843137255);
color: #1d2129;
margin-bottom: 10px;
} }
}
.info_title {
font-size: 16px;
font-weight: 600;
color: var(--font-black);
margin-bottom: 10px;
}
</style> </style>
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
font-size: 16px; font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN; font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400; font-weight: 400;
color: #1d2129; color: var(--font-black);
} }
.item-text { .item-text {
margin-top: 6px; margin-top: 6px;
......
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
.view-item-num { .view-item-num {
font-size: 24px; font-size: 24px;
font-weight: 500; font-weight: 500;
color: #1d2129; color: var(--font-black);
font-family: Bahnschrift-Regular, Bahnschrift; font-family: Bahnschrift-Regular, Bahnschrift;
} }
} }
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
.login-text { .login-text {
font-size: 32px; font-size: 32px;
font-weight: 700; font-weight: 700;
color: #1d2129; color: var(--font-black);
margin: 26px auto 50px auto; margin: 26px auto 50px auto;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!