添加提醒功能
This commit is contained in:
47
pages/p.vue
Normal file
47
pages/p.vue
Normal file
@ -0,0 +1,47 @@
|
||||
<template lang="pug">
|
||||
.pClass
|
||||
Form(ref='form', :model='form', label-width='120px')
|
||||
FormItem(label='请输入文章编号')
|
||||
Input(v-model='form.no', size='small', @keyup.enter='onSubmit')
|
||||
FormItem
|
||||
Button(type='primary', size='small', @click='onSubmit')
|
||||
| 确定
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Form, FormItem, Input, Switch, Button } from 'element-ui'
|
||||
|
||||
export default {
|
||||
layout: 'auth',
|
||||
components: {
|
||||
Form, FormItem, Input, VueSwitch: Switch, Button
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
form: {
|
||||
no: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$finishLoad()
|
||||
},
|
||||
methods: {
|
||||
onSubmit () {
|
||||
if (!this.form.no) {
|
||||
alert('请输入文章编号')
|
||||
return
|
||||
}
|
||||
this.$router.push('/post/' + this.form.no + '#comment')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.pClass
|
||||
width 100%
|
||||
height 100%
|
||||
padding 50px 20px
|
||||
box-sizing border-box
|
||||
</style>
|
@ -951,6 +951,9 @@ $qrcode-width = 96px
|
||||
$qrcode-height = 96px
|
||||
$logo-width = 64px
|
||||
|
||||
modal
|
||||
display none
|
||||
|
||||
.postPage
|
||||
.articleDetails
|
||||
margin-top 30px
|
||||
|
47
pages/post/p.vue
Normal file
47
pages/post/p.vue
Normal file
@ -0,0 +1,47 @@
|
||||
<template lang="pug">
|
||||
.pClass
|
||||
Form(ref='form', :model='form', label-width='120px')
|
||||
FormItem(label='请输入文章编号')
|
||||
Input(v-model='form.no', size='small', @keyup.enter='onSubmit')
|
||||
FormItem
|
||||
Button(type='primary', size='small', @click='onSubmit')
|
||||
| 确定
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Form, FormItem, Input, Switch, Button } from 'element-ui'
|
||||
|
||||
export default {
|
||||
layout: 'auth',
|
||||
components: {
|
||||
Form, FormItem, Input, VueSwitch: Switch, Button
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
form: {
|
||||
no: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$finishLoad()
|
||||
},
|
||||
methods: {
|
||||
onSubmit () {
|
||||
if (!this.form.no) {
|
||||
alert('请输入文章编号')
|
||||
return
|
||||
}
|
||||
this.$router.push('/post/' + this.form.no + '#comment')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.pClass
|
||||
width 100%
|
||||
height 100%
|
||||
padding 50px 20px
|
||||
box-sizing border-box
|
||||
</style>
|
Reference in New Issue
Block a user