<template> | |
<wxc-list-item onclick="{{redirect}}"> | |
<text class="item-txt">{{ title }}</text> | |
</wxc-list-item> | |
</template> | |
<style> | |
.item-txt { | |
font-size: 48px; | |
color: #555; | |
} | |
</style> | |
<script> | |
require('weex-components'); | |
module.exports = { | |
data: { | |
title: '', | |
url: '' | |
}, | |
methods: { | |
redirect: function() { | |
this.$openURL(this.url); | |
} | |
} | |
} | |
</script> |