Commit c1990310 by 杨明

fixed

1 parent 894951e7
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-19 13:46:20 * @Date: 2023-05-19 13:46:20
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-20 10:46:23 * @LastEditTime: 2023-07-20 16:55:50
* @FilePath: \scrm-micro-home\src\mixins\gpt.js * @FilePath: \scrm-micro-home\src\mixins\gpt.js
* @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
*/ */
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
const style2 = draggableList[1] const style2 = draggableList[1]
const drawfun = new Drawing(document.getElementById('canvasId'), { const drawfun = new Drawing(document.getElementById('canvasId'), {
width: WIDTH, width: WIDTH,
height: info.backgroundHeight + info.detailHeight height: info.backgroundHeight
}) })
const imageList = [ const imageList = [
{ {
...@@ -120,15 +120,6 @@ export default { ...@@ -120,15 +120,6 @@ export default {
height: info.backgroundHeight height: info.backgroundHeight
} }
] ]
if (info.detailImage) {
imageList.push({
url: info.detailImage,
x: 0,
y: info.backgroundHeight,
width: WIDTH,
height: info.detailHeight
})
}
if (info.merchantLogo) { if (info.merchantLogo) {
imageList.push({ ...info.logoInfo, url: info.merchantLogo }) imageList.push({ ...info.logoInfo, url: info.merchantLogo })
} }
......
...@@ -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-20 16:42:00 * @LastEditTime: 2023-07-20 16:56:29
* @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
--> -->
...@@ -315,7 +315,6 @@ export default { ...@@ -315,7 +315,6 @@ export default {
data() { data() {
return { return {
backgroundHeight: 0, backgroundHeight: 0,
detailHeight: 0,
logoHeight: 0, logoHeight: 0,
currentIndex: 0, currentIndex: 0,
isFestival: false, isFestival: false,
...@@ -424,7 +423,6 @@ export default { ...@@ -424,7 +423,6 @@ export default {
}, },
process: { process: {
handler(val) { handler(val) {
this.detailHeight = 0
const detail = { ...this.detail, ...val[2] } const detail = { ...this.detail, ...val[2] }
detail.activityPrice = val[1].activityPrice detail.activityPrice = val[1].activityPrice
this.validActivity(detail) this.validActivity(detail)
...@@ -460,7 +458,6 @@ export default { ...@@ -460,7 +458,6 @@ export default {
this.modelNum = this.detail.codeId this.modelNum = this.detail.codeId
this.isRenewal = true this.isRenewal = true
this.backgroundHeight = await this.getImgH(this.detail.backgroundImage || this.detail.mainImage) this.backgroundHeight = await this.getImgH(this.detail.backgroundImage || this.detail.mainImage)
if (this.detail.detailImage) this.detailHeight = await this.getImgH(this.detail.detailImage)
const style1 = JSON.parse(this.detail.titleStyle) const style1 = JSON.parse(this.detail.titleStyle)
const style2 = JSON.parse(this.detail.subTitleStyle) const style2 = JSON.parse(this.detail.subTitleStyle)
const styles = [style1, style2] const styles = [style1, style2]
......
...@@ -135,14 +135,13 @@ export default { ...@@ -135,14 +135,13 @@ export default {
this.loading = true this.loading = true
const { const {
backgroundHeight, backgroundHeight,
detailHeight,
logoInfo, logoInfo,
detail: { backgroundImage, detailImage, merchantLogo, titleStyle, subTitleStyle }, detail: { backgroundImage, detailImage, merchantLogo, titleStyle, subTitleStyle },
draggableList draggableList
} = this.$refs.viewForm } = this.$refs.viewForm
let url = backgroundImage let url = backgroundImage
if (RENEWAL.includes(params.codeId)) { if (RENEWAL.includes(params.codeId)) {
url = await this.createMain({ backgroundHeight, detailHeight, logoInfo, backgroundImage, detailImage, merchantLogo }, draggableList) //合并主图、文字 url = await this.createMain({ backgroundHeight, logoInfo, backgroundImage, detailImage, merchantLogo }, draggableList) //合并主图、文字
const style1 = draggableList[0] const style1 = draggableList[0]
const style2 = draggableList[1] const style2 = draggableList[1]
const titleStyle = JSON.parse(params.titleStyle) const titleStyle = JSON.parse(params.titleStyle)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!