修改开宝箱后排行榜不更新
This commit is contained in:
parent
ff1cb0227f
commit
23a0ada9c0
@ -5,7 +5,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<meta name="referrer" content="no-referrer">
|
<meta name="referrer" content="no-referrer">
|
||||||
<link rel="icon" href="logo.png">
|
<link rel="icon" href="/logo.png">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -213,10 +213,7 @@
|
|||||||
slot-scope="scope"
|
slot-scope="scope"
|
||||||
>
|
>
|
||||||
<div class="touxiang">
|
<div class="touxiang">
|
||||||
<div class="user-img">
|
<UserImg :imgSrc="scope.row.avatar" />
|
||||||
<img v-if="scope.row.avatar != ''" :src="scope.row.avatar" alt="" />
|
|
||||||
<img v-else src="@/assets/home/Nav bar_character.png" alt="" />
|
|
||||||
</div>
|
|
||||||
{{ scope.row.nickname }}
|
{{ scope.row.nickname }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -245,14 +242,16 @@ import { getToken } from './../../utils/cookies.js'
|
|||||||
import Pagination from './../../components/pagination.vue'
|
import Pagination from './../../components/pagination.vue'
|
||||||
import { sendOpenChest, sendToChain } from './../../utils/chainapi.js'
|
import { sendOpenChest, sendToChain } from './../../utils/chainapi.js'
|
||||||
import { apiBoxOpen } from '@/utils/webapi.js'
|
import { apiBoxOpen } from '@/utils/webapi.js'
|
||||||
import PaginationDialog from './../../components/paginationDialog.vue'
|
import PaginationDialog from '@/components/paginationDialog.vue'
|
||||||
import Loading from '@/components/loading.vue'
|
import Loading from '@/components/loading.vue'
|
||||||
|
import UserImg from "@/components/userImg.vue"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Pagination,
|
Pagination,
|
||||||
PaginationDialog,
|
PaginationDialog,
|
||||||
Loading,
|
Loading,
|
||||||
|
UserImg,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -1111,18 +1110,6 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.user-img {
|
|
||||||
background: url('@/assets/common/Picture frame .png') no-repeat;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
padding: 3px;
|
|
||||||
border-radius: 50%;
|
|
||||||
img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
<img v-if="!boxData.avatar" src="@/assets/common/head_default.jpg" alt="" >
|
<img v-if="!boxData.avatar" src="@/assets/common/head_default.jpg" alt="" >
|
||||||
<UserImg v-else :imgSrc="boxData.avatar" />
|
<UserImg v-else :imgSrc="boxData.avatar" />
|
||||||
</div>
|
</div>
|
||||||
<div class="user-info-name">{{ boxData.nickname }}: <span>Thank you for your support! </span></div>
|
<div class="user-info-name" v-if="boxData.nickname">{{ boxData.nickname }}: <span>Thank you for your support! </span></div>
|
||||||
|
<div class="user-info-name" v-else>UserName: <span>Thank you for your support! </span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="con">
|
<div class="con">
|
||||||
<img v-if="!boxData.level" src="./../../assets/box/Unlock .png" alt="">
|
<img v-if="!boxData.level" src="./../../assets/box/Unlock .png" alt="">
|
||||||
|
@ -41,8 +41,7 @@
|
|||||||
<div class="hover-tips">Explorations obtained</div>
|
<div class="hover-tips">Explorations obtained</div>
|
||||||
</li>
|
</li>
|
||||||
<div class="touxiang">
|
<div class="touxiang">
|
||||||
<img v-if="myTwitterAvatar == '' || myTwitterAvatar == null" src="./../../assets/common/head_default.jpg" alt="">
|
<UserImg :imgSrc="myTwitterAvatar" />
|
||||||
<img v-else :src="myTwitterAvatar" alt="" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="left-top-points-right">
|
<div class="left-top-points-right">
|
||||||
@ -500,8 +499,7 @@
|
|||||||
<div class="hover-tips">Explorations obtained</div>
|
<div class="hover-tips">Explorations obtained</div>
|
||||||
</li>
|
</li>
|
||||||
<div class="touxiang">
|
<div class="touxiang">
|
||||||
<img v-if="myTwitterAvatar == '' || myTwitterAvatar == null" src="./../../assets/common/head_default.jpg" alt="">
|
<UserImg :imgSrc="myTwitterAvatar" />
|
||||||
<img v-else :src="myTwitterAvatar" alt="" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="left-top-points-right">
|
<div class="left-top-points-right">
|
||||||
@ -589,7 +587,7 @@
|
|||||||
import Calen from "./calenView.vue";
|
import Calen from "./calenView.vue";
|
||||||
import BoxBtm from './boxBtm.vue'
|
import BoxBtm from './boxBtm.vue'
|
||||||
import Ranking from './ranking.vue'
|
import Ranking from './ranking.vue'
|
||||||
// import ImgView from './../../components/imgView.vue'
|
import UserImg from '@/components/userImg.vue'
|
||||||
import gameView from "./gameView.vue";
|
import gameView from "./gameView.vue";
|
||||||
import CheckBtn from "@/components/checkBtn.vue";
|
import CheckBtn from "@/components/checkBtn.vue";
|
||||||
import WalletDialog from "@/components/walletDialog/index.vue";
|
import WalletDialog from "@/components/walletDialog/index.vue";
|
||||||
@ -622,7 +620,7 @@ import { formatShowAddress } from "@/utils/utils.js";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
// UserImg,
|
UserImg,
|
||||||
Calen,
|
Calen,
|
||||||
gameView,
|
gameView,
|
||||||
WalletDialog,
|
WalletDialog,
|
||||||
@ -634,7 +632,6 @@ export default {
|
|||||||
LogDialog,
|
LogDialog,
|
||||||
Loading,
|
Loading,
|
||||||
RuleDialog,
|
RuleDialog,
|
||||||
// ImgView,
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -1020,7 +1017,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.dialogTitle = 'Congratulations'
|
this.dialogTitle = 'Congratulations'
|
||||||
}
|
}
|
||||||
this.$refs.rankingData.renewData()
|
|
||||||
this.getUserState()
|
this.getUserState()
|
||||||
this.getGameStat()
|
this.getGameStat()
|
||||||
this.ExploreDialogVisible = true
|
this.ExploreDialogVisible = true
|
||||||
@ -1038,7 +1034,6 @@ export default {
|
|||||||
|
|
||||||
// 社媒任务奖励
|
// 社媒任务奖励
|
||||||
activityDialog(val) {
|
activityDialog(val) {
|
||||||
// console.log('社媒任务奖励',val)
|
|
||||||
this.awardData = val
|
this.awardData = val
|
||||||
this.eventName = 'help_event'
|
this.eventName = 'help_event'
|
||||||
this.dialogTitle = 'Congratulations'
|
this.dialogTitle = 'Congratulations'
|
||||||
@ -1046,6 +1041,7 @@ export default {
|
|||||||
this.getGameStat()
|
this.getGameStat()
|
||||||
}
|
}
|
||||||
this.getUserState()
|
this.getUserState()
|
||||||
|
this.$refs.rankingData.renewData()
|
||||||
this.ExploreDialogVisible = true
|
this.ExploreDialogVisible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1413,22 +1409,9 @@ export default {
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
right: -20px;
|
right: -20px;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
background: url('@/assets/common/Picture frame .png') no-repeat;
|
div {
|
||||||
background-size: 100% 100%;
|
width: 60px;
|
||||||
display: flex;
|
height: 60px;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 3px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
border-radius: 50%;
|
|
||||||
overflow: hidden !important;
|
|
||||||
img {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2406,22 +2389,9 @@ export default {
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
right: -20px;
|
right: -20px;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
background: url('@/assets/common/Picture frame .png') no-repeat;
|
div {
|
||||||
background-size: 100% 100%;
|
width: 60px;
|
||||||
display: flex;
|
height: 60px;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 3px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
border-radius: 50%;
|
|
||||||
overflow: hidden;
|
|
||||||
img {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -196,10 +196,6 @@ div {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
img {
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="forward-list-item-top">
|
<div class="forward-list-item-top">
|
||||||
<div class="user-img">
|
<div class="user-img">
|
||||||
<img v-if="!rankingTableData[1]" src="@/assets/common/head_default.jpg" alt="">
|
<img v-if="rankingTableData[1].avatar == ''" src="@/assets/common/head_default.jpg" alt="">
|
||||||
<img v-else :src="rankingTableData[1].avatar" alt="">
|
<img v-else :src="rankingTableData[1].avatar" alt="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -87,8 +87,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="forward-list-item-top">
|
<div class="forward-list-item-top">
|
||||||
<div class="user-img">
|
<div class="user-img">
|
||||||
<img v-if="!rankingTableData[2]" src="@/assets/common/head_default.jpg" alt="">
|
<img v-if="rankingTableData[2].avatar == ''" src="@/assets/common/head_default.jpg" alt="">
|
||||||
<img v-else-if="rankingTableData[2].avatar == ''" src="@/assets/common/head_default.jpg" alt="">
|
|
||||||
<img v-else :src="rankingTableData[2].avatar" alt="">
|
<img v-else :src="rankingTableData[2].avatar" alt="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user