Commit 843494c605d016049c6d7d9192026ec94ded3ed0

Authored by vking
1 parent 1e5d5604

pay

// component/menu/addDelete.js
import util from '../../utils/util';
import App from '../../utils/api';
Component({
/**
* 组件的属性列表
*/
properties: {
filePath:String,
},
/**
* 组件的初始数据
*/
data: {
},
attached(){
},
ready () {
},
detached(){
},
/**
* 组件的方法列表
*/
methods: {
Invoice(){
wx.chooseInvoiceTitle({
success:res=>{
console.log('wx.chooseInvoiceTitle',res)
},
fail:(efail)=>{
console.log('wx.chooseInvoiceTitle',res)
wx.showModal({
title: '授权提示',
content: '您拒绝了获取发票抬头,请点击确定打开授权',
confirmColor: '#199095',
cancelColor: '#999',
success: function (res) {
if (res.confirm) {
util.setting();
}
}
})
},
})
},
}
})
... ...
{
"component": true,
"usingComponents": {
"formids": "/components/formids/formids"
}
}
\ No newline at end of file
... ...
<view bindtap="Invoice" style="width: 100%;">
<slot></slot>
</view>
\ No newline at end of file
... ...
@import "../../app.wxss";
\ No newline at end of file
... ...