Browse Source

联系我们的时间更改

master
rose 4 years ago
parent
commit
096e3d9e83
  1. 12
      src/App.vue
  2. 5
      src/components/Contact/ContactDate.vue

12
src/App.vue

@ -8,7 +8,7 @@
<template> <template>
<a-config-provider :locale="zh_CN"> <a-config-provider :locale="zh_CN">
<div class="d-flex flex-row flex-nowrap" id="app"> <div class="d-flex flex-row flex-nowrap" id="app">
<btn-con /> <!-- <btn-con /> -->
<router-view class="flex-1 bg pa-3"></router-view> <router-view class="flex-1 bg pa-3"></router-view>
</div> </div>
</a-config-provider> </a-config-provider>
@ -17,11 +17,11 @@
<script> <script>
import { mapState, mapActions, mapMutations } from 'vuex'; import { mapState, mapActions, mapMutations } from 'vuex';
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import BtnCon from 'components/BtnCom/BtnCon.vue'; // import BtnCon from 'components/BtnCom/BtnCon.vue';
export default { export default {
name: 'App', name: 'App',
components: { BtnCon }, // components: { BtnCon },
data() { data() {
return { zh_CN }; return { zh_CN };
}, },
@ -40,9 +40,9 @@ export default {
created() { created() {
// // // //
const userId = '1218763410024566784'; // const userId = '1218763410024566784';
const params = { userId }; // const params = { userId };
this.getUserId(params); // this.getUserId(params);
const that = this; const that = this;
window.plugin = window.TallPlugin.init(); window.plugin = window.TallPlugin.init();

5
src/components/Contact/ContactDate.vue

@ -24,7 +24,10 @@
<div>{{ record.address }}</div> <div>{{ record.address }}</div>
</template> </template>
<template slot="birth" slot-scope="text, record"> <template slot="birth" slot-scope="text, record">
<div>{{ record.birthday }}</div> <div>
{{ $moment(+record.birthday*1000).format('YYYY-MM-DD') }}
</div>
<!-- <div>{{ record.birthday }}</div> -->
</template> </template>
<template slot="account" slot-scope="text, record"> <template slot="account" slot-scope="text, record">
<div>{{ record.birthdayPlace }}</div> <div>{{ record.birthdayPlace }}</div>

Loading…
Cancel
Save