Skip to content

Instantly share code, notes, and snippets.

@justqyx
Created September 28, 2016 13:15
Show Gist options
  • Save justqyx/c2f7207e59ad8e952e3008f8306d7ec9 to your computer and use it in GitHub Desktop.
Save justqyx/c2f7207e59ad8e952e3008f8306d7ec9 to your computer and use it in GitHub Desktop.
<template>
<div class="weui-dialog-confirm hidden" v-bind:class="{ 'hidden': hidden }">
<div class="weui-mask"></div>
<div class="weui-dialog">
<div class="weui-dialog-bd">
</div>
</div>
</div>
</template>
<script>
import Vue from 'vue'
export default Vue.extend({
data() {
return {
hidden: true,
iframe: null
}
},
methods: {
showModal: function(iframe) {
$(this.$el).find(".weui-dialog-bd").append(iframe);
this.hidden = true;
this.hidden = false;
},
hideModal: function() {
this.iframe = null;
this.hidden = true;
}
}
})
</script>
<style>
</style>
/** WEBPACK FOOTER **
** braintree_3ds.vue?52100891
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment