收藏
回答

ios机型为什么在企业微信小程序中无法调起微信支付?

      payServer.sendBillInfo({ feeId: this.data.feeId, individualSignature: this.data.userSignature! }).then((res: any) => {
        console.log("ress", res);
        var that = this;
        if (res.success) {
          console.log('ress success',{ billIds: [res.data.billIDMap[0].billId], feeId: this.data.feeId, openId: openId, billIDMap: res.data.billIDMap });
         //以下代码在ios上未执行 在Android机型上能够正常支付
 payServer.sendPayRequest({ billIds: [res.data.billIDMap[0].billId], feeId: this.data.feeId, openId: openId, billIDMap: res.data.billIDMap })
          .then((resp: any) => {
            console.log("resp", resp);
            // if (resp.data.status == 1) {
            console.log("xx""timeStamp", resp.data.timeStamp,
              "nonceStr", resp.data.nonceStr,
              "package", resp.data.pack,
              "signType", resp.data.signType,
              "paySign", resp.data.paySign);
            wx.requestPayment(
              {
                "timeStamp": resp.data.timeStamp,
                "nonceStr": resp.data.nonceStr,
                "package": resp.data.pack,
                "signType": resp.data.signType,
                "paySign": resp.data.paySign,
                "success": function (ress) {
                  //支付结果查询中
                  intervalId = setInterval(that.getPayResult, 2000)


                },
                "fail": function (res) {
                  wx.navigateTo({
                    url: `../result/result?status=0`,
                  })
                },
                "complete": function (res) {
                }
              })


            // }


          }).catch((errs: any) => {
            console.log("发送预交费错误 原因", errs);


          }).finally(() => {
            Toast.clear()
          })
        } else {
          Toast(res.message)
        }
      })
  


回答关注问题邀请回答
收藏
登录 后发表内容