Browse Source

修改代码

dev
沈明 1 year ago
parent
commit
809a8bc5c6
  1. 5
      src/pages/votingElection/index.vue

5
src/pages/votingElection/index.vue

@ -100,13 +100,14 @@ const submit = () => {
} }
} }
const navto = (url: string, mode: pageMode = 'navigateTo') => uni.$util.goToPage({ url: url ?? 'pages/index/index', mode })
const isEmptyObject = (obj: any) => { const isEmptyObject = (obj: any) => {
if (obj == null) return true if (obj == null) return true
if (typeof obj !== 'object' || Array.isArray(obj)) return true if (typeof obj !== 'object' || Array.isArray(obj)) return true
return Reflect.ownKeys(obj).length === 0 return Reflect.ownKeys(obj).length === 0
} }
const onConfirm = () => uni.reLaunch({ url: '/pages/mine/index' })
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (userStore.mobile === '') { if (userStore.mobile === '') {
@ -169,7 +170,7 @@ onShow(() => {
<view class="nodata">暂时没有选举 请刷新重试</view> <view class="nodata">暂时没有选举 请刷新重试</view>
</ex-empty> </ex-empty>
<ex-dialog ref="showDialogRef" title="提示" @confirm="navto('pages/mine/index', 'reLaunch')">请您签到之后再进行投票</ex-dialog> <ex-dialog ref="showDialogRef" title="提示" :on-confirm="onConfirm">请您签到之后再进行投票</ex-dialog>
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">

Loading…
Cancel
Save