fix: 修改卡密展示长度
This commit is contained in:
parent
708d5696c3
commit
497d2d9ca3
|
@ -53,7 +53,7 @@
|
||||||
<div class="c-item" :class="{mt30:!goods.card_number}">
|
<div class="c-item" :class="{mt30:!goods.card_number}">
|
||||||
<div>
|
<div>
|
||||||
<p>卡密</p>
|
<p>卡密</p>
|
||||||
<p class="num">{{goods.card_password}}</p>
|
<p class="num">{{card_look_pwd}}</p>
|
||||||
</div>
|
</div>
|
||||||
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/orderDetails/copy.png"
|
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/orderDetails/copy.png"
|
||||||
alt="" @click="copyFunction(goods.card_password,1)" class="copy">
|
alt="" @click="copyFunction(goods.card_password,1)" class="copy">
|
||||||
|
@ -89,6 +89,7 @@
|
||||||
const goodsCount = ref(0);
|
const goodsCount = ref(0);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const key_number = ref("");
|
const key_number = ref("");
|
||||||
|
const card_look_pwd = ref("");
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
goodsCount.value = Number(sessionStorage.getItem('goodsCount')) || 0;
|
goodsCount.value = Number(sessionStorage.getItem('goodsCount')) || 0;
|
||||||
|
@ -110,6 +111,9 @@
|
||||||
}
|
}
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
const { product_name, status, show_url, card_number, card_password, use_coupon, product } = res.data;
|
const { product_name, status, show_url, card_number, card_password, use_coupon, product } = res.data;
|
||||||
|
|
||||||
|
card_look_pwd.value = card_password.substring(0, 16); // 只用于展示
|
||||||
|
|
||||||
goods.value = { product_name, time: res.data.goods.end_time, status, show_url, card_number, card_password, card_show: res.data.goods.card_show, use_coupon, detail_url: product.detail_url };
|
goods.value = { product_name, time: res.data.goods.end_time, status, show_url, card_number, card_password, card_show: res.data.goods.card_show, use_coupon, detail_url: product.detail_url };
|
||||||
// 领取成功结算 5
|
// 领取成功结算 5
|
||||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5 && status === 2) {
|
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5 && status === 2) {
|
||||||
|
|
Loading…
Reference in New Issue