blessing-message.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view class="page-width blessing-message">
  3. <view class="title black">祝福留言</view>
  4. <view class="page-width blessing-content">
  5. <input
  6. class="textarea"
  7. :value="bless_word"
  8. :placeholder="place_bless_word"
  9. placeholder-class="gray"
  10. maxlength="12"
  11. @input="changeTextarea"
  12. @confirm="changeTextarea"
  13. />
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: 'blessing-message',
  20. props: [`bless_word`, `place_bless_word`],
  21. methods: {
  22. changeTextarea(data) {
  23. this.$emit('changeTextarea', data.detail.value);
  24. }
  25. }
  26. }
  27. </script>
  28. <style scoped lang="scss">
  29. @import '../../css/gift.scss';
  30. /*祝福留言*/
  31. .blessing-message {
  32. padding: #{0 24upx};
  33. }
  34. /*标题*/
  35. .title {
  36. font-size: #{26upx};
  37. padding: #{38upx 0 14upx 0};
  38. }
  39. /*留言区域*/
  40. .blessing-content {
  41. height: #{160upx};
  42. border-radius: #{16upx};
  43. background-color: #ffffff;
  44. overflow: hidden;
  45. .textarea {
  46. width: #{670upx};
  47. margin: #{32upx 0 0 32upx};
  48. padding: 0;
  49. }
  50. }
  51. </style>