update uni-app

This commit is contained in:
全栈小学生 2023-11-15 16:02:07 +08:00
parent c606dd43e0
commit 1e6f552506
2 changed files with 11 additions and 5 deletions

View File

@ -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

View File

@ -154,11 +154,13 @@
*/
const birthdayPicker = ref(false)
const updateBirthday = (e) => {
//19701100false1
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
})
}