Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
8f5caf29
提交
8f5caf29
编写于
11月 16, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
d9adb7c9
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
12 行删除
+35
-12
yqy-home-adv.vue
src/components/business-new/yqy-home-adv.vue
+9
-7
fetch.js
src/utils/fetch.js
+6
-0
home-new.vue
src/views/home/home-new.vue
+20
-5
未找到文件。
src/components/business-new/yqy-home-adv.vue
浏览文件 @
8f5caf29
...
...
@@ -34,7 +34,8 @@ export default {
},
mounted
(){
this
.
list
=
this
.
parmData
this
.
list
=
this
.
parmData
;
alert
(
this
.
userToken
);
//this.getData();
},
props
:{
...
...
@@ -42,10 +43,11 @@ export default {
type
:
Array
,
default
:[]
},
// userToken:{
// type:String,
// default:''
// }
userToken
:{
type
:
String
,
default
:
''
}
},
methods
:
{
...
...
@@ -59,12 +61,12 @@ export default {
if
(
parm
==
'list'
){
rocNative
.
gotoNewWebActivity
({
pageUrl
:
'https://test1-phome.yunqueyi.com/appl/#/teachers
'
pageUrl
:
'https://test1-phome.yunqueyi.com/appl/#/teachers
?userToken='
+
_this
.
userToken
})
}
else
{
rocNative
.
gotoNewWebActivity
({
pageUrl
:
jumpWebPageUrl
+
'teachersDetail?id='
+
item
.
id
+
"&from=appHome
"
pageUrl
:
jumpWebPageUrl
+
'teachersDetail?id='
+
item
.
id
+
"&from=appHome
&userToken="
+
_this
.
userToken
})
}
...
...
src/utils/fetch.js
浏览文件 @
8f5caf29
...
...
@@ -20,6 +20,12 @@ 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'
})
}
// if (config.data && config.data.setEntry) {
// config.headers['sysCode'] = config.data.sysCode || 10
// config.headers['token'] = config.data.token || '625D128F3DBA486AABE7CBA9BDF90E69'
// 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' })
// }
return
config
},
error
=>
{
...
...
src/views/home/home-new.vue
浏览文件 @
8f5caf29
<
template
>
<div
class=
"main-body"
ref=
"wrapper"
:style=
"
{ height: (wrapperHeight-50) + 'px' }">
<section
:class=
"isIntStyle"
>
<!--展开收起学习评价-->
<YqyTopEvaluat
:isShowEvluat=
"isShowEvluat"
v-if=
"isShowEvluat"
:parmData=
"evaluctObj"
v-on:evluatFun=
"getEluatFun"
/>
...
...
@@ -54,7 +55,7 @@
<!--
<YqyHomePorter/>
-->
<!--云雀名师-->
<YqyHomeAdv
:parmData=
"yqDoctorList"
v-if=
"yqDoctorList.length>0"
/>
<YqyHomeAdv
:parmData=
"yqDoctorList"
v-if=
"yqDoctorList.length>0
&& userToken !=''"
:userToken=
"userToken
"
/>
<!--最新课程-->
<YqyTeacherList
:parmData=
"newsDatalist"
v-if=
"newsDatalist.length>0"
:userToken=
"userToken"
/>
...
...
@@ -76,7 +77,8 @@
</a>
</section>
</section>
</div>
</
template
>
...
...
@@ -251,7 +253,7 @@ export default {
},
loadTop
(){
location
.
reload
();
//
location.reload();
this
.
$refs
.
loadmore
.
onTopLoaded
();
},
...
...
@@ -341,7 +343,9 @@ export default {
_this
.
isShowEvluat
=
_this
.
evaluctObj
.
showFlag
;
if
(
_this
.
isShowEvluat
){
_this
.
fiveTimePull
()
_this
.
isIntStyle
=
'font-style pull-down'
;
_this
.
fiveTimePull
();
}
}
...
...
@@ -797,6 +801,17 @@ export default {
.banner-container
{
height
:
px2rem
(
210px
)
}
.main-body
{
position
:
relative
;
}
.box-BG
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
10000
}
.mint-header
{
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
)
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录