# pay-password 支付密码1.0.8
# 基本使用
<template>
<view>
<unify-pay-password ref="pay" @success="payPassword" money="520"></unify-pay-password>
<view class="row-center">
<unify-button @click="pay" text="支付密码"></unify-button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
methods: {
pay: function() {
this.$refs.pay.open();
},
payPassword: function(e) {
let me = this;
uni.showLoading({
mask:true,
title:"支付中..."
});
console.log(e);
setTimeout(function() {
me.$refs.pay.close();
uni.hideLoading();
}, 3000);
}
}
}
</script>
<style lang="scss">
</style>
# Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
money | 金额 | String/Number | - | - |
# Event
事件名 | 说明 | 回调参数 |
---|---|---|
@success | 支付密码输入完成事件 | 返回输入内容 |
← list 列表