Commit 21a9e862 by 杨明

fixed

1 parent 2a7bbf85
...@@ -68,7 +68,7 @@ import selectGoodsDialog from './components/SelectGoodsDialog' ...@@ -68,7 +68,7 @@ import selectGoodsDialog from './components/SelectGoodsDialog'
import PhoneView from './components/PhoneView' import PhoneView from './components/PhoneView'
import getUploadImgColor from '@/utils/color' import getUploadImgColor from '@/utils/color'
const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8] const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8]
const WIDTH = 275 const WIDTH = 285
const RATIO = 375 / WIDTH const RATIO = 375 / WIDTH
export default { export default {
name: 'addCalendar', name: 'addCalendar',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32 * @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-14 20:41:15 * @LastEditTime: 2023-07-14 21:52:37
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue * @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</div> </div>
</template> </template>
<script> <script>
const WIDTH = 275 const WIDTH = 285
const RATIO = WIDTH / 375 const RATIO = WIDTH / 375
const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8] const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8]
import VueDraggableResizable from '@/components/draggable/vue-draggable-resizable' import VueDraggableResizable from '@/components/draggable/vue-draggable-resizable'
...@@ -217,15 +217,29 @@ export default { ...@@ -217,15 +217,29 @@ export default {
return return
} }
const textList = [] const textList = []
const allStyle = {
titleStyle: style1,
subTitleStyle: style2
}
title.split(' ').forEach((item, index) => {
textList.push({ textList.push({
...style1, x: allStyle.titleStyle.x,
text: title y: allStyle.titleStyle.y + index * allStyle.titleStyle.fontSize * 1.14,
fontSize: allStyle.titleStyle.fontSize,
color: allStyle.titleStyle.color,
text: item,
bold: allStyle.titleStyle.bold
})
}) })
new Array(subTitle).forEach((item, index) => {
textList.push({ textList.push({
...style2, x: allStyle.subTitleStyle.x,
text: subTitle y: allStyle.subTitleStyle.y + allStyle.titleStyle.fontSize * 1.14 * (textList.length - 1),
fontSize: allStyle.subTitleStyle.fontSize,
color: allStyle.subTitleStyle.color,
text: item
})
}) })
this.textList = textList this.textList = textList
console.log(this.textList) console.log(this.textList)
} catch (e) { } catch (e) {
...@@ -300,7 +314,7 @@ export default { ...@@ -300,7 +314,7 @@ export default {
text-align: center; text-align: center;
} }
img { img {
width: 275px; width: 280px;
} }
} }
} }
...@@ -416,7 +430,7 @@ export default { ...@@ -416,7 +430,7 @@ export default {
} }
} }
.main-body { .main-body {
margin-top: 63px; margin-top: -20px;
} }
} }
</style> </style>
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
}, },
watch: { watch: {
'addForm.messageContext': { 'addForm.messageContext': {
handler: function () { handler: function() {
this.content = [] this.content = []
let str = this.addForm.messageContext let str = this.addForm.messageContext
let num = 70 let num = 70
...@@ -513,7 +513,7 @@ export default { ...@@ -513,7 +513,7 @@ export default {
} }
} }
.form-image { .form-image {
width: 280px; width: 285px;
height: 546px; height: 546px;
margin: 20px 80px 20px 0; margin: 20px 80px 20px 0;
position: relative; position: relative;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!