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}/`, url:`/v1/user/cas/login/?ticket=${ticket}&service=${process.env.VUE_APP_EDU_URL}/`,
method: "get" 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>
<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> <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-nav">
<div class="child-wrapper"> <div class="child-wrapper">
<ul> <ul>
<li class="child-item"> <li class="child-item"><router-link to="/video?class1=37&class2=9" class="c2a">基础操作</router-link></li>
<router-link to="/guide/finereport" class="c2a">FR新手入门</router-link> <li class="child-item"><router-link to="/video?class1=37&class2=16" class="c2a">ETL</router-link></li>
</li> <li class="child-item"><router-link to="/video?class1=37&class2=27" class="c2a">直播分享</router-link></li>
<li class="child-item"> <div class="amore">
<a href="https://bbs.fanruan.com/thread-77147-1-1.html" class="c2a" target="_blank"> <router-link class="mra flex-1" to="/video?class1=37&class2=0" target="_blank">
FR学习计划 <span>查看FineDataLink全部课程</span>
</a> <i class="arrow el-icon-arrow-right"></i>
</li> </router-link>
<li class="child-item"> </div>
<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>
</ul> </ul>
</div> </div>

2
src/router-refresh-cas.js

@ -352,7 +352,7 @@ router.beforeEach((to, from, next) => {
// ticket空执行删除 // ticket空执行删除
const is_ticket_null = new URL(window.location); const is_ticket_null = new URL(window.location);
if(is_ticket_null.searchParams.has("ticket")){ if(is_ticket_null.searchParams.has("ticket")){
if(get_ticket===0){ if(get_ticket===0 || get_ticket=='null'){
console.log('ticket空'); console.log('ticket空');
parent.window.location.replace(process.env.VUE_APP_ID_URL+'/login/token/logout?referrer='+encodeURIComponent(process.env.VUE_APP_EDU_URL)); 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"> <a href="https://bbs.fanruan.com/product-240.html" target="_blank">
<img src="@/assets/img/book2.png"> <img src="@/assets/img/book2.png">
<span>让数据成为生产力3.0</span> <span>让数据成为生产力5.0</span>
</a> </a>
</li> </li>
<li> <li>

Loading…
Cancel
Save