//$('.pay_info .row_left').eq(0).html('桔子链账号'); var wxChannel = null; // 微信支付 var aliChannel = null; // 支付宝支付 var channel = null; //支付通道 mui.init(); mui.plusReady(function() { var self = plus.webview.currentWebview(); from_id = self.from?self.from:1 if(from_id==3){ $("#selectHelpLevel").show(); }else{ $("#selectHelpLevel").hide(); } window.addEventListener('setAddress', function(e) { var addressId = localStorage.getItem('addressId') ? localStorage.getItem('addressId') : 0; if (addressId == 0) { return; } mui.ajax(hyhUrl('app/useraddress/getById'), { data: { addressId: addressId }, dataType: 'json', //服务器返回json格式数据 type: 'post', //HTTP请求类型 timeout: 10000, //超时时间设置为10秒; success: function(data) { //服务器返回响应,根据响应结果,分析是否登录成功; data = toJson(data); if (data.status == 1) { data = data.data; // for(i in data.data){ // //console.log(i) // //console.log(data.data[i]) // } var html = '
' + this.goodsName + '
'; $.each(this.specNames, function() { html += this.catName + ':' + this.itemName + ';'; }); html += '
¥' + price + '
ECT余额:' + data.userECT + '
付款方式
' + this.payName + '
'+each.level+':
'+each.userName.substr(0, 12)+'
抵扣额' + data.data.product.useProductOk + '
扣税 ' + data.data.product.useProductTaxFee + '
手续费 ' + data.data.product.useProductHandlingFee + '
抵扣额' + data.data.coupons.useCouponsOk + '
扣税 ' + data.data.coupons.useCouponsTaxFee + '
手续费 ' + data.data.coupons.useCouponsHandlingFee + '