Browse Source

修改签到功能

dev
沈明 1 year ago
parent
commit
aef69496ce
  1. 4
      src/pages/mine/add.vue
  2. 2
      src/pages/mine/index.vue

4
src/pages/mine/add.vue

@ -31,7 +31,9 @@ const onSubmit = uni.$util.debounce(() => {
addAPi(formData).then(() => { addAPi(formData).then(() => {
uni.hideLoading() uni.hideLoading()
uni.switchTab({ url: '/pages/mine/index' }) uni.showToast({ title: '签到成功,等待投票!', icon: 'none' })
setTimeout(() => uni.switchTab({ url: '/pages/mine/index' }), 1000)
}) })
} }
}) })

2
src/pages/mine/index.vue

@ -38,7 +38,7 @@ const updateUserInfo = () => {
userStore.bindUser(list.value[activeKey.value].id as number).then(() => { userStore.bindUser(list.value[activeKey.value].id as number).then(() => {
reset() reset()
userStore.getUserInfo() userStore.getUserInfo()
uni.showToast({ title: '绑定成功', icon: 'none' }) uni.showToast({ title: '签到成功,等待投票!', icon: 'none' })
}) })
} }

Loading…
Cancel
Save