更换核销product_id->goods_id

This commit is contained in:
Apple 2022-06-15 20:28:39 +08:00
parent c2415ea14f
commit 2b1847fb1e
2 changed files with 22 additions and 14 deletions

View File

@ -270,7 +270,7 @@
let self = this; let self = this;
let data = { let data = {
"key": sessionStorage.getItem('key'), "key": sessionStorage.getItem('key'),
"product_id": this.goodInfo.product_id, "goods_id": this.goodInfo.goods_id,
"account": this.account, "account": this.account,
"code_batch_id": this.goodInfo.code_batch_id, "code_batch_id": this.goodInfo.code_batch_id,
"token": sessionStorage.getItem('token') "token": sessionStorage.getItem('token')

View File

@ -66,6 +66,13 @@
<p class="validity"> <p class="validity">
有效期:{{reduceInfo.time_limit.effect_time.start_time}}至{{reduceInfo.time_limit.effect_time.end_time}} 有效期:{{reduceInfo.time_limit.effect_time.start_time}}至{{reduceInfo.time_limit.effect_time.end_time}}
</p> </p>
<p class="validity" v-if="!fiexd_time">
领取后{{reduceInfo.time_limit.effect_date_type==0?'立即':'次日凌晨'}}生效,有效期
{{reduceInfo.time_limit.effect_day}}天
</p>
<p class="validity" v-else>
领取时间:{{reduceInfo.time_limit.fiexd_time.start_time}}-{{reduceInfo.time_limit.fiexd_time.end_time}}
</p>
</div> </div>
</div> </div>
<div class="receiveBtn" @click="receiveFn">立即领取</div> <div class="receiveBtn" @click="receiveFn">立即领取</div>
@ -101,6 +108,8 @@
reduceInfo: {}, //券信息 reduceInfo: {}, //券信息
orderId: '', orderId: '',
backAble: true, backAble: true,
fiexd_time:false,//固定时间段
receive_time:{},//领取立减金时间
tip: `1、立减金自领取之日起0天有效请在有效期内使用<br /> tip: `1、立减金自领取之日起0天有效请在有效期内使用<br />
2、微信立减金自领取后每个立减金一次性使用不兑换不找零到期后自动失效逾期未使用不再补发。使用微信支付进行付款大于立减金面额0.01元以上)即可自动抵扣<br /> 2、微信立减金自领取后每个立减金一次性使用不兑换不找零到期后自动失效逾期未使用不再补发。使用微信支付进行付款大于立减金面额0.01元以上)即可自动抵扣<br />
3、多张立减金可在单笔微信支付订单中一起使用但当用户的立减金超过8张时系统会选取其中一部分使用不保证在一张订单中全部使用<br /> 3、多张立减金可在单笔微信支付订单中一起使用但当用户的立减金超过8张时系统会选取其中一部分使用不保证在一张订单中全部使用<br />
@ -111,24 +120,23 @@
}, },
created() { created() {
/* 获取立减金信息*/ /* 获取立减金信息*/
this.goodInfo = JSON.parse(sessionStorage.getItem("goodsInfo")); let goodsDetail=JSON.parse(sessionStorage.getItem("goodsInfo"));
this.goodInfo = goodsDetail;
goodsCount = sessionStorage.getItem('goodsCount'); goodsCount = sessionStorage.getItem('goodsCount');
this.backAble = goodsCount > 1;//多个商品才有返回 this.backAble = goodsCount > 1;//多个商品才有返回
this.reduceInfo = JSON.parse( this.reduceInfo = goodsDetail.entity;
sessionStorage.getItem("goodsInfo") this.plaflam = goodsDetail.entity.channel;
).entity; this.receive_time=goodsDetail.entity.time_limit;
this.plaflam = JSON.parse( if(goodsDetail.entity.time_limit.use_time.fiexd_time?.start_time){
sessionStorage.getItem("goodsInfo") this.fiexd_time=true;
).entity.channel; }
console.log(118, this.goodInfo); console.log(133,goodsDetail);
}, },
filters: { filters: {
cardType(val) { cardType(val) {
return val return val.map((item) => {
.map((item) => {
return item == 1 ? "借记卡" : "信用卡" + " "; return item == 1 ? "借记卡" : "信用卡" + " ";
}) }).join(" ");
.join(" ");
}, },
}, },
methods: { methods: {
@ -143,7 +151,7 @@
let self = this; let self = this;
let data = { let data = {
key: sessionStorage.getItem("key"), key: sessionStorage.getItem("key"),
product_id: this.goodInfo.product_id, goods_id: this.goodInfo.entity.goods_id,
code_batch_id: this.goodInfo.code_batch_id, code_batch_id: this.goodInfo.code_batch_id,
token: sessionStorage.getItem("token"), token: sessionStorage.getItem("token"),
}; };