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 @@