Commit 2d8d5a84 authored by Xuguangxing's avatar Xuguangxing

fix

parent 5c6d3c66
......@@ -186,7 +186,8 @@ export default {
payContractInfo: {},
isCheckAgreement: false,
mergePayPretreatmentInfo: {},
tradeType: isWechat ? 'JSAPI' : 'MWEB'
tradeType: isWechat ? 'JSAPI' : 'MWEB',
amountInfo: {}
};
},
computed: {
......@@ -252,7 +253,7 @@ export default {
async queryPayInfo() {
const [data, error] = await queryPayInfo({
orderNo: this.orderNo,
isUsedMergePayMethod: cookies.get('source') !== 'tob' // 是否需要组合支付,true需要。false不需要
isUsedMergePayMethod: false
});
if (error && codeArr.indexOf(error?.response?.businessCode) < 0) {
this.payResult('Fail');
......@@ -523,7 +524,9 @@ export default {
query: {
reason: error,
orderNo: this.orderNo,
payType: this.payType
payType: this.payType,
finalAmt: this.amountInfo.finalAmt || '',
freeAmount: this.amountInfo.freeAmount || ''
}
});
},
......@@ -620,6 +623,7 @@ export default {
: (orderAmt - faceValue || 0).toFixed(2);
const freeAmount =
!IS_THIRD_PAY(this.payType) && this.showCoupon ? faceValue || '0.00' : '0.00';
this.amountInfo = { finalAmt, freeAmount };
cookies.set('amount', { finalAmt, freeAmount });
},
async reissueContract() {
......
......@@ -51,7 +51,7 @@
<cr-image src="@/assets/images/groupBuy/activity.png" />
</div>
<div v-if="isSuccess && couponList.length" class="coupon-box">
<!-- <div v-if="isSuccess && couponList.length" class="coupon-box">
<p class="coupon-tip">本单已享以下权益</p>
<div class="coupon-wrap">
<CouponCard
......@@ -62,13 +62,13 @@
@click="goViewCouponDetail"
/>
</div>
</div>
</div> -->
<!-- <Goods /> -->
</div>
</template>
<script>
import { goUrlExtends } from './extends';
import CouponCard from './components/CouponCard.vue';
// import CouponCard from './components/CouponCard.vue';
import { getCouponList } from '@/api/pay.api';
import groupBuyApi from '@/api/groupBuy';
// import Goods from '@/components/RecoGoods/RecoGoods.vue';
......@@ -77,7 +77,7 @@ import { EventBus } from '@/service/utils.service';
export default {
components: {
// Goods,
CouponCard
// CouponCard
},
extends: goUrlExtends,
data() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment