Commit 1595fde0 by 杨明

fixed

1 parent d81e5c2c
......@@ -16,7 +16,7 @@
</template>
<script>
import { mapState } from 'vuex'
import { mapState, mapMutations } from 'vuex'
import phoneView from './PhoneView'
import draw from '@/mixins/draw'
export default {
......@@ -46,14 +46,11 @@ export default {
}
},
methods: {
...mapMutations('marketing', ['SET_INIT']),
init() {
this.SET_INIT(true)
},
async handleSave() {
const {
backgroundHeight,
detail: { backgroundImage },
draggableList
} = this.$refs.viewForm
console.log(this.process)
const url = await this.createMain(backgroundHeight, backgroundImage, draggableList)
let params = { merchantId: this.$globalState.session.merchantId }
for (let k in this.process) {
if (!this.process[k]) {
......@@ -62,6 +59,12 @@ export default {
}
params = { ...params, ...this.process[k] }
}
const {
backgroundHeight,
detail: { backgroundImage },
draggableList
} = this.$refs.viewForm
const url = await this.createMain(backgroundHeight, backgroundImage, draggableList)
params.subscribe = this.subscribe
params.backgroundImage = url
this.loading = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!