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