<view class="chongz" bindtap="sadasd">立即充值</view>
sadasd (){
var that=this
wx.request({
url: app.globalData.baseUrl + "url",
data: {
userid: 55177,
money:0.01
},
method: 'post',
success: function (res) {
// console.log("asdasdsad",plis.length);
that.setData({
orderid:res.data.data.orderid
})
that.Mallpay()
},
});
// wx.requestPayment({
// timeStamp: '',
// nonceStr: '',
// package: '',
// signType: 'MD5',
// paySign: '',
// success (res) { },
// fail (res) { }
// })
},
Mallpay(e){
var that=this
wx.request({
url: app.globalData.baseUrl + "url",
data: {
userid: 55177,
orderid:that.data.orderid
},
method: 'post',
success: function (res) {
consol