提交 e2bda34d 编写于 作者: 徐益明's avatar 徐益明

feat:优惠券红包

上级 9bd1045d
......@@ -14,7 +14,7 @@
* 需引用ES5
* GlobalWorkerOptions.workerSrc需要一个加载路径
*/
// import pdfJS from 'pdfjs-dist/es5/build/pdf';
import pdfJS from 'pdfjs-dist/es5/build/pdf';
pdfJS.GlobalWorkerOptions.workerSrc = '//cdn.bootcdn.net/ajax/libs/pdf.js/2.4.456/pdf.worker.js';
import coverImg from '@/images/course/lock-big.png';
......
......@@ -24,7 +24,6 @@ service.interceptors.request.use(config => {
config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' })
}
config.headers.token = 'DB7F56CDC4C74C279C456B3953520326'
return config
}, error => {
console.debug('service.interceptors.request: ', error)
......
......@@ -89,7 +89,7 @@ export default {
selectedCoupon:{},
couponList: [],
hasTips: true,
show: true,
show: false,
token: "",
couponToken: "",
shareUrl: "",
......@@ -204,14 +204,14 @@ export default {
.then((res) => {
console.log(res, "receiveCoupon");
// couponType 1 满减 2 立减 todo 现金红包
// if (item.couponType == 4) {
if (item.couponType == 4) {
this.selectedCoupon = item;
console.log("this.selectedCoupon", this.selectedCoupon);
this.show = true;
// } else {
// this.$toast("领取成功");
} else {
this.$toast("领取成功");
// this.getSearchCoupons();
// }
}
})
.catch((err) => {
this.$set(this.couponList[index], "hasDown", false);
......@@ -233,7 +233,7 @@ export default {
console.log(this.show, item);
},
close() {
this.getSearchCoupons();
},
goBack() {
console.log("back");
......
......@@ -286,7 +286,7 @@ export default {
if (
this.$route.path == "/coupon-center" &&
this.couponDetail.couponStatus == 0 &&
!this.hasDown
!this.hasDown && this.couponDetail.couponType != 4
) {
this.$emit("update:hasDown", !this.hasDown);
}
......
......@@ -26,7 +26,7 @@
<div class="card-item-left shadow">
<div class="card-item-left-top">
<span class="unit">¥</span> <span class="amount">
20
{{ amountPrice }}
</span>
</div>
<div class="card-item-left-bottom">
......@@ -36,13 +36,13 @@
<div class="card-item-right flex shadow">
<div class="card-item-right-center">
<div class="right-coupon">
可至「云鹊医App-个人中心-账户余额」中提现
可至「云鹊医App/小程序-个人中心-账户余额」中提现
</div>
</div>
</div>
</div>
</div>
<div class="card-bottom">
<div @click="navigateToWithdraw" class="card-bottom">
<span class="card-text"> 去提现 </span>
</div>
</div>
......@@ -91,17 +91,21 @@ export default {
this.$emit('update:visible', false);
this.$emit('close', false);
},
navigateToWithdraw() {
let webUrl = getWebPageUrl(`mall/banlance-detail?type=0`);
location.replace(webUrl);
return
}
},
};
</script>
<style scoped lang="less">
.coupon-dialog{
/deep/ .van-dialog__content{
height: 273px !important;
}
height: auto !important;
overflow: visible !important;
.content {
position: absolute;
height: 215px;
// height: 215px;
width: 295px;
background: url("https://files.yunqueyi.com/image/png/common/20240510112413239.png")
no-repeat;
......@@ -133,7 +137,7 @@ export default {
.card-item {
margin-bottom: 10px;
&-left {
width: 119px;
width: 100px;
&-top {
font-weight: 600;
font-size: 33px;
......@@ -209,7 +213,7 @@ export default {
font-size: 13px;
color: #fff;
line-height: 15px;
padding-top: 31px;
padding-top: 20px;
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册