| | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <div class="container"> |
| | | <div class="container" style="display: none;"> |
| | | <tbody> |
| | | <div class="divBody"> |
| | | <div class="lsit"> |
| | |
| | | <img id="imgVip" src="img/vip_normol.png"> |
| | | </div> |
| | | <div class="divGradeRight"> |
| | | <img src="img/箭头.png"> |
| | | <img src="img/array.png"> |
| | | <p id="pUpperFanLi">¥0.00</p> |
| | | </div> |
| | | </div> |
| | |
| | | }); |
| | | </script> |
| | | <script> |
| | | var host = "http://api.flqapp.com"; |
| | | var host = "http://192.168.1.253:8080"; |
| | | $(function() { |
| | | // 跳转链接 |
| | | var jumpLink = null; |
| | |
| | | // 请求数据 |
| | | function fetchReBateInfo() { |
| | | // yesApp.showLoading(); |
| | | var params = {s |
| | | var params = { |
| | | uid: uid, |
| | | orderNo: orderNo, |
| | | sourceType: sourceType |
| | |
| | | data: JSON.parse(params), |
| | | url: host + "/fanli/api/v2/user/order/getReBateInfo", |
| | | dataType: "jsonp", |
| | | async: true, |
| | | async: false, |
| | | success: function(result) { |
| | | if (result.code == 0) { |
| | | $(".container").css("display", "block"); |
| | | |
| | | userLevel = result.data.result.userLevel; |
| | | jumpLink = result.data.result.jumpLink; |
| | | listGoods = result.data.result.listGoods; |
| | |
| | | latest.find(".title").text(listGood.title); |
| | | latest.find(".actual_payment").text(listGood.actualPay); |
| | | |
| | | if (userLevel == 'daRen') { |
| | | if (userLevel == 'normalVIP') { |
| | | latest.find(".rebate_ratio").text(listGood.fanliRate); |
| | | latest.find(".estimated_rebate").text(listGood.fanliExpect); |
| | | latest.find(".pSubsidy").css({ |
| | |
| | | latest.find(".estimated_rebate").css({ |
| | | "fontWeight": "bold" |
| | | }); |
| | | |
| | | } else if (userLevel == 'normalVIP') { |
| | | } else { |
| | | latest.find(".rebate_ratio_desc").text("佣金:"); |
| | | latest.find(".estimated_rebate_desc").text("平台补贴:"); |
| | | latest.find(".rebate_ratio").text(listGood.commision); |
| | | latest.find(".estimated_rebate").text(listGood.subsidy); |
| | | latest.find(".pSubsidy").text(listGood.actualPay); |
| | | |
| | | latest.find(".pSubsidy").text(listGood.originSubsidy); |
| | | if (userLevel == 'highVIP') { |
| | | imgVip.attr("src", "img/vip_senior.png"); |
| | | |
| | | } else if (userLevel == 'highVIP') { |
| | | latest.find(".rebate_ratio_desc").text("佣金:"); |
| | | latest.find(".estimated_rebate_desc").text("平台补贴:"); |
| | | latest.find(".rebate_ratio").text(listGood.commision); |
| | | latest.find(".estimated_rebate").text(listGood.subsidy); |
| | | latest.find(".pSubsidy").text(listGood.actualPay); |
| | | |
| | | imgVip.attr("src", "img/vip_super"); |
| | | |
| | | |
| | | } else if (userLevel == 'superVIP') { |
| | | latest.find(".rebate_ratio_desc").text("佣金:"); |
| | | latest.find(".estimated_rebate_desc").text("平台补贴:"); |
| | | latest.find(".rebate_ratio").text(listGood.commision); |
| | | latest.find(".estimated_rebate").text(listGood.subsidy); |
| | | latest.find(".pSubsidy").text(listGood.actualPay); |
| | | |
| | | divUpgradeNow.css({ |
| | | "opacity": "0", |
| | | "height": "0" |
| | | }); |
| | | divPlaceholder.css("height", "0"); |
| | | imgVip.attr("src", "img/vip_super.png"); |
| | | } |
| | | if (userLevel == null || userLevel == '') { |
| | | $("#divUpgradeNow").css("display", "none"); |
| | | } |
| | | } |
| | | } |
| | | setResult(result.data.result.totalFanLi, result.data.result.upperFanLi); |