Commit 1595fde0 by 杨明

fixed

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