| | |
| | | <li>
|
| | | <div class="div_mh_img">
|
| | | <img class="imgHeader">
|
| | | <img v-if="lockShow" class="imgHeaderLock" src="img/icon_lock.png">
|
| | | </div>
|
| | |
|
| | | <div class="divRight">
|
| | |
| | | <div id="divUpgradeNow" v-if="riselevel">
|
| | | <div class="divGradeLeft">
|
| | | <p>立即升级</p>
|
| | | <img id="imgVip" src="img/vip_normol.png">
|
| | | <img id="imgVip" src="img/vip_super.png">
|
| | | </div>
|
| | | <div class="divGradeRight">
|
| | | <img src="img/array.png">
|
| | | <p id="pUpperFanLi">¥0.00</p>
|
| | | </div>
|
| | | </div>
|
| | | <!-- -->
|
| | | <!-- 券状态 -->
|
| | | <div class="div_riseLevel_bg" v-if="flqshow" :style="riseLevelCss" @click="on_useRebate">
|
| | | <div class="riseLevelLeft">
|
| | | <p>立即使用</p>
|
| | | <img src="img/icon_flq.png">
|
| | | <p>{{money.couponText}}</p>
|
| | | <img class="imgCouponType" src="img/icon_flq.png">
|
| | | </div>
|
| | | <div class="riseLevelRight">
|
| | | <img src="img/array.png">
|
| | | <p>返利再返</p>
|
| | | <p>{{money.couponDesc}}</p>
|
| | | </div>
|
| | | </div>
|
| | |
|
| | |
| | | </div>
|
| | | <div class="spanCustomerService">
|
| | | 1.不同的会员等级可获得不同的权益;<br />
|
| | | 2.会员等级增加团队补贴也会增加;<br />
|
| | | 3.普通会员以上可享团队补贴;<br />
|
| | | 4.如果你的返利、奖金、收益有异议,请联系<a href="javascript:void()" style="text-decoration: none;color: #0068DC; " @click="kefu">人工客服</a>
|
| | | 2.会员等级增加可获得的返利、奖金、收益也会增加;<br />
|
| | | 3.如有疑问,请联系<a href="javascript:void()" style="text-decoration: none;color: #0068DC; " @click="kefu">人工客服</a>
|
| | | </div>
|
| | | </div>
|
| | | </tfoot>
|
| | |
| | | <script src="http://img.flqapp.com/resource/js/app20200227.js"></script>
|
| | |
|
| | | <script>
|
| | | // 是否需要重新刷新UI
|
| | | var isReload = false;
|
| | | var host = "http://192.168.1.253:8080";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | |
| | | data: {
|
| | | wqshow: true,
|
| | | riselevel: true,
|
| | | flqshow: false,
|
| | | flqshow: true,
|
| | | coupon: false, |
| | | // 是否使用券
|
| | | couponUse: false,
|
| | | lockShow: false,
|
| | | couponJumpDetail: '',
|
| | | couponParams: '',
|
| | | totalRebate: {
|
| | | marginTop: ''
|
| | | },
|
| | |
| | | totalRebateTitle: '',
|
| | | totalRebateDesc: '',
|
| | | arrivalStatusTitle: '到账状态',
|
| | | arrivalStatusDesc: ''
|
| | | arrivalStatusDesc: '',
|
| | | couponText: '', |
| | | couponDesc: ''
|
| | | },
|
| | |
|
| | | coupninfo: {
|
| | |
| | | on_useRebate: function() {
|
| | | app.fetchCoupnList();
|
| | | },
|
| | | // 使用券或者查看使用详情
|
| | | fetchCoupnList: function() {
|
| | | var orderNo = getQueryString("orderNo");
|
| | | if (orderNo == null || orderNo.length <= 0) {
|
| | | yesApp.toast("订单号为空");
|
| | | return;
|
| | | }
|
| | | var uid = yesApp.getUid();
|
| | | yesApp.showLoading();
|
| | | var params = {
|
| | | uid: uid,
|
| | | orderNo: orderNo,
|
| | | };
|
| | |
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | | var host = "http://192.168.1.253:8080";
|
| | |
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: host + "/fanli/api/v2/user/coupon/getOrderCouponList",
|
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | yesApp.hideLoading();
|
| | | if (result.code == 0) {
|
| | | app.setCoupunListData(result.data);
|
| | |
|
| | | } else {
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | error: function(XMLHttpRequest, textStatus, errorThrown) {
|
| | | yesApp.hideLoading();
|
| | | if (textStatus === 'timeout') {
|
| | | alert('请求超时');
|
| | | setTimeout(function() {
|
| | |
|
| | | }, 2000);
|
| | | }
|
| | | // 使用券
|
| | | if (app.coupon) {
|
| | | var orderNo = getQueryString("orderNo");
|
| | | if (orderNo == null || orderNo.length <= 0) {
|
| | | yesApp.toast("订单号为空");
|
| | | return;
|
| | | }
|
| | | });
|
| | | var uid = yesApp.getUid();
|
| | | yesApp.showLoading();
|
| | | var params = {
|
| | | uid: uid,
|
| | | orderNo: orderNo,
|
| | | };
|
| | |
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | | var host = "http://192.168.1.253:8080";
|
| | |
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: host + "/fanli/api/v2/user/coupon/getOrderCouponList",
|
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | yesApp.hideLoading();
|
| | | if (result.code == 0) {
|
| | | app.setCoupunListData(result.data);
|
| | |
|
| | | } else {
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | error: function(XMLHttpRequest, textStatus, errorThrown) {
|
| | | yesApp.hideLoading();
|
| | | if (textStatus === 'timeout') {
|
| | | alert('请求超时');
|
| | | setTimeout(function() {
|
| | |
|
| | | }, 2000);
|
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | | //查看使用详情
|
| | | if (app.couponUse) {
|
| | | yesApp.jumpPage(app.couponJumpDetail, app.couponParams);
|
| | | }
|
| | | },
|
| | | setCoupunListData: function(data) {
|
| | | var coupninfo = {
|
| | |
| | | var sourceType = getQueryString("sourceType");
|
| | | // 立即升级
|
| | | var divUpgradeNow = $("#divUpgradeNow");
|
| | | var imgVip = $("#imgVip");
|
| | | var divPlaceholder = $("#divPlaceholder");
|
| | | if (orderNo == null || orderNo.length <= 0) {
|
| | | yesApp.toast("订单号为空");
|
| | |
| | | //result.data.result.wq
|
| | | app.wqshow = true;
|
| | |
|
| | | if (userLevel == null || userLevel.length == 0) {
|
| | | if (userLevel == 'superVIP' || userLevel == 'tearcher' || parseInt(result.data.result.couponType) == 2) {
|
| | | app.riselevel = false;
|
| | | }
|
| | | |
| | | app.flqshow = result.data.result.coupon;
|
| | | |
| | | // 是否可以使用奖励券
|
| | | var coupon = result.data.result.coupon;
|
| | | // 成功使用奖励券
|
| | | var couponUse = result.data.result.couponUse;
|
| | |
|
| | | if (!coupon && !couponUse) {
|
| | | app.flqshow = false;
|
| | | }
|
| | | |
| | | app.coupon = coupon;
|
| | | app.couponUse = couponUse;
|
| | | app.couponJumpDetail = result.data.result.couponJumpDetail;
|
| | | app.couponParams = result.data.result.couponParams; |
| | | |
| | | if (parseInt(result.data.result.couponType) == 2) { |
| | | $('.imgCouponType').attr("src", 'img/icon_miandan.png'); |
| | | $('.imgCouponType').css({ |
| | | "width": "0.94rem" |
| | | }) |
| | | }
|
| | |
|
| | | if (!app.wqshow) {
|
| | | app.totalRebate.marginTop = '0.3rem';
|
| | |
| | | if (!app.riselevel) {
|
| | | app.riseLevelCss.marginTop = '0.28rem';
|
| | | }
|
| | |
|
| | | // 团队订单
|
| | | if (parseInt(result.data.result.type) == 3) {
|
| | | app.lockShow = true;
|
| | | }
|
| | | |
| | | var money = {
|
| | | totalRebateTitle: result.data.result.fanLiDesc,
|
| | | totalRebateDesc: result.data.result.fanLi,
|
| | | arrivalStatusTitle: '到账状态',
|
| | | arrivalStatusDesc: result.data.result.stateDesc
|
| | | arrivalStatusDesc: result.data.result.stateDesc,
|
| | | couponText: result.data.result.couponText, |
| | | couponDesc: result.data.result.couponDesc
|
| | | }
|
| | |
|
| | | app.money = money;
|
| | |
| | | wqMoney: result.data.result.wqMoney,
|
| | | }
|
| | | app.wq = wq;
|
| | |
|
| | | if (userLevel == 'normalVIP') {
|
| | | imgVip.attr("src", "img/vip_normol.png");
|
| | |
|
| | |
|
| | | } else if (userLevel == 'highVIP') {
|
| | | imgVip.attr("src", "img/vip_senior.png");
|
| | |
|
| | | }
|
| | |
|
| | | //取到li层级保存
|
| | | var html = "<li>" + $(".ulList").children("li").eq(0).html() + "</li>";
|
| | |
| | | latest.find(".actual_payment").text(listGood.actualPay);
|
| | |
|
| | | if (parseInt(result.data.result.type) == 3) {
|
| | | latest.find(".rebate_ratio_desc").text('团队奖金');
|
| | | latest.find(".rebate_ratio_desc").text('团队奖金:');
|
| | |
|
| | | latest.find(".estimated_rebate_desc").text('团队补贴');
|
| | | // 团队奖金
|
| | |
| | | "textAlign": "center"
|
| | | });
|
| | | latest.find(".imgHeader").css({
|
| | | "filter": "blur(15px)"
|
| | | "filter": "blur(0.19rem)"
|
| | | });
|
| | |
|
| | | } else {
|
| | |
| | | success: function(result) {
|
| | | yesApp.hideLoading();
|
| | | if (result.code == 0) {
|
| | | layer.closeAll();
|
| | | isReload = true;
|
| | | yesApp.jumpPage(result.data.rewardDetail.jump.jumpDetail, result.data.rewardDetail.jump.params);
|
| | |
|
| | | layer.closeAll(); |
| | | |
| | | } else {
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | error: function(XMLHttpRequest, textStatus, errorThrown) {
|
| | | yesApp.hideLoading();
|
| | |
|
| | | yesApp.toast('使用失败');
|
| | | if (textStatus === 'timeout') {
|
| | | yesApp.toast('请求超时');
|
| | | setTimeout(function() {
|
| | |
| | | });
|
| | | };
|
| | | });
|
| | |
|
| | | var yestvcallback = {
|
| | | resume: function() {
|
| | | if (isReload) {
|
| | | window.location.reload();
|
| | | }
|
| | | }
|
| | | };
|
| | | </script>
|
| | | </html> |