This commit is contained in:
luyuan 2020-11-24 15:16:17 +08:00
parent fe3b036836
commit 8e40ff6b05
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
3 changed files with 11 additions and 12 deletions

View File

@ -68,9 +68,9 @@ export default createStore({
views:0
},
qh: {
code: "86",
ename: "China",
name: "中国",
code: "",
ename: "",
name: "",
}
},
mutations: {

View File

@ -23,12 +23,13 @@
</a-select-option>
<a-select-option value="Jiangsu"> Jiangsu </a-select-option>
</a-select> -->
<a-select v-model:value="hqqh" size="small" option-label-prop="label" @change="getquhao" class="getcode" show-search >
<a-select :default-value="hqqh" size="small" option-label-prop="label" @change="getquhao" class="getcode" show-search v-if="hqqh != '+' && hqqh">
<a-select-option v-for="(i,j) in quhaolist" :key="j" :value="i.name + '+' + i.code" :label="'+' + i.code">
{{i.name}}+{{i.code}}
</a-select-option>
<!-- <a-select-option value="Jiangsu"> Jiangsu </a-select-option> -->
</a-select>
<div class="getcode" v-else></div>
<div class="line"></div>
<a-input v-model:value="phone" style="width: 50%" :placeholder="lan.$t('shurushouji')" />
</a-input-group>
@ -124,6 +125,7 @@ import { message } from 'ant-design-vue';
import router from '@/router';
import { useI18n } from '@/utils/i18n';
import store from '@/store';
import { getValue } from '@/utils/common';
export default defineComponent({
name: "Login",
@ -147,7 +149,7 @@ export default defineComponent({
password: '123456'
})
const mrqh = computed(() => store.state.qh)
const hqqh = computed(() => { return mrqh.value.name + '+' + mrqh.value.code })
const hqqh = computed(() => { console.log(mrqh.value.name + '+' + mrqh.value.code); return (getValue("Lanvuage") == "en" ?mrqh.value.ename : mrqh.value.name) + '+' + mrqh.value.code })
const quhaolist = ref<any>([
{
code: "86",
@ -156,7 +158,7 @@ export default defineComponent({
}
])
const myquhao=ref(mrqh.value.code)
const videolist=ref<any>([{}])
const videolist=ref<any>([])
onMounted(async ()=>{
quhaolist.value=await getquhaolist()

View File

@ -203,11 +203,8 @@
</div>
<div class="notice-container" v-else>
<div class="title">{{ lan.$t("wuzhibozige") }}</div>
<div class="title sub-title">
<!-- 上一周/月您在平台视频点击量为
<span class="red">第24名</span>要在前
<span class="bule">20</span> 才能获得直播资格 -->
{{ lives.msg }}
<div class="title sub-title" v-html="lives.msg">
</div>
<rank-list :list="lives.data"></rank-list>
</div>