From b35df858f3bee4d4b49d0d6a4fa0f2c576aa0143 Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Fri, 22 Apr 2022 09:48:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=B4=B5=E5=B7=9E=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E5=95=86=E5=A1=AB=E5=86=99=E6=89=8B=E6=9C=BA=E5=88=86?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 16 ++-- Utils/Api.js | 7 +- .../coupons-info-details.vue | 69 +++++++++------- pages/user/agentCoupons/agentCoupons.vue | 81 +++++++++++++++---- 4 files changed, 118 insertions(+), 55 deletions(-) diff --git a/App.vue b/App.vue index c85253e..751aaba 100644 --- a/App.vue +++ b/App.vue @@ -5,15 +5,15 @@ // brestUrl: 'http://192.168.3.4:9302/brest', // imgUrl: 'https://192.168.3.4:9301/filesystem/', //正式 - // url: 'https://hsg.dctpay.com/crest', - // imgUrl: 'https://hsg.dctpay.com/filesystem/', - // brestUrl : 'https://hsg.dctpay.com/brest', - // imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', + url: 'https://hsg.dctpay.com/crest', + imgUrl: 'https://hsg.dctpay.com/filesystem/', + brestUrl : 'https://hsg.dctpay.com/brest', + imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', //测试 - url: 'https://hsgcs.dctpay.com/crest', - brestUrl : 'https://hsgcs.dctpay.com/brest', - imgUrl: 'https://hsgcs.dctpay.com/filesystem/', - imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', + // url: 'https://hsgcs.dctpay.com/crest', + // brestUrl : 'https://hsgcs.dctpay.com/brest', + // imgUrl: 'https://hsgcs.dctpay.com/filesystem/', + // imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', userInfo: "", brestUserInfo : '', openId: '', diff --git a/Utils/Api.js b/Utils/Api.js index 380dd70..765eb8c 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -358,7 +358,12 @@ export const useCouponCode = params => { //**代理商// export const getAgentCount = params => { return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentCount`, params).then(res => res.data); -} +} +//推送贵州中石化 +export const pushGzSinopec = params => { + return POSTBREST('POST', `${brestBase}/highCouponAgent/pushGzSinopec`, params).then(res => res.data); +} + // 查询销售码 export const getCodeListByAgentCoupon = params => { return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeListByAgentCoupon`, params).then(res => res.data); diff --git a/pages/goods/coupons-info-details/coupons-info-details.vue b/pages/goods/coupons-info-details/coupons-info-details.vue index c94021d..522400d 100644 --- a/pages/goods/coupons-info-details/coupons-info-details.vue +++ b/pages/goods/coupons-info-details/coupons-info-details.vue @@ -21,32 +21,34 @@ 消费时间:{{threeTime | formatDate('-')}} - - 加油站点:{{couponDesInfo.couponCode.storeName}} 备注:{{couponDesInfo.couponAgentCode.remark}} - - - - 核销码(商户扫客户) + + + 加油站点:{{couponDesInfo.couponCode.storeName}} + + + 核销码(商户扫客户) + + 请告知加油员用码商支付 + + + + + + 点击下方复制按钮,复制兑换码发送用户 + {{couponDesInfo.couponAgentCode.convertCode}} + 复制兑换码 + + + @@ -107,13 +109,18 @@ let params = { couponAgentCodeId: this.couDesId } - getCodeById(params).then(res => { + getCodeById(params).then(res => { uni.hideLoading() if (res.return_code == '000000') { this.couponDesInfo = res.return_data; - this.oneTime = res.return_data.couponCode.receiveTime; - this.twoTime = res.return_data.couponCode.useEndTime; - this.threeTime = res.return_data.couponCode.consumeTime; + if (res.return_data.couponInfo.couponSource != 4 && res.return_data.couponCode) { + this.oneTime = res.return_data.couponCode.receiveTime; + this.twoTime = res.return_data.couponCode.useEndTime; + this.threeTime = res.return_data.couponCode.consumeTime; + return; + } + this.oneTime = res.return_data.couponCodeOther.activeTime; + this.twoTime = res.return_data.couponCodeOther.validEndDate; } }) }, @@ -149,15 +156,15 @@ // uni.hideLoading() // } // }) - // }, - //复制内容 - copycont(item){ - uni.setClipboardData({ - data: item, - success:function(){ - - } - }) + // }, + //复制内容 + copycont(item) { + uni.setClipboardData({ + data: item, + success: function() { + + } + }) } } } diff --git a/pages/user/agentCoupons/agentCoupons.vue b/pages/user/agentCoupons/agentCoupons.vue index be28572..c75b18f 100644 --- a/pages/user/agentCoupons/agentCoupons.vue +++ b/pages/user/agentCoupons/agentCoupons.vue @@ -20,7 +20,8 @@ - @@ -28,7 +29,8 @@ v-if="typeId == 2 && agent.remark !=null && typeid == 1"> 备注:{{agent.remark}} - @@ -40,12 +42,14 @@ - 填写备注 + 填写信息 + - + @@ -56,7 +60,8 @@