Commit 8b4d0057 by 前端

commit:战报修改

1 parent 9242d3e6
.sprite-icon { background-image: url(../images/sprite.png);background-size: 99px 96px;}
.icon-arrow { width: 7px; height: 11px; background-position: -79px -56px;}
.sprite-icon { background-image: url(../images/sprite.png);background-size: 119px 96px;}
.icon-arrow { width: 7px; height: 11px; background-position: -109px -19px;}
.icon-fllow { width: 18px; height: 18px; background-position: -79px -28px;}
.icon-message { width: 18px; height: 18px; background-position: 0px -78px;}
.icon-open-arrow { width: 8px; height: 7px; background-position: -56px -78px;}
.icon-name { width: 10px; height: 9px; background-position: -109px 0px;}
.icon-open-arrow { width: 8px; height: 7px; background-position: -109px -40px;}
.icon-sendwechat { width: 20px; height: 18px; background-position: -79px 0px;}
.icon-store { width: 12px; height: 11.5px; background-position: -56px -78px;}
.icon-success { width: 69px; height: 68px; background-position: 0px 0px;}
.icon-tel { width: 18px; height: 18px; background-position: -28px -78px;}
\ No newline at end of file
.icon-tel { width: 18px; height: 18px; background-position: -28px -78px;}
.icon-time { width: 11px; height: 11px; background-position: -78px -78px;}
.icon-tip { width: 12px; height: 12px; background-position: -79px -56px;}
\ No newline at end of file

9.57 KB | W: | H:

12.1 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -11,7 +11,7 @@ module.exports = {
envVersion: 'develop',
title: '嘀加企微管家',
request: {
baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间
timeout: 180000,
// 携带凭证
......
<template>
<div class="poster-wrap">
<div class="title">战报通知</div>
<div class="text-info">活动名称:{{ batterData.activityName }}</div>
<div class="text-info">活动门店:{{ batterData.merchantName }}</div>
<div class="text-info">活动时间:{{ batterData.createdDate }}</div>
<div class="poster-wrap-info">
<div class="title">{{ batterData.type == 3 ? '喜报通知' : '战报通知' }}</div>
<div class="text-info flex">
<div class="sprite-icon icon-name"></div>
活动名称:{{ batterData.activityName }}
</div>
<div class="text-info flex">
<div class="sprite-icon icon-store"></div>
活动门店:{{ batterData.merchantName }}
</div>
<div class="text-info flex">
<div class="sprite-icon icon-time"></div>
活动时间:{{ batterData.createdDate }}
</div>
</div>
<div class="poster-tip flex">
<div class="sprite-icon icon-tip"></div>
长按图片去转发
</div>
<div class="poster-img">
<img :src="batterData.url" alt="" />
</div>
......@@ -11,16 +26,18 @@
</template>
<script>
import { poster } from '@/api'
import { wxConfig } from '@/api'
export default {
data() {
return {
id: 0,
id: 2828,
batterData: {}
}
},
mounted() {
this.id = window.localStorage.getItem('dj_scrm_id') ? JSON.parse(window.localStorage.getItem('dj_scrm_id')) : 0
this.getReportId()
wxConfig.hideOptionMenu()
},
methods: {
getReportId() {
......@@ -33,27 +50,49 @@ export default {
</script>
<style lang='scss' scoped>
.poster-wrap {
margin: 8px 0;
.poster-wrap-info {
width: auto;
border-radius: 10px 10px 10px 10px;
background: rgba(255, 249, 236, 1);
padding: 7px 10px;
box-sizing: border-box;
margin: 0 10px;
}
.title {
font-size: 16px;
font-size: 12px;
color: #282829;
font-weight: 600;
margin: 0 16px;
margin: 0 8px;
margin-bottom: 4px;
}
.text-info {
margin: 0 16px;
font-size: 14px;
color: #282829;
margin: 0 8px;
font-size: 11px;
text-align: left;
color: #444444;
font-weight: 400;
margin-bottom: 4px;
}
.poster-img{
width:375px;
.poster-tip {
border-radius: 10px 10px 10px 10px;
background: rgba(255, 249, 236, 1);
margin: 5px 10px;
padding: 5px 10px;
box-sizing: border-box;
font-size: 12px;
text-align: left;
color: #4f380b;
font-weight: bold;
}
.sprite-icon {
margin-right: 4px;
}
.poster-img {
width: 375px;
height: auto;
margin-top:20px;
img{
width:100%;
height:auto;
img {
width: 100%;
height: auto;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!