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>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</el-steps> </el-steps>
</div> </div>
<template v-if="currentActive == 0"> <template v-if="currentActive == 0">
<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">
<el-form ref="baseForm" :rules="rules" :model="form" label-position="right" label-width="100px"> <el-form ref="baseForm" :rules="rules" :model="form" label-position="right" label-width="100px">
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
placeholder="请输入名称" placeholder="请输入名称"
v-model="form.taskName" v-model="form.taskName"
show-word-limit show-word-limit
clearable clearable></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="推广短链:" prop="shortLinkId"> <el-form-item label="推广短链:" prop="shortLinkId">
<el-button type="primary" icon="el-icon-plus" @click="showShortLink = true"> <el-button type="primary" icon="el-icon-plus" @click="showShortLink = true">
...@@ -27,12 +26,11 @@ ...@@ -27,12 +26,11 @@
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
@click="$router.push('/drainageCode/publicCustomer/IntelligentShortLink/index')" @click="$router.push('/drainageCode/publicCustomer/IntelligentShortLink/index')">
>
去新建 去新建
</el-button> </el-button>
<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>
...@@ -48,10 +46,10 @@ ...@@ -48,10 +46,10 @@
<el-button type="primary" icon="el-icon-plus" @click="choseDialog = true"> <el-button type="primary" icon="el-icon-plus" @click="choseDialog = true">
{{ form.materialId ? '编辑' : '选择' }}海报 {{ form.materialId ? '编辑' : '选择' }}海报
</el-button> </el-button>
<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" />
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<span class="el-upload-list__item-delete"> <span class="el-upload-list__item-delete">
<el-icon-delete class="el-icon-delete" @click="handleRemove"></el-icon-delete> <el-icon-delete class="el-icon-delete" @click="handleRemove"></el-icon-delete>
...@@ -63,13 +61,13 @@ ...@@ -63,13 +61,13 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="g-card" style="text-align: right;"> <div class="g-card" style="text-align: right">
<el-button plain @click="$router.go(-1)">取消</el-button> <el-button plain @click="$router.go(-1)">取消</el-button>
<el-button type="primary" @click="gotoNext">下一步</el-button> <el-button type="primary" @click="gotoNext">下一步</el-button>
</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>
...@@ -135,7 +133,7 @@ ...@@ -135,7 +133,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="g-card" style="text-align: right;"> <div class="g-card" style="text-align: right">
<el-button plain @click="currentActive = 0">上一步</el-button> <el-button plain @click="currentActive = 0">上一步</el-button>
<el-button plain @click="saveFn" v-loading="loading">保存,暂不推广</el-button> <el-button plain @click="saveFn" v-loading="loading">保存,暂不推广</el-button>
<el-button type="primary" @click="currentActive = 2">下一步</el-button> <el-button type="primary" @click="currentActive = 2">下一步</el-button>
...@@ -153,21 +151,21 @@ ...@@ -153,21 +151,21 @@
</div> </div>
</template> </template>
<script> <script>
import SelectPosterSingle from './components/SelectPosterSingle.vue' import SelectPosterSingle from './components/SelectPosterSingle.vue'
import Preview from './components/PreviewInPhone.vue' import Preview from './components/PreviewInPhone.vue'
import SelectShortLink from '@/components/SelectShortLink' import SelectShortLink from '@/components/SelectShortLink'
import Step3 from './components/Step3.vue' import Step3 from './components/Step3.vue'
import ShowShortLinkVue from './components/ShowShortLink.vue' import ShowShortLinkVue from './components/ShowShortLink.vue'
import { getDetail, savePromotion } from './api' import { getDetail, savePromotion } from './api'
export default { export default {
name: 'short-link-popularize-add', name: 'short-link-popularize-add',
components: { components: {
Preview, Preview,
SelectPosterSingle, SelectPosterSingle,
SelectShortLink, SelectShortLink,
ShowShortLinkVue, ShowShortLinkVue,
Step3 Step3,
}, },
data() { data() {
return { return {
...@@ -188,10 +186,10 @@ ...@@ -188,10 +186,10 @@
userIds: '', userIds: '',
sendType: 0, sendType: 0,
taskSendTime: '', taskSendTime: '',
taskEndTime: '' taskEndTime: '',
}, },
attachments: [], attachments: [],
senderList: [] senderList: [],
}, },
currentActive: 0, currentActive: 0,
choseDialog: false, choseDialog: false,
...@@ -204,31 +202,31 @@ ...@@ -204,31 +202,31 @@
{ {
required: true, required: true,
message: '请输入任务名称', message: '请输入任务名称',
trigger: 'blur' trigger: 'blur',
} },
], ],
shortLinkId: [ shortLinkId: [
{ {
required: true, required: true,
message: '请选择短链', message: '请选择短链',
trigger: 'blur' trigger: 'blur',
} },
], ],
style: [ style: [
{ {
required: true, required: true,
message: '请选择推广样式', message: '请选择推广样式',
trigger: 'blur' trigger: 'blur',
} },
], ],
materialId: [ materialId: [
{ {
required: true, required: true,
message: '请选择海报', message: '请选择海报',
trigger: 'blur' trigger: 'blur',
} },
] ],
} },
} }
}, },
methods: { methods: {
...@@ -296,7 +294,7 @@ ...@@ -296,7 +294,7 @@
this.posterObj = this.form.weMaterial this.posterObj = this.form.weMaterial
this.posterUrl = this.posterObj.materialUrl this.posterUrl = this.posterObj.materialUrl
} }
} },
}, },
created() { created() {
this.id = this.$route.query.id this.id = this.$route.query.id
...@@ -306,30 +304,30 @@ ...@@ -306,30 +304,30 @@
if (this.id) { if (this.id) {
this.getDetailFn() this.getDetailFn()
} }
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.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;
} }
.sub-des { .sub-des {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
} }
.title { .title {
font-size: 16px; font-size: 16px;
font-family: PingFang SC-Bold, PingFang SC; font-family: PingFang SC-Bold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin: 24px 0; margin: 24px 0;
} }
.unit { .unit {
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -358,7 +356,7 @@ ...@@ -358,7 +356,7 @@
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;
...@@ -375,5 +373,5 @@ ...@@ -375,5 +373,5 @@
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);
} }
} }
</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,20 +116,20 @@ ...@@ -118,20 +116,20 @@
</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 {
...@@ -142,7 +140,7 @@ ...@@ -142,7 +140,7 @@
style: 0, style: 0,
materialId: '', materialId: '',
type: null, type: null,
attachments: [] attachments: [],
}, },
choseDialog: false, choseDialog: false,
showShortLink: false, showShortLink: false,
...@@ -152,8 +150,8 @@ ...@@ -152,8 +150,8 @@
statusType: [ statusType: [
{ name: '待推广', key: 0 }, { name: '待推广', key: 0 },
{ name: '推广中', key: 1 }, { name: '推广中', key: 1 },
{ name: '已结束', key: 2 } { name: '已结束', key: 2 },
] ],
} }
}, },
methods: { methods: {
...@@ -177,19 +175,19 @@ ...@@ -177,19 +175,19 @@
this.posterUrl = this.posterObj.materialUrl this.posterUrl = this.posterObj.materialUrl
} }
}) })
} },
}, },
created() { created() {
this.id = this.$route.query.id this.id = this.$route.query.id
if (this.id) { if (this.id) {
this.getDetailFn() this.getDetailFn()
} }
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.unit { .unit {
// margin: 0 auto; // margin: 0 auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -218,7 +216,7 @@ ...@@ -218,7 +216,7 @@
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;
...@@ -235,11 +233,11 @@ ...@@ -235,11 +233,11 @@
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 { .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>
...@@ -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!