|
@@ -288,7 +288,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <a href="http://lol.duowan.com/1908/m_429098908198.html" target="_blank" class="more">更多阵容 >></a>
|
|
|
+ <a href="http://lol.duowan.com/1908/m_429098908198.html" target="_blank" class="more">更多玩家分享阵容</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -297,7 +297,7 @@
|
|
|
import hero from '../components/hero'
|
|
|
import { findFromTail, genRandomInteger, uuid } from '../utils/helper'
|
|
|
import shareItem from './shareItem'
|
|
|
-import {getTeamList, shareTeam, getSimulatorData, getUserInfo} from '../API/index'
|
|
|
+import {shareTeam, getSimulatorData, getUserInfo, getTopBuilds} from '../API/index'
|
|
|
import penguin from '../components/penguin'
|
|
|
|
|
|
const HERO_MAX_EUIPMENT = 3 // 英雄最大装备上限
|
|
@@ -569,7 +569,13 @@ export default {
|
|
|
})
|
|
|
} else {
|
|
|
dwUDBProxy.multiLogin(() => {
|
|
|
- alert('登录成功!')
|
|
|
+ this.isLogin = true
|
|
|
+ if(!localStorage.getItem(LOCALSTORAGE_KEY)) {
|
|
|
+ getUserInfo().then(res => {
|
|
|
+ localStorage.setItem(LOCALSTORAGE_KEY, JSON.stringify(res.data))
|
|
|
+ this.nickname = res.data.nickname
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -734,12 +740,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
- // 只取前四个
|
|
|
- getTeamList('like_count|desc').then(res => {
|
|
|
- this.powerfulTeamList = res.data.rows.slice(0, 4)
|
|
|
- })
|
|
|
- getTeamList('star_count|desc').then(res => {
|
|
|
- this.popularTeamList = res.data.rows.slice(0, 4)
|
|
|
+
|
|
|
+ getTopBuilds().then(res => {
|
|
|
+ this.popularTeamList = res.data.top_like_builds.slice(0, 4)
|
|
|
+ this.powerfulTeamList = res.data.top_star_builds.slice(0, 4)
|
|
|
})
|
|
|
|
|
|
// 获取模拟器数据
|