hasQuestion.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="hasquestion-wrap">
  3. <view class="title">问题描述</view>
  4. <textarea
  5. v-model="text"
  6. placeholder="请输入问题描述"
  7. placeholder-class="textarea-placeholder"
  8. />
  9. <view class="btn-wrap">
  10. <view class="btn" @click="handleClick">完成</view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. text:''
  19. };
  20. },
  21. methods: {
  22. handleClick(){
  23. const pages = getCurrentPages()
  24. console.log(pages)
  25. pages[pages.length-2].data.changeSelect('me')
  26. uni.navigateBack({delta:1})
  27. }
  28. },
  29. };
  30. </script>
  31. <style scoped lang="scss">
  32. .hasquestion-wrap{
  33. padding:40rpx 34rpx;
  34. .title{
  35. margin-bottom: 20rpx;
  36. font-size: 32rpx;
  37. color: #333333;
  38. }
  39. textarea{
  40. width:100%;
  41. height:294rpx;
  42. box-sizing: border-box;
  43. padding:30rpx;
  44. border:1rpx solid #BEBEBE;
  45. border-radius: 8rpx;
  46. }
  47. .btn-wrap{
  48. margin-top: 120rpx;
  49. text-align: center;
  50. .btn{
  51. display: inline-block;
  52. width:390rpx;
  53. height:80rpx;
  54. background-color: #E6B77D;
  55. border-radius: 40rpx;
  56. color: #FFFFFF;
  57. font-size: 32rpx;
  58. text-align: center;
  59. line-height: 80rpx;
  60. }
  61. }
  62. }
  63. </style>