Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-professional-exam
提交
e2bda34d
提交
e2bda34d
编写于
6月 27, 2024
作者:
徐益明
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:优惠券红包
上级
9bd1045d
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
21 行增加
和
18 行删除
+21
-18
course-ware.vue
src/components/course/course-ware.vue
+1
-1
fetch.js
src/utils/fetch.js
+0
-1
index.vue
src/views/coupon-center/index.vue
+6
-6
coupon-item.vue
src/views/coupon/components/coupon-item.vue
+1
-1
coupon-tips.vue
src/views/coupon/components/coupon-tips.vue
+13
-9
未找到文件。
src/components/course/course-ware.vue
浏览文件 @
e2bda34d
...
@@ -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'
;
...
...
src/utils/fetch.js
浏览文件 @
e2bda34d
...
@@ -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
)
...
...
src/views/coupon-center/index.vue
浏览文件 @
e2bda34d
...
@@ -89,7 +89,7 @@ export default {
...
@@ -89,7 +89,7 @@ export default {
selectedCoupon
:{},
selectedCoupon
:{},
couponList
:
[],
couponList
:
[],
hasTips
:
true
,
hasTips
:
true
,
show
:
tru
e
,
show
:
fals
e
,
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"
);
...
...
src/views/coupon/components/coupon-item.vue
浏览文件 @
e2bda34d
...
@@ -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
);
}
}
...
...
src/views/coupon/components/coupon-tips.vue
浏览文件 @
e2bda34d
...
@@ -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: 1
19
px;
width: 1
00
px;
&-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:
31
px;
padding-top:
20
px;
}
}
}
}
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录