Commit 3eb981a6 by 怪兽?别跑

Merge branch 'v3-dev-jiangpengkai' into vue3-master

2 parents e4117161 97203f7f
...@@ -2,15 +2,16 @@ ...@@ -2,15 +2,16 @@
<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>
...@@ -22,7 +23,8 @@ ...@@ -22,7 +23,8 @@
v-model="form.taskName" v-model="form.taskName"
show-word-limit show-word-limit
disabled disabled
clearable></el-input> clearable
></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' : ''">
...@@ -30,7 +32,7 @@ ...@@ -30,7 +32,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>
...@@ -41,10 +43,10 @@ ...@@ -41,10 +43,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>
...@@ -52,8 +54,8 @@ ...@@ -52,8 +54,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>
...@@ -68,7 +70,7 @@ ...@@ -68,7 +70,7 @@
<div class="unit"> <div class="unit">
<div class="unit-item" v-if="form.type == 0" :class="{ active_item: form.type == 0 }"> <div class="unit-item" v-if="form.type == 0" :class="{ active_item: form.type == 0 }">
<div> <div>
<img class="icon-style" src="./assets/customer_active.png" alt="" /> <img class="icon-style" src="@/assets/image/customer_active.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">群发客户</div> <div class="item-title">群发客户</div>
...@@ -77,7 +79,7 @@ ...@@ -77,7 +79,7 @@
</div> </div>
<div class="unit-item" v-if="form.type == 1" :class="{ active_item: form.type == 1 }"> <div class="unit-item" v-if="form.type == 1" :class="{ active_item: form.type == 1 }">
<div> <div>
<img class="icon-style" src="./assets/group_active.png" alt="" /> <img class="icon-style" src="@/assets/image/group_active.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">群发客户群</div> <div class="item-title">群发客户群</div>
...@@ -86,7 +88,7 @@ ...@@ -86,7 +88,7 @@
</div> </div>
<div class="unit-item" v-if="form.type == 2" :class="{ active_item: form.type == 2 }"> <div class="unit-item" v-if="form.type == 2" :class="{ active_item: form.type == 2 }">
<div> <div>
<img class="icon-style" src="./assets/friends_active.png" alt="" /> <img class="icon-style" src="@/assets/image/friends_active.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">群发朋友圈</div> <div class="item-title">群发朋友圈</div>
...@@ -95,7 +97,7 @@ ...@@ -95,7 +97,7 @@
</div> </div>
<div class="unit-item" v-if="form.type == 3" :class="{ active_item: form.type == 3 }"> <div class="unit-item" v-if="form.type == 3" :class="{ active_item: form.type == 3 }">
<div> <div>
<img class="icon-style" src="./assets/app_active.png" alt="" /> <img class="icon-style" src="@/assets/image/app_active.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">应用消息</div> <div class="item-title">应用消息</div>
...@@ -116,20 +118,20 @@ ...@@ -116,20 +118,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 {
...@@ -140,7 +142,7 @@ export default { ...@@ -140,7 +142,7 @@ export default {
style: 0, style: 0,
materialId: '', materialId: '',
type: null, type: null,
attachments: [], attachments: []
}, },
choseDialog: false, choseDialog: false,
showShortLink: false, showShortLink: false,
...@@ -150,8 +152,8 @@ export default { ...@@ -150,8 +152,8 @@ export default {
statusType: [ statusType: [
{ name: '待推广', key: 0 }, { name: '待推广', key: 0 },
{ name: '推广中', key: 1 }, { name: '推广中', key: 1 },
{ name: '已结束', key: 2 }, { name: '已结束', key: 2 }
], ]
} }
}, },
methods: { methods: {
...@@ -175,19 +177,19 @@ export default { ...@@ -175,19 +177,19 @@ export default {
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;
...@@ -233,11 +235,11 @@ export default { ...@@ -233,11 +235,11 @@ export default {
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: #1d2129;
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!