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
提交
91f0ea4e
提交
91f0ea4e
编写于
6月 04, 2024
作者:
jingqi.liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改央视
上级
654f8982
变更
5
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
818 行增加
和
796 行删除
+818
-796
package-lock.json
package-lock.json
+798
-775
common-navbar.vue
src/components/common/common-navbar.vue
+2
-1
mixins.js
src/utils/mixins.js
+9
-9
index.vue
src/views/coupon-center/index.vue
+6
-5
coupon-list.vue
src/views/coupon/coupon-list.vue
+3
-6
未找到文件。
package-lock.json
浏览文件 @
91f0ea4e
此差异已折叠。
点击以展开。
src/components/common/common-navbar.vue
浏览文件 @
91f0ea4e
<
template
>
<
template
>
<section
v-if=
"!isWeb"
:class=
"isFixNavbar ? 'nav-top fixed' : 'nav-top'"
:style=
"'height:' + navHeight"
>
<!-- v-if="!isWeb" -->
<section
:class=
"isFixNavbar ? 'nav-top fixed' : 'nav-top'"
:style=
"'height:' + navHeight"
>
<div
<div
class=
"nav-part"
class=
"nav-part"
:style=
"'background:' + bgColor + ';'
:style=
"'background:' + bgColor + ';'
...
...
src/utils/mixins.js
浏览文件 @
91f0ea4e
...
@@ -238,16 +238,16 @@ module.exports = {
...
@@ -238,16 +238,16 @@ module.exports = {
};
};
console
.
log
(
'this.token || this.$store.state.user.token || this.$store.state.coop.userInfo.userToken'
,
this
.
token
,
this
.
$store
.
state
.
user
.
token
,
this
.
$store
.
state
.
coop
.
userInfo
.
userToken
);
console
.
log
(
'this.token || this.$store.state.user.token || this.$store.state.coop.userInfo.userToken'
,
this
.
token
,
this
.
$store
.
state
.
user
.
token
,
this
.
$store
.
state
.
coop
.
userInfo
.
userToken
);
this
.
GET
(
"campaign/admin/task/checkToken"
,
param
).
then
(
res
=>
{
this
.
GET
(
"campaign/admin/task/checkToken"
,
param
).
then
(
res
=>
{
if
(
res
.
code
!==
"000000"
)
{
//
if (res.code !== "000000") {
console
.
log
(
'commonCheckToken'
,
window
.
__isWeb
);
//
console.log('commonCheckToken', window.__isWeb);
if
(
window
.
__isWeb
)
{
//
if(window.__isWeb) {
this
.
goLogin
();
//
this.goLogin();
}
else
{
//
} else {
rocNative
.
gotoLogin
();
//
rocNative.gotoLogin();
}
//
}
}
else
{
//
} else {
cb
&&
cb
()
cb
&&
cb
()
}
//
}
});
});
},
},
...
...
src/views/coupon-center/index.vue
浏览文件 @
91f0ea4e
...
@@ -152,7 +152,10 @@ export default {
...
@@ -152,7 +152,10 @@ export default {
chooseCoupon
(
item
)
{
chooseCoupon
(
item
)
{
switch
(
item
.
couponStatus
)
{
switch
(
item
.
couponStatus
)
{
case
0
:
case
0
:
receiveCoupon
(
item
.
couponId
,
item
.
grantConfigId
).
then
((
res
)
=>
{
this
.
POST
(
`/trade/coupon/app/receive/
${
item
.
couponId
}
/
${
item
.
grantConfigId
}
`
,
{}
).
then
((
res
)
=>
{
console
.
log
(
res
,
"receiveCoupon"
);
console
.
log
(
res
,
"receiveCoupon"
);
// couponType 1 满减 2 立减 todo 现金红包
// couponType 1 满减 2 立减 todo 现金红包
// if (item.couponType === 2) {
// if (item.couponType === 2) {
...
@@ -168,10 +171,7 @@ export default {
...
@@ -168,10 +171,7 @@ export default {
// uni.switchTab({
// uni.switchTab({
// url: "/pages/home/index",
// url: "/pages/home/index",
// });
// });
this
.
$router
.
push
({
rocNative
.
goBack
();
path
:
"/consultation/"
,
query
:
{
backMethod
:
"web"
},
});
break
;
break
;
default
:
default
:
break
;
break
;
...
@@ -192,6 +192,7 @@ export default {
...
@@ -192,6 +192,7 @@ export default {
}
}
}
}
.page-wrapper {
.page-wrapper {
padding-top: 64px;
height: auto;
height: auto;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
...
...
src/views/coupon/coupon-list.vue
浏览文件 @
91f0ea4e
...
@@ -130,7 +130,6 @@ export default {
...
@@ -130,7 +130,6 @@ export default {
}
}
window
.
__getUserInfo4CouponList
=
function
(
param
)
{
window
.
__getUserInfo4CouponList
=
function
(
param
)
{
console
.
log
(
44444444
);
console
.
log
(
"__getUserInfo4CouponList"
,
param
);
console
.
log
(
"__getUserInfo4CouponList"
,
param
);
_this
.
token
=
param
.
userToken
;
_this
.
token
=
param
.
userToken
;
_this
.
setUserInfo
(
param
);
_this
.
setUserInfo
(
param
);
...
@@ -138,7 +137,6 @@ export default {
...
@@ -138,7 +137,6 @@ export default {
};
};
window
.
__refresh
=
function
()
{
window
.
__refresh
=
function
()
{
console
.
log
(
1111111
);
_this
.
getUserInfo
();
_this
.
getUserInfo
();
};
};
},
},
...
@@ -158,12 +156,10 @@ export default {
...
@@ -158,12 +156,10 @@ export default {
this
.
$store
.
dispatch
(
"setToken"
,
this
.
token
);
this
.
$store
.
dispatch
(
"setToken"
,
this
.
token
);
// this.$store.dispatch("getUserInfo");
// this.$store.dispatch("getUserInfo");
});
});
}
}
console
.
log
(
222222
);
// 从登陆页面过来的
// 从登陆页面过来的
this
.
getMyCouponsList
();
this
.
getMyCouponsList
();
}
else
{
}
else
{
console
.
log
(
3333333
);
this
.
getUserInfo
();
this
.
getUserInfo
();
}
}
},
},
...
@@ -221,6 +217,7 @@ export default {
...
@@ -221,6 +217,7 @@ export default {
}
}
}
}
.page-wrapper {
.page-wrapper {
padding-top: 114px;
height: 100vh;
height: 100vh;
background-color: #f5f6f8;
background-color: #f5f6f8;
display: flex;
display: flex;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录