Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-annual-summary
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-annual-summary
提交
7f063c74
提交
7f063c74
编写于
2月 03, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
8c779b05
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
26 行增加
和
20 行删除
+26
-20
card-6.vue
src/components/annual-summary/card-6.vue
+10
-1
index.vue
src/components/wx-open/index.vue
+7
-7
detail.vue
src/views/annual-summary/detail.vue
+7
-9
share.vue
src/views/annual-summary/share.vue
+2
-3
未找到文件。
src/components/annual-summary/card-6.vue
浏览文件 @
7f063c74
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
<
script
>
<
script
>
import
Logo
from
"@/components/annual-summary/logo"
;
import
Logo
from
"@/components/annual-summary/logo"
;
import
{
getWebPageUrl
}
from
"@/utils"
;
import
{
getWebPageUrl
}
from
"@/utils"
;
import
{
Progress
,
Toast
}
from
"vant"
;
export
default
{
export
default
{
components
:
{
components
:
{
Logo
Logo
...
@@ -67,6 +68,10 @@ export default {
...
@@ -67,6 +68,10 @@ export default {
isHide
:
{
isHide
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
appVersion
:
{
type
:
Number
|
String
,
default
:
300
// 1: 站内; 2: 站外
}
}
},
},
data
()
{
data
()
{
...
@@ -83,7 +88,11 @@ export default {
...
@@ -83,7 +88,11 @@ export default {
methods
:
{
methods
:
{
// 保存图片
// 保存图片
save
()
{
save
()
{
this
.
$emit
(
"save"
);
if
(
this
.
appVersion
<
359
)
{
Toast
(
'请下载新版本APP保存页面截图'
);
}
else
{
this
.
$emit
(
"save"
);
}
},
},
// 分享按钮
// 分享按钮
...
...
src/components/wx-open/index.vue
浏览文件 @
7f063c74
...
@@ -123,13 +123,13 @@ export default {
...
@@ -123,13 +123,13 @@ export default {
var
btn
=
document
.
getElementById
(
this
.
wxOpenId
);
var
btn
=
document
.
getElementById
(
this
.
wxOpenId
);
if
(
btn
!=
null
)
{
if
(
btn
!=
null
)
{
// 成功唤起事件
// 成功唤起事件
btn
.
addEventListener
(
//
btn.addEventListener(
"launch"
,
//
"launch",
e
=>
{
//
e => {
_this
.
$emit
(
"launchApp"
);
//
_this.$emit("launchApp");
},
//
},
true
//
true
);
//
);
// 唤起失败事件
// 唤起失败事件
btn
.
addEventListener
(
btn
.
addEventListener
(
"error"
,
"error"
,
...
...
src/views/annual-summary/detail.vue
浏览文件 @
7f063c74
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<Card5
:anualData=
"anualData"
></Card5>
<Card5
:anualData=
"anualData"
></Card5>
</div>
</div>
<div
v-if=
"anualData.haveFlag"
class=
"swiper-slide"
>
<div
v-if=
"anualData.haveFlag"
class=
"swiper-slide"
>
<Card6
:anualData=
"anualData"
@
save=
"savePage2Picture"
@
share=
"share"
:isHide=
"isHid
e"
></Card6>
<Card6
:anualData=
"anualData"
:isHide=
"isHide"
:appVersion=
"appVersion"
@
save=
"savePage2Picture"
@
share=
"shar
e"
></Card6>
</div>
</div>
</div>
</div>
<Loading
v-show=
"showLoading"
/>
<Loading
v-show=
"showLoading"
/>
...
@@ -72,6 +72,7 @@ export default {
...
@@ -72,6 +72,7 @@ export default {
isInfresh
:
false
,
isInfresh
:
false
,
showLoading
:
false
,
showLoading
:
false
,
isHide
:
true
,
isHide
:
true
,
activeIndex
:
0
,
anualData
:
{
anualData
:
{
orderNum
:
0
,
orderNum
:
0
,
learnTime4Show
:
0
learnTime4Show
:
0
...
@@ -84,7 +85,6 @@ export default {
...
@@ -84,7 +85,6 @@ export default {
},
},
created
()
{
created
()
{
_this
=
this
;
_this
=
this
;
_this
=
this
;
// 截屏时通知前端
// 截屏时通知前端
window
.
__screenCaptureEvent
=
function
()
{
window
.
__screenCaptureEvent
=
function
()
{
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
window
.
__getUserInfoAS
=
function
(
param
)
{
window
.
__getUserInfoAS
=
function
(
param
)
{
console
.
log
(
"__getUserInfoAS"
,
param
);
console
.
log
(
"__getUserInfoAS"
,
param
);
_this
.
token
=
param
.
userToken
;
_this
.
token
=
param
.
userToken
;
_this
.
userMobile
=
param
.
userMobile
;
_this
.
appVersion
=
(
param
.
appVersion
||
''
).
split
(
'.'
).
join
(
''
)
;
_this
.
setUserInfo
(
param
);
_this
.
setUserInfo
(
param
);
_this
.
checkToken
();
_this
.
checkToken
();
_this
.
initData
();
_this
.
initData
();
...
@@ -146,7 +146,7 @@ export default {
...
@@ -146,7 +146,7 @@ export default {
},
100
);
},
100
);
});
});
}
else
{
}
else
{
this
.
$t
oast
(
res
.
message
);
T
oast
(
res
.
message
);
}
}
});
});
},
},
...
@@ -199,12 +199,9 @@ export default {
...
@@ -199,12 +199,9 @@ export default {
swiperAnimate
(
this
);
swiperAnimate
(
this
);
},
},
slideChangeTransitionEnd
:
function
(
se
)
{
slideChangeTransitionEnd
:
function
(
se
)
{
let
activeIndex
=
se
.
activeIndex
;
_this
.
activeIndex
=
se
.
activeIndex
;
swiperAnimate
(
this
);
swiperAnimate
(
this
);
console
.
log
(
"---2323"
,
se
);
console
.
log
(
"---2323"
,
se
);
// if (activeIndex == 1) {
// }
}
}
}
}
});
});
...
@@ -227,7 +224,8 @@ export default {
...
@@ -227,7 +224,8 @@ export default {
if
(
res
.
code
!==
"000000"
)
{
if
(
res
.
code
!==
"000000"
)
{
console
.
log
(
"跳登录"
,
this
.
isInfresh
);
console
.
log
(
"跳登录"
,
this
.
isInfresh
);
if
(
this
.
isInfresh
)
{
if
(
this
.
isInfresh
)
{
rocNative
.
goBack
();
// rocNative.goBack();
this
.
$router
.
back
(
-
1
);
}
else
{
}
else
{
rocNative
.
gotoLogin
();
rocNative
.
gotoLogin
();
}
}
...
...
src/views/annual-summary/share.vue
浏览文件 @
7f063c74
...
@@ -44,12 +44,11 @@
...
@@ -44,12 +44,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Loading
from
"@/components/common/common-loading"
;
import
Loading
from
"@/components/common/common-loading"
;
// import Card6 from "@/components/annual-summary/card-6";
import
WxOpenCommon
from
'@/components/wx-open'
;
import
WxOpenCommon
from
'@/components/wx-open'
;
import
{
getWebPageUrl
}
from
"@/utils"
;
import
{
getWebPageUrl
}
from
"@/utils"
;
import
{
Progress
,
Toast
}
from
"vant"
;
export
default
{
export
default
{
components
:
{
components
:
{
// Card6,
Loading
,
Loading
,
WxOpenCommon
WxOpenCommon
},
},
...
@@ -97,7 +96,7 @@ export default {
...
@@ -97,7 +96,7 @@ export default {
this
.
showLoading
=
false
;
this
.
showLoading
=
false
;
this
.
handlerDate
(
res
.
data
||
{});
this
.
handlerDate
(
res
.
data
||
{});
}
else
{
}
else
{
this
.
$t
oast
(
res
.
message
);
T
oast
(
res
.
message
);
}
}
});
});
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录