feedback.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view class="userinfo">
  3. <view class="userinfo-form">
  4. <view>{{$t('mine.feedbackMsg')}}</view>
  5. <u--textarea v-model="form.value" :placeholder="$t('mine.feedbackMsg')" width="100%" :count="true"></u--textarea>
  6. </view>
  7. <view class="edit-btn">
  8. <button @click="submit">{{$t("base.button.confirm")}}</button>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import {
  14. userFeedBack
  15. } from "../../api/user"
  16. export default {
  17. data() {
  18. return {
  19. version: "",
  20. form: {
  21. value:"",
  22. },
  23. }
  24. },
  25. components: {},
  26. onLoad() {
  27. },
  28. methods: {
  29. submit() {
  30. let that = this
  31. userFeedBack(that.form).then(res => {
  32. if (res.statusCode == 200 && res.data.code == 0) {
  33. that.updataUserInfo()
  34. }
  35. })
  36. },
  37. },
  38. }
  39. </script>
  40. <style lang="less" scoped>
  41. .userinfo {
  42. // padding: 32rpx;
  43. .avatar-box {
  44. position: relative;
  45. background-color: #4680F9;
  46. height: 100rpx;
  47. border-bottom-right-radius: 80rpx;
  48. border-bottom-left-radius: 80rpx;
  49. margin-bottom: 140rpx;
  50. .avatar {
  51. position: absolute;
  52. width: 160rpx;
  53. height: 160rpx;
  54. border: 2px solid #4680F9;
  55. bottom: -80rpx;
  56. left: calc(50% - 80rpx);
  57. border-radius: 50%;
  58. background-color: #fff;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. }
  63. }
  64. .avatar-wrap {
  65. margin: auto;
  66. }
  67. .userinfo-form {
  68. padding: 64rpx 10rpx;
  69. .item-icon {
  70. margin-right: 20rpx;
  71. }
  72. }
  73. .edit-btn {
  74. position: fixed;
  75. bottom: 0;
  76. height: 150rpx;
  77. padding: 0 64rpx;
  78. width: calc(100% - 128rpx);
  79. background-color: #fff;
  80. border-top-right-radius: 60rpx;
  81. border-top-left-radius: 60rpx;
  82. z-index: 2000;
  83. }
  84. }
  85. .bottom-back {
  86. margin-top: 10px;
  87. width: 750rpx;
  88. height: 44px;
  89. /* #ifndef APP-NVUE */
  90. display: flex;
  91. /* #endif */
  92. flex-direction: column;
  93. justify-content: center;
  94. align-items: center;
  95. /* #ifndef APP-NVUE */
  96. border: none;
  97. /* #endif */
  98. border-width: 0;
  99. border-radius: 0;
  100. background-color: #FFFFFF;
  101. }
  102. .bottom-back-text {
  103. font-size: 33rpx;
  104. }
  105. /deep/ .u-form-item {
  106. margin-bottom: 24rpx;
  107. }
  108. /deep/ .u-button--primary {
  109. color: #fff;
  110. background-color: #4680F9;
  111. border-color: #4680F9;
  112. border-width: 1px;
  113. border-style: solid;
  114. border-radius: 20rpx;
  115. }
  116. /deep/ .u-form-item__body__right__content {
  117. flex-direction: row;
  118. }
  119. </style>