Browse Source

update:img

pull/2/head
Wangwei 2 years ago
parent
commit
0b59be9978
  1. 11
      src/api/auth.js
  2. BIN
      src/assets/img/book2.png
  3. 43
      src/components/banner.vue
  4. 2
      src/router-refresh-cas.js
  5. 2
      src/views/more.vue

11
src/api/auth.js

@ -86,4 +86,15 @@ export function getUserCode(sid) {
url:`/v1/user/cas/login/?ticket=${ticket}&service=${process.env.VUE_APP_EDU_URL}/`,
method: "get"
})
}
/**
* @description: 获取ticket
* @param {*} params
*/
export function getTicket(redirect) {
return request({
url:`/v1/user/cas/get/ticket/?redirect=${redirect}&service=${process.env.VUE_APP_EDU_URL}/`,
method: "get"
})
}

BIN
src/assets/img/book2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 313 KiB

43
src/components/banner.vue

@ -45,34 +45,29 @@
</li>
<li>
<a href="javascript:;" class="c1a flex-3 flex-1">
<span>学习路径</span>
<!-- <a href="/video?class1=37&class2=0" class="c1a flex-3 flex-1">
<span>FineDataLink</span>
<i class="arrow el-icon-arrow-right"></i>
</a>
</a> -->
<router-link class="c1a flex-3 flex-1" to="/video?class1=37&class2=0" target="_blank">
<span>FineDataLink</span>
<i class="arrow el-icon-arrow-right"></i>
</router-link>
<div class="child-nav">
<div class="child-wrapper">
<ul>
<li class="child-item">
<router-link to="/guide/finereport" class="c2a">FR新手入门</router-link>
</li>
<li class="child-item">
<a href="https://bbs.fanruan.com/thread-77147-1-1.html" class="c2a" target="_blank">
FR学习计划
</a>
</li>
<li class="child-item">
<router-link to="/guide/finebi" class="c2a">FineBI新手入门</router-link>
</li>
<li class="child-item">
<a href="https://bbs.fanruan.com/thread-123036-1-1.html" class="c2a" target="_blank">
FineBI学习计划
</a>
</li>
<li class="child-item">
<a href="https://bbs.fanruan.com/thread-133123-1-1.html" class="c2a" target="_blank">
简道云学习计划
</a>
</li>
<li class="child-item"><router-link to="/video?class1=37&class2=9" class="c2a">基础操作</router-link></li>
<li class="child-item"><router-link to="/video?class1=37&class2=16" class="c2a">ETL</router-link></li>
<li class="child-item"><router-link to="/video?class1=37&class2=27" class="c2a">直播分享</router-link></li>
<div class="amore">
<router-link class="mra flex-1" to="/video?class1=37&class2=0" target="_blank">
<span>查看FineDataLink全部课程</span>
<i class="arrow el-icon-arrow-right"></i>
</router-link>
</div>
</ul>
</div>

2
src/router-refresh-cas.js

@ -352,7 +352,7 @@ router.beforeEach((to, from, next) => {
// ticket空执行删除
const is_ticket_null = new URL(window.location);
if(is_ticket_null.searchParams.has("ticket")){
if(get_ticket===0){
if(get_ticket===0 || get_ticket=='null'){
console.log('ticket空');
parent.window.location.replace(process.env.VUE_APP_ID_URL+'/login/token/logout?referrer='+encodeURIComponent(process.env.VUE_APP_EDU_URL));
}

2
src/views/more.vue

@ -34,7 +34,7 @@
<a href="https://bbs.fanruan.com/product-240.html" target="_blank">
<img src="@/assets/img/book2.png">
<span>让数据成为生产力3.0</span>
<span>让数据成为生产力5.0</span>
</a>
</li>
<li>

Loading…
Cancel
Save