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

feat:优惠券红包

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