Showing
4 changed files
with
64 additions
and
0 deletions
components/userinfo/invoice.js
0 → 100644
| 1 | +// component/menu/addDelete.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | + | ||
| 5 | +Component({ | ||
| 6 | + /** | ||
| 7 | + * 组件的属性列表 | ||
| 8 | + */ | ||
| 9 | + properties: { | ||
| 10 | + filePath:String, | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 组件的初始数据 | ||
| 15 | + */ | ||
| 16 | + data: { | ||
| 17 | + | ||
| 18 | + }, | ||
| 19 | + attached(){ | ||
| 20 | + | ||
| 21 | + }, | ||
| 22 | + ready () { | ||
| 23 | + | ||
| 24 | + }, | ||
| 25 | + detached(){ | ||
| 26 | + | ||
| 27 | + }, | ||
| 28 | + /** | ||
| 29 | + * 组件的方法列表 | ||
| 30 | + */ | ||
| 31 | + methods: { | ||
| 32 | + Invoice(){ | ||
| 33 | + wx.chooseInvoiceTitle({ | ||
| 34 | + success:res=>{ | ||
| 35 | + console.log('wx.chooseInvoiceTitle',res) | ||
| 36 | + }, | ||
| 37 | + fail:(efail)=>{ | ||
| 38 | + console.log('wx.chooseInvoiceTitle',res) | ||
| 39 | + wx.showModal({ | ||
| 40 | + title: '授权提示', | ||
| 41 | + content: '您拒绝了获取发票抬头,请点击确定打开授权', | ||
| 42 | + confirmColor: '#199095', | ||
| 43 | + cancelColor: '#999', | ||
| 44 | + success: function (res) { | ||
| 45 | + if (res.confirm) { | ||
| 46 | + util.setting(); | ||
| 47 | + } | ||
| 48 | + } | ||
| 49 | + }) | ||
| 50 | + }, | ||
| 51 | + }) | ||
| 52 | + }, | ||
| 53 | + } | ||
| 54 | +}) |
components/userinfo/invoice.json
0 → 100644
components/userinfo/invoice.wxml
0 → 100644
components/userinfo/invoice.wxss
0 → 100644
| 1 | +@import "../../app.wxss"; |
-
Please register or login to post a comment