修正了钱包margin 关于我们的问题

This commit is contained in:
2020-10-24 16:07:31 +08:00
parent 9968b71ae4
commit 8e64fc337b
6 changed files with 96 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
<template>
<div class="nav-bottom">
<div class="nav-container">
<div class="nav-container" :style="color">
<div v-for="(item, index) in navArray" :key="index" class="nav-item" @click="navto(item.route)">{{ item.name }}</div>
</div>
<div class="copyright">Beelink公司版权所有 20192022</div>
<div class="copyright" :style="color">Beelink公司版权所有 20192022</div>
</div>
</template>
@@ -12,7 +12,9 @@ import router from '@/router';
import { defineComponent } from 'vue';
export default defineComponent({
name: 'NavBottom',
props:{
color: Object
},
setup(){
interface Nav{
name: string;

View File

@@ -215,7 +215,7 @@ export default defineComponent({
updatedAt: "2020-08-19 11:54:59",
value: "1"
}])
const languagelist=ref<any>({
const languagelist=ref<any>([{
alias: "",
code: "104110011000",
createdAt: "2020-08-14 11:08:28",
@@ -226,7 +226,7 @@ export default defineComponent({
publish: 1,
updatedAt: "2020-08-14 11:08:28",
value: "zh"
})
}])
console.log(types.value)
interface Nav{
name: string;

View File

@@ -35,6 +35,16 @@
<div class="button">
<div class="modify" @click="update(videoid)">修改该视频</div>
<div class="del" @click="drop(videoid)">删除该视频</div>
<a-modal
title="确认删除"
v-model:visible="visible"
:confirm-loading="confirmLoading"
@ok="handleOk"
okText="确定"
cancelText="取消"
>
<p>您确认删除该视频吗</p>
</a-modal>
</div>
</div>
</template>
@@ -108,7 +118,7 @@
<script lang="ts">
import { videodel } from '@/api';
import router from '@/router';
import { defineComponent } from "vue";
import { defineComponent, ref } from "vue";
import { useRoute } from 'vue-router';
export default defineComponent({
@@ -131,16 +141,32 @@ export default defineComponent({
},
setup(){
console.log(1)
const visible = ref(false);
const confirmLoading = ref(false);
let id = 0;
function drop(e: number){
console.log(e)
videodel(e)
console.log(e);
id = e;
visible.value = true;
}
function update(e: number) {
router.push("/mine/video?id="+e)
}
function handleOk() {
confirmLoading.value = true;
videodel(id).then(()=>{
visible.value = false;
confirmLoading.value = false;
router.back()
})
}
return{
drop,
update
update,
confirmLoading,
visible,
handleOk
}
}
});