mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-18 09:38:09 +00:00
update uni-app
This commit is contained in:
parent
c606dd43e0
commit
1e6f552506
@ -64,14 +64,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, ref, watch } from 'vue'
|
import { computed, ref, watch,nextTick } from 'vue'
|
||||||
import useMemberStore from '@/stores/member'
|
import useMemberStore from '@/stores/member'
|
||||||
import { useLogin } from '@/hooks/useLogin'
|
import { useLogin } from '@/hooks/useLogin'
|
||||||
import { img, isWeixinBrowser, redirect, urlDeconstruction, moneyFormat } from '@/utils/common'
|
import { img, isWeixinBrowser, redirect, urlDeconstruction, moneyFormat } from '@/utils/common'
|
||||||
import { t } from '@/locale'
|
import { t } from '@/locale'
|
||||||
import { wechatSync } from '@/app/api/system'
|
import { wechatSync } from '@/app/api/system'
|
||||||
import useDiyStore from '@/app/stores/diy'
|
import useDiyStore from '@/app/stores/diy'
|
||||||
|
import informationFilling from '@/app/components/information-filling/information-filling.vue'
|
||||||
const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
|
const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
|
||||||
|
|
||||||
const diyStore = useDiyStore();
|
const diyStore = useDiyStore();
|
||||||
@ -149,7 +149,11 @@
|
|||||||
const infoFill = ref(false)
|
const infoFill = ref(false)
|
||||||
const clickAvatar = () => {
|
const clickAvatar = () => {
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
infoFill.value.show = true
|
nextTick(()=>{
|
||||||
|
console.log(infoFill.value)
|
||||||
|
if(infoFill.value) infoFill.value.show = true
|
||||||
|
})
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
|
|||||||
@ -154,11 +154,13 @@
|
|||||||
*/
|
*/
|
||||||
const birthdayPicker = ref(false)
|
const birthdayPicker = ref(false)
|
||||||
const updateBirthday = (e) => {
|
const updateBirthday = (e) => {
|
||||||
|
//1970年1月1日毫秒数为0,为0时时间处理函数会当无值false处理默认为当天,毫秒数需加1处理
|
||||||
|
console.log(e.value||e.value+1)
|
||||||
modifyMember({
|
modifyMember({
|
||||||
field: 'birthday',
|
field: 'birthday',
|
||||||
value: uni.$u.date(e.value, 'yyyy-mm-dd')
|
value: uni.$u.date(e.value||e.value+1, 'yyyy-mm-dd')
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
memberStore.info.birthday = uni.$u.date(e.value, 'yyyy-mm-dd')
|
memberStore.info.birthday = uni.$u.date(e.value||e.value+1, 'yyyy-mm-dd')
|
||||||
birthdayPicker.value = false
|
birthdayPicker.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user