Commit 843494c605d016049c6d7d9192026ec94ded3ed0

Authored by vking
1 parent 1e5d5604

pay

  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 +})
  1 +{
  2 + "component": true,
  3 + "usingComponents": {
  4 + "formids": "/components/formids/formids"
  5 + }
  6 +}
  1 +<view bindtap="Invoice" style="width: 100%;">
  2 + <slot></slot>
  3 +</view>
  1 +@import "../../app.wxss";