1、wxml

<view bindtap="pay_again" data-name="{{orderList.jid}}" data-fee="{{orderList.act_fee}}" data-mobile="{{orderList.p_phone}}" data-act="{{orderList.act_name}}" class="operating f_r webkit-box" style="line-height:30px;"> 
          <a href="" class="pay bg_red">继续支付</a> 
      </view>

2、js

  // 再次发起支付请求,调用后台PHP
  pay_again:function(e){
    var that = this;
    that.setData({
      jid: e.currentTarget.dataset.name,
      act_name: e.currentTarget.dataset.act,
      act_fee: e.currentTarget.dataset.fee,
      mobile: e.currentTarget.dataset.mobile
    })
    console.log('活动订单id = ' + that.data.mobile);
  }

 

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-05-30
  • 2022-02-26
  • 2021-10-23
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案