确认退出 删除top货币

This commit is contained in:
luyuan 2020-11-18 14:34:28 +08:00
parent 5e2db3ad91
commit 5c7ff10cc8
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
4 changed files with 12 additions and 29 deletions

View File

@ -23,7 +23,7 @@
<div style="overflow: hidden;">
<div class="item" :class="{'selbottom': selnum == list.length - 1}"></div>
</div>
<div class="item loginout" @click="logout">
<div class="item loginout" @click="visible = true">
<div class="route">
<img src="../static/images/tuichu.png" alt="" class="icon">
<div class="title">
@ -32,6 +32,9 @@
</div>
</div>
</div>
<a-modal v-model:visible="visible" :title="lan.$t('tishi')" @ok="logout">
<p>{{lan.$t('querentuichu')}}</p>
</a-modal>
</div>
</template>
<style lang="scss" scoped>
@ -223,6 +226,8 @@ export default defineComponent({
selnum.value = index;
}
const visible = ref(false);
function logout(): void{
console.log("退出")
store.commit("login", false)
@ -240,6 +245,7 @@ export default defineComponent({
logout,
mouse,
lan,
visible,
jiantou: require('../static/images/jiantou.png'),
jiantous: require('../static/images/kuozhan1.png')
}

View File

@ -41,34 +41,7 @@
</template>
</a-dropdown>
<a-dropdown :trigger="['click']" :getPopupContainer="triggerNode => triggerNode.parentNode" v-if="islogin">
<div class="item" @click="e => e.preventDefault()">
<img src="@/static/images/qianbi.png" alt="" class="icon">
<div class="name">{{userinfo.currency}}</div>
<img src="@/static/images/jiantou2.png" alt="" class="down">
</div>
<template v-slot:overlay>
<a-menu style="max-height:70vh;overflow: auto;">
<!-- 货币 -->
<a-menu-item v-for="(i,j) in currencylist" :key="j" style="position: relative;">
<div class="selitem" @click="currencychange(i.value)">
<span :style="{'color': i.name == userinfo.currency ? '#06C7AE' : ''}">{{i.name}} </span>
<img src="@/static/images/duihao.png" alt="" v-if="i.name == userinfo.currency" class="duihao">
</div>
</a-menu-item>
<!-- <a-menu-item key="1">
<div class="selitem">
<span>时区2b</span>
</div>
</a-menu-item>
<a-menu-item key="3">
<div class="selitem">
<span>时区3b</span>
</div>
</a-menu-item> -->
</a-menu>
</template>
</a-dropdown>
<a-dropdown :trigger="['click']" :getPopupContainer="triggerNode => triggerNode.parentNode">
<div class="item" @click="e => e.preventDefault()">
<img src="@/static/images/yuyan.png" alt="" class="icon">

View File

@ -308,6 +308,8 @@ export default {
shouru1: "Live Revenue=Actual attendess x Actual duration x unit price",
shouru2: "1 on 1, 20€/hour; 1 on N, 10€/hour/person, (1<N<=4)",
shouru3: "Attention! You can only change the currency once!",
tishi: "tip",
querentuichu: "You confirm to exit?",
shichangtishi:"",
renshutishi: '',
tixianzhu: "",

View File

@ -308,6 +308,8 @@ export default {
shouru1: "直播收入=实际参加学生数x参加时长x单价",
shouru2: "单价1对120欧/小时1对N10欧/小时/人1<N<=4",
shouru3: "请注意,货币一旦修改,不能变动",
tishi: "提示",
querentuichu: "您确认退出?",
shichangtishi:"",
renshutishi: '',
tixianzhu:"",