Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-13 10:59:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
13d496e05d83dfeaafce9b2cecaccbb5d76792c8
13d496e0
1 parent
58b9ccb6
✨ feat: 修复留言版,微信失败录入问题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
27 deletions
src/components/CommentBox/index.vue
src/views/client/index.vue
src/components/CommentBox/index.vue
View file @
13d496e
...
...
@@ -50,18 +50,34 @@
</template>
<script setup>
import icon_x from '@images/x.png'
import icon_y from '@images/y.png'
import MyButton from '@/components/MyButton/index.vue'
import { Toast } from 'vant';
import { ref, reactive, onMounted } from 'vue'
import { ref } from 'vue'
// const props = defineProps({
// showPopup: Boolean
// })
onMounted(() => {
})
const emit = defineEmits(['on-close', 'on-submit']);
const show = ref(false)
const message = ref('')
const closeBtn = () => {
emit('on-close', false)
show.value = false;
}
const submitComment = () => {
if (message.value) {
show.value = false;
emit('on-submit', message.value);
message.value = '';
} else {
Toast.fail('留言不能为空');
}
}
</script>
<script>
...
...
@@ -69,8 +85,6 @@ export default {
props: ['showPopup', 'type', 'replayUser'],
data () {
return {
show: false,
message: ''
}
},
mounted () {
...
...
@@ -83,23 +97,6 @@ export default {
}
},
methods: {
onClose () {
this.show = false;
},
refreshBtn () {},
closeBtn () {
this.$emit('on-close', false)
this.show = false;
},
submitComment () {
if (this.message) {
this.show = false;
this.$emit('on-submit', this.message);
this.message = '';
} else {
Toast.fail('留言不能为空');
}
}
}
}
</script>
...
...
src/views/client/index.vue
View file @
13d496e
...
...
@@ -115,11 +115,11 @@ export default {
margin-top: 0.5rem;
overflow: auto;
.plain {
width: 2
9
%; float: left;
margin-right:
1
%;
width: 2
8
%; float: left;
margin-right:
3
%;
}
.primary {
width:
70
%; float: left;
width:
69
%; float: left;
}
}
}
...
...
Please
register
or
login
to post a comment